/* AntJanus — Audio-First / Podcast redesign (demo 073) */

:root {
  --paper-100: #fffdf8;
  --paper-200: #f3eee5;
  --paper-300: #ebe4d6;
  --paper-400: #d9d0bf;
  --ink-900: #17191f;
  --ink-800: #2c2f38;
  --ink-600: #5b5e68;
  --night-900: #0f1216;
  --night-800: #171b21;
  --night-700: #1f252d;
  --night-600: #2b323c;
  --studio-500: #364f6a;
  --studio-300: #8fb0d6;
  --signal-700: #b83a0b;
  --signal-400: #ff8a5b;

  --ground: var(--paper-200);
  --surface: var(--paper-100);
  --surface-2: var(--paper-300);
  --line: var(--paper-400);
  --ink: var(--ink-900);
  --text: var(--ink-800);
  --muted: var(--ink-600);
  --studio: var(--studio-500);
  --signal: var(--signal-700);
  --wave: #aab3bf;
  --wave-played: var(--signal-700);
  --band: #141b24;
  --band-2: #1d2733;
  --band-text: #eef1f5;
  --band-muted: #aab6c4;
  --code-bg: #151a21;
  --code-text: #e3e8ee;
  --focus: #1a5fd0;

  --show-ai: #364f6a;
  --show-garden: #2f5d45;
  --show-tools: #8a4b0f;
  --show-story: #5b3a6e;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
  --font-prose: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: var(--night-900);
    --surface: var(--night-800);
    --surface-2: var(--night-700);
    --line: var(--night-600);
    --ink: #f2efe8;
    --text: #d9d6cf;
    --muted: #a3a8b1;
    --studio: var(--studio-300);
    --signal: var(--signal-400);
    --wave: #3d4856;
    --wave-played: var(--signal-400);
    --band: #0a0d11;
    --band-2: #151b23;
    --code-bg: #0b0e12;
    --focus: #7fb2ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: var(--night-900);
  --surface: var(--night-800);
  --surface-2: var(--night-700);
  --line: var(--night-600);
  --ink: #f2efe8;
  --text: #d9d6cf;
  --muted: #a3a8b1;
  --studio: var(--studio-300);
  --signal: var(--signal-400);
  --wave: #3d4856;
  --wave-played: var(--signal-400);
  --band: #0a0d11;
  --band-2: #151b23;
  --code-bg: #0b0e12;
  --focus: #7fb2ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 84px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand-sub { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.onair-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent); }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--text);
  transition: background-color 150ms, color 150ms;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--ground); }
.site-nav a.nav-ai { border: 2px solid var(--signal); color: var(--signal); }
.site-nav a.nav-ai:hover { background: var(--signal); color: var(--surface); }
.site-nav a.nav-ai[aria-current="page"] { background: var(--signal); color: var(--surface); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color 150ms;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; }
.search-form { display: flex; align-items: center; }
.search-form input {
  width: 150px; height: 44px; border-radius: 999px 0 0 999px; border: 1px solid var(--line); border-right: 0;
  background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; font-size: 0.9375rem;
}
.search-form button {
  height: 44px; border-radius: 0 999px 999px 0; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); padding: 0 14px; font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
}
.search-form input::placeholder { color: var(--muted); }

@media (max-width: 1080px) {
  .search-form { display: none; }
  .site-nav .mobile-search { display: flex !important; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; padding: 12px var(--gutter) 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { border-radius: 10px; }
  .site-nav .mobile-search input { flex: 1; width: auto; }
}
.site-nav .mobile-search { display: none; margin-top: 10px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; font-family: var(--font-body); transition: transform 150ms, background-color 150ms;
}
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--signal); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn-link { color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 0 6px; }
.btn-link:hover { color: var(--ink); }
.btn .play-glyph { width: 26px; height: 26px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; }
.btn .play-glyph svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8125rem; border: 1px solid var(--line); color: var(--text); background: var(--surface);
  text-decoration: none;
}
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.show-tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; color: var(--muted);
}
.show-tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--show-color, var(--studio)); }
.s-ai { --show-color: var(--show-ai); }
.s-garden { --show-color: var(--show-garden); }
.s-tools { --show-color: var(--show-tools); }
.s-story { --show-color: var(--show-story); }

/* ---------- Waveforms ---------- */
.wave { display: block; width: 100%; height: auto; overflow: visible; }
.wave path { fill: none; stroke-linecap: round; }
.wave .w-base { stroke: var(--wave); }
.wave .w-played { stroke: var(--wave-played); }
.wave-live .w-base { stroke: color-mix(in srgb, var(--band-text) 30%, transparent); }
.wave-live .w-played { stroke: var(--signal-400); }

