/* ==========================================================================
   Tilankhulane — public site design system (2026 redesign)
   Dark "night" palette, Playfair Display headings, Raleway body.
   ========================================================================== */

:root {
  --night: #14041F;
  --plum: #1D0534;
  --plum-2: #2A1544;
  --plum-3: #3A2159;
  --pink: #FF5757;          /* brand coral (logo) — accents */
  --pink-soft: #FF8A80;
  --pink-deep: #D63A3A;     /* buttons: white text passes contrast */
  --pink-deeper: #BD2F2F;
  --amber: #FFB547;
  --cyan: #4FD1C5;
  --text: #F6F0FA;
  --text-2: #D8CEE4;
  --text-3: #A597BA;
  --line: rgba(255, 255, 255, .12);
  --radius: 18px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Raleway", system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plum);
  color: var(--text);
  font: 400 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.has-player { padding-bottom: 96px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-variant-numeric: lining-nums; line-height: 1.12; margin: 0; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- Type helpers ---------- */
.label { font: 700 12.5px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--pink-soft); }
.muted { color: var(--text-3); }
.read-more {
  display: inline-flex; align-items: center; gap: 8px; color: var(--pink-soft);
  font: 700 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.read-more span { transition: transform .2s; }
.read-more:hover span { transform: translateX(4px); }
.stars-divider {
  text-align: center; color: var(--pink); font: 700 22px/1 var(--font-head); letter-spacing: 1.2em;
  padding: 8px 0 8px 1.2em; user-select: none;
}

/* Rich text coming from the CMS (TinyMCE) */
.prose { color: var(--text-2); }
.prose > * + * { margin-top: 1em; }
.prose p, .prose li { color: var(--text-2) !important; background: none !important; }
.prose span, .prose font { color: inherit !important; background: none !important; font-family: inherit !important; font-size: inherit !important; }
.prose strong, .prose b { color: var(--text); }
.prose a { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.4em; }
.prose p[style] { text-align: left !important; }
.prose img { border-radius: 12px; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 13px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  color: inherit; background: none;
}
.btn-pink { background: var(--pink-deep); color: #fff; }
.btn-pink:hover { background: var(--pink-deeper); transform: translateY(-1px); }
.btn-line { border-color: rgba(255,255,255,.35); color: var(--text); }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-white { background: #fff; color: var(--plum); }
.btn-white:hover { background: var(--night); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 11.5px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.icon-btn.is-on { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 5, 52, .88); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; gap: 24px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font: 600 12.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  padding: 8px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; border-color: var(--pink); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.logo { height: 60px; width: auto; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.mobile-menu { display: none; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 2, 16, .72); backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px;
}
.search-panel {
  width: min(640px, 100%); background: var(--plum-2); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden;
}
.search-field { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 500 19px var(--font-body); }
.search-field input::placeholder { color: var(--text-3); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-close {
  font: 600 11px/1 var(--font-body); letter-spacing: .08em; padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text-3); cursor: pointer; background: none;
}
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow-y: auto; }
.search-results .group { padding: 12px 14px 6px; font: 700 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; }
.search-results a:hover, .search-results a:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.search-results .thumb { width: 42px; height: 42px; border-radius: 10px; flex: none; object-fit: cover; background: var(--plum-3); display: grid; place-items: center; font-size: 18px; }
.search-results b { display: block; font: 700 16px/1.3 var(--font-head); }
.search-results small { color: var(--text-3); font-size: 13px; }
.search-results mark { background: none; color: var(--pink-soft); }
.search-empty { padding: 28px 22px; color: var(--text-3); text-align: center; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; text-align: center; padding: 96px 0 72px; overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 5, 52, .78) 0%, rgba(29, 5, 52, .88) 55%, var(--plum) 100%),
              url("../img/logo/hero_bg_3.jpg") center 40% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(255, 87, 87, .28), transparent 70%),
    radial-gradient(30% 40% at 18% 70%, rgba(79, 209, 197, .12), transparent 70%),
    radial-gradient(30% 40% at 85% 65%, rgba(255, 181, 71, .12), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); max-width: 16ch; margin: 22px auto 28px; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--pink-soft); }
