/**
 * Page Podcasts www — hero compact à gauche, liste filtrable à droite.
 * Tokens site : --cyan, --violet, --ink, --muted, Outfit/Syne.
 */

.podcasts-page {
  max-width: var(--max, 1100px);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.podcasts-layout {
  display: grid;
  /* Hero4 (~360–440px) à gauche ; épisodes à droite */
  grid-template-columns: minmax(22.5rem, 27.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.podcasts-rail {
  display: grid;
  gap: 0.95rem;
  position: sticky;
  top: 1rem;
  width: 100%;
  max-width: 27.5rem; /* ~440px */
}

/* Hero agrandi — object-fit contain pour garder le texte du PNG lisible */
.podcasts-hero {
  margin: 0;
  padding: 0.35rem;
  overflow: hidden;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--glass-border, #70d1f438);
  background: #070b14;
  width: 100%;
}

.podcasts-hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(36rem, 80vh);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.podcasts-hero__title {
  margin: 0;
  padding: 0.65rem 0.85rem 0.8rem;
  font-family: var(--font-display, "Syne", system-ui, sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(110deg, #c8f1ff, var(--cyan, #70d1f4) 40%, var(--violet, #a658ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.podcasts-intro__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #9aa8c0);
}

.podcast-follow {
  display: grid;
  gap: 0.35rem;
}

.podcast-follow--soon {
  gap: 0.5rem;
}

.podcast-follow__note {
  color: var(--muted, #9aa8c0);
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.podcast-subscribe__soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px dashed var(--glass-border, #70d1f438);
  color: var(--muted, #9aa8c0);
  font-size: 0.8rem;
  opacity: 0.85;
  cursor: not-allowed;
}

.podcast-episodes {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.podcast-episodes__head {
  display: grid;
  gap: 0.85rem;
}

.podcast-episodes > .podcast-episodes__head > h2,
.podcast-episodes__head > h2 {
  margin: 0;
  font-family: var(--font-display, "Syne", system-ui, sans-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--ink, #e8eef8);
}

.podcast-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.podcast-filters__field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted, #9aa8c0);
  min-width: 8.5rem;
}

.podcast-filters__field select {
  appearance: none;
  background: var(--glass, #0c12208c);
  color: var(--ink, #e8eef8);
  border: 1px solid var(--glass-border, #70d1f438);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  min-height: 2.35rem;
}

.podcast-filters__field select:focus-visible {
  outline: 3px solid var(--cyan, #70d1f4);
  outline-offset: 2px;
}

.podcast-empty,
.podcast-no-match {
  border: 1px solid var(--glass-border, #70d1f438);
  background: var(--glass, #0c12208c);
  border-radius: var(--radius, 16px);
  padding: 1.15rem 1.25rem;
  color: var(--muted, #9aa8c0);
}

.podcast-empty strong {
  color: var(--ink, #e8eef8);
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display, "Syne", system-ui, sans-serif);
}

.podcast-board,
.podcast-group__list {
  display: grid;
  gap: 0.85rem;
}

.podcast-group {
  display: grid;
  gap: 0.65rem;
}

.podcast-group__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, "Syne", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan, #70d1f4);
}

.podcast-card {
  border-top: 1px solid var(--glass-border, #70d1f438);
  padding: 0.85rem 0 0.35rem;
  display: grid;
  gap: 0.45rem;
}

.podcast-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  color: var(--muted, #9aa8c0);
  font-size: 0.82rem;
}

.podcast-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border, #70d1f438);
  color: var(--cyan, #70d1f4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.podcast-card__title {
  margin: 0;
  font-family: var(--font-display, "Syne", system-ui, sans-serif);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
}

.podcast-card__title a {
  color: var(--ink, #e8eef8);
  text-decoration: none;
}

.podcast-card__title a:hover {
  color: var(--cyan, #70d1f4);
}

.podcast-card__excerpt {
  margin: 0;
  color: var(--muted, #9aa8c0);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 62ch;
}

.podcast-card__player audio {
  width: 100%;
  max-width: 28rem;
  margin: 0;
}

.podcast-card__player audio:focus-visible {
  outline: 3px solid var(--cyan, #70d1f4);
  outline-offset: 3px;
}

.podcast-card__more {
  color: var(--cyan, #70d1f4);
  font-weight: 600;
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: no-preference) {
  .podcasts-hero__img {
    animation: podcasts-hero-in 0.55s ease-out both;
  }
}

@keyframes podcasts-hero-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .podcasts-layout {
    grid-template-columns: minmax(20rem, 25rem) minmax(0, 1fr);
  }

  .podcasts-rail {
    max-width: 25rem;
  }

  .podcasts-hero__img {
    max-height: min(32rem, 72vh);
  }
}

@media (max-width: 860px) {
  .podcasts-layout {
    grid-template-columns: 1fr;
  }

  .podcasts-rail {
    position: static;
    max-width: none;
    grid-template-columns: minmax(18rem, 22.5rem) minmax(0, 1fr);
    align-items: start;
  }

  .podcasts-hero {
    grid-row: 1 / span 3;
  }

  .podcasts-hero__img {
    max-height: min(30rem, 62vh);
  }

  .podcast-follow--soon {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .podcasts-page {
    padding: 0 0.75rem 2.5rem;
  }

  .podcasts-rail {
    grid-template-columns: 1fr;
  }

  .podcasts-hero {
    grid-row: auto;
    max-width: min(100%, 27.5rem);
    margin-inline: auto;
    width: 100%;
  }

  .podcasts-hero__img {
    /* Mobile : assez large pour lire la dernière ligne du PNG */
    max-height: min(28rem, 60vh);
    width: 100%;
  }
}

/* PP-153 — episode fiche (PodcastPlayer + art) */
.podcasts-page--episode {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}
.podcast-episode {
  max-width: 46rem;
  display: grid;
  gap: 0.85rem;
}
.podcast-episode__art {
  margin: 0;
  max-width: 18rem;
}
.podcast-episode__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.podcast-episode__title {
  margin: 0;
  font-family: var(--font-display, "Syne", system-ui, sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(110deg, #c8f1ff, var(--cyan, #70d1f4) 40%, var(--violet, #a658ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.podcast-ai-notice,
.podcast-badge {
  padding: 0.55rem 0.85rem;
  border-left: 3px solid var(--cyan, #70d1f4);
  background: var(--glass, #0c12208c);
  border-radius: 0 12px 12px 0;
  color: var(--muted, #9aa8c0);
  margin: 0;
}
.podcast-badge {
  display: inline-block;
  font-weight: 600;
  color: var(--cyan, #70d1f4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.podcast-description {
  color: var(--ink, #e8eef8);
  line-height: 1.65;
  margin: 0;
}
.podcast-episode__player audio {
  width: 100%;
  margin: 0.25rem 0;
}
.podcast-episode__player audio:focus-visible,
.podcasts-page--episode a:focus-visible {
  outline: 3px solid var(--cyan, #70d1f4);
  outline-offset: 2px;
}
.podcast-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  color: var(--muted, #9aa8c0);
  font-size: 0.92rem;
}
.podcasts-page--episode .podcast-card__more {
  margin: 0.5rem 0 0;
}
