/* WaveCast — Production Design System (2026) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #090910;
  --bg2: #10101a;
  --bg3: #171725;
  --bg-elev: #1e1e30;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededf6;
  --text2: #a0a3bd;
  --text3: #757896;
  --accent: #6C63FF;
  --accent2: #3ECFCF;
  --accent-soft: rgba(108, 99, 255, 0.14);
  --ok: #38e29d;
  --warn: #ffb84d;
  --err: #ff6b7a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-dock { padding-bottom: 84px; }
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.ambient-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-bg .orb { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.14; }
.ambient-bg .orb1 { width: 580px; height: 580px; background: var(--accent); top: -220px; left: -160px; }
.ambient-bg .orb2 { width: 460px; height: 460px; background: var(--accent2); top: 160px; right: -140px; }
.ambient-bg .orb3 { width: 340px; height: 340px; background: #ff6b6b; bottom: -120px; left: 38%; opacity: 0.08; }

.navbar {
  position: sticky; top: 0; z-index: 120;
  background: rgba(9, 9, 16, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.navbar.scrolled { background: rgba(9, 9, 16, 0.96); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
}
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text2); font-size: 0.92rem; font-weight: 500; transition: color 0.18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px;
}
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; font-size: 0.78rem; font-weight: 600;
}
.lang-switch a, .lang-switch span { padding: 4px 10px; border-radius: 999px; color: var(--text2); transition: color 0.18s, background 0.18s; }
.lang-switch [aria-current="true"] { background: rgba(108, 99, 255, 0.28); color: #fff; }
.lang-switch a:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 0.86rem; font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.92; transform: translateY(-1px); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg3); border: 1px solid var(--border); cursor: pointer; align-items: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none; position: fixed; top: 67px; left: 0; right: 0; z-index: 115;
  background: rgba(16, 16, 26, 0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 18px 24px 24px;
}
.mobile-drawer.open { display: block; }

/* Buttons */
.btn-primary, .btn-ghost, .btn-outline, .btn-subtle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: transform 0.18s, opacity 0.18s, border-color 0.18s, background 0.18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; padding: 13px 26px; font-size: 0.94rem;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); padding: 13px 24px; font-size: 0.94rem; }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-outline { background: var(--bg3); color: var(--text); border: 1px solid var(--border); padding: 12px 24px; font-size: 0.9rem; }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-subtle { background: rgba(255, 255, 255, 0.05); color: var(--text2); border: 1px solid var(--border); padding: 8px 15px; font-size: 0.82rem; }
.btn-subtle:hover { color: #fff; border-color: var(--border-strong); }
.btn-subtle.active { color: var(--accent2); border-color: rgba(62, 207, 207, 0.45); background: rgba(62, 207, 207, 0.1); }

/* Hero */
.hero { padding: 68px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 400px); gap: 52px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108, 99, 255, 0.14); border: 1px solid rgba(108, 99, 255, 0.34);
  color: var(--accent2); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); }
