/* ══════════════ The Experience Lab podcast (js/podcast.js) ══════════════
   The end of the lab visit, before the hand-off to FIDA PLANT: one navy
   band from edge to edge of the screen, as the website's dark sections
   are, its content held to the page's width — a square cover on the left
   (the show's mark over a breathing wave), the show and its first
   episodes on the right. Stays dark in both themes. */

/* the band leaves the page's column for the full width of the screen
   (the root clips sideways overflow, so the scrollbar never adds one) */
.podcast {
  position: relative; overflow: hidden; isolation: isolate;
  margin: clamp(56px, 8vw, 104px) calc(50% - 50vw) 0;
  padding: clamp(48px, 7vw, 96px) 0;
  background: linear-gradient(135deg, var(--fw-navy) 0%, var(--fw-s80) 100%);
  color: #e8eef1;
}
/* inside it, the content keeps the page's own width */
.podcast-card {
  position: relative;
  display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 56px);
  max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--wrap-pad);
}
/* the site's light: an aqua glow from one corner */
.podcast::before {
  content: ""; position: absolute; inset: auto -10% -70% auto; width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--steel-rgb), .22), transparent);
  pointer-events: none;
}

/* ── the cover ─────────────────────────────────────────────────── */
.podcast-cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto auto; align-content: start;
  padding: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--steel-rgb), .45), transparent 60%),
    linear-gradient(160deg, var(--fw-s10) 0%, var(--fw-s50) 70%, var(--fw-s70) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
}
.podcast-cover-mic {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff;
  margin-bottom: 14px;
}
.podcast-cover-mic svg { width: 20px; height: 20px; }
.podcast-cover-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-t40); }
.podcast-cover-title {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1; letter-spacing: -0.03em; margin-top: 6px;
}
.podcast-wave { display: flex; align-items: center; gap: 3px; height: 54px; margin-top: 10px; }
.podcast-wave i {
  flex: 1; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 2px;
  background: linear-gradient(to top, rgba(var(--steel-rgb), .55), #fff);
  opacity: .82; transform-origin: 50% 50%;
  animation: podcast-breathe 2.8s var(--ease-in-out-smooth) infinite;
  animation-delay: calc(var(--k) * -110ms);
}
@keyframes podcast-breathe { 50% { transform: scaleY(.55); opacity: .55; } }
/* while an episode plays, the wave answers faster */
.podcast.is-playing .podcast-wave i { animation-duration: .9s; }
.podcast-cover-brand { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .72); }

/* ── the show ──────────────────────────────────────────────────── */
.podcast-body { min-width: 0; display: flex; flex-direction: column; }
.podcast-kicker {
  margin: 0 0 10px; display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.podcast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 4px rgba(var(--steel-rgb), .18); }
.podcast-title { margin: 0; font-size: var(--fs-h2); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; color: #fff; max-width: 18ch; }
.podcast-lead { margin: 12px 0 0; font-size: var(--fs-lead); line-height: 1.6; color: #aebdc6; max-width: 56ch; }

.podcast-eps { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.podcast-ep {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.podcast-play {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5);
  cursor: not-allowed;
}
.podcast-play svg { width: 16px; height: 16px; margin-left: 1px; }
.podcast-ep.is-live .podcast-play { cursor: pointer; background: var(--steel); border-color: var(--steel); color: var(--steel-ink); transition: transform .18s var(--ease-out-quart); }
.podcast-ep.is-live .podcast-play:hover { transform: scale(1.06); }
.podcast-play:focus-visible { outline: 2px solid var(--steel-t40); outline-offset: 3px; }
.podcast-ep-text { min-width: 0; display: grid; gap: 2px; }
.podcast-ep-num { font-family: var(--font-mono); font-size: 11px; color: var(--steel-t40); }
.podcast-ep-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.podcast-ep-note { font-size: 13px; color: #9fb2bd; line-height: 1.4; }
.podcast-ep-tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: 5px 10px; border-radius: var(--radius-pill);
  color: var(--steel-t40); background: rgba(var(--steel-rgb), .1); border: 1px solid rgba(var(--steel-rgb), .28);
}
.podcast-ep.is-playing .podcast-ep-title { color: var(--steel); }

.podcast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.podcast-suggest {
  font-size: 13px; font-weight: 700; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px;
  transition: border-color .18s var(--ease-out-quart), color .18s var(--ease-out-quart);
}
.podcast-suggest:hover { color: var(--steel); border-bottom-color: var(--steel); }
.podcast-suggest:focus-visible, .podcast-notify:focus-visible { outline: 2px solid var(--steel-t40); outline-offset: 4px; }
.podcast-note { margin: 12px 0 0; font-size: 12.5px; color: #9fb2bd; }

/* ── narrower screens ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .podcast-card { grid-template-columns: minmax(0, 1fr); }
  /* the cover turns into a band across the top */
  .podcast-cover { aspect-ratio: auto; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; }
  .podcast-cover-mic { grid-row: 1 / span 2; margin: 0; align-self: center; }
  .podcast-cover-title { margin-top: 2px; }
  .podcast-wave { grid-column: 1 / -1; height: 40px; margin-top: 16px; }
  .podcast-cover-brand { grid-column: 1 / -1; margin-top: 10px; }
}
@media (max-width: 520px) {
  .podcast-ep { grid-template-columns: auto minmax(0, 1fr); }
  .podcast-ep-tag { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .podcast-wave i { animation: none; }
}
.podcast.is-still .podcast-wave i { animation: none; }
