/* =================================================================
   Pillar 5 Media · Site Stylesheet
   Dark mode only. Extracted from Wireframes.html v0.1.
   ================================================================= */

:root {
  --navy: #1A1A33;
  --navy-deep: #0F0F22;
  --indigo: #37354E;
  --indigo-deep: #2A283F;
  --twilight: #4A516E;
  --lavender: #8C90B1;
  --pale-sky: #A6BAD4;
  --gold: #D4A95C;
  --gold-soft: #E6C896;
  --rose: #C29D8E;
  --cream: #ECD8C8;
  --cream-soft: #F5E8DC;
  --mist: #6B7280;
  --line: rgba(236,216,200,0.12);
  --line-strong: rgba(236,216,200,0.22);
  --placeholder-bg: rgba(236,216,200,0.05);
  --placeholder-fg: rgba(236,216,200,0.35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--navy);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* In-content links (FAQ answers, body prose) get a visible style */
.faq-answer a, .body a, .descr a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .15s ease;
}
.faq-answer a:hover, .body a:hover, .descr a:hover { opacity: 0.8; }
img { display: block; max-width: 100%; }

/* ---------- LAYOUT ---------- */
.page { max-width: 1280px; margin: 0 auto; }
.wrap { padding: 0 36px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 36px; }

@media (max-width: 700px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* ---------- NAV ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 36px;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background-color: rgba(26, 26, 51, 0.92);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-wordmark {
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; color: var(--cream); letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--cream); opacity: 0.7;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { color: var(--gold-soft); opacity: 1; border-bottom-color: var(--gold); }
.nav-hamburger {
  display: none;
  font-family: var(--font-body); font-size: 13px; color: var(--cream);
  font-weight: 500; cursor: pointer; background: none; border: 0;
}

@media (max-width: 800px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-wordmark { font-size: 15px; }
  .nav-brand img { width: 30px; height: 30px; }
}

/* ---------- TYPE ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--lavender);
  display: inline-block;
}
.eyebrow.gold { color: var(--gold-soft); }

h1.display {
  font-family: var(--font-display); font-weight: 300;
  font-size: 64px; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--cream);
}
h1.display em { font-style: italic; color: var(--gold-soft); font-weight: 400; }

h2.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 36px; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--cream);
}

h3.show-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 44px; line-height: 1.1;
  letter-spacing: -0.015em; color: var(--cream);
}

.lede {
  font-family: var(--font-display); font-weight: 300;
  font-size: 22px; line-height: 1.5;
  color: var(--cream); opacity: 0.85;
}
.body { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--cream); opacity: 0.82; }
.body-lg { font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: var(--cream); opacity: 0.9; }
.caption { font-family: var(--font-body); font-size: 12px; color: var(--lavender); letter-spacing: 0.02em; }
.label-ui { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--lavender); letter-spacing: 0.01em; }

@media (max-width: 800px) {
  h1.display { font-size: 36px; }
  h2.section-title { font-size: 26px; }
  h3.show-title { font-size: 30px; }
  .lede { font-size: 18px; }
}

/* ---------- HERO ----------
   Note: CSS url() resolves relative to the stylesheet's location.
   Since this file lives in /assets/, references are to sibling files.
*/
.hero {
  position: relative;
  padding: 96px 36px;
  background-color: var(--navy);
  background-image: url('cover.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,15,34,0.78) 0%, rgba(15,15,34,0.45) 45%, rgba(15,15,34,0.15) 100%),
    linear-gradient(180deg, rgba(15,15,34,0.0) 0%, rgba(15,15,34,0.35) 100%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: auto 1fr;
  gap: 48px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.hero-logo img {
  width: 140px; height: 140px; border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-text .eyebrow { color: var(--gold-soft); }
.hero p.subhead {
  font-family: var(--font-display); font-weight: 300;
  font-size: 20px; line-height: 1.5;
  max-width: 52ch; color: var(--cream); opacity: 0.85;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 800px) {
  .hero { padding: 56px 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo img { width: 96px; height: 96px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all .15s ease;
  text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); opacity: 0.95; }
.btn-ghost:hover { background: var(--cream); color: var(--navy); opacity: 1; }
.btn-text {
  font-family: var(--font-body); font-size: 14px; color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding: 4px 0; border-radius: 0;
  transition: color .15s ease, border-bottom-color .15s ease;
}
.btn-text:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }

/* Brand icon inside buttons (small, inline) */
.btn .btn-icon {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* ---------- SECTION BLOCKS ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
@media (max-width: 800px) {
  .section { padding: 48px 0; }
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.section-head .head-left { display: flex; flex-direction: column; gap: 10px; }

/* ---------- MISSION STRIP ---------- */
.mission {
  padding: 72px 36px;
  background: var(--indigo-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-inner {
  max-width: 760px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column;
  gap: 16px; align-items: center;
}
.mission .gold-rule { width: 32px; height: 1px; background: var(--gold); }
@media (max-width: 800px) {
  .mission { padding: 48px 20px; }
}

/* ---------- SERIES CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}
.series-card {
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  color: inherit;
}
.series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  border-color: var(--line-strong);
}
.series-cover {
  position: relative;
  aspect-ratio: 1;
  background-image: url('cover.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.series-status {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(15, 15, 34, 0.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(236, 216, 200, 0.18);
  padding: 5px 10px; border-radius: 999px;
}
.series-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-soft);
}
.series-cover.alt { background-image: url('logo.jpg'); }
.series-cover.cover-yogi { background-image: url('yogi_cover.jpg?v=4'); }
.series-cover.cover-master { background-image: url('master_cover.jpg?v=2'); }
.series-meta { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.series-meta .series-author {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 14px; color: var(--lavender);
  letter-spacing: 0.005em;
  min-height: 1.4em;
}
.series-meta h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1.2;
  color: var(--cream);
  /* Hard height: every title block occupies exactly 5 lines so blurb + tags align across cards */
  height: calc(5 * 1.2em);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-meta .blurb {
  font-family: var(--font-body); font-size: 13px; line-height: 1.55;
  color: var(--pale-sky);
  /* Hard height so every card's blurb occupies exactly 4 lines */
  height: calc(4 * 1.55em);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-meta .series-length {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-soft);
  min-height: 1.3em;
}
.series-meta .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
  /* Cap at exactly 2 rows: extra chips wrap to row 3+ and get clipped by overflow */
  height: calc(2 * (1.3em + 8px) + 6px);
  overflow: hidden;
  align-content: flex-start;
}

/* ---------- TAGS ---------- */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(236,216,200,0.06); color: var(--cream);
  border: 1px solid var(--line-strong);
  letter-spacing: 0.01em;
}
.tag-tradition { background: rgba(74,81,110,0.25); color: var(--pale-sky); border-color: rgba(166,186,212,0.25); }
.tag-author { background: rgba(194,157,142,0.15); color: var(--rose); border-color: rgba(194,157,142,0.3); }
.tag-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.tag .x { margin-left: 8px; opacity: 0.7; cursor: pointer; }

/* ---------- LATEST EPISODES STRIP ---------- */
.latest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) {
  .latest-grid { grid-template-columns: 1fr; }
}
.latest-card {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr; gap: 14px;
  padding: 16px;
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  color: inherit;
}
.latest-card:hover { border-color: var(--gold); background: var(--indigo-deep); }
/* Special-episode flare. Only used on the homepage Recently published cards.
   Add <span class="latest-flare">Season Finale</span> (or Premiere) as the first
   child of a .latest-card. Do not use elsewhere. */
.latest-flare {
  position: absolute;
  top: 15px; right: 14px;
  font-family: var(--font-body);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.latest-card .thumb {
  width: 72px; height: 72px; border-radius: 6px;
  background-image: url('cover.jpg');
  background-size: cover; background-position: center;
}
.latest-card .thumb.alt { background-image: url('logo.jpg'); }
.latest-card .thumb.cover-yogi { background-image: url('yogi_cover.jpg?v=4'); }
.latest-card .thumb.cover-master { background-image: url('master_cover.jpg?v=2'); }
.latest-card .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.latest-card .show-name {
  font-family: var(--font-body); font-size: 12px;
  color: var(--lavender); font-weight: 500;
  min-height: 1.25em;
}
.latest-card .ep-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; line-height: 1.25; color: var(--cream);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  /* Fixed two-line height so the meta row below sits at the same position across cards */
  height: calc(2 * 1.25em);
}
.latest-card .ep-meta { font-size: 11px; color: var(--mist); min-height: 1.4em; }

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  padding: 14px 20px;
  background: var(--indigo-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filter-bar-mobile {
  display: none;
  padding: 12px 16px;
  background: var(--indigo-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center; justify-content: space-between;
  font-family: var(--font-body); font-size: 13px;
  color: var(--cream); font-weight: 500;
  cursor: pointer;
}
@media (max-width: 800px) {
  .filter-bar { display: none; }
  .filter-bar-mobile { display: flex; }
}

.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label {
  font-family: var(--font-body); font-size: 13px;
  color: var(--lavender); font-weight: 500;
}
.filter-select {
  font-family: var(--font-body); font-size: 13px;
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(0,0,0,0.25); color: var(--cream);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238C90B1' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  cursor: pointer;
}
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- SHOW HERO (series detail) ---------- */
.show-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  padding: 64px 36px 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) {
  .show-hero {
    grid-template-columns: 1fr; gap: 24px;
    padding: 32px 20px 40px;
  }
}
.show-cover {
  width: 100%;
  align-self: start;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  overflow: hidden;
  background: var(--navy);
}
.show-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.show-detail { display: flex; flex-direction: column; gap: 18px; }
.show-detail .meta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.show-detail .meta-row .dot { color: var(--mist); }
.show-detail .descr p { margin-bottom: 14px; }
.show-detail .platform-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.show-detail .tags-row { display: flex; flex-wrap: wrap; gap: 8px 6px; }

/* ---------- EPISODES ---------- */
.episode-search {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 18px;
  margin-bottom: 16px;
  background: var(--indigo-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .15s ease;
}
.episode-search:focus-within { border-color: var(--gold); }
.episode-search svg { flex-shrink: 0; opacity: 0.5; }
.episode-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream);
  padding: 12px 0;
}
.episode-search input::placeholder { color: rgba(236,216,200,0.35); }
.episode-search .clear {
  font-family: var(--font-body); font-size: 12px;
  color: var(--lavender); background: none; border: 0;
  cursor: pointer; padding: 6px 10px; border-radius: 999px;
  display: none;
}
.episode-search .clear:hover { color: var(--gold); }
.episode-search.has-query .clear { display: inline-flex; }
.episode-item.search-hidden { display: none; }
.episodes-empty {
  display: none;
  text-align: center;
  padding: 48px 16px;
  color: var(--lavender);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
}
.episodes-empty.show { display: block; }

.episode-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding: 14px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.episode-toolbar .count {
  font-family: var(--font-body); font-size: 13px;
  color: var(--lavender); font-weight: 500;
}
.episode-toolbar .sort { display: flex; flex-wrap: wrap; gap: 6px; }
.sort-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  background: transparent; color: var(--lavender);
  border: 1px solid var(--line-strong);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.sort-btn:hover { color: var(--cream); border-color: var(--cream); }
.sort-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.episode-list { display: flex; flex-direction: column; }
.episode-item {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 20px; align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}
.episode-item:hover { background: rgba(236,216,200,0.03); }
.episode-item.highlighted {
  background: rgba(212,169,92,0.06);
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}
.episode-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--lavender);
  font-feature-settings: "tnum";
}
.episode-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.episode-info h5 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; line-height: 1.25; color: var(--cream);
}
.episode-info p,
.episode-info .ep-description p {
  font-size: 13px; color: var(--cream); opacity: 0.7;
  line-height: 1.55; max-width: 70ch;
}
.episode-info .ep-description p + p { margin-top: 8px; }
.episode-info .ep-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 80ch;
  position: relative;
}
.episode-item.expanded .ep-description {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.episode-info .read-more {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gold-soft);
  opacity: 0.85;
  letter-spacing: 0.02em;
  margin-top: 2px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity .15s ease, color .15s ease;
}
.episode-info .read-more:hover { opacity: 1; color: var(--gold); }
.episode-info .read-more .chev { display: inline-block; transition: transform .2s ease; }
.episode-item.expanded .read-more .chev { transform: rotate(180deg); }
.episode-item.expanded .read-more .label-collapse { display: inline; }
.episode-item.expanded .read-more .label-expand { display: none; }
.episode-info .read-more .label-collapse { display: none; }
.episode-info .ep-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px; color: var(--mist); letter-spacing: 0.04em;
}
.episode-links { display: flex; gap: 8px; }

/* "Listen here" button + lazy-loaded Apple Podcasts embed */
.episode-actions {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px;
}
.episode-listen-btn {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  letter-spacing: 0.02em;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  width: 100%;
}
.episode-listen-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.episode-item.player-open .episode-listen-btn {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--gold-soft);
}
.episode-item.player-open .episode-listen-btn:hover {
  background: rgba(212,169,92,0.08);
  border-color: var(--gold);
  color: var(--gold);
}
.episode-listen-btn .chev { display: inline-block; transition: transform .2s ease; }
.episode-item.player-open .episode-listen-btn .chev { transform: rotate(180deg); }
.episode-item.player-open .episode-listen-btn .label-open { display: none; }
.episode-item.player-open .episode-listen-btn .label-close { display: inline; }
.episode-listen-btn .label-close { display: none; }