/* ---------- Show header (hero) ---------- */
.show-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); }
.show-hero .wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--studio-500); box-shadow: 0 30px 60px -30px rgba(10, 15, 25, 0.55);
}
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.cover-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.92) 30%, rgba(10, 14, 20, 0));
  color: #fff;
}
.cover-label .cover-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 0.95; letter-spacing: -0.02em; }
.cover-label .cover-meta { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: #d7dee7; margin-top: 8px; }
.cover-label .wave { margin-top: 14px; height: 34px; }
.cover-label .wave .w-base { stroke: rgba(255, 255, 255, 0.45); }
.cover-label .wave .w-played { stroke: var(--signal-400); }
.cover-badge {
  position: absolute; top: 16px; left: 16px; background: var(--signal-700); color: #fff; font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; padding: 6px 10px; border-radius: 6px;
  display: inline-flex; gap: 8px; align-items: center;
}
.cover-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.show-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.show-hero .host { margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.show-hero .host span { color: var(--muted); font-weight: 400; }
.show-hero .lede { font-size: 1.25rem; line-height: 1.5; max-width: 38em; margin: 16px 0 0; }
.show-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 26px; padding: 0; list-style: none; }
.show-stats li { display: flex; align-items: baseline; gap: 8px; }
.show-stats strong { font-family: var(--font-display); font-size: 1.75rem; color: var(--ink); font-weight: 800; }
.show-stats span { color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; }
.subscribe-row .label { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-right: 4px; }
.sub-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink);
}
.sub-pill:hover { border-color: var(--ink); }
.sub-pill svg { width: 16px; height: 16px; }

