/* ═══════════════════════════════════════════════════════
   PODCAST — Apple-grade layout
   - Soft gradient hero with floating cover art
   - Editorial typography, tight letter-spacing
   - Episode rows: cover thumbnail + hover-revealed play overlay
   ═══════════════════════════════════════════════════════ */

/* ── Page hero ── */
.podcast-page {
  background:
    radial-gradient(ellipse at top right, rgba(126,184,212,.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(244,125,91,.07), transparent 50%),
    linear-gradient(180deg, var(--warm-50) 0%, var(--warm-100) 100%);
  padding: 104px 36px 80px;
}

.podcast-hero {
  max-width: 1040px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px; align-items: center;
}

.podcast-hero-meta { min-width: 0; }
.podcast-hero-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.podcast-hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 800; letter-spacing: -2px;
  line-height: 1.04; color: var(--gray-900);
  margin: 0 0 16px;
}
.podcast-hero-desc {
  font-size: 18px; color: var(--text-2);
  line-height: 1.65; max-width: 540px;
  margin: 0 0 36px;
}
.podcast-subscribe-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.podcast-hero-art {
  position: relative;
  width: 320px; height: 320px;
  justify-self: end;
}
.podcast-hero-art::before {
  content: '';
  position: absolute; inset: -40px;
  background:
    radial-gradient(circle at 30% 30%, rgba(74,144,168,.22), transparent 65%);
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
}
.podcast-hero-art img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 28px;
  box-shadow:
    0 40px 80px -24px rgba(45,44,43,.30),
    0 18px 36px -18px rgba(45,44,43,.20),
    0 0 0 1px rgba(45,44,43,.04);
}

/* ── Episodes section ── */
.episodes-section {
  max-width: 1040px; margin: 0 auto;
  padding: 72px 36px 112px;
}
.episodes-heading-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 32px;
}
.episodes-heading {
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin: 0;
}
.episodes-count {
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
}
.episodes-heading-row::after {
  content: ''; flex: 1; height: 1px;
  background: var(--gray-200);
}

/* ── Episode tile grid ── */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.ep-tile {
  display: flex; flex-direction: column;
  background: transparent;
  transition: transform .35s var(--ease);
}
.ep-tile:hover { transform: translateY(-4px); }

/* Square artwork with all overlays */
.ep-tile-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px; overflow: hidden;
  background: var(--warm-200);
  cursor: pointer;
  box-shadow:
    0 20px 40px -16px rgba(45,44,43,.22),
    0 8px 16px -8px rgba(45,44,43,.14);
  transition: box-shadow .35s var(--ease);
}
.ep-tile:hover .ep-tile-art {
  box-shadow:
    0 28px 56px -16px rgba(45,44,43,.30),
    0 12px 24px -10px rgba(45,44,43,.18);
}
.ep-tile-art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.ep-tile:hover .ep-tile-art img { transform: scale(1.06); }

/* Number pill on artwork */
.ep-tile-num {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
}
html[dir="ltr"] .ep-tile-num { right: auto; left: 14px; }

/* Duration pill on artwork */
.ep-tile-duration {
  position: absolute; bottom: 14px; left: 14px;
  z-index: 2;
  padding: 5px 11px;
  background: rgba(45,44,43,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  color: #fff;
}
html[dir="ltr"] .ep-tile-duration { left: auto; right: 14px; }

/* Play overlay */
.ep-tile-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(45,44,43,0) 40%, rgba(45,44,43,.55) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s var(--ease);
}
.ep-tile:hover .ep-tile-overlay,
.ep-tile-overlay.is-playing { opacity: 1; }