.episode-embed {
  position: relative;
  grid-column: 1 / -1;
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(236, 216, 200, 0.04);
  border: 1px solid var(--line);
  display: none;
  min-height: 175px;
  color-scheme: dark;
}
.episode-item.player-open .episode-embed { display: block; }
.episode-embed iframe {
  width: 100%;
  height: 175px;
  border: 0;
  display: block;
  color-scheme: dark;
}
/* Loading overlay shown while the Apple embed iframe fetches. Removed on iframe load
   (or after a safety timeout) by adding .embed-ready in the listen-btn handler. */
.embed-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--indigo-deep);
  color: var(--lavender);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: opacity .35s ease;
  z-index: 1;
}
.episode-embed.embed-ready .embed-loading {
  opacity: 0;
  pointer-events: none;
}
.embed-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(166, 186, 212, 0.3);
  border-top-color: var(--pale-sky);
  border-radius: 50%;
  animation: embed-spin .7s linear infinite;
}
@keyframes embed-spin { to { transform: rotate(360deg); } }
.icon-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(236,216,200,0.05);
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 12px;
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--cream);
  transition: all .15s ease;
}
.icon-link:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Brand-icon variants of the episode platform links */
.icon-link-img {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, opacity .15s ease;
  opacity: 0.85;
}
.icon-link-img img { width: 100%; height: 100%; display: block; }
.icon-link-img:hover { opacity: 1; transform: translateY(-1px); }

