/* ============================================================================
   ouuutline · 日本轮廓志 (https://line.ouuut.com)
   Japanese Washi Editorial Journal (和纸手账 · 严格 8 色)
   Strict 8 Colors ONLY:
     #F1EEE5 (和纸白) | #E5E0D4 (浅茶纸) | #D8D6CB (灰宣纸) | #292C29 (松烟墨)
     #485C70 (蓝墨/渡边) | #A95649 (朱砂/小林) | #788574 (青瓷) | #B18E58 (赭石)
   Zero off-palette colors · Zero rounded corners (border-radius: 0) · Zero Google Fonts
   ============================================================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifSC-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/NotoSerifSC-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Han Sans CN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/SourceHanSansCN-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Han Sans CN';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/SourceHanSansCN-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Han Sans CN';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/SourceHanSansCN-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-700-normal.woff2') format('woff2');
}

:root,
html[data-theme="light"] {
  color-scheme: light;
  /* Strict 8-color Washi tokens */
  --washi-paper: #F1EEE5;
  --washi-tea: #E5E0D4;
  --washi-rule: #D8D6CB;
  --washi-sumi: #292C29;
  --washi-indigo: #485C70;
  --washi-vermilion: #A95649;
  --washi-celadon: #788574;
  --washi-ochre: #B18E58;

  /* Semantic Light Surface & Typography Tokens */
  --bg: #F1EEE5;
  --surface: #E5E0D4;
  --card: #F1EEE5;
  --card-alt: #E5E0D4;
  --ink: #292C29;
  --muted: #485C70;
  --wire: #D8D6CB;
  --wire-strong: #292C29;
  --wire-soft: color-mix(in srgb, #292C29 7%, transparent);
  --wire-sub: color-mix(in srgb, #485C70 5%, transparent);

  /* Accessible Ink Variants (>=4.5:1 WCAG AA strictly derived from 8 colors) */
  --c1-raw: #A95649;
  --c2-raw: #485C70;
  --c3-raw: #788574;
  --c4-raw: #B18E58;
  --c5-raw: #292C29;
  --c6-raw: #D8D6CB;

  --c1-ink: color-mix(in srgb, #A95649 82%, #292C29);
  --c2-ink: #485C70;
  --c3-ink: color-mix(in srgb, #788574 62%, #292C29);
  --c4-ink: color-mix(in srgb, #B18E58 56%, #292C29);
  --c5-ink: #292C29;
  --c6-ink: #485C70;

  --seal-fill: color-mix(in srgb, #A95649 86%, #292C29);
  --seal-fg: #F1EEE5;
  --host-m: #485C70;
  --host-f: #A95649;
  --host-m-ink: #485C70;
  --host-f-ink: color-mix(in srgb, #A95649 82%, #292C29);

  --hd-h: 62px;
  --pad: clamp(16px, 3vw, 40px);
  --font-serif: 'Noto Serif SC', 'Fraunces', Georgia, serif;
  --font-wordmark: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Source Han Sans CN', 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Source Han Sans CN', monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #292C29;
  --surface: color-mix(in srgb, #292C29 92%, #E5E0D4);
  --card: #292C29;
  --card-alt: color-mix(in srgb, #292C29 90%, #485C70);
  --ink: #F1EEE5;
  --muted: #D8D6CB;
  --wire: color-mix(in srgb, #D8D6CB 32%, transparent);
  --wire-strong: #D8D6CB;
  --wire-soft: color-mix(in srgb, #F1EEE5 7%, transparent);
  --wire-sub: color-mix(in srgb, #D8D6CB 4%, transparent);

  --c1-ink: color-mix(in srgb, #A95649 48%, #F1EEE5);
  --c2-ink: color-mix(in srgb, #485C70 42%, #F1EEE5);
  --c3-ink: color-mix(in srgb, #788574 44%, #F1EEE5);
  --c4-ink: #B18E58;
  --c5-ink: #F1EEE5;
  --c6-ink: #D8D6CB;

  --seal-fill: color-mix(in srgb, #A95649 84%, #292C29);
  --seal-fg: #F1EEE5;
  --host-m-ink: color-mix(in srgb, #485C70 42%, #F1EEE5);
  --host-f-ink: color-mix(in srgb, #A95649 48%, #F1EEE5);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 26%, transparent) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .22s ease, color .22s ease;
}

.ep-list, .td-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ink) 24%, transparent) transparent;
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 24%, transparent);
}
::-webkit-scrollbar-thumb:hover { background: var(--c1-raw); }

a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c1-raw); outline-offset: 2px; }

.skip-link {
  position: fixed;
  left: -9999px;
  top: 10px;
  z-index: 300;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
}
.skip-link:focus { left: 10px; }

/* ============================================================================
   Washi Shoji Architectural Grid (64px major / 48px minor, always active)
   ============================================================================ */
html[data-wire="all"] .screen-sec,
html[data-wire="all"] .ep-detail-sec {
  background-image:
    linear-gradient(to right, var(--wire-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--wire-soft) 1px, transparent 1px),
    linear-gradient(to right, var(--wire-sub) 1px, transparent 1px),
    linear-gradient(to bottom, var(--wire-sub) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 48px 48px, 48px 48px;
}

/* ============================================================================
   Official Line Brand Lockup + Motion
   ============================================================================ */
.wm-lockup { display: block; height: 21px; width: auto; flex-shrink: 0; }
.wm-lockup.is-hero-wordmark { height: 28px; }
.wm-lockup.is-animated-lockup,
.wm-lockup.is-drop-wordmark { overflow: visible; }
.wm-lockup path { transition: fill .2s ease, stroke .2s ease; }

.wm-lockup .g-pre,
.wm-lockup .g-dot1,
.wm-lockup .g-c,
.wm-lockup .g-o,
.wm-lockup .g-m { fill: var(--ink); stroke: var(--ink); }
.wm-lockup .g-mark { fill: var(--c1-raw); stroke: var(--c1-raw); }
.wm-lockup .g-u1 { fill: var(--c2-ink); stroke: var(--c2-ink); }
.wm-lockup .g-u2 { fill: var(--c3-ink); stroke: var(--c3-ink); }
.wm-lockup .g-u3 { fill: var(--c4-ink); stroke: var(--c4-ink); }
.wm-lockup .g-t4 { fill: var(--c1-ink); stroke: var(--c1-ink); }
.wm-lockup .g-dot { fill: var(--c4-raw); stroke: var(--c4-raw); }

@keyframes logoLetterHop {
  0%, 10%, 100% { transform: translateY(0); }
  4% { transform: translateY(-135px); }
  7% { transform: translateY(18px); }
}
.wm-lockup.is-animated-lockup path {
  animation: logoLetterHop 7.2s cubic-bezier(.34, 1.56, .64, 1) infinite;
  animation-delay: calc(var(--li, 0) * 85ms);
}

@keyframes ouuutDrop {
  0% { opacity: 0; transform: translateY(-480px); }
  64% { opacity: 1; transform: translateY(34px); }
  82% { opacity: 1; transform: translateY(-16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.wm-lockup.is-drop-wordmark { cursor: pointer; }
.wm-lockup.is-drop-wordmark.is-dropping path {
  animation: ouuutDrop 0.92s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--li, 0) * 95ms);
}

/* ============================================================================
   Header & Scroll Progress Rule (Sticky 62px, NO Wire Toggle Button)
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--hd-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--wire-strong);
}
.hd-inner {
  max-width: 1380px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.hanko-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  background: var(--seal-fill);
  color: var(--seal-fg);
  border: 1px solid var(--c1-raw);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  white-space: nowrap;
}
.hanko-seal.is-outline {
  background: transparent;
  color: var(--c1-ink);
  border: 1.5px solid var(--c1-raw);
  padding: 2px 7px;
}

.tab-nav {
  display: inline-flex;
  align-items: stretch;
  height: 100%;
  gap: clamp(10px, 2.2vw, 28px);
}
.tab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.tab-link:hover,
.tab-link.is-active { color: var(--ink); }
.tab-link .tab-num { font-size: 10.5px; opacity: 0.72; }
.tab-link.is-active .tab-num { color: var(--c1-ink); opacity: 1; font-weight: 700; }
.tab-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c1-raw);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.tab-link.is-active::after { transform: scaleX(1); }

.hd-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
/* Borderless 44x44 Pure Sun/Moon Icon Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease;
}
.theme-toggle:hover { color: var(--ink); }
.theme-icon { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

.scroll-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 2px;
  background: linear-gradient(90deg, var(--c1-raw), var(--c4-raw), var(--c3-raw), var(--c2-raw));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 5;
}

/* ============================================================================
   3-Screen Viewport Structure
   ============================================================================ */
.screen-sec {
  position: relative;
  width: 100%;
  scroll-margin-top: var(--hd-h);
  scroll-snap-align: start;
  border-bottom: 1.5px solid var(--wire);
}
.screen-sec:last-of-type { border-bottom: 0; }
.screen-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px var(--pad);
}
@media (min-width: 1024px) and (min-height: 700px) {
  .screen-sec {
    height: calc(100svh - var(--hd-h));
    min-height: 640px;
    display: flex;
    flex-direction: column;
  }
  .screen-wrap {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
}

/* ============================================================================
   SCREEN 1 · 播放室 (Washi Editorial Folio + Playlist)
   ============================================================================ */
.s1-wrap { gap: 10px; justify-content: space-between; }
.s1-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: stretch;
}
.s1-grid > *, .s3-magazine > * { min-width: 0; max-width: 100%; }

.s1-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}
.washi-folio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1.5px solid var(--wire-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.folio-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.folio-mark i {
  width: 8px;
  height: 8px;
  background: var(--c1-raw);
  display: inline-block;
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--washi-sumi);
  border: 1.5px solid var(--wire-strong);
  overflow: hidden;
  user-select: none;
}
.s1-main .stage-frame {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(240px, 49vh, 460px);
  width: 100%;
  align-self: flex-start;
}
.stage-video,
.stage-img {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity .25s ease;
}
.stage-video {
  object-fit: contain;
  background: #292C29;
  cursor: pointer;
}
.stage-img { object-fit: cover; }

.stage-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  background: transparent;
  cursor: pointer;
  transition: opacity .22s ease, background-color .22s ease;
}
.stage-play-overlay:hover {
  background: rgba(41, 44, 41, 0.18);
}
.stage-frame.is-playing .stage-play-overlay,
.stage-frame.is-upcoming-preview .stage-play-overlay,
.stage-frame.is-playing .stage-top-hud,
.stage-frame.is-upcoming-preview .stage-top-hud {
  opacity: 0;
  pointer-events: none;
}
.stage-play-circle {
  width: 54px;
  height: 54px;
  border: 1.5px solid #F1EEE5;
  background: var(--seal-fill);
  color: #F1EEE5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease;
}
.stage-play-overlay:hover .stage-play-circle {
  transform: scale(1.06);
  background: #A95649;
}
.stage-play-tri {
  font-size: 19px;
  line-height: 1;
  margin-left: 3px;
}

.stage-top-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity .22s ease;
}
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(41, 44, 41, 0.88);
  color: #F1EEE5;
  border: 1px solid #D8D6CB;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: opacity .2s ease;
}
.stage-pill .ep-dot {
  width: 6px;
  height: 6px;
  background: var(--c4-raw);
}
.stage-pill.is-latest {
  background: var(--seal-fill);
  border-color: #F1EEE5;
  color: #F1EEE5;
  font-family: var(--font-serif);
  font-weight: 700;
}

.stage-sub-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.stage-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 92%;
  padding: 6px 14px;
  background: rgba(41, 44, 41, 0.9);
  color: #F1EEE5;
  border-left: 4px solid var(--sub-c, #A95649);
  font-size: 13.5px;
  line-height: 1.35;
}
.stage-sub-spk {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sub-ink, #F1EEE5);
  flex-shrink: 0;
}
.stage-sub-txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-upcoming-card {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--bg);
  background-image:
    linear-gradient(to right, var(--wire-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--wire-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: clamp(20px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.up-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--c1-ink);
}
.up-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.2;
  color: var(--ink);
}
.up-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.up-desc {
  margin: 4px 0 8px;
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.up-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.now-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.now-ep-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-latest {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--c1-raw);
  color: var(--c1-ink);
  font-weight: 700;
}
.now-title {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.find-inline-link {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c2-ink);
  padding: 6px 11px;
  border: 1.5px solid var(--wire-strong);
  background: var(--surface);
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.find-inline-link:hover {
  border-color: var(--c1-raw);
  color: var(--c1-ink);
}

/* Transport & 96-Bar Washi Waveform Scrubber */
.transport-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1.5px solid var(--wire);
}
.wave-scrubber {
  position: relative;
  height: 36px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  cursor: pointer;
  padding: 2px 0;
}
.w-bar {
  flex: 1;
  min-width: 1px;
  background: color-mix(in srgb, var(--ink) 24%, transparent);
  transition: background-color .1s ease;
}
.w-bar.is-played { background: var(--c1-raw); }
.wave-scrubber:hover .w-bar:not(.is-played) {
  background: color-mix(in srgb, var(--ink) 40%, transparent);
}
@keyframes waveBreath {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(1.16); opacity: 1; }
}
.wave-scrubber.is-idle .w-bar {
  transform-origin: bottom;
  animation: waveBreath 5.2s ease-in-out infinite;
  animation-delay: calc(var(--bi, 0) * 45ms);
}
.wave-chapter-ticks {
  position: relative;
  height: 5px;
  margin-top: -4px;
  pointer-events: none;
}
.ch-tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 5px;
  background: var(--c2-raw);
  opacity: 0.72;
}
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ctrl-left, .ctrl-right { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctrl-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--wire-strong);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.ctrl-btn:hover { border-color: var(--c1-raw); background: var(--surface); }
.ctrl-btn.is-play {
  width: 44px;
  height: 36px;
  background: var(--seal-fill);
  border-color: var(--c1-raw);
  color: #F1EEE5;
  font-size: 13px;
}
.ctrl-btn.is-play:hover { background: #A95649; }
.ctrl-btn.is-active {
  background: var(--surface);
  border-color: var(--c2-raw);
  color: var(--c2-ink);
  font-weight: 700;
}
.time-readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.time-readout strong { color: var(--ink); font-weight: 700; }

/* Right Playlist Queue */
.s1-queue {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1.5px solid var(--wire-strong);
  background: var(--card);
}
.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--wire-strong);
}
.playlist-label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.filter-pills { display: inline-flex; gap: 4px; }
.f-pill {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid transparent;
  cursor: pointer;
}
.f-pill:hover { color: var(--ink); }
.f-pill.is-active {
  color: var(--seal-fg);
  background: var(--seal-fill);
  border-color: var(--c1-raw);
  font-weight: 700;
}
.ep-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ep-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--wire);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, opacity .16s ease;
}
.ep-row:hover { background: var(--surface); }
.ep-row.is-active {
  background: color-mix(in srgb, var(--c1-raw) 10%, var(--surface));
  border-left-color: var(--c1-raw);
}
.ep-row.is-upcoming { opacity: 0.78; }
.ep-row.is-upcoming:hover,
.ep-row.is-upcoming.is-previewing {
  opacity: 1;
  background: var(--surface);
}
.ep-row.is-upcoming.is-previewing {
  border-left-color: var(--c2-raw);
}
.ep-row-num {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ep-row.is-published .ep-row-num { color: var(--ink); }
.ep-row.is-active .ep-row-num { color: var(--c1-ink); }
.ep-row-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep-row-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-row-hook {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ep-row-dur { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c1-raw) 55%, transparent); opacity: 0.9; }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c1-raw) 0%, transparent); opacity: 1; }
}
.live-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c1-ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--c1-raw);
  display: inline-block;
  animation: dotPulse 2.8s ease-in-out infinite;
}
.upcoming-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px dashed var(--wire-strong);
  padding: 2px 6px;
  white-space: nowrap;
}