@media (max-width: 820px) {
  .show-hero .wrap { grid-template-columns: 1fr; }
  .show-hero .cover { max-width: 420px; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 1.0625rem; }
.section-head .more { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Now playing / featured episode ---------- */
.now-playing {
  background: var(--band); color: var(--band-text); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); text-decoration: none;
}
.now-playing .np-art { position: relative; background: var(--band-2); }
.now-playing .np-art img { width: 100%; height: 100%; object-fit: cover; }
.now-playing .np-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.now-playing .eyebrow { color: var(--band-muted); }
.now-playing .eyebrow b { color: var(--signal-400); font-weight: 500; }
.now-playing h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.now-playing p { color: #cfd7e1; margin: 0; font-size: 1.0625rem; max-width: 48em; }
.np-player { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.np-play { width: 56px; height: 56px; border-radius: 50%; background: var(--signal-400); display: grid; place-items: center; flex: none; transition: transform 150ms; }
.np-play svg { width: 20px; height: 20px; fill: #1a0d06; margin-left: 3px; }
.now-playing:hover .np-play { transform: scale(1.06); }
.np-player .wave { height: 44px; flex: 1 1 200px; min-width: 0; }
.np-time { font-family: var(--font-mono); font-size: 0.875rem; color: var(--band-muted); white-space: nowrap; }
@media (max-width: 760px) {
  .now-playing { grid-template-columns: 1fr; }
  .now-playing .np-art { aspect-ratio: 16 / 9; }
}

/* ---------- Episode list ---------- */
.ep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ep-list > li { border-bottom: 1px solid var(--line); }
.ep {
  display: grid; grid-template-columns: 52px 76px 88px minmax(0, 1fr) 150px; gap: 18px; align-items: center;
  padding: 18px 12px; text-decoration: none; border-radius: 12px; transition: background-color 150ms;
}
.ep:hover { background: var(--surface); }
.ep-play { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; transition: background-color 150ms; }
.ep-play svg { width: 14px; height: 14px; fill: var(--ink); margin-left: 3px; }
.ep:hover .ep-play { background: var(--signal); border-color: var(--signal); }
.ep:hover .ep-play svg { fill: #fff; }
.ep-num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); line-height: 1.3; }
.ep-num b { display: block; font-size: 1.375rem; color: var(--ink); font-weight: 500; }
.ep-art { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--show-color, var(--studio)); position: relative; }
.ep-art img { width: 100%; height: 100%; object-fit: cover; }
.ep-art .tile { position: absolute; inset: 0; color: #fff; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; }
.ep-art .tile b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.ep-art .tile span { font-family: var(--font-mono); font-size: 0.8125rem; opacity: 0.9; line-height: 1.1; }
.ep-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ep-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin: 4px 0 4px; }
.ep:hover .ep-title { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.ep-desc { color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ep-side .wave { height: 28px; }
.ep-date { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); text-align: right; }
@media (max-width: 900px) {
  .ep { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 16px; padding: 16px 4px; align-items: start; }
  .ep-play { display: none; }
  .ep-num { grid-column: 2; grid-row: 1; display: flex; gap: 10px; align-items: baseline; }
  .ep-num b { display: inline; font-size: 1rem; }
  .ep-art { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 72px; }
  .ep-main { grid-column: 2; }
  .ep-side { grid-column: 2; flex-direction: row; align-items: center; gap: 12px; }
  .ep-side .wave { flex: 1; height: 22px; }
  .ep-title { font-size: 1.15rem; }
}

/* ---------- Show grid (network) ---------- */
.shows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.show-card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.show-cover {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--show-color); color: #fff; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  transition: transform 200ms;
}
.show-card:hover .show-cover { transform: translateY(-4px) rotate(-1deg); }
.show-cover .sc-top { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.show-cover .sc-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 0.95; letter-spacing: -0.02em; }
.show-cover .wave .w-base { stroke: rgba(255, 255, 255, 0.45); }
.show-cover .wave .w-played { stroke: #fff; }
.show-cover .sc-rings { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.06), 0 0 0 46px rgba(255, 255, 255, 0.04); }
.show-card h3 { font-size: 1.25rem; }
.show-card p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .shows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cards (generic) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { margin: 0; }
a.card { text-decoration: none; display: block; transition: border-color 150ms, transform 150ms; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .eyebrow { margin-bottom: 10px; display: block; }
.card-dark { background: var(--band); color: var(--band-text); border-color: var(--band); }
.card-dark h3, .card-dark h2 { color: #fff; }
.card-dark p { color: #cfd7e1; }
.card-dark .eyebrow { color: var(--band-muted); }
.card-dark .btn-primary { background: var(--signal-400); color: #1a0d06; }
.card-dark .btn-primary:hover { background: #fff; color: #111; }

/* Segments (AI experiments) */
.segment { display: flex; gap: 16px; align-items: flex-start; }
.segment .seg-mark { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.type-badge { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--signal); }

/* Link lists */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; text-decoration: none; font-weight: 600; color: var(--ink); }
.link-list a:hover { color: var(--signal); }
.link-list small { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.card-dark .link-list li + li { border-color: var(--band-2); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 4vw, 40px); }
.page-head .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: end; }
.page-head .cover { box-shadow: 0 24px 48px -28px rgba(10, 15, 25, 0.6); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 10px; }
.page-head .lede { font-size: 1.25rem; max-width: 40em; margin: 14px 0 0; }
.page-head .meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.cover-tile { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--show-color, var(--studio-500)); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.cover-tile.has-img { background-size: cover; background-position: center; }
.cover-tile.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 12, 18, 0.9) 20%, rgba(8, 12, 18, 0.15)); }
.cover-tile > * { position: relative; z-index: 1; }
.cover-tile .ct-top { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cover-tile .ct-title { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 0.95; letter-spacing: -0.02em; }
.cover-tile .wave .w-base { stroke: rgba(255, 255, 255, 0.45); }
.cover-tile .wave .w-played { stroke: var(--signal-400); }
@media (max-width: 700px) {
  .page-head .wrap { grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .page-head .cover-tile { padding: 10px; border-radius: 12px; }
  .page-head .cover-tile .ct-title { font-size: 1.05rem; }
  .page-head .cover-tile .ct-top { font-size: 0.8125rem; letter-spacing: 0.02em; }
  .page-head .cover-tile .wave { display: none; }
  .page-head .lede, .page-head .meta-row, .page-head .cta-row { grid-column: 1 / -1; }
  .page-head .ph-text { display: contents; }
  .page-head .ph-text > .eyebrow, .page-head .ph-text > h1 { grid-column: 2; }
  .page-head h1 { font-size: 2.2rem; }
}

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.filter-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.filter-btn .count { font-family: var(--font-mono); font-size: 0.8125rem; opacity: 0.8; }
.filter-btn .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--show-color); }
.result-line { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); margin: 0 0 12px; }
.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 6px; }
.year-head { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 28px 0 8px; display: flex; align-items: center; gap: 14px; }
.year-head::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 6px); }

