:root {
  --bg: #0b0d2a;
  --bg-2: #13163d;
  --card: #171a47;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eceaff;
  --muted: #a3a5cc;
  --accent: #d394ff;
  --accent-ink: #1a0b33;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #2a2470 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 Outfit, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
a { color: inherit; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: currentColor; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(11, 13, 42, 0.7); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 7px; }
.brand sup { font-size: 10px; background: #fff; color: var(--bg); padding: 1px 4px; border-radius: 4px; margin-left: 3px; vertical-align: 10px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }

.hero { padding: 32px 0 8px; }
.hero-banner { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.hero-text { margin: 28px 0 20px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 12px 0; }
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0; }
.hero p a { color: var(--text); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(211, 148, 255, 0.4); padding: 3px 10px; border-radius: 99px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; scroll-margin-top: 80px; }
.chip { text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip-rss { color: var(--accent); }

#episodes { scroll-margin-top: 70px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 44px 0 12px; font-weight: 600; }
.eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ep { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ep:hover { border-color: rgba(211, 148, 255, 0.35); }
.ep-body { flex: 1; min-width: 0; }
.ep-title { display: block; text-decoration: none; font-weight: 600; font-size: 17px; }
.ep-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.ep-meta .num { color: var(--accent); font-weight: 600; }
.avatars { display: flex; flex-shrink: 0; }
.avatars img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; object-fit: cover; }

.play { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 20px; transition: transform 0.15s; }
.play:hover { transform: scale(1.06); }
.play svg:last-child, .play.playing svg:first-child { display: none; }
.play.playing svg:last-child { display: block; }
.play-lg { width: 56px; height: 56px; font-size: 26px; }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; font-size: 14px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.episode { padding-top: 28px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.episode h1 { font-size: clamp(26px, 4.5vw, 36px); margin: 8px 0 20px; }
.episode > .ep-meta { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.notes { margin-top: 28px; color: #d5d3f3; }
.notes a { color: var(--accent); }
.people-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.person-chip { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.person-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.person-chip span { display: grid; line-height: 1.2; }
.person-chip small { color: var(--muted); font-size: 12px; }

.transcript { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.transcript summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.transcript-body { padding: 0 18px 8px; max-height: 70vh; overflow-y: auto; color: #d5d3f3; font-size: 15px; }
.transcript-body p { margin: 0 0 14px; }
.who { font-weight: 600; color: var(--text); }
.ts { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--accent); cursor: pointer; font-variant-numeric: tabular-nums; }
.ts:hover { text-decoration: underline; }
.pager { display: flex; justify-content: space-between; margin: 32px 0; }
.pager a { text-decoration: none; color: var(--muted); }

.page-title { font-size: 34px; margin: 32px 0 20px; }
.people { display: grid; gap: 10px; }
.person { display: flex; gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 80px; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person h3 { margin: 4px 0 6px; font-size: 18px; }
.person h3 small { font-size: 12px; font-weight: 500; color: var(--accent); margin-left: 6px; }
.person p { margin: 0 0 8px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.person p a { color: var(--text); }
.person-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.person-links a { color: var(--accent); text-decoration: none; }
.person:target { border-color: var(--accent); }

.foot { margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(19, 22, 61, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px 0; }
.player-inner { display: flex; align-items: center; gap: 16px; }
.player-title { flex: 0 1 40%; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.player audio { flex: 1; min-width: 0; height: 40px; }

@media (max-width: 600px) {
  .top nav { gap: 14px; font-size: 14px; }
  .ep { gap: 12px; padding: 12px; }
  .avatars { display: none; }
  .player-inner { flex-direction: column; align-items: stretch; gap: 6px; }
  .player-title { flex: none; }
  .player audio { width: 100%; }
}