@keyframes cueFloat {
  0%, 100% { transform: translateY(0); opacity: 0.78; }
  50% { transform: translateY(3px); opacity: 1; }
}
.scroll-cue { display: flex; justify-content: center; padding-top: 4px; }
.scroll-cue a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: inline-block;
  animation: cueFloat 2.8s ease-in-out infinite;
}
.scroll-cue a:hover { color: var(--ink); }

/* ============================================================================
   SCREEN 2 · Washi Draw.io 制作流程工程图
   ============================================================================ */
.sec-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.sec-h2 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
}
.s2-wrap { justify-content: center; gap: 12px; }
.s2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.drawio-canvas-frame {
  position: relative;
  flex: 0 1 auto;
  border: 1.5px solid var(--wire-strong);
  background-color: var(--card);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawio-svg { width: 100%; height: auto; max-height: 410px; display: block; }
.dio-node { cursor: pointer; transition: opacity .18s ease; }
.dio-node .dio-box {
  fill: var(--bg);
  stroke: var(--wire-strong);
  stroke-width: 1.6;
  transition: stroke .26s ease, fill .26s ease;
}
.dio-node:hover .dio-box,
.dio-node.is-selected .dio-box {
  stroke: var(--node-c, var(--c1-raw));
  stroke-width: 2.5;
  fill: color-mix(in srgb, var(--node-c, var(--c1-raw)) 12%, var(--surface));
}
@keyframes wireFlow {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}
.dio-flow-overlay {
  fill: none;
  stroke: var(--c3-raw);
  stroke-width: 2;
  stroke-dasharray: 8 28;
  stroke-linecap: square;
  opacity: 0.78;
  pointer-events: none;
  animation: wireFlow 2.8s linear infinite;
}
.dio-flow-overlay.is-pass { stroke: var(--c3-raw); opacity: 0.92; }
.dio-flow-overlay.is-retry { stroke: var(--c1-raw); opacity: 0.78; animation-duration: 3.4s; }
.dio-zone {
  fill: color-mix(in srgb, var(--surface) 45%, transparent);
  stroke: var(--wire-strong);
  stroke-width: 1;
  stroke-dasharray: 5 4;
}
.dio-zone-lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; fill: var(--muted); }
.dio-step { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--node-ink, var(--c1-ink)); }
.dio-title { font-family: var(--font-serif); font-size: 15.5px; font-weight: 700; fill: var(--ink); }
.dio-sub { font-family: var(--font-sans); font-size: 12px; fill: var(--muted); }
.dio-wire { fill: none; stroke: var(--wire-strong); stroke-width: 1.6; }
.dio-wire-pass { fill: none; stroke: var(--c3-ink); stroke-width: 2; }
.dio-wire-retry { fill: none; stroke: var(--c1-ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dio-lbl-bg { fill: var(--surface); stroke: var(--wire-strong); stroke-width: 1; }
.dio-lbl { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink); }
.dio-lbl.is-pass { fill: var(--c3-ink); font-weight: 700; }
.dio-lbl.is-retry { fill: var(--c1-ink); font-weight: 700; }
.dio-port { fill: var(--bg); stroke: var(--wire-strong); stroke-width: 1.5; }

.pipeline-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border: 1.5px solid var(--wire-strong);
  border-left: 5px solid var(--c1-raw);
  background: var(--surface);
  font-size: 13.5px;
}
.pipeline-course-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1.5px solid var(--wire);
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.btn-arch {
  position: relative;
  padding: 9px 18px;
  min-height: 40px;
  border: 1.5px solid var(--wire-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.btn-arch::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--wire);
  pointer-events: none;
}
.btn-arch:hover {
  border-color: var(--btn-c, var(--c1-raw));
  background: color-mix(in srgb, var(--btn-c, var(--c1-raw)) 12%, var(--card));
}
.btn-arch.is-seal {
  background: var(--seal-fill);
  border-color: var(--c1-raw);
  color: var(--seal-fg);
}
.btn-arch.is-seal::after { border-color: rgba(241, 238, 229, 0.32); }
.btn-dot { width: 7px; height: 7px; background: var(--btn-c, var(--c1-raw)); display: inline-block; }