.ep-play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  box-shadow: 0 12px 28px -6px rgba(0,0,0,.35);
  transform: scale(.8);
  transition: transform .3s var(--ease), background .2s var(--ease);
}
.ep-tile:hover .ep-play-btn { transform: scale(1); }
.ep-play-btn:hover { background: #fff; }
.ep-play-btn svg { width: 24px; height: 24px; }
.ep-play-btn .icon-pause { display: none; }
.ep-play-btn.is-playing .icon-play { display: none; }
.ep-play-btn.is-playing .icon-pause { display: block; }

/* Body below artwork */
.ep-tile-body {
  padding: 18px 4px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ep-tile-date {
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3);
}
.ep-tile-title {
  font-size: 17px; font-weight: 700;
  letter-spacing: -.3px; line-height: 1.4;
  color: var(--text);
  margin: 0;
  /* No line-clamp: titles render in full at word boundaries.
     Tile heights vary slightly but the grid handles it cleanly. */
  word-break: normal;
  overflow-wrap: break-word;
}
.ep-tile-guest {
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  margin-top: -2px;
}
.ep-tile-desc {
  font-size: 13.5px; color: var(--text-2);
  line-height: 1.6; margin: 0;
  /* descShort is pre-truncated server-side at a word boundary — no CSS clamp needed. */
}

.ep-audio-wrap {
  margin-top: 8px;
  display: none;
}
.ep-audio-wrap.is-visible { display: block; }
.ep-audio {
  width: 100%; height: 38px;
}

/* ── Mobile ── */
@media (max-width: 820px) {
  .podcast-page { padding: 72px 22px 56px; }
  .podcast-hero {
    grid-template-columns: 1fr;
    gap: 36px; text-align: center;
  }
  .podcast-hero-art {
    width: 240px; height: 240px;
    justify-self: center;
  }
  .podcast-subscribe-row { justify-content: center; }

  .episodes-section { padding: 52px 22px 80px; }
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
  }
  .ep-tile-title { font-size: 15.5px; }
  .ep-tile-desc { font-size: 13px; }
  .ep-play-btn { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
  .episodes-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ep-tile-num { top: 10px; right: 10px; font-size: 10px; padding: 4px 9px; }
  .ep-tile-duration { bottom: 10px; left: 10px; font-size: 10px; padding: 4px 9px; }
  html[dir="ltr"] .ep-tile-num { left: 10px; }
  html[dir="ltr"] .ep-tile-duration { right: 10px; }
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE TEASER — refined card
   ═══════════════════════════════════════════════════════ */
.podcast-teaser {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 44px; align-items: center;
  max-width: 940px; margin: 0 auto;
  background: var(--surface);
  border-radius: 28px;
  padding: 38px 44px;
  box-shadow:
    0 1px 2px rgba(45,44,43,.03),
    0 0 0 1px rgba(45,44,43,.03);
  text-decoration: none; color: inherit;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.podcast-teaser::before {
  content: '';
  position: absolute; top: -100px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(126,184,212,.10), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.podcast-teaser:hover {
  box-shadow:
    0 24px 48px -18px rgba(45,44,43,.18),
    0 0 0 1px rgba(45,44,43,.04);
  transform: translateY(-4px);
}
.podcast-teaser-art {
  width: 200px; aspect-ratio: 1/1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--warm-200);
  box-shadow:
    0 24px 48px -18px rgba(45,44,43,.30),
    0 12px 24px -12px rgba(45,44,43,.20);
  position: relative; z-index: 1;
}
.podcast-teaser-art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.podcast-teaser-text { position: relative; z-index: 1; min-width: 0; }
.podcast-teaser-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.podcast-teaser h3 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.6px; line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}
.podcast-teaser p {
  font-size: 15.5px; color: var(--text-2);
  line-height: 1.65; margin: 0 0 18px;
}
.podcast-latest-mini {
  font-size: 13px;
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  color: var(--text-3);
  min-width: 0;
}
.podcast-latest-mini-label {
  font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; font-size: 11px;
  flex-shrink: 0;
}
.podcast-latest-mini-title {
  color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 720px) {
  .podcast-teaser {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .podcast-teaser-art { width: 160px; margin: 0 auto; }
  .podcast-teaser h3 { font-size: 24px; }
  .podcast-latest-mini { justify-content: center; flex-wrap: wrap; }
}
