/* ——— Page podcast : lecteur maison (amélioré par player.js) ——— */
.pod-doc {
  --pp-lime: var(--accent-lime, #cffe25);
  --pp-card: rgba(255, 255, 255, 0.035);
  --pp-line: rgba(255, 255, 255, 0.1);
  --pp-muted: rgba(255, 255, 255, 0.55);
  --level: 0;
}

.pp-head {
  max-width: 44rem;
  margin: 0 0 2rem;
}

.pp-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Sans JS : on garde le lecteur natif. Avec JS : lecteur maison. */
.pp-js .pp-fallback {
  display: none;
}

.actu-page .pp-ep {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--pp-card);
  border: 1px solid var(--pp-line);
  border-radius: 20px;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.pp-ep:not(.pp-js-ep) {
  grid-template-columns: 1fr;
}

.actu-page .pp-ep:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.actu-page .pp-ep.is-current {
  border-color: rgba(207, 254, 37, 0.45);
  background: linear-gradient(135deg, rgba(207, 254, 37, 0.07), rgba(255, 255, 255, 0.03) 55%);
  box-shadow: 0 0 0 1px rgba(207, 254, 37, 0.12), 0 18px 50px -24px rgba(207, 254, 37, 0.35);
}

.pp-body {
  min-width: 0;
}

.actu-page .pp-ep .pod-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.15rem 0 0.3rem;
}

.actu-page .pp-ep .pod-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.pp-when {
  white-space: nowrap;
}