/* ============================================================================
   SCREEN 3 · 主播、3×2 渠道矩阵与透明页脚
   ============================================================================ */
.s3-wrap { justify-content: space-between; gap: 14px; }
.s3-magazine {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 32px;
  align-items: center;
}
.s3-left { display: flex; flex-direction: column; gap: 14px; }
.s3-h1 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.15;
}
.s3-lead { margin: 0; font-size: 14.5px; color: var(--muted); }
.s3-hosts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.host-card {
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--wire-strong);
  border-left: 5px solid var(--hl-c, var(--c2-raw));
}
.host-line-name { font-family: var(--font-serif); font-weight: 700; font-size: 16px; color: var(--ink); }
.host-line-role { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--wire);
  border-bottom: 1.5px solid var(--wire-strong);
  background: var(--card);
  font-size: 13px;
  transition: border-color .35s ease, background-color .35s ease;
}
.contact-item.is-glow {
  border-color: var(--c1-raw);
  background: color-mix(in srgb, var(--c1-raw) 10%, var(--surface));
}
.contact-item.is-glow .contact-k { color: var(--c1-ink); }
.contact-k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.contact-v { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 500; }
.contact-v a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ch-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ch-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 0.88;
  padding: 16px;
  border: 1.5px solid var(--wire-strong);
  background: var(--card);
  transition: border-color .35s ease, background-color .35s ease, transform .35s ease;
}
.ch-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ch-c, var(--c1-raw));
  opacity: 0.6;
  transition: opacity .35s ease, height .35s ease;
}
.ch-tile:hover,
.ch-tile.is-glow {
  border-color: var(--ch-c, var(--c1-raw));
  background: color-mix(in srgb, var(--ch-c, var(--c1-raw)) 10%, var(--surface));
  transform: translateY(-2px);
}
.ch-tile:hover::before,
.ch-tile.is-glow::before { opacity: 1; height: 4px; }
.ch-tile-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.ch-icon { width: 20px; height: 20px; color: var(--ch-ink, var(--ink)); }
.ch-arrow { font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: transform .3s ease, color .3s ease; }
.ch-tile:hover .ch-arrow,
.ch-tile.is-glow .ch-arrow { color: var(--ch-ink, var(--ink)); transform: translate(2px, -2px); }
.ch-name { font-family: var(--font-serif); font-weight: 700; font-size: 16px; margin-top: 8px; }
.ch-handle { font-family: var(--font-mono); font-size: 11px; color: var(--ch-ink, var(--muted)); margin-top: 2px; word-break: break-all; }
.ch-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }

