/* =====================================================================================================
   Yoca média - THE PODCAST (15_videos.html #podcast and en/15_videos.html only, after yoca-base.css)
   -----------------------------------------------------------------------------------------------------
   A dark panel in the light page: show (cover, title, pitch, listening links), then the featured
   episode with its player (left, sticky on desktop) and the episode list (right).
   Built by assets/js/yoca-podcast-ui.js (classes podcast-player*, podcast-gate*, podcast-ep*).
   Colours on the dark panel: text #f1f4f5 at 100 / 80 / 60 % (cc / 99), lines #f1f4f5 at 12-20 % (1f / 33),
   light red #ff7a82 for small accents (same value as .section--dark errors in yoca-base.css).
   Breakpoints: Webflow 991 / 767 / 479. Reduced motion: no hover movement, instant transitions.
   WEBFLOW EQUIVALENT: classes of the same names on a Section > Container > Div "podcast"; the player and
   list are a Collection List of the "Podcast episodes" collection + a custom-code embed for the player.
   ===================================================================================================== */

.podcast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 64px;
  border-radius: 20px;
  background: var(--dark);
  color: #f1f4f5cc;
}
/* Soft red light in the top right corner, behind everything */
.podcast::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #f1291e2e, #f1291e00);
  pointer-events: none;
}
.podcast h2, .podcast h3, .podcast h4 { color: var(--background); }
.podcast .kicker { color: #ff7a82; }
.podcast :focus-visible { outline-color: var(--background); }
.podcast .icon { width: 18px; height: 18px; }

/* ---------- Show ---------- */

.podcast__intro {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid #f1f4f51f;
}
.podcast__art { position: relative; margin: 0 18px 18px 0; }
/* Red frame offset behind the cover (the cover itself is black, like the panel) */
.podcast__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--red);
  border-radius: 16px;
}
.podcast__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #f1f4f533;
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px #000000cc;
}
.podcast__show h2 { margin: 0; font-size: 60px; line-height: 1.08em; }
.podcast__name { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-family: var(--heading-font); color: var(--background); font-size: 22px; line-height: 1.3em; }
.podcast__name .icon { width: 22px; height: 22px; color: #ff7a82; }
.podcast__pitch { max-width: 640px; margin: 18px 0 0; color: #f1f4f5cc; font-size: 19px; line-height: 1.6em; }
.podcast__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 24px 0 0; padding: 0; list-style: none; color: #f1f4f599; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.podcast__facts li { display: inline-block; }
/* Inline (not flex) items: the space in "<span>9</span> épisodes" is kept */
.podcast__facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.podcast__platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.podcast__button { border-color: #f1f4f566; background-color: transparent; color: var(--background); }
.podcast__button:hover { border-width: 1px; border-color: var(--red); background-color: var(--red); color: #fff; }
.podcast__also { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; color: #f1f4f599; font-size: 14px; }
.podcast__also > span { margin-right: 4px; }
.podcast__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid #f1f4f533;
  border-radius: var(--rounding-buttons);
  color: var(--background);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s var(--ease-site), color .3s var(--ease-site), border-color .3s var(--ease-site);
}
.podcast__chip .icon { width: 16px; height: 16px; }
.podcast__chip:hover { border-width: 1px; border-color: var(--background); background: var(--background); color: var(--dark); }
.podcast__chip.is-todo { color: #f1f4f599; outline-offset: 3px; cursor: help; }
.podcast__chip.is-todo:hover { border-color: #f1f4f533; background: transparent; color: #f1f4f599; }

/* ---------- Featured episode + player ---------- */

.podcast__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: start; }
.podcast-player {
  position: sticky;
  top: 110px;
  padding: 32px;
  border: 1px solid #f1f4f51f;
  border-radius: 16px;
  background: linear-gradient(160deg, #f1f4f512, #f1f4f505);
}
.podcast-player__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.podcast-player__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: var(--rounding-buttons); background: var(--red); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.podcast-player__label .icon { width: 15px; height: 15px; }
.podcast-player__num { color: #f1f4f599; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.podcast-player__title { margin: 0; font-size: 32px; line-height: 1.25em; }
.podcast-player__meta, .podcast-ep__meta { display: flex; flex-wrap: wrap; gap: 0 8px; color: #f1f4f599; font-size: 15px; }
.podcast-player__meta { margin: 12px 0 0; }
.podcast-player__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 16px 0 0;
  color: #f1f4f5cc;
  font-size: 16px;
  line-height: 1.65em;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.podcast-player__frame { min-height: 102px; margin-top: 26px; overflow: hidden; border: 1px solid #f1f4f51f; border-radius: 12px; background: #0000002e; }
.podcast-player__frame.is-loaded { border-color: transparent; background: transparent; }
.podcast-player__frame iframe { display: block; width: 100%; border: 0; }
.podcast-player__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.podcast .link-arrow { border: 0; color: var(--background); font-size: 15px; }
.podcast .link-arrow:hover { border: 0; color: #ff7a82; }

/* Consent gate (same wording as the TikTok player gate in yoca-capsules.js) */
.podcast-gate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: start; padding: 22px; }
.podcast-gate__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--background); color: var(--dark); }
.podcast .podcast-gate__icon .icon { width: 22px; height: 22px; }
.podcast-gate h4 { margin: 2px 0 0; font-size: 20px; line-height: 1.3em; }
.podcast-gate p { margin: 6px 0 0; color: #f1f4f5b3; font-size: 14px; line-height: 1.55em; }
.podcast-gate__actions { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.podcast-gate__link { display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--background); font-size: 14px; font-weight: 500; }
.podcast-gate__link:hover { border: 0; color: #ff7a82; }
.podcast .podcast-gate__link .icon { width: 15px; height: 15px; }

/* ---------- Episode list ---------- */

.podcast__list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #f1f4f533; }
.podcast__list-head h3 { margin: 0; font-size: 28px; }
.podcast__list-head p { margin: 0; color: #f1f4f599; font-size: 14px; }
.podcast__list { margin: 0; padding: 0; list-style: none; }
.podcast-ep {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 46px 36px;
  gap: 14px;
  align-items: center;
  padding: 18px 12px 18px 14px;
  border-bottom: 1px solid #f1f4f51f;
  transition: background-color .3s var(--ease-site);
}
.podcast-ep.is-current { background: #f1f4f50d; }
.podcast-ep__num { font-family: var(--heading-font); color: #f1f4f566; font-size: 26px; line-height: 1; transition: color .3s var(--ease-site); }
.podcast-ep.is-current .podcast-ep__num { color: var(--red); }
.podcast-ep__title { margin: 0; color: var(--background); font-size: 18px; line-height: 1.35em; }
.podcast-ep__meta { margin: 4px 0 0; font-size: 14px; }
.podcast-ep__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #f1f4f54d;
  border-radius: 50%;
  background: transparent;
  color: var(--background);
  cursor: pointer;
  transition: background-color .3s var(--ease-site), color .3s var(--ease-site), border-color .3s var(--ease-site), transform .5s var(--ease-out-expo);
}
.podcast-ep__play svg { width: 15px; height: 15px; margin-left: 2px; fill: currentColor; }
/* The whole row plays the episode (the button stays the only focusable target) */
.podcast-ep__play::after { content: ""; position: absolute; inset: 0; }
.podcast-ep.is-current .podcast-ep__play { border-color: var(--red); background: var(--red); color: #fff; }
.podcast-ep__out { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #f1f4f599; transition: background-color .3s var(--ease-site), color .3s var(--ease-site); }
.podcast-ep__out:hover { border: 0; background: #f1f4f51a; color: var(--background); }
@media (hover: hover) {
  .podcast-ep:hover { background: #f1f4f50a; }
  .podcast-ep:hover .podcast-ep__num { color: var(--background); }
  .podcast-ep:hover .podcast-ep__play { border-color: var(--background); background: var(--background); color: var(--dark); transform: scale(1.08); }
  .podcast-ep.is-current:hover .podcast-ep__num { color: var(--red); }
  .podcast-ep.is-current:hover .podcast-ep__play { border-color: var(--red); background: var(--red); color: #fff; }
}
.podcast-ep__play:focus-visible { outline: 2px solid var(--background); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .podcast-ep, .podcast-ep__play, .podcast-ep__num, .podcast__chip { transition: none; }
  .podcast-ep:hover .podcast-ep__play { transform: none; }
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 1199px) {
  .podcast { padding: 52px 44px; }
  .podcast__intro { gap: 48px; }
  .podcast__body { gap: 40px; }
}

@media screen and (max-width: 991px) {
  .podcast { padding: 44px 36px; }
  .podcast__intro { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 44px; padding-bottom: 44px; }
  .podcast__show h2 { font-size: 48px; }
  .podcast__body { grid-template-columns: 1fr; gap: 44px; }
  .podcast-player { position: static; }
}

@media screen and (max-width: 767px) {
  .podcast { padding: 36px 24px; border-radius: 16px; }
  .podcast__intro { grid-template-columns: 1fr; gap: 28px; }
  .podcast__art { max-width: 210px; }
  .podcast__show h2 { font-size: 42px; }
  .podcast__pitch { font-size: 17px; }
  .podcast-player { padding: 24px 20px; }
  .podcast-player__title { font-size: 26px; }
  .podcast-gate { grid-template-columns: 1fr; padding: 20px; }
  .podcast-gate__actions { grid-column: auto; }
  .podcast__list-head { flex-direction: column; gap: 4px; }
}

@media screen and (max-width: 479px) {
  .podcast { padding: 30px 18px; }
  .podcast__art { max-width: 170px; }
  .podcast__show h2 { font-size: 36px; }
  .podcast__name { font-size: 19px; }
  .podcast__facts { gap: 6px 18px; font-size: 12px; letter-spacing: .1em; }
  .podcast__facts li::before, .podcast__facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 8px 0 0; border-radius: 50%; background: var(--red); vertical-align: middle; }
  .podcast__platforms { flex-direction: column; }
  .podcast__platforms .button { width: 100%; }
  .podcast-player { padding: 20px 16px; }
  .podcast-player__head { flex-wrap: wrap; }
  /* Number + link out on a first line, title below, play button on the right */
  .podcast-ep { grid-template-columns: auto minmax(0, 1fr) 42px; gap: 4px 10px; padding: 16px 4px 16px 6px; }
  .podcast-ep__num { grid-area: 1 / 1; font-size: 18px; }
  .podcast-ep__out { grid-area: 1 / 2; justify-self: start; }
  .podcast-ep__body { grid-area: 2 / 1 / 3 / 3; }
  .podcast-ep__play { grid-area: 1 / 3 / 3 / 4; }
  .podcast-ep__title { font-size: 16px; }
  .podcast-ep__meta { font-size: 13px; }
  .podcast-ep__play { width: 42px; height: 42px; }
  .podcast-ep__out { width: 28px; height: 28px; }
}
