:root {
  --bg: #0d0f10;
  --fg: #e8eaea;
  --line: #1e2224;
  --line-strong: #2a3033;
  --muted: #9aa1a3;
  --muted-2: #7d8587;
  --muted-3: #6b7274;
  --soft: #c6cbcc;
  --body: #b4babb;
  --hover: #15191b;
  --accent: oklch(0.82 0.13 195);
  --accent-hover: oklch(0.88 0.11 195);
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, sans-serif;
  --stripes: repeating-linear-gradient(135deg, #14181a 0 12px, #111416 12px 24px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); min-height: 100vh; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 15, 16, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 17px; font-weight: 500; }
.cursor { display: inline-block; width: 9px; height: 17px; background: var(--accent); animation: blink 1.1s step-end infinite; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-link { color: var(--muted); }
.btn-subscribe {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  padding: 9px 14px; border-radius: 6px; font-weight: 600; font-size: 13px;
}
.btn-subscribe:hover { background: var(--accent-hover); color: var(--bg); }
.play-icon { width: 0; height: 0; border-left: 7px solid var(--bg); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* Hero */
.hero { padding-top: 28px; }
.hero-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #14181a 0 14px, #111416 14px 28px);
  font-family: var(--mono); font-size: 13px; color: var(--muted-3);
}

.hero-body {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 48px;
  padding: 28px 0 56px; border-bottom: 1px solid var(--line);
}
.hero-info { min-width: 0; max-width: 780px; }
@media (max-width: 800px) { .hero-body { grid-template-columns: minmax(0, 1fr); } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tag { border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 8px; font-size: 12px; color: var(--soft); }
.hero h1 { margin: 14px 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.hero-description { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-outline { font-size: 14px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 6px; }
.btn-outline:hover { border-color: var(--accent); color: var(--fg); }

.chapters { min-width: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 12px; }
.chapter-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.chapter {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 8px; cursor: pointer;
}
.chapter:hover, .chapter.is-active { background: var(--hover); }
.chapter-time { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.chapter-label { font-size: 14px; line-height: 1.4; color: var(--soft); }

/* Intro */
.intro { padding-top: 56px; }
.intro p { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; max-width: 820px; text-wrap: pretty; }
.intro .muted { color: var(--muted-2); }

/* Archive */
.archive { padding-top: 56px; padding-bottom: 88px; }
.archive-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.archive h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.count { font-family: var(--mono); font-size: 14px; color: var(--muted-3); font-weight: 400; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  font-family: var(--mono); font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--soft);
}
.topic:hover { border-color: var(--accent); }
.topic.is-active { border-color: var(--accent); background: var(--accent); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; gap: 12px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.card:hover { opacity: 0.92; }

.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 20px; align-items: start; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; cursor: pointer;
}
.row:hover { background: #121516; }
.row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--stripes);
}
.row .thumb { border-radius: 6px; }
.thumb.is-current { border-color: var(--accent); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: #5a6163; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.8); font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.now-playing {
  position: absolute; left: 8px; top: 8px; background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 4px;
}
.ep-meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.ep-meta .num { color: var(--accent); }
.ep-title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; text-wrap: pretty; }
.row .ep-title { font-size: 18px; }
.ep-description { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; max-width: 680px; }
.empty { padding: 48px 0; font-family: var(--mono); font-size: 14px; color: var(--muted-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}