@media (max-width: 800px) {
  .episode-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 12px;
  }
  .episode-item .episode-num { grid-row: 1; font-size: 11px; }
  .episode-info .ep-description {
    -webkit-line-clamp: 3;
  }
  .episode-links { justify-content: flex-end; }
}

.episodes-footer {
  display: flex; justify-content: center; padding: 32px 0;
}
.page-stepper { display: flex; gap: 8px; align-items: center; }
.page-stepper button {
  font-family: var(--font-body); font-size: 13px;
  color: var(--lavender); font-weight: 500;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.page-stepper button:hover { color: var(--cream); border-color: var(--cream); }
.page-stepper button.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------- RELATED SHOWS (compact horizontal cards on detail page) ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 20px;
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}
.related-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.related-cover {
  width: 160px; height: 160px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  align-self: start;
}
.related-cover.cover-yogi { background-image: url('yogi_cover.jpg?v=4'); }
.related-cover.cover-master { background-image: url('master_cover.jpg?v=2'); }
/* Meta column matches the image height (180px) so cards align horizontally across the row.
   Each element has a fixed slot so cards stay symmetrical even when content lengths differ. */
.related-meta {
  display: flex; flex-direction: column;
  height: 180px;
  min-width: 0;
  gap: 5px;
}
.related-meta .related-author {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 11px; line-height: 1.4;
  color: var(--lavender);
  letter-spacing: 0.005em;
  height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.related-meta h4 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 13px; line-height: 1.3;
  color: var(--cream);
  height: calc(3 * 1.3em);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta .related-blurb {
  font-family: var(--font-body);
  font-size: 11px; line-height: 1.45;
  color: var(--lavender);
  flex: 1; min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- ABOUT: THREE PILLARS ---------- */
.three-up {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 800px) {
  .three-up { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  border-top: 2px solid var(--gold);
}
.pillar-card h5 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; color: var(--cream);
}
.pillar-card p {
  font-size: 14px; color: var(--cream); opacity: 0.78;
  line-height: 1.65;
}

/* ---------- ABOUT: VISUAL MOMENT ---------- */
.visual-moment {
  position: relative;
  padding: 120px 36px;
  background-image: url('cover.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-align: center;
}
.visual-moment::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(15,15,34,0.7), rgba(15,15,34,0.92) 80%);
}
.visual-moment .inner {
  position: relative; max-width: 720px; margin: 0 auto;
}
.visual-moment .pull-quote {
  font-family: var(--font-display); font-style: italic;
  font-weight: 300;
  font-size: 30px; line-height: 1.3;
  color: var(--gold-soft); letter-spacing: -0.005em;
}
@media (max-width: 800px) {
  .visual-moment { padding: 64px 20px; }
  .visual-moment .pull-quote { font-size: 22px; }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display); font-weight: 400;
  font-size: 20px; line-height: 1.35;
  color: var(--cream);
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-soft); }
.faq-item summary .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 18px; color: var(--lavender);
  transition: transform .2s ease, color .15s ease;
  margin-top: 2px;
}
.faq-item[open] summary { color: var(--gold-soft); }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--gold); }
.faq-answer {
  padding: 0 4px 24px;
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  color: var(--cream); opacity: 0.82;
  max-width: 72ch;
}
.faq-answer p + p { margin-top: 12px; }