.s3-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1.5px solid var(--wire-strong);
  background: transparent;
  flex-wrap: wrap;
}
.footer-sister-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================================
   Transcript Slide-Over Drawer
   ============================================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(41, 44, 41, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.transcript-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 120;
  width: min(480px, 100vw);
  background: var(--bg);
  border-left: 1.5px solid var(--wire-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.transcript-drawer.open { transform: translateX(0); }
.td-head {
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--wire-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.td-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.td-turn {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--wire);
  border-left: 4px solid var(--turn-c, var(--c1-raw));
  background: var(--card);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background-color .15s ease;
}
.td-turn:hover { background: var(--surface); }
.td-turn.is-active {
  background: color-mix(in srgb, var(--turn-c, var(--c1-raw)) 14%, var(--surface));
}
.td-meta { font-family: var(--font-mono); font-size: 11px; color: var(--turn-ink, var(--muted)); line-height: 1.4; font-weight: 700; }
.td-txt { font-size: 13.5px; line-height: 1.55; color: var(--ink); }

/* ============================================================================
   Toast Banner
   ============================================================================ */
.site-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 96;
  max-width: 420px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--wire-strong);
  border-left: 6px solid var(--toast-c, var(--c1-raw));
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.site-toast.is-shown { opacity: 1; transform: translateY(0); }

/* ============================================================================
   Standalone Episode Detail Pages (/episodes/<slug>/)
   ============================================================================ */
.ep-detail-sec { padding: 24px 0 56px; min-height: calc(100vh - var(--hd-h)); }
.ep-detail-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; gap: 22px; }
.ep-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--wire-strong);
}
.ep-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ep-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}
.ep-theory-box {
  padding: 18px;
  border: 1.5px solid var(--wire-strong);
  border-left: 6px solid var(--c1-raw);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-summary-card {
  padding: 16px 18px;
  border: 1.5px solid var(--wire-strong);
  background: var(--card);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}
.ep-chapters-card {
  padding: 16px 18px;
  border: 1.5px solid var(--wire-strong);
  background: var(--card);
}
.ep-chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ep-chapter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--wire);
  background: var(--surface);
  text-align: left;
  font-size: 13px;
  transition: border-color .16s ease, background-color .16s ease;
}
.ep-chapter-btn:hover { border-color: var(--c1-raw); }
.ep-chapter-ts { font-family: var(--font-mono); font-size: 11px; color: var(--c1-ink); font-weight: 700; flex-shrink: 0; }
.ep-ssr-transcript {
  background: var(--card);
  border: 1.5px solid var(--wire-strong);
  padding: 18px;
}
.ep-ssr-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ep-nav-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1.5px solid var(--wire);
}