/* ---------- Season (series) ---------- */
.season { background: var(--show-story); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 48px); }
.season h2, .season h3 { color: #fff; }
.season .eyebrow { color: #e6d6ef; }
.season p { color: #efe6f4; }
.season-art { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #3e2650; }
.season-art img { width: 100%; height: 100%; object-fit: cover; }
.notice { border-left: 4px solid #f2c26b; background: rgba(0, 0, 0, 0.22); padding: 12px 16px; border-radius: 0 10px 10px 0; margin-top: 16px; color: #fff; }
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tracks li + li { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.track { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; text-decoration: none; color: #fff; }
.track .t-num { font-family: var(--font-mono); font-size: 1.1rem; color: #e6d6ef; }
.track .t-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.track .t-desc { color: #efe6f4; margin: 4px 0 0; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track .t-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: #e6d6ef; white-space: nowrap; }
a.track:hover .t-title { text-decoration: underline; text-underline-offset: 4px; }
.track.is-soon { opacity: 0.85; }
.track.is-soon .t-meta { border: 1px dashed rgba(255, 255, 255, 0.6); padding: 4px 8px; border-radius: 6px; }
.season :focus-visible { outline-color: #fff; }
@media (max-width: 820px) { .season { grid-template-columns: 1fr; } .track { grid-template-columns: 36px minmax(0, 1fr); } .track .t-meta { grid-column: 2; } }

/* ---------- Booking strip ---------- */
.booking { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 22px 26px; }
.booking p { margin: 0; font-size: 1.1875rem; color: var(--ink); max-width: 40em; }
.booking .eyebrow { display: block; margin-bottom: 4px; }

/* ---------- Projects ---------- */
.release { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--band); color: var(--band-text); }
.release-art { background: #0e1a28; min-height: 320px; }
.release-art img { width: 100%; height: 100%; object-fit: cover; }
.release-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.release-body h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.release-body p { color: #cfd7e1; margin: 0; }
.release-body .eyebrow { color: var(--band-muted); }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--band-2); border: 1px solid var(--band-2); border-radius: 12px; overflow: hidden; }
.stat-strip div { background: var(--band); padding: 12px 14px; }
.stat-strip dt { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-muted); }
.stat-strip dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.release .btn-primary { background: var(--signal-400); color: #1a0d06; align-self: flex-start; }
.release .btn-primary:hover { background: #fff; }
@media (max-width: 820px) { .release { grid-template-columns: 1fr; } .release-art { min-height: 0; aspect-ratio: 16 / 9; } }

.tracklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tracklist li { border-bottom: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 44px 120px minmax(0, 1fr) 140px 90px; gap: 18px; align-items: center; padding: 16px 8px; text-decoration: none; }
.tl-row:hover { background: var(--surface); }
.tl-row .tl-n { font-family: var(--font-mono); color: var(--muted); font-size: 1rem; }
.tl-row .tl-art { width: 120px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--band-2); }
.tl-row .tl-art img { width: 100%; height: 100%; object-fit: cover; }
.tl-row .tl-art.term { background: #0d1117; display: grid; place-items: center; color: #7ee787; font-family: var(--font-mono); font-size: 0.8125rem; }
.tl-row h3 { font-size: 1.2rem; }
.tl-row p { margin: 4px 0 0; }
.tl-row .tl-tech { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.tl-row .tl-stars { font-family: var(--font-mono); font-size: 1rem; color: var(--ink); text-align: right; }
@media (max-width: 820px) {
  .tl-row { grid-template-columns: 90px minmax(0, 1fr); gap: 6px 14px; align-items: start; }
  .tl-row .tl-n { display: none; }
  .tl-row .tl-art { width: 90px; grid-row: 1 / span 3; }
  .tl-row .tl-stars { text-align: left; }
}
.jump { position: sticky; top: 68px; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: thin; }
.jump a { flex: none; }

.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color 150ms; }
.proj-card:hover { border-color: var(--ink); }
.proj-card .pc-art { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; position: relative; }
.proj-card .pc-art img { width: 100%; height: 100%; object-fit: cover; }
.proj-card .pc-art.term { background: #0d1117; }
.proj-card .pc-art.term img { object-fit: contain; }
.proj-card .pc-art .rec { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.72); color: #fff; font-family: var(--font-mono); font-size: 0.8125rem; padding: 3px 8px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.proj-card .pc-art .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a3c; }
.proj-card .pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-card h3 { font-size: 1.2rem; }
.proj-card p { margin: 0; }
.proj-card .tl-tech { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-top: auto; }

/* ---------- About ---------- */
.host-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.host-hero .cover img { object-position: center 25%; }
@media (max-width: 820px) { .host-hero .wrap { grid-template-columns: 1fr; } }
.seasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.season-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.season-row .sr-label { font-family: var(--font-mono); color: var(--muted); font-size: 0.875rem; }
.season-row .sr-label b { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--ink); font-weight: 800; line-height: 1; margin-bottom: 6px; }
.season-row h3 { font-size: 1.45rem; margin-bottom: 6px; }
.season-row ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.season-row li { padding-left: 18px; position: relative; }
.season-row li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--signal); }
.season-row .role-notes { margin-top: 12px; padding: 12px 16px; background: var(--surface-2); border-radius: 10px; }
.season-row .role-notes p { margin: 0 0 8px; }
.season-row .role-notes p:last-child { margin: 0; }
@media (max-width: 700px) { .season-row { grid-template-columns: 1fr; gap: 10px; } }
.career-bar { display: flex; gap: 3px; margin: 0 0 24px; padding: 0; list-style: none; flex-wrap: wrap; }
.career-bar li { flex: 1 1 110px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--studio); padding: 10px 12px; border-radius: 6px; }
.career-bar b { display: block; color: var(--ink); font-size: 1rem; }
.career-bar span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.soundbites { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.soundbite { background: var(--band-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.soundbite q { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; line-height: 1.25; quotes: "\201C" "\201D"; }
.soundbite .wave { height: 22px; }
.soundbite .wave .w-base { stroke: rgba(255, 255, 255, 0.25); }
.soundbite .wave .w-played { stroke: var(--signal-400); }
.panel-dark { background: var(--band); color: var(--band-text); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.panel-dark h2 { color: #fff; }
.panel-dark p { color: #cfd7e1; }
.panel-dark .eyebrow { color: var(--band-muted); }
.panel-dark a { color: #fff; }
.rack { display: grid; gap: 1px; background: var(--band-2); border: 1px solid var(--band-2); border-radius: 14px; overflow: hidden; margin-top: 24px; }
.rack-row { background: var(--band); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 20px 22px; }
.rack-row h3 { color: #fff; font-size: 1.2rem; }
.rack-row p { margin: 6px 0 0; color: #b9c4d1; }
.rack-row .chips .chip { background: var(--band-2); border-color: #2d3a4a; color: #e4e9ef; }
@media (max-width: 760px) { .rack-row { grid-template-columns: 1fr; gap: 10px; } }
.beyond { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.beyond img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .beyond { grid-template-columns: 1fr; } .beyond img { aspect-ratio: 4 / 3; } }

/* ---------- Article (show notes) ---------- */
.ep-hero { padding: clamp(24px, 4vw, 48px) 0 24px; }
.ep-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ep-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.ep-hero .crumbs a { color: var(--ink); text-underline-offset: 3px; }
.ep-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin: 14px 0 0; }
.ep-hero .lede { font-size: 1.3rem; margin: 16px 0 0; }
.ep-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 0.9375rem; color: var(--muted); }
.ep-facts b { color: var(--ink); font-weight: 500; }
.ep-cover { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--show-garden); position: relative; box-shadow: 0 30px 60px -30px rgba(10, 15, 25, 0.55); }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.ep-cover .cover-badge::before { animation: none; }
@media (max-width: 860px) {
  .ep-hero .wrap { grid-template-columns: 1fr; }
  .ep-cover { aspect-ratio: 16 / 9; order: -1; }
}
.notes-layout { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: clamp(24px, 5vw, 64px); justify-content: center; padding-bottom: 48px; }
.chapters { position: sticky; top: 92px; align-self: start; }
.chapters h2 { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.chapters ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.chapters a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; padding: 9px 12px; text-decoration: none; color: var(--text); margin-left: -2px; border-left: 2px solid transparent; font-size: 1rem; line-height: 1.35; }
.chapters a:hover { color: var(--ink); background: var(--surface); }
.chapters a .tc { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); padding-top: 1px; }
.chapters a[aria-current="true"] { border-left-color: var(--signal); color: var(--ink); font-weight: 700; }
.chapters a[aria-current="true"] .tc { color: var(--signal); }
.chapters .ch-note { font-size: 0.875rem; color: var(--muted); margin: 10px 0 0; font-family: var(--font-mono); }
.chapters-mobile { display: none; }
@media (max-width: 1000px) {
  .notes-layout { grid-template-columns: minmax(0, 1fr); }
  .chapters { display: none; }
  .chapters-mobile { display: block; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .chapters-mobile summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; cursor: pointer; font-weight: 700; color: var(--ink); }
  .chapters-mobile ol { list-style: none; margin: 0; padding: 0 8px 10px; }
  .chapters-mobile a { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 10px; text-decoration: none; }
  .chapters-mobile .tc { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
}
.in-episode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px; }
.in-episode h2 { font-size: 1.35rem; margin-bottom: 10px; }
.in-episode ul { margin: 0; padding-left: 1.2em; }
.in-episode li { margin: 4px 0; }

.prose { font-family: var(--font-prose); font-size: 1.1875rem; line-height: 1.7; color: var(--text); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; margin-top: 2.2em; scroll-margin-top: 96px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.prose h2 .h-tc { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; color: var(--signal); border: 1px solid currentColor; padding: 2px 8px; border-radius: 6px; letter-spacing: 0; }
.prose a { color: var(--studio); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--signal); }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; border-radius: 0; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose .is-speaking { background: color-mix(in srgb, var(--signal) 14%, transparent); box-shadow: -10px 0 0 color-mix(in srgb, var(--signal) 14%, transparent), 10px 0 0 color-mix(in srgb, var(--signal) 14%, transparent); border-radius: 4px; }
.callout { border-radius: 12px; padding: 16px 20px 16px 20px; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; position: relative; }
.callout .co-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.callout .co-label svg { width: 16px; height: 16px; }
.callout p { margin: 0; }
.callout-why { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--studio); }
.callout-why .co-label { color: var(--studio); }
.callout-ask { background: color-mix(in srgb, var(--signal) 9%, var(--surface)); border: 1px dashed var(--signal); }
.callout-ask .co-label { color: var(--signal); }
.callout-note { background: var(--surface-2); }
.callout-note .co-label { color: var(--muted); }
.callout-preroll { background: var(--band); color: #dfe6ee; }
.callout-preroll .co-label { color: var(--signal-400); }
.callout-preroll a { color: #fff; }
.callout-preroll code { background: var(--band-2); color: #fff; }
.code {
  margin-left: -24px; margin-right: -24px; border-radius: 14px; background: var(--code-bg); color: var(--code-text); overflow: hidden;
  font-family: var(--font-mono); border: 1px solid #252d38;
}
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; border-bottom: 1px solid #252d38; font-size: 0.8125rem; color: #9fb0c3; letter-spacing: 0.08em; }
.code-head .dots { display: flex; gap: 6px; align-items: center; }
.code-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a4452; display: block; }
.code-head .dots i:first-child { background: #ff6a3d; }
.copy-btn { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #334050; background: transparent; color: #dfe6ee; font-family: var(--font-mono); font-size: 0.8125rem; cursor: pointer; }
.copy-btn:hover { background: #222b36; }
.copy-btn:focus-visible { outline-color: #7fb2ff; }
.code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-size: 0.9375rem; line-height: 1.6; tab-size: 2; }
.code pre:focus-visible { outline-offset: -3px; }
.tok-k { color: #ff9e7a; }
.tok-s { color: #a8d68a; }
.tok-c { color: #8b98a8; font-style: italic; }
.tok-t { color: #8cc4ff; }
@media (max-width: 760px) { .code { margin-left: 0; margin-right: 0; } }

.ep-foot { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; display: grid; gap: 28px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-row .eyebrow { margin-right: 6px; }
.newsletter { background: var(--band); color: var(--band-text); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.newsletter h2 { color: #fff; font-size: 1.8rem; }
.newsletter p { color: #cfd7e1; margin: 8px 0 0; }
.news-form { display: grid; gap: 10px; }
.news-form .row { display: flex; gap: 8px; }
.news-form input[type="email"] { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1px solid #3a4758; background: #0f151d; color: #fff; padding: 0 18px; font: inherit; }
.news-form input::placeholder { color: #93a2b3; }
.news-form button { height: 50px; border-radius: 999px; border: 0; background: var(--signal-400); color: #1a0d06; font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.news-form button:hover { background: #fff; }
.news-form label.check { display: flex; gap: 10px; align-items: flex-start; color: #cfd7e1; font-size: 0.9375rem; }
.news-form label.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal-400); }
.news-form .status { min-height: 1.5em; margin: 0; font-size: 0.9375rem; color: #ffd2bf; }
.news-form .status.ok { color: #9ff0c5; }
.newsletter :focus-visible { outline-color: #7fb2ff; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } .news-form .row { flex-direction: column; } }

/* Reader player (article) */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--band); color: var(--band-text);
  border-top: 1px solid #2a3544; box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.6);
}
.player .wrap { display: grid; grid-template-columns: auto minmax(0, 260px) minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 76px; }
.p-controls { display: flex; align-items: center; gap: 6px; }
.p-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.p-btn:hover { background: var(--band-2); }
.p-btn svg { width: 18px; height: 18px; fill: currentColor; }
.p-btn.p-main { width: 52px; height: 52px; background: var(--signal-400); color: #1a0d06; }
.p-btn.p-main:hover { background: #fff; }
.p-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.p-btn:focus-visible { outline-color: #7fb2ff; }
.p-now { min-width: 0; }
.p-now .p-label { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--band-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.p-now .p-chapter { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub { position: relative; height: 44px; cursor: pointer; border-radius: 6px; }
.scrub .wave { position: absolute; inset: 0; height: 100%; }
.scrub .wave-top { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.scrub .wave .w-base { stroke: #3b4959; }
.scrub .wave-top .w-base { stroke: var(--signal-400); }
.scrub .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #cfd7e1; border-radius: 2px; opacity: 0.6; pointer-events: none; }
.scrub:focus-visible { outline-color: #7fb2ff; outline-offset: 4px; }
.p-time { font-family: var(--font-mono); font-size: 0.875rem; color: var(--band-muted); white-space: nowrap; }
.p-time b { color: #fff; font-weight: 500; }
@media (max-width: 760px) {
  .player .wrap { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
  .p-controls { grid-row: 1 / span 2; }
  .p-btn.p-skip { display: none; }
  .scrub { height: 26px; grid-column: 2; }
  .p-time { display: none; }
  .player .wrap { min-height: 70px; }
}

/* Mini player (non-article pages) */
.mini {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--band); color: var(--band-text); border-radius: 18px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 180px auto; gap: 14px; align-items: center; padding: 8px 8px 8px 8px;
}
.mini[hidden] { display: none; }
.mini img, .mini .mini-art { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--show-ai); }
.mini .m-text { min-width: 0; text-decoration: none; color: #fff; }
.mini .m-label { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--band-muted); text-transform: uppercase; letter-spacing: 0.08em; display: flex; gap: 8px; align-items: center; }
.mini .m-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-400); }
.mini .m-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mini .m-text:hover .m-title { text-decoration: underline; }
.mini .eq { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.mini .eq i { flex: 1; background: var(--signal-400); border-radius: 2px; height: 30%; animation: eq 1.1s ease-in-out infinite; }
.mini .eq i:nth-child(2n) { animation-delay: -0.4s; }
.mini .eq i:nth-child(3n) { animation-delay: -0.7s; animation-duration: 0.9s; }
.mini .eq i:nth-child(5n) { animation-delay: -0.2s; animation-duration: 1.3s; }
@keyframes eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.mini .m-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.mini .m-close:hover { background: var(--band-2); }
.mini .m-close svg { width: 18px; height: 18px; }
.mini :focus-visible { outline-color: #7fb2ff; }
@media (max-width: 640px) { .mini { grid-template-columns: 44px minmax(0, 1fr) auto; } .mini .eq { display: none; } .mini img, .mini .mini-art { width: 44px; height: 44px; } }

/* ---------- Patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.three-ways > div { background: var(--surface); padding: 22px; }
.three-ways h3 { font-size: 1.2rem; margin: 8px 0 6px; display: flex; align-items: center; gap: 10px; }
.three-ways p { margin: 0; }
.three-ways .trk { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--signal); letter-spacing: 0.08em; }
.three-ways-foot { margin: 16px 0 0; color: var(--muted); max-width: 70em; }
@media (max-width: 760px) { .three-ways { grid-template-columns: 1fr; } }
.pat-controls { display: grid; gap: 14px; margin: 28px 0 18px; }
.pat-search { display: flex; }
.pat-search input { flex: 1; min-width: 0; height: 56px; border: 2px solid var(--ink); border-radius: 14px; padding: 0 18px; font: inherit; font-size: 1.0625rem; background: var(--surface); color: var(--ink); }
.pat-search input::placeholder { color: var(--muted); }
.pat-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.pat-meta select { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; }
.pat-meta .clear { min-height: 44px; border: 0; background: none; color: var(--ink); text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; }
.pat-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pat-list li { border-bottom: 1px solid var(--line); }
.pat-row { display: grid; grid-template-columns: 50px 130px minmax(0, 1fr) 150px; gap: 18px; align-items: center; padding: 16px 8px; text-decoration: none; }
.pat-row:hover { background: var(--surface); }
.pat-row .pr-n { font-family: var(--font-mono); color: var(--muted); }
.pat-row .pr-thumb { height: 64px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.pat-row .pr-thumb .wave { height: 100%; padding: 10px; }
.pat-row h3 { font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pat-row p { margin: 4px 0 0; }
.pat-row .pr-tags { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.pat-row .pr-side { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); text-align: right; display: grid; gap: 4px; }
.pat-row .pr-side .cat { color: var(--ink); }
.badge { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; padding: 2px 8px; border-radius: 6px; letter-spacing: 0.04em; }
.badge-new { background: var(--signal); color: var(--surface); }
.badge-upd { border: 1px solid var(--studio); color: var(--studio); }
@media (max-width: 760px) {
  .pat-row { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .pat-row .pr-n { display: none; }
  .pat-row .pr-thumb { width: 64px; grid-row: 1 / span 2; }
  .pat-row .pr-side { text-align: left; grid-column: 2; display: flex; gap: 12px; }
}

/* Pattern detail */
.pd-uses { columns: 2; column-gap: 32px; padding-left: 1.1em; margin: 10px 0 0; }
.pd-uses li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 640px) { .pd-uses { columns: 1; } }
.panes { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-top: 28px; }
.panes-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tablist { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { background: var(--surface); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.tab .tn { font-family: var(--font-mono); font-size: 0.8125rem; opacity: 0.75; }
.pane-actions { display: flex; gap: 6px; }
.pane-actions button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.pane-actions button:hover { border-color: var(--ink); }
.pane { padding: 24px; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 12px; padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.9375rem; line-height: 1.6; }
.pane-note { margin: 0 0 14px; color: var(--muted); }
.prompt-text { font-family: var(--font-prose); font-size: 1.125rem; line-height: 1.7; max-width: 70ch; }
.prompt-text p { margin: 0 0 1em; }
.prompt-text code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }

/* hairline stat strip demo (pattern tokens) */
.stage { --radius-s: 10px; background: var(--ground); border-radius: 12px; padding: 22px; border: 1px solid var(--line); }
.stage .cap { font-size: 1rem; color: var(--muted); margin: 0 0 10px; }
.stage .cap + .hss-strip { margin-bottom: 26px; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; grid-template-columns: 1fr; }
@container (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 14px 16px; text-align: left; border: 0; font: inherit; color: var(--text); min-width: 0; }
.hss-tile .l { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: block; }
.hss-tile .v { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; display: block; font-family: var(--font-display); }
.hss-tile .s { font-size: 0.875rem; color: var(--muted); display: block; overflow-wrap: anywhere; }
.hss-tile .v.dim { color: var(--muted); }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: var(--surface-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--studio) 16%, var(--surface)); box-shadow: inset 0 -3px 0 var(--studio); }
.dl-list { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.dl-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dl-list li:last-child { border-bottom: 0; }
.dl-list .st { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.dl-status { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { background: var(--band); color: var(--band-text); padding: 56px 0 28px; margin-top: 40px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.site-foot h2 { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--band-muted); font-weight: 500; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: #e4e9ef; }
.site-foot li a:hover { color: var(--signal-400); text-decoration: underline; }
.site-foot p { color: #c3ccd7; margin: 12px 0 0; }
.site-foot .brand-name { color: #fff; }
.site-foot .foot-wave { margin-top: 16px; height: 30px; max-width: 280px; }
.site-foot .foot-wave .w-base { stroke: #334254; }
.site-foot .foot-wave .w-played { stroke: var(--signal-400); }
.foot-bottom { grid-column: 1 / -1; border-top: 1px solid var(--band-2); padding-top: 20px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 0.875rem; color: var(--band-muted); }
.site-foot :focus-visible { outline-color: #7fb2ff; }
.site-foot .news-form input[type="email"] { height: 46px; }
.site-foot .news-form button { height: 46px; }
@media (max-width: 900px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mini .eq i { height: 60%; }
}

.prose-fig { margin: 1.6em 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose-fig img { display: block; width: 100%; height: auto; }
.prose blockquote.callout { margin-inline: 0; }
.prose .callout p + p { margin-top: .7em; }
.prose code { overflow-wrap: anywhere; }
.prose a.btn-primary { color: var(--ground); text-decoration: none; }
.prose a.btn-primary:hover { color: #fff; }