/* ---------- CONTACT FORM ---------- */
.contact-card {
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
  margin-top: 28px;
  text-align: left;
}
@media (max-width: 800px) {
  .contact-card { padding: 24px; }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--lavender);
}
.field label .req { color: var(--gold); margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body); font-size: 15px; color: var(--cream);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0,0,0,0.4);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(236,216,200,0.35); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238C90B1' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; flex-wrap: wrap; gap: 12px;
}
.form-actions .privacy {
  font-size: 12px; color: var(--mist); max-width: 44ch;
}

/* ---------- DONATE ---------- */
.donate-card {
  max-width: 540px;
  margin: 40px auto 0;
  background: var(--indigo);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
}
.donate-btn { font-size: 16px; padding: 14px 32px; }
.donate-convert {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.donate-convert-label {
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pale-sky);
}
.convert-row { display: flex; align-items: center; gap: 10px; }
.convert-field {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 104px; height: 34px;          /* both boxes identical + smaller */
  padding: 0 11px; box-sizing: border-box;
}
.convert-field:focus-within { border-color: var(--gold); }
.convert-cur {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--lavender); flex-shrink: 0;
}
.convert-field input, .convert-field output {
  font-family: var(--font-body); font-size: 14px; color: var(--cream);
  background: transparent; border: 0;
  flex: 1; min-width: 0; width: auto; text-align: right; padding: 0; margin: 0;
}
.convert-field input:focus { outline: none; }
/* hide number spinners so the USD input matches the AED output box exactly */
.convert-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.convert-field input::-webkit-outer-spin-button,
.convert-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.convert-eq { color: var(--lavender); font-size: 15px; }
.convert-note { font-size: 11px; color: var(--lavender); opacity: 0.8; text-align: center; }