.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.04em; margin-bottom: 20px;
}
.gradient-text { background: linear-gradient(135deg, #8b84ff, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { color: var(--text2); font-size: 1.06rem; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 0.8rem; color: var(--text2); }
.stat-divider { width: 1px; height: 32px; background: var(--border); }


/* Studio Player Card */
.player-card {
  background: linear-gradient(180deg, rgba(30, 30, 48, 0.92), rgba(20, 20, 34, 0.96));
  border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow);
}
.player-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.np-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent2); }
.np-num { font-family: var(--mono); font-size: 0.78rem; color: var(--text2); background: rgba(255,255,255,0.06); padding: 3px 9px; border-radius: 999px; }
.player-cover { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.np-title { font-size: 1.04rem; font-weight: 700; line-height: 1.32; margin-bottom: 4px; letter-spacing: -0.015em; }
.np-title a:hover { color: var(--accent2); }
.np-host { font-size: 0.82rem; color: var(--text2); margin-bottom: 14px; }

.eq-bars { display: flex; align-items: flex-end; gap: 4px; height: 24px; margin-bottom: 14px; }
.eq-bars span {
  flex: 1; height: 58%; background: linear-gradient(to top, var(--accent), var(--accent2));
  border-radius: 3px; opacity: 0.42; transform-origin: bottom;
  transition: opacity 0.25s; animation: eqPulse 1.15s ease-in-out infinite; animation-play-state: paused;
}
.eq-bars.playing span { opacity: 1; animation-play-state: running; }
.eq-bars span:nth-child(1) { height: 42%; animation-delay: 0.00s; }
.eq-bars span:nth-child(2) { height: 78%; animation-delay: 0.14s; }
.eq-bars span:nth-child(3) { height: 96%; animation-delay: 0.28s; }
.eq-bars span:nth-child(4) { height: 54%; animation-delay: 0.42s; }
.eq-bars span:nth-child(5) { height: 86%; animation-delay: 0.56s; }
.eq-bars span:nth-child(6) { height: 62%; animation-delay: 0.70s; }
.eq-bars span:nth-child(7) { height: 94%; animation-delay: 0.20s; }
.eq-bars span:nth-child(8) { height: 48%; animation-delay: 0.36s; }
.eq-bars span:nth-child(9) { height: 82%; animation-delay: 0.52s; }
.eq-bars span:nth-child(10) { height: 68%; animation-delay: 0.66s; }
.eq-bars span:nth-child(11) { height: 90%; animation-delay: 0.10s; }
.eq-bars span:nth-child(12) { height: 44%; animation-delay: 0.46s; }
@keyframes eqPulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.28); } }

.player-progress { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--text2); margin-bottom: 14px; }
.seek-range {
  flex: 1; -webkit-appearance: none; appearance: none; height: 5px;
  background: rgba(255, 255, 255, 0.14); border-radius: 999px; cursor: pointer;
}
.seek-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent2); border: 2px solid #fff;
}
.seek-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent2); border: 2px solid #fff; }