.hero-lead { font-size: 19px; color: var(--text-2); max-width: 52ch; margin: 0 auto; }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 5px; height: 120px; margin: 64px auto 0; max-width: 900px; }
.waveform i {
  display: block; width: 5px; border-radius: 99px; flex: none;
  background: linear-gradient(180deg, var(--amber), var(--pink) 55%, #8B3FD9);
  height: calc(var(--h) * 1%);
  animation: bounce 1.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1s);
  transform-origin: center; opacity: .9;
}
@keyframes bounce { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 72px 0 64px;
  background: linear-gradient(180deg, rgba(29, 5, 52, .82), rgba(29, 5, 52, .92) 60%, var(--plum)),
              var(--hero-img, url("../img/logo/hero_bg_3.jpg")) center / cover no-repeat;
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin: 16px 0 16px; max-width: 20ch; }
.page-hero .lead { color: var(--text-2); max-width: 60ch; font-size: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--plum-3); }
.crumbs a:hover { color: #fff; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 14px; }
.section-title p { color: var(--text-2); max-width: 54ch; margin: 16px auto 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin-top: 14px; }
.section-head p { color: var(--text-2); max-width: 46ch; }

/* Welcome */
.welcome { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.welcome h2 { font-size: clamp(34px, 4vw, 50px); margin: 14px 0 24px; }
.welcome .prose { margin-bottom: 28px; }
.welcome-art {
  position: relative; aspect-ratio: 1; border-radius: 50%; max-width: 440px; width: 100%; justify-self: center;
  background: var(--night); box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0,0,0,.35);
}
.welcome-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; border-radius: 50%; }
.welcome-art .ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 87, 87, .45); }
.quote-chip {
  position: absolute; background: #fff; color: var(--plum); border-radius: 16px; padding: 12px 16px;
  font: 700 14px/1.3 var(--font-head); font-style: italic; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.quote-chip.a { top: 10%; left: -4%; }
.quote-chip.b { bottom: 12%; right: -6%; background: var(--amber); }

/* ---------- Artwork ---------- */
.art {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--plum-3);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; isolation: isolate;
}
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(20, 4, 31, .85)); }
.art.plain::after { display: none; }
.art-kicker { position: relative; font: 700 11px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.art-title { position: relative; font: 700 26px/1.08 var(--font-head); }
.g1 { background: linear-gradient(145deg, #FF5757, #7A1FA2); }
.g2 { background: linear-gradient(145deg, #FFB547, #FF5757); }
.g3 { background: linear-gradient(145deg, #4FD1C5, #3B3B98); }
.g4 { background: linear-gradient(145deg, #8B3FD9, #1D0534); }
.g5 { background: linear-gradient(145deg, #FF6F91, #FFB547); }

/* ---------- Latest episode / player ---------- */
.latest {
  display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center;
  background: linear-gradient(135deg, var(--plum-2), var(--night)); border: 1px solid var(--line);
  border-radius: 28px; padding: 40px;
}
.latest > * { min-width: 0; }
.latest .art { box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.latest h3 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-3); font-size: 14px; font-weight: 500; margin: 16px 0 18px; }
.meta a:hover { color: #fff; }
.latest .prose { margin-bottom: 32px; max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.player {
  display: flex; align-items: center; gap: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 22px 10px 10px;
}
.play-btn {
  flex: none; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pink-deep); color: #fff; display: grid; place-items: center; transition: transform .2s, background .2s;
}
.play-btn:hover { transform: scale(1.06); background: var(--pink-deeper); }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.scrub { position: relative; flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; min-width: 0; overflow: hidden; cursor: pointer; }
.scrub i { flex: 1 1 0; min-width: 1.5px; max-width: 4px; border-radius: 99px; background: rgba(255,255,255,.22); height: calc(var(--h) * 1%); transition: background .15s; pointer-events: none; }
.scrub i.on { background: var(--pink-soft); }
.time { font-size: 13px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip-btn { background: none; border: 0; color: var(--text-3); cursor: pointer; font: 700 12px/1 var(--font-body); padding: 6px; }
.skip-btn:hover { color: #fff; }

/* ---------- Episode list ---------- */
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ep-row {
  display: grid; grid-template-columns: 56px 72px 1fr auto; gap: 22px; align-items: center;
  padding: 18px 12px; border-bottom: 1px solid var(--line); border-radius: 16px; transition: background .2s;
}
.ep-list.no-num .ep-row { grid-template-columns: 72px 1fr auto; }
.ep-row:hover { background: rgba(255,255,255,.04); }
.ep-num { font: 700 30px/1 var(--font-head); color: rgba(255,255,255,.3); text-align: center; font-variant-numeric: lining-nums; transition: color .2s; }
.ep-row:hover .ep-num, .ep-row.current .ep-num { color: var(--pink); }
.ep-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--plum-3); }
.ep-show { font: 700 11.5px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--pink-soft); }
.ep-title { display: block; font: 700 21px/1.25 var(--font-head); margin: 7px 0 5px; }
.ep-title:hover { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.ep-desc { color: var(--text-3); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep-right { display: flex; align-items: center; gap: 22px; }
.ep-stats { display: flex; gap: 16px; color: var(--text-3); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ep-row .play-btn { width: 50px; height: 50px; background: transparent; border: 1.5px solid rgba(255,255,255,.3); }
.ep-row .play-btn:hover, .ep-row .play-btn.playing { background: var(--pink-deep); border-color: var(--pink-deep); }
.list-foot { text-align: center; margin-top: 40px; }
.list-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.list-tools input, .list-tools select {
  flex: 1 1 240px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0,0,0,.22); color: #fff; font: 500 15px var(--font-body);
}
.list-tools select { flex: 0 1 260px; }
.list-tools option { background: var(--plum-2); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--night); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 56px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 700 clamp(40px, 5vw, 60px)/1 var(--font-head); color: #fff; }
.stat span { display: block; margin-top: 12px; font: 700 12px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Shows / tiles ---------- */
.shows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.show {
  background: var(--plum-2); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 22px;
  transition: border-color .2s, background .2s; display: block;
}
.show:hover { border-color: rgba(255, 87, 87, .6); background: var(--plum-3); }
.show .art { margin-bottom: 18px; border-radius: 14px; }
.show .art-title { font-size: 22px; }
.show-body { padding: 0 8px; }
.show h3 { font-size: 21px; margin-bottom: 6px; }
.show p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.show-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile .art { aspect-ratio: 4 / 3; transition: transform .3s, box-shadow .3s; }
.tile:hover .art { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.tile .art-title { font-size: 28px; }

/* Topics */
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.topic {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
  transition: all .2s;
}
.topic .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: rgba(255,255,255,.08); }
.topic small { color: var(--text-3); letter-spacing: .04em; }
.topic:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }
.topic:hover small { color: rgba(255,255,255,.8); }

/* ---------- Listener comments (home) ---------- */
.voices { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.voice { border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.voice.big { background: var(--pink-deep); border-color: var(--pink-deep); }
.voice blockquote { margin: 0; flex: 1; font: 500 20px/1.45 var(--font-head); font-style: italic; overflow-wrap: anywhere; }
.voice.big blockquote { font-size: 25px; }
.voice figcaption { font: 700 12.5px/1.5 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.voice figcaption a { color: var(--pink-soft); }
.voice.big figcaption, .voice.big figcaption a { color: rgba(255,255,255,.9); }

/* ---------- Panels & forms ---------- */
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { border-radius: 28px; padding: 48px; }
.panel-sub { background: linear-gradient(140deg, #FF5757, #8B3FD9); }
.panel-dark { background: var(--plum-2); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 14px 0 14px; }
.panel > p { color: var(--text-2); margin-bottom: 28px; }
.panel-sub .label { color: #fff; opacity: .85; }
.panel-sub > p { color: rgba(255,255,255,.92); }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font: 700 11.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.panel-sub .field label { color: rgba(255,255,255,.88); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,.22); color: #fff; font: 500 16px var(--font-body); resize: vertical;
}
.field select option { background: var(--plum-2); }
.panel-sub .field input, .panel-sub .field select { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.55); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 14px; margin-top: 14px; min-height: 1.5em; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--text-2); }
.contact-list .icon-btn { flex: none; pointer-events: none; }

/* Flash notice (replaces alert() after server-side form posts) */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; margin-bottom: 20px;
  background: rgba(79, 209, 197, .12); border: 1px solid rgba(79, 209, 197, .4); color: #CFF7F2; font-weight: 600;
}
.notice.warn { background: rgba(255, 181, 71, .12); border-color: rgba(255, 181, 71, .45); color: #FFE3B5; }

/* ---------- Episode page ---------- */
.episode-hero { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; }
.episode-hero > * { min-width: 0; }
.episode-hero .art { box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.episode-hero h1 { font-size: clamp(32px, 4.6vw, 56px); margin: 14px 0 8px; }
.episode-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.like-btn { display: inline-flex; align-items: center; gap: 10px; width: auto; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.content-grid > * { min-width: 0; }
.aside-card { background: var(--plum-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 22px; margin: 10px 0 12px; }
.aside-card p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.facts li span:first-child { color: var(--text-3); }
.facts li span:last-child { text-align: right; }

.comments { margin-top: 56px; }
.comments h2 { font-size: 34px; margin: 12px 0 24px; }
.comment { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.comment .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--plum-3); color: #fff; }
.comment b { font-weight: 700; }
.comment time { color: var(--text-3); font-size: 13px; margin-left: 8px; }
.comment p { color: var(--text-2); margin-top: 6px; overflow-wrap: anywhere; white-space: pre-line; }
.comment-form { margin-top: 28px; background: var(--plum-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: 22px; color: var(--text-3); }
.empty h3 { color: var(--text); font-size: 24px; margin-bottom: 8px; }

/* ---------- Dialogs (about / privacy / terms) ---------- */
dialog.modal {
  width: min(760px, calc(100% - 32px)); max-height: 84vh; padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--plum-2); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
dialog.modal::backdrop { background: rgba(10, 2, 16, .72); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--plum-2); }
.modal-head h2 { font-size: 26px; }
.modal-body { padding: 24px 28px 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); padding: 72px 0 28px; margin-top: 88px; text-align: center; }
.site-footer .brand { justify-content: center; margin-bottom: 20px; }
.site-footer .logo { height: 84px; }
.site-footer .tag { color: var(--text-2); max-width: 46ch; margin: 0 auto 32px; }
.foot-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; margin: 0 0 36px; }
.foot-nav a, .foot-nav button {
  font: 600 12.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  background: none; border: 0; cursor: pointer; padding: 0;
}
.foot-nav a:hover, .foot-nav button:hover { color: var(--pink-soft); }
.foot-contact { color: var(--text-2); margin-bottom: 28px; }
.foot-contact a { color: var(--pink-soft); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--text-3); }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .admin-link { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Sticky mini player ---------- */
.mini-player {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; width: min(760px, calc(100% - 32px));
  transform: translate(-50%, 160%); transition: transform .35s ease;
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
  background: rgba(20, 4, 31, .94); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.mini-player.show { transform: translate(-50%, 0); }
.mini-player .thumb { width: 46px; height: 46px; border-radius: 50%; flex: none; object-fit: cover; background: var(--plum-3); }
.mini-player .play-btn { width: 44px; height: 44px; }
.mini-meta { flex: 1; min-width: 0; }
.mini-meta a { display: block; font: 700 15px/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta small { display: block; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar { position: relative; height: 4px; background: rgba(255,255,255,.15); border-radius: 99px; margin-top: 6px; overflow: hidden; cursor: pointer; }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--pink); }
.mini-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-close { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 6px; }
.mini-close:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .latest, .episode-hero { grid-template-columns: 1fr; }
  .latest .art, .episode-hero .art { max-width: 360px; }
  .shows { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .voices { grid-template-columns: 1fr 1fr; }
  .voice.big { grid-column: 1 / -1; }
  .connect, .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav > .nav-links, .nav-right .nav-links, .nav-right .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-right { gap: 10px; }
  .mobile-menu {
    position: absolute; top: 80px; left: 0; right: 0; background: var(--plum); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; list-style: none; margin: 0;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
    font: 600 14px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  }
  .mobile-menu li:last-child a { border: 0; }
  .welcome { grid-template-columns: 1fr; gap: 56px; }
  .welcome-art { max-width: 340px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ep-stats { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .logo { height: 52px; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 40px; }
  .waveform { height: 80px; gap: 4px; }
  .waveform i { width: 4px; }
  .waveform i:nth-child(n+42) { display: none; }
  .latest { padding: 18px; border-radius: 22px; gap: 28px; }
  .player { padding-right: 14px; gap: 10px; }
  .time, .skip-btn { display: none; }
  .shows, .voices, .tiles { grid-template-columns: 1fr; }
  .show { display: flex; align-items: center; gap: 16px; padding: 12px; }
  .show .art { width: 96px; flex: none; margin: 0; padding: 0; }
  .show .art-title, .show .art-kicker { display: none; }
  .show-body { padding: 0; flex: 1; min-width: 0; }
  .show p { margin-bottom: 8px; font-size: 14px; }
  .stat { padding: 36px 8px; }
  .panel { padding: 32px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .quote-chip.a { left: 0; } .quote-chip.b { right: 0; }
  .ep-row, .ep-list.no-num .ep-row { grid-template-columns: 60px 1fr auto; gap: 14px; padding: 14px 4px; }
  .ep-num { display: none; }
  .ep-thumb { width: 60px; height: 60px; }
  .ep-title { font-size: 17px; }
  .ep-desc { display: none; }
  .ep-row .play-btn { width: 44px; height: 44px; }
  .topic { padding-right: 16px; font-size: 12px; letter-spacing: .08em; }
  .topic .ico { width: 28px; height: 28px; font-size: 14px; }
  .search-overlay { padding-top: 16px; }
  .foot-bottom { justify-content: center; text-align: center; }
  .mini-time { display: none; }
  .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Offline listening
   ========================================================================== */
.offline-btn { position: relative; }
.offline-btn .i-saved { display: none; }
.offline-btn.is-saved { background: rgba(79, 209, 197, .16); border-color: rgba(79, 209, 197, .55); color: #9FF0E8; }
.offline-btn.is-saved .i-save { display: none; }
.offline-btn.is-saved .i-saved { display: block; }
.offline-btn.is-saved:hover { background: rgba(214, 58, 58, .2); border-color: var(--pink-deep); color: #fff; }
.offline-btn .i-progress { display: none; }
.offline-btn.is-saving { cursor: progress; color: var(--pink-soft); }
.offline-btn.is-saving .i-progress {
  display: block; position: absolute; inset: -2px; border-radius: 999px; pointer-events: none;
  background: conic-gradient(var(--pink) calc(var(--p, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.offline-btn.with-label { width: auto; padding: 0 18px 0 14px; gap: 8px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.offline-btn.with-label.is-saving .i-progress { inset: auto 14px 5px 14px; height: 3px; border-radius: 99px; -webkit-mask: none; mask: none;
  background: linear-gradient(90deg, var(--pink) calc(var(--p, 0) * 1%), rgba(255,255,255,.15) 0); }
.ep-row .offline-btn { width: 40px; height: 40px; }

.offline-link { position: relative; }
.offline-link[aria-current="page"] { border-color: var(--pink); color: #fff; }
.count-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--pink-deep); color: #fff; font: 700 11px/18px var(--font-body); text-align: center;
}

.offline-banner {
  position: sticky; top: 0; z-index: 70; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600;
  background: var(--amber); color: var(--night);
}
.offline-banner a { text-decoration: underline; text-underline-offset: 3px; }
body.is-offline .site-header { top: 41px; }

.toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--night); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px;
  font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.45); transition: opacity .25s, transform .25s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 880px) {
  .offline-link { display: inline-grid; }
}
@media (max-width: 560px) {
  .ep-row .offline-btn { width: 36px; height: 36px; }
  .ep-right { gap: 10px; }
  .offline-btn.with-label .offline-label { font-size: 12px; }
}
.offline-btn.with-label { display: inline-flex; align-items: center; justify-content: center; height: 44px; }

/* ==========================================================================
   FAQ page
   ========================================================================== */
.faq-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.faq-jump a {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font: 600 12.5px/1 var(--font-body); letter-spacing: .04em; color: var(--text-2); transition: all .2s;
}
.faq-jump a:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }
.faq-group { margin-bottom: 48px; scroll-margin-top: 96px; }
.faq-group > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  padding: 20px 4px; list-style: none; font: 600 18px/1.4 var(--font-body); color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--pink-soft); }
.faq-item summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.faq-chevron { flex: none; color: var(--text-3); transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--pink-soft); }
.faq-answer { padding: 0 4px 22px; }
.faq-answer p { color: var(--text-2); font-size: 16.5px; line-height: 1.7; }
.faq-answer a { color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: #fff; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--pink-soft); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.linklike:hover { color: #fff; }
.faq-cta { text-align: center; margin-top: 8px; padding: 40px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--plum-2); }
.faq-cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.faq-cta p { color: var(--text-2); margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }

/* ==========================================================================
   "Listen elsewhere" platform links (episode page)
   ========================================================================== */
.listen-elsewhere { margin-top: 26px; }
.listen-elsewhere-label { display: block; font: 700 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.platform-links { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text);
  font: 600 14px/1 var(--font-body); transition: border-color .2s, background .2s, transform .2s;
}
.platform-link svg { color: var(--brand, var(--pink-soft)); flex: none; }
.platform-link:hover { transform: translateY(-1px); border-color: var(--brand, var(--pink)); background: rgba(255,255,255,.08); }
.platform-link:hover svg { color: var(--brand, var(--pink)); }

/* ==========================================================================
   PWA install + update
   ========================================================================== */
.update-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90;
  width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--plum-2);
  border: 1px solid rgba(79,209,197,.5); box-shadow: 0 18px 45px rgba(0,0,0,.5);
  color: var(--text); font-size: 14.5px; font-weight: 600;
}
body.has-player .update-bar { bottom: 104px; }
.update-bar .update-now {
  margin-left: auto; flex: none; border: 0; cursor: pointer; border-radius: 999px;
  background: var(--pink-deep); color: #fff; font: 700 12px/1 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px;
}
.update-bar .update-now:hover { background: var(--pink-deeper); }
.update-bar .update-dismiss { flex: none; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 16px; padding: 4px 6px; }
.update-bar .update-dismiss:hover { color: #fff; }

.app-steps { margin-top: 18px; }
.app-step-list { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.app-step-list li { margin-bottom: 8px; line-height: 1.6; }
.mobile-app-link { background: none; border: 0; padding: 16px 0; color: inherit; font: inherit; text-align: left; width: 100%; cursor: pointer; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* Persistent install hint (stays across pages until dismissed) */
.install-hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 88;
  width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--plum-2);
  border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(0,0,0,.5);
  color: var(--text); font-size: 14px; font-weight: 500;
}
body.has-player .install-hint { bottom: 104px; }
.install-hint-icon { flex: none; color: var(--pink-soft); }
.install-hint-text { flex: 1; min-width: 0; }
.install-hint-how {
  flex: none; border: 1px solid rgba(255,255,255,.35); background: none; color: var(--text); cursor: pointer;
  border-radius: 999px; font: 700 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px;
}
.install-hint-how:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.install-hint-close { flex: none; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 15px; padding: 4px 6px; }
.install-hint-close:hover { color: #fff; }
@media (max-width: 560px) { .install-hint { font-size: 13px; gap: 8px; } .install-hint-how { padding: 8px 11px; } }