.donate-pay {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.donate-pay-label {
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pale-sky);
}
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.pay-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 5px;
  width: 48px; height: 28px;            /* uniform chip size for every method */
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.pay-chip img { max-height: 11px; max-width: 34px; width: auto; height: auto; display: block; }
.donate-secured {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.donate-secured .ziina-logo { height: 22px; width: auto; opacity: 0.9; }
.donate-secured span {
  font-family: var(--font-body); font-size: 12px; line-height: 1.5;
  color: var(--lavender); max-width: 40ch; text-align: center;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-deep);
  padding: 64px 36px 48px;
  border-top: 1px solid var(--line);
  color: var(--cream);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
}
/* Two-row top: brand + nav on row 1, tagline + social on row 2 (left/right aligned).
   Copyright sits on its own below, bottom-left. */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 16px;
  column-gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand .nav-wordmark { font-size: 17px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-self: end; }
.footer-nav a {
  font-size: 14px; color: var(--cream); opacity: 0.7;
  transition: opacity .15s ease, color .15s ease;
}
.footer-nav a:hover { opacity: 1; color: var(--gold-soft); }
.footer-tagline { opacity: 0.65; font-size: 13px; line-height: 1.65; max-width: 380px; }
.footer-social { display: flex; gap: 12px; justify-self: end; }
.footer-social a { display: inline-flex; }
.footer-social img {
  width: 30px; height: 30px; display: block;
  opacity: 0.85;
  transition: opacity .15s ease, transform .15s ease;
}
.footer-social a:hover img { opacity: 1; transform: translateY(-2px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 20px;
  margin-top: 32px;
}
.footer-copyright {
  font-size: 11px; opacity: 0.55; letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .footer { padding: 44px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; row-gap: 18px; }
  .footer-nav { justify-self: start; flex-wrap: wrap; gap: 16px; }
  .footer-social { justify-self: start; }
  .footer-copyright { margin-top: 24px; }
}

/* ---------- LEGAL PAGES (privacy / terms) ---------- */
.section.legal h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; color: var(--cream);
  margin: 34px 0 10px;
}
.section.legal p {
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  color: var(--lavender); margin-bottom: 14px;
}
.section.legal p strong { color: var(--cream); font-weight: 600; }
.section.legal .legal-updated { font-size: 12px; color: var(--mist); margin-bottom: 28px; }
.section.legal a {
  color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- FOOTER LEGAL LINE ---------- */
.footer-legal { font-size: 11px; opacity: 0.55; letter-spacing: 0.04em; text-align: right; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--gold-soft); opacity: 1; }
.footer-legal .cookie-settings { cursor: pointer; }

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed; right: 16px; bottom: 16px; left: auto;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--indigo); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 16px; z-index: 1000;
}
.cookie-main { display: flex; flex-direction: column; gap: 12px; }
.cookie-text {
  font-family: var(--font-body); font-size: 11px; line-height: 1.5;
  color: var(--lavender); margin: 0;
}
.cookie-text a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); transition: all .15s ease;
}
.cookie-reject, .cookie-prefs { background: transparent; color: var(--lavender); }
.cookie-reject:hover, .cookie-prefs:hover { color: var(--cream); border-color: var(--cream); }
.cookie-accept { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cookie-accept:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.cookie-prefs-panel {
  border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-prefs-panel[hidden] { display: none; }
.cookie-cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  font-family: var(--font-body); font-size: 11px; line-height: 1.4; color: var(--lavender);
}
.cookie-cat span { display: flex; flex-direction: column; gap: 2px; }
.cookie-cat strong { color: var(--cream); font-size: 12px; }
.cookie-cat input { margin-top: 1px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.cookie-cat input:disabled { opacity: 0.5; cursor: not-allowed; }
.cookie-save { align-self: flex-start; margin-top: 2px; }


/* Embedded-media consent prompt shown in the player area when media cookies are off */
.embed-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 16px; text-align: center;
}
.embed-consent p {
  font-family: var(--font-body); font-size: 13px; line-height: 1.5;
  color: var(--lavender); margin: 0; max-width: 36ch;
}
.embed-consent .btn { font-size: 13px; padding: 9px 18px; }

/* ---------- CONTACT: STAR RATING (shown only for "Leave a review") ---------- */
.star-rating { display: flex; gap: 6px; margin-top: 8px; }
.star-rating .star {
  background: transparent; border: 0; cursor: pointer; padding: 2px;
  font-size: 26px; line-height: 1; color: var(--line-strong);
  transition: color .12s ease;
}
.star-rating .star:hover, .star-rating .star.on { color: var(--gold); }

/* ---------- HOMEPAGE REVIEWS ---------- */
.reviews-band {
  background: var(--indigo-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; gap: 28px; } }
.review-card {
  background: transparent; border: 0; border-radius: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: var(--gold-soft); font-size: 12px; letter-spacing: 3px; min-height: 14px; }
.review-text {
  font-family: var(--font-body); font-size: 14px; line-height: 1.65;
  color: var(--cream); opacity: 0.92;
  /* Always reserve exactly 4 lines so stars, body, and name align across all cards */
  height: calc(5 * 1.65em);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-name {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 14px; color: var(--lavender);
  display: flex; align-items: center; gap: 8px;
}

/* Flag next to a review name (flag-icons) */
.review-name .fi {
  border-radius: 2px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(236, 216, 200, 0.15);
}