.player-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctrl-group { display: flex; align-items: center; gap: 6px; }
.ctrl-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.ctrl-btn:hover { color: #fff; border-color: var(--border-strong); background: rgba(255,255,255,0.09); }
.ctrl-play { width: 46px; height: 46px; border: none; color: #fff; font-size: 1rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.ctrl-play:hover { opacity: 0.92; }
.speed-btn { border-radius: 999px; width: auto; padding: 0 11px; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; }
.player-status { font-size: 0.76rem; color: var(--text3); margin-top: 12px; min-height: 1.2em; display: flex; justify-content: space-between; gap: 8px; }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head.centered { flex-direction: column; align-items: center; text-align: center; }
.section-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent2); display: block; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.section-lead { color: var(--text2); max-width: 580px; margin-top: 10px; font-size: 0.98rem; }

/* Filters & Search */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  padding: 7px 15px; border-radius: 999px; font-size: 0.84rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.filter-pill:hover { color: #fff; border-color: var(--border-strong); }
.filter-pill[aria-pressed="true"] { background: rgba(108, 99, 255, 0.22); border-color: rgba(108, 99, 255, 0.6); color: #fff; }
.search-input {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; min-width: 240px; outline: none;
}
.search-input:focus { border-color: var(--accent2); }
.search-input::placeholder { color: var(--text3); }

.mobile-drawer nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-drawer a { font-size: 1.02rem; font-weight: 500; color: var(--text2); padding: 6px 0; }
.mobile-drawer a[aria-current="page"], .mobile-drawer a:hover { color: #fff; }


/* Episode Cards */
.episodes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ep-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.ep-card:hover { transform: translateY(-3px); border-color: rgba(108, 99, 255, 0.42); }
.ep-card.is-playing { border-color: var(--accent2); box-shadow: 0 0 0 1px rgba(62, 207, 207, 0.28); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.ep-card:hover .ep-thumb img { transform: scale(1.03); }
.ep-thumb-overlay {
  position: absolute; inset: 0; padding: 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
  background: linear-gradient(180deg, rgba(9,9,16,0.05) 35%, rgba(9,9,16,0.72) 100%);
}
.ep-num { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: #fff; }
.ep-duration {
  background: rgba(9, 9, 16, 0.72); border: 1px solid rgba(255,255,255,0.16);
  color: #fff; font-family: var(--mono); font-size: 0.74rem; padding: 3px 10px; border-radius: 999px;
}
.ep-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ep-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  background: rgba(108, 99, 255, 0.13); border: 1px solid rgba(108, 99, 255, 0.26);
  color: var(--accent2); font-size: 0.71rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.ep-body h3 { font-size: 1.03rem; font-weight: 700; line-height: 1.32; margin-bottom: 8px; letter-spacing: -0.01em; }
.ep-body h3 a:hover { color: var(--accent2); }
.ep-body p { font-size: 0.87rem; color: var(--text2); line-height: 1.54; margin-bottom: 16px; flex: 1; }
.ep-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text3); }
.ep-actions { display: flex; align-items: center; gap: 8px; }
.ep-play {
  background: rgba(108, 99, 255, 0.18); border: 1px solid rgba(108, 99, 255, 0.38);
  color: #d6d3ff; padding: 6px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.ep-play:hover, .ep-play.playing { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; }
.ep-bm {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.ep-bm:hover { color: #fff; border-color: var(--border-strong); }
.ep-bm.saved { color: var(--accent2); border-color: rgba(62, 207, 207, 0.5); background: rgba(62, 207, 207, 0.1); }

/* Topics */
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.topic-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform 0.18s, border-color 0.18s;
}
.topic-card:hover { transform: translateY(-2px); border-color: rgba(108, 99, 255, 0.45); }
.topic-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.topic-badge {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(108, 99, 255, 0.16); color: var(--accent2);
}
.topic-count { font-family: var(--mono); font-size: 0.76rem; color: var(--text3); }
.topic-card h3 { font-size: 1rem; font-weight: 700; }
.topic-card p { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }

/* About / Hosts / Feeds */
.split-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 52px; align-items: start; }
.hosts-list { display: grid; gap: 16px; margin-top: 24px; }
.host-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.host-avatar {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; color: #fff;
}
.host-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.host-role { font-size: 0.8rem; color: var(--accent2); display: block; margin-bottom: 6px; }
.host-card p { font-size: 0.86rem; color: var(--text2); }

.feed-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feed-box h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.feed-box p { font-size: 0.88rem; color: var(--text2); margin-bottom: 16px; }
.feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.88rem; transition: border-color 0.18s;
}
.feed-row:hover { border-color: var(--accent); }
.feed-row code { font-family: var(--mono); font-size: 0.78rem; color: var(--accent2); }

/* Subscribe & Forms */
.subscribe-box {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.16), rgba(62, 207, 207, 0.1));
  border: 1px solid rgba(108, 99, 255, 0.3); border-radius: 24px;
  padding: 52px 44px; text-align: center; max-width: 680px; margin: 0 auto;
}
.subscribe-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.subscribe-box p { color: var(--text2); margin-bottom: 24px; font-size: 0.96rem; }
.subscribe-form { display: flex; gap: 10px; max-width: 470px; margin: 0 auto 12px; }
.field-input, .field-textarea, .field-select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border-strong); color: var(--text);
  padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.94rem; outline: none; transition: border-color 0.18s;
}
.subscribe-form .field-input { border-radius: 999px; padding: 13px 20px; }
.field-input:focus, .field-textarea:focus, .field-select:focus { border-color: var(--accent2); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--text3); }
.field-textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form-stack { display: grid; gap: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-field small { font-weight: 400; color: var(--text3); margin-left: 6px; }
.form-note { font-size: 0.82rem; color: var(--text3); }
.form-status { min-height: 1.4em; font-size: 0.88rem; font-weight: 500; margin-top: 10px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }

/* Episode Detail & Prose */
.page-hero { padding: 56px 0 38px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(108,99,255,0.08), transparent); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text3); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent2); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; }
.page-hero .lead { font-size: 1.05rem; color: var(--text2); max-width: 720px; }
.ep-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); gap: 40px; align-items: start; }
.detail-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.detail-box h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.notes-list { list-style: none; display: grid; gap: 11px; }
.notes-list li { position: relative; padding-left: 20px; color: var(--text2); font-size: 0.94rem; }
.notes-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); }

.chapters-list { display: grid; gap: 8px; }
.chapter-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; cursor: pointer; transition: border-color 0.18s, background 0.18s;
}
.chapter-btn:hover { border-color: var(--accent2); background: rgba(62, 207, 207, 0.08); }
.chapter-time { font-family: var(--mono); font-size: 0.82rem; color: var(--accent2); font-weight: 600; flex-shrink: 0; }