.pp-badge {
  padding: 0.18rem 0.55rem;
  color: var(--lime-ink, #0a0a0c);
  background: var(--pp-lime);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Bouton lecture ——— */
.pp-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: 0.1rem;
  padding: 0;
  color: var(--lime-ink, #0a0a0c);
  background: var(--pp-lime);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.pp-play svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: opacity 0.2s;
}

.pp-play .pp-i-play {
  transform: translateX(1px);
}

.pp-play .pp-i-pause,
.is-playing .pp-play .pp-i-play {
  opacity: 0;
}

.is-playing .pp-play .pp-i-pause {
  opacity: 1;
}

.pp-play:hover {
  background: var(--accent-lime-hover, #d9ff4d);
}

.pp-play:focus-visible,
.pp-wave:focus-visible,
.pp-mini button:focus-visible {
  outline: 2px solid var(--pp-lime);
  outline-offset: 3px;
}

.is-loading .pp-play::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid transparent;
  border-top-color: var(--pp-lime);
  border-radius: 50%;
  animation: pp-spin 0.8s linear infinite;
}

/* ——— Égaliseur dans la ligne de date ——— */
.pp-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: 0.25rem;
}

.pp-eq i {
  width: 3px;
  height: 100%;
  background: var(--pp-lime);
  border-radius: 2px;
  transform-origin: bottom;
  animation: pp-eq 0.9s ease-in-out infinite;
}

.pp-eq i:nth-child(2) {
  animation-delay: -0.3s;
  animation-duration: 0.7s;
}

.pp-eq i:nth-child(3) {
  animation-delay: -0.55s;
  animation-duration: 1.05s;
}

.pp-eq i:nth-child(4) {
  animation-delay: -0.15s;
  animation-duration: 0.8s;
}

.is-current .pp-eq {
  display: inline-flex;
}

.is-current:not(.is-playing) .pp-eq i {
  animation-play-state: paused;
}

/* ——— Onde + temps ——— */
.pp-track {
  margin-top: 0.85rem;
}

.pp-wave {
  display: block;
  width: 100%;
  height: 44px;
  cursor: pointer;
  touch-action: none;
  border-radius: 6px;
}

.pp-time {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0 0;
  color: var(--pp-muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.is-current .pp-cur {
  color: #fff;
}

.pp-resume {
  color: var(--pp-lime);
}

/* ——— Sommaire ——— */
.actu-page .pp-sum {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.pp-sum-label {
  margin: 0 0 0.5rem;
  color: var(--pp-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.actu-page .pp-sum ol {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.actu-page .pp-sum li + li {
  margin-top: 0.3rem;
}

.actu-page .pp-sum a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.actu-page .pp-sum a:hover {
  color: var(--pp-lime);
}

/* ——— Épisode à la une : scène avec cercle vocal ——— */
.actu-page .pp-featured {
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1.2rem 2rem;
  align-items: center;
  padding: 1.6rem 2rem 1.6rem 1.2rem;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 18% 45%, rgba(207, 254, 37, calc(0.08 + var(--level) * 0.08)), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.actu-page .pp-featured:not(.pp-js-ep) {
  grid-template-columns: 1fr;
  padding: 1.6rem;
}

.pp-featured:not(.pp-js-ep) .pp-stage {
  display: none;
}

.pp-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
}

.pp-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pp-featured .pp-body {
  align-self: center;
}

.actu-page .pp-featured .pod-title {
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.pp-featured .pp-play {
  z-index: 1;
  width: 84px;
  height: 84px;
  margin: 0;
  box-shadow: 0 0 calc(18px + var(--level) * 40px) rgba(207, 254, 37, calc(0.25 + var(--level) * 0.4));
  transform: scale(calc(1 + var(--level) * 0.06));
  transition: background 0.2s, transform 0.12s linear;
}

.pp-featured .pp-play svg {
  width: 32px;
  height: 32px;
}

.pp-featured .pp-wave {
  height: 56px;
}

.pp-featured .pp-track {
  margin-top: 1.2rem;
}

.actu-page .pp-featured .pp-sum-open {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--pp-line);
}

.actu-page .pp-featured .pp-sum-open ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: pp-sum;
}

.actu-page .pp-featured .pp-sum-open li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  counter-increment: pp-sum;
  line-height: 1.35;
}

.actu-page .pp-featured .pp-sum-open li::before {
  content: counter(pp-sum, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--pp-lime);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.pp-facts li {
  padding: 0.35rem 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  font-size: 0.8rem;
}

/* ——— Abonnement ——— */
.pp-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 1.1rem 0 2.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}

.actu-page .pp-subscribe-title {
  margin: 0 0 0.2rem;
  color: #fff;
  font-weight: 600;
}

.pp-subscribe .pod-subscribe {
  margin: 0;
}

.actu-page .pod-btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.actu-page .pod-btn-ghost:hover {
  border-color: #fff;
}

.actu-page h2.pp-section {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ——— Mini-lecteur fixe ——— */
.pp-mini {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  width: min(680px, calc(100% - 24px));
  padding: 0.6rem 0.75rem 0.6rem 0.6rem;
  overflow: hidden;
  color: #fff;
  background: rgba(12, 12, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(150%) blur(24px);
  backdrop-filter: saturate(150%) blur(24px);
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.5s var(--ease);
}

.pp-mini.is-visible {
  transform: translate(-50%, 0);
}

.pp-mini-art {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #010104;
  color: #fff;
}

.pp-mini-art svg {
  width: 22px;
  height: 22px;
}

.pp-mini-info {
  min-width: 0;
}

.pp-mini-title {
  overflow: hidden;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pp-mini-sub {
  margin: 0.1rem 0 0;
  color: var(--pp-muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.pp-mini-ctrl {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pp-mini button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.pp-mini button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pp-mini button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pp-mini .pp-mini-toggle {
  width: 40px;
  height: 40px;
  color: var(--lime-ink, #0a0a0c);
  background: var(--pp-lime);
}

.pp-mini .pp-mini-toggle:hover {
  background: var(--accent-lime-hover, #d9ff4d);
}

.pp-mini-toggle svg {
  grid-area: 1 / 1;
}

.pp-mini .pp-i-pause,
.pp-mini.is-playing .pp-i-play {
  display: none;
}

.pp-mini.is-playing .pp-i-pause {
  display: block;
}

.pp-mini-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.pp-mini-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pp-lime);
  transform: scaleX(0);
  transform-origin: left;
}

.pp-has-mini .site-footer {
  padding-bottom: 110px;
}

@keyframes pp-eq {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes pp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .actu-page .pp-featured {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem 1.3rem;
  }

  .pp-stage {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .actu-page .pp-featured .pp-sum-open {
    margin-left: 0;
  }

  .pp-mini-skip {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .actu-page .pp-ep:not(.pp-featured) {
    gap: 0.85rem;
    padding: 1rem;
  }

  .pp-ep:not(.pp-featured) .pp-play {
    width: 46px;
    height: 46px;
  }

  .pp-mini-art {
    display: none;
  }

  .pp-mini {
    grid-template-columns: 1fr auto;
    padding-left: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-eq i,
  .is-loading .pp-play::before {
    animation: none;
  }

  .pp-mini {
    transition: none;
  }
}