/* Scroll Reveals */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--rev-d, 0ms);
}
html.has-js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ============================================================================
   Responsive Mobile (390px / 375px, ovx = 0)
   ============================================================================ */
.dio-mobile-hint { display: none; }
@media (max-width: 1080px) {
  .s1-grid, .s3-magazine, .ep-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .s1-queue { max-height: 360px; }
  .ch-grid-3x2 .ch-tile { aspect-ratio: auto; min-height: 130px; }
}
@media (max-width: 900px) {
  .hanko-seal { display: none; }
  .tab-link .tab-num { display: none; }
  .tab-nav { gap: 12px; }
  .tab-link { font-size: 11.5px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .drawio-canvas-frame {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .drawio-svg { min-width: 760px; }
  .dio-mobile-hint {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-align: center;
  }
}
@media (max-width: 600px) {
  .hd-inner { padding: 0 12px; gap: 8px; }
  .wm-lockup { height: 15px; }
  .tab-nav { gap: 8px; }
  .tab-link { font-size: 11px; padding: 0 2px; }
  .s3-hosts-row { grid-template-columns: 1fr; }
  .ch-grid-3x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stage-sub-pill { max-width: 100%; padding: 5px 10px; }
  .stage-sub-txt { white-space: normal; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .wave-scrubber { gap: 2px; }
  .w-bar:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-lockup.is-animated-lockup path,
  .wm-lockup.is-drop-wordmark.is-dropping path,
  .wave-scrubber.is-idle .w-bar,
  .live-dot,
  .scroll-cue a,
  .dio-flow-overlay {
    animation: none !important;
  }
  *, *::before, *::after {
    transition: none !important;
  }
  html.has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