.transcript { display: grid; gap: 16px; }
.transcript-line { padding-left: 14px; border-left: 2px solid rgba(108, 99, 255, 0.45); }
.transcript-speaker { font-size: 0.8rem; font-weight: 700; color: var(--accent2); margin-bottom: 3px; }
.transcript-line p { font-size: 0.92rem; color: var(--text2); }

.prose h2 { font-size: 1.35rem; font-weight: 700; margin: 32px 0 12px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text2); margin-bottom: 14px; font-size: 0.96rem; }
.prose ul { margin: 0 0 18px 20px; color: var(--text2); display: grid; gap: 8px; font-size: 0.94rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.88rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: rgba(255,255,255,0.03); }
.prose td { color: var(--text2); }
.prose code { font-family: var(--mono); font-size: 0.84em; background: rgba(255,255,255,0.07); padding: 2px 6px; border-radius: 5px; color: var(--accent2); }
.prose a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

.ep-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Sticky Audio Dock */
.audio-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
  background: rgba(16, 16, 28, 0.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong); padding: 11px 20px;
  transform: translateY(115%); transition: transform 0.28s ease;
}
.audio-dock.visible { transform: translateY(0); }
.dock-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(180px, 1.1fr) auto minmax(160px, 1fr) auto;
  gap: 18px; align-items: center;
}
.dock-meta { min-width: 0; }
.dock-title { font-size: 0.88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sub { font-size: 0.74rem; color: var(--text3); }
.dock-progress { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--text2); }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text2); font-size: 0.86rem; max-width: 290px; margin-top: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.footer-col a, .footer-col button {
  background: none; border: none; text-align: left; cursor: pointer;
  font-size: 0.86rem; color: var(--text2); padding: 0; transition: color 0.18s;
}
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--text3);
}
.footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--text); }
.link-btn { background: none; border: none; color: inherit; cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }


/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 220;
  max-width: 960px; margin: 0 auto;
  background: rgba(23, 23, 37, 0.98); backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 20px 24px; box-shadow: var(--shadow);
  display: none; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
body.has-dock .cookie-banner { bottom: 92px; }
.cookie-copy { flex: 1; min-width: 260px; }
.cookie-copy strong { display: block; font-size: 0.94rem; margin-bottom: 4px; }
.cookie-copy p { font-size: 0.83rem; color: var(--text2); line-height: 1.5; }
.cookie-copy a { color: var(--accent2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(5, 5, 10, 0.72); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-backdrop.open { display: flex; }
.cookie-modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--bg3); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cookie-modal-head h3 { font-size: 1.2rem; font-weight: 800; }
.cookie-modal > p { font-size: 0.88rem; color: var(--text2); margin-bottom: 20px; }
.cookie-cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 15px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); margin-bottom: 12px;
}
.cookie-cat strong { display: block; font-size: 0.92rem; margin-bottom: 3px; }
.cookie-cat p { font-size: 0.82rem; color: var(--text2); margin: 0; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; background: rgba(255,255,255,0.14); border-radius: 999px;
  cursor: pointer; transition: background 0.2s;
}
.toggle-track::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.toggle input:checked + .toggle-track { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }
.toggle input:disabled + .toggle-track { opacity: 0.65; cursor: not-allowed; }
.cookie-modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.toast {
  position: fixed; right: 20px; bottom: 24px; z-index: 280;
  background: var(--bg-elev); border: 1px solid rgba(62, 207, 207, 0.45);
  color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 0.86rem; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.show { opacity: 1; transform: translateY(0); }
body.has-dock .toast { bottom: 92px; }

@media (max-width: 980px) {
  .hero-grid, .split-grid, .ep-detail-grid { grid-template-columns: 1fr; }
  .episodes-grid, .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dock-inner { grid-template-columns: 1fr auto; }
  .dock-progress { display: none; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .episodes-grid, .topics-grid, .footer-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-box { padding: 34px 22px; }
  .hero { padding: 42px 0 56px; }
  .section { padding: 56px 0; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stat-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
