/* ====================================================================
   万物 TV — global styles. Honors Probe DS tokens; layers in TV studio
   warm-dark surface palette + media-player chrome.
   ==================================================================== */

:root {
  /* TV-mode overlay tokens. Layered ON TOP of tokens.css. */
  --tv-bg:           #0F0B08;   /* warm near-black, page */
  --tv-surface:      #16110D;   /* card surfaces */
  --tv-surface-2:    #1F1812;   /* elevated cards */
  --tv-line:         #2A2118;   /* hairlines on dark */
  --tv-line-strong:  #3A2D20;
  --tv-fg:           #FAFAF7;   /* primary text on dark */
  --tv-fg-muted:     rgba(250,250,247,0.62);
  --tv-fg-faint:     rgba(250,250,247,0.40);
  --tv-fg-dim:       rgba(250,250,247,0.22);
  --tv-accent:       var(--probe-orange);
  --tv-live:         #3BD671;
  --tv-live-glow:    rgba(59,214,113,0.55);
}

/* page background variants — toggleable via Tweaks */
body[data-surface="warmDark"] {
  --tv-bg: #0F0B08; --tv-surface:#16110D; --tv-surface-2:#1F1812;
  --tv-line:#2A2118; --tv-line-strong:#3A2D20;
  --tv-fg:#FAFAF7; --tv-fg-muted:rgba(250,250,247,0.62);
  --tv-fg-faint:rgba(250,250,247,0.40); --tv-fg-dim:rgba(250,250,247,0.22);
}
body[data-surface="midnight"] {
  --tv-bg:#08070A; --tv-surface:#11101A; --tv-surface-2:#181724;
  --tv-line:#23222F; --tv-line-strong:#2F2D3F;
  --tv-fg:#FAFAF7; --tv-fg-muted:rgba(250,250,247,0.62);
  --tv-fg-faint:rgba(250,250,247,0.40); --tv-fg-dim:rgba(250,250,247,0.22);
}
body[data-surface="paper"] {
  --tv-bg:#FAFAF7; --tv-surface:#FFFFFF; --tv-surface-2:#FBF5F0;
  --tv-line:#E7E1D8; --tv-line-strong:#D6CCC0;
  --tv-fg:#1A1A1A; --tv-fg-muted:rgba(26,26,26,0.62);
  --tv-fg-faint:rgba(26,26,26,0.40); --tv-fg-dim:rgba(26,26,26,0.18);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  background: var(--tv-bg);
  color: var(--tv-fg);
  font-family: 'Noto Sans SC', 'Noto Sans', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-feature-settings: "kern" 1, "ss01" 1;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--dur-base) var(--ease-organic), color var(--dur-base) var(--ease-organic);
}

/* ---- Layout shell ---- */
.tv-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
@media (max-width: 720px) {
  .tv-shell { padding: 16px 16px 64px; }
}

/* ====================================================================
   HERO / TOP STATE BAR
   ==================================================================== */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--tv-line);
}
.hero-brand { display: flex; align-items: center; gap: 16px; min-width: 0; flex-shrink: 0; }
.hero-mark {
  width: 68px; height: 68px;
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #1f1812 0%, #15110D 100%);
  border: 1px solid var(--tv-line-strong);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,117,43,0.08) inset;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.hero-mark::after {
  /* faint scanline to read as 'TV' chrome */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  pointer-events: none; opacity: 0.6;
}
body[data-surface="paper"] .hero-mark {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FBF5F0 100%);
  border-color: var(--tv-line);
}
.hero-mark-img {
  width: 90%; height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255,117,43,0.25));
  position: relative; z-index: 1;
}
.hero-divider {
  width: 1px; align-self: stretch;
  margin: 6px 4px;
  background: linear-gradient(180deg, transparent, var(--tv-line-strong) 25%, var(--tv-line-strong) 75%, transparent);
  flex-shrink: 0;
}
.hero-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-title {
  display: flex; align-items: baseline; gap: 12px;
  white-space: nowrap;
  line-height: 1;
}
.hero-title-zh {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tv-fg);
  background: linear-gradient(180deg, #FFFFFF 0%, #F1E5DA 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body[data-surface="paper"] .hero-title-zh {
  background: linear-gradient(180deg, #1A1A1A 0%, #3E2C1F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title-en {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--tv-accent);
  padding: 3px 8px;
  border: 1px solid rgba(255,117,43,0.35);
  border-radius: 4px;
  text-transform: uppercase;
}
.hero-sub {
  font-size: 12.5px;
  color: var(--tv-fg-muted);
  letter-spacing: 0.04em;
  display: flex; gap: 8px; align-items: center;
  white-space: nowrap;
}
.hero-sub-sep { opacity: 0.4; }
.hero-status { flex-wrap: wrap; }
@media (max-width: 1100px) {
  .hero { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .hero-title-en { display: none; }
  .hero-divider { display: none; }
  .hero-mark { width: 52px; height: 52px; border-radius: 12px; }
  .hero-title-zh { font-size: 24px; }
  .hero-sub { flex-wrap: wrap; white-space: normal; }
}
.hero-status {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  color: var(--tv-fg);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-organic);
}
.chip:hover { border-color: var(--tv-line-strong); }
.chip svg { width: 14px; height: 14px; opacity: 0.85; }
.chip strong { color: var(--tv-fg); font-weight: 600; }
.chip .label { color: var(--tv-fg-muted); }
.chip-live { gap: 7px; }
.chip-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tv-live);
  box-shadow: 0 0 0 0 var(--tv-live-glow);
  animation: pulse-live 2s var(--ease-organic) infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 var(--tv-live-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(59,214,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,214,113,0); }
}
.chip-host {
  padding-left: 6px;
}
.chip-host .avatar {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--gradient-flame);
  font-size: 12px; font-weight: 600; color: #fff;
  display: grid; place-items: center;
  letter-spacing: -0.01em;
}

/* tabs row */
.nav-tabs {
  display: flex; gap: 4px; align-items: center;
  margin-top: 16px;
  padding-bottom: 0;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  height: 38px; padding: 0 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--tv-fg-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-organic);
}
.tab:hover { color: var(--tv-fg); background: var(--tv-surface); }
.tab.active {
  color: var(--tv-fg);
  background: var(--tv-surface);
  border-color: var(--tv-line);
}
.tab svg { width: 15px; height: 15px; }
.tab .badge {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,117,43,0.14); color: var(--tv-accent);
  letter-spacing: 0.05em;
}
.tab[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ====================================================================
   MAIN GRID
   ==================================================================== */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  margin-top: 28px;
}
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr; }
}
.col-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ====================================================================
   PLAYER CARD
   ==================================================================== */
.player {
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6);
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  isolation: isolate;
}

/* anchor portrait (placeholder) */
.anchor {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 35%, #2a1a0e 0%, #110a05 55%, #000 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.anchor::before {
  /* studio light beam */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 30%, rgba(255,180,110,0.10), transparent 70%);
  pointer-events: none;
}
.anchor-figure {
  width: 56%; max-width: 540px;
  aspect-ratio: 1;
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
  animation: gentle-bob 6s var(--ease-organic) infinite;
}
@keyframes gentle-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.005); }
}
/* studio scanline / vignette */
.anchor-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 50%, transparent 50%, rgba(0,0,0,0.45) 100%);
}
.anchor-noise {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* video floating badges */
.video-badges {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 3; pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  height: 30px; padding: 0 12px;
  background: rgba(15, 11, 8, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  color: #FAFAF7;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 999px;
  pointer-events: auto;
}
.badge-live { padding-left: 9px; text-transform: uppercase; }
.badge-live .dot { background: #2bbf66; box-shadow: 0 0 8px rgba(43,191,102,0.7); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(255,51,68,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,51,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,51,68,0); }
}
.badge-topic {
  background: rgba(255,117,43,0.20);
  border-color: rgba(255,117,43,0.40);
  color: #FFD9B6;
}
.badge-topic .sep { opacity: 0.5; margin: 0 4px; }

/* bitrate pill bottom-right of video, above subtitle gradient */
.bitrate {
  position: absolute; right: 16px; bottom: 92px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 4px 9px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  display: flex; align-items: center; gap: 6px;
}
.bitrate .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--tv-live);
}

/* subtitle bar overlaid on video */
.sub-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 80px 32px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 38%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.sub-line {
  font-size: var(--caption-size, 22px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255,255,255,0.94);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.sub-word {
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-organic), transform var(--dur-fast) var(--ease-organic), text-shadow var(--dur-fast) var(--ease-organic);
}
.sub-word.spoken { color: rgba(255,255,255,0.55); }
.sub-word.current {
  color: var(--tv-accent);
  transform: scale(1.08);
  text-shadow: 0 0 18px rgba(255,117,43,0.6), 0 2px 10px rgba(0,0,0,0.5);
}

/* hover-fade controls */
.video-wrap .controls-overlay-hint {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---- controls bar (under video) ---- */
.controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 18px;
  background: var(--tv-surface);
  border-top: 1px solid var(--tv-line);
  color: var(--tv-fg);
}
@media (max-width: 640px) {
  .controls { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 12px; }
  .controls .ctl-time, .controls .ctl-right .opt-speed, .controls .ctl-right .opt-vol { display: none; }
}
.btn-play {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--gradient-flame);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,117,43,0.25), 0 6px 16px -6px rgba(255,117,43,0.55);
  transition: transform var(--dur-fast) var(--ease-organic);
}
.btn-play:hover { transform: scale(1.05); }
.btn-play:active { transform: scale(0.96); }
.btn-play svg { width: 16px; height: 16px; fill: #fff; }
.ctl-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tv-fg-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ctl-time .now { color: var(--tv-fg); }
.ctl-time .sep { margin: 0 4px; opacity: 0.55; }

/* progress bar */
.scrubber {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--tv-line-strong);
  cursor: pointer;
  display: flex; align-items: center;
}
.scrubber-track {
  position: relative; width: 100%; height: 100%;
  border-radius: 999px;
  overflow: hidden;
}
.scrubber-buffer {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
}
.scrubber-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--gradient-flame);
  border-radius: 999px;
}
.scrubber-thumb {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--tv-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity var(--dur-fast);
}
.scrubber:hover .scrubber-thumb,
.scrubber.dragging .scrubber-thumb { opacity: 1; }

.ctl-right { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--tv-fg-muted);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all var(--dur-fast) var(--ease-organic);
  position: relative;
}
.icon-btn:hover { color: var(--tv-fg); background: rgba(255,255,255,0.05); }
.icon-btn.active { color: var(--tv-accent); }
.icon-btn svg { width: 16px; height: 16px; }
.opt-speed {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  padding: 0 10px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--tv-line);
  background: transparent; color: var(--tv-fg-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-organic);
}
.opt-speed:hover { color: var(--tv-fg); border-color: var(--tv-line-strong); }
.opt-vol {
  display: flex; align-items: center; gap: 8px;
}
.vol-track {
  width: 70px; height: 4px;
  border-radius: 999px;
  background: var(--tv-line-strong);
  position: relative; cursor: pointer;
}
.vol-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  background: var(--tv-fg);
}

/* ====================================================================
   TRANSCRIPT PANEL
   ==================================================================== */
.transcript {
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.tx-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.tx-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tv-fg-muted);
  letter-spacing: 0.04em;
}
.tx-title svg { width: 15px; height: 15px; color: var(--tv-accent); }
.tx-toggle {
  display: flex; padding: 3px;
  background: var(--tv-bg);
  border: 1px solid var(--tv-line);
  border-radius: 999px;
}
.tx-toggle button {
  padding: 6px 14px;
  white-space: nowrap;
  font-size: 12px; font-weight: 500;
  border: none; background: transparent;
  color: var(--tv-fg-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-organic);
}
.tx-toggle button.active {
  background: var(--tv-surface-2);
  color: var(--tv-fg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.tx-current {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--tv-fg);
  min-height: 80px;
  display: flex; align-items: center;
}
.tx-current .word {
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-organic), transform var(--dur-fast) var(--ease-organic);
}
.tx-current .word.spoken { color: var(--tv-fg-faint); }
.tx-current .word.current {
  color: var(--tv-accent);
  transform: scale(1.04);
}
.tx-full {
  max-height: 320px; overflow-y: auto;
  padding-right: 8px;
  display: flex; flex-direction: column; gap: 14px;
}
.tx-sentence {
  font-size: 16px; line-height: 1.7;
  color: var(--tv-fg-muted);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-organic);
}
.tx-sentence:hover { color: var(--tv-fg); background: rgba(255,255,255,0.025); }
.tx-sentence.spoken { opacity: 0.5; }
.tx-sentence.current {
  color: var(--tv-fg);
  border-color: var(--tv-accent);
  background: rgba(255,117,43,0.06);
  box-shadow: 0 0 0 1px rgba(255,117,43,0.08), -3px 0 0 0 var(--tv-accent) inset;
  padding-left: 18px;
}
.tx-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--tv-line);
  font-size: 12px;
  color: var(--tv-fg-faint);
  letter-spacing: 0.04em;
}
.tx-meta .pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tx-meta .pair strong { color: var(--tv-fg-muted); font-weight: 500; }
.tx-meta .mono { font-family: var(--font-mono); color: var(--tv-fg-muted); }

/* scrollbar styling for full mode */
.tx-full::-webkit-scrollbar { width: 6px; }
.tx-full::-webkit-scrollbar-track { background: transparent; }
.tx-full::-webkit-scrollbar-thumb { background: var(--tv-line-strong); border-radius: 999px; }

/* ====================================================================
   UP NEXT CARD
   ==================================================================== */
.upnext {
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-organic);
  text-decoration: none;
}
.upnext:hover {
  border-color: var(--tv-line-strong);
  background: var(--tv-surface-2);
  transform: translateY(-1px);
}
.upnext .thumb {
  width: 80px; height: 80px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 40%, #3a2616 0%, #15100a 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.upnext .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 35% at 50% 38%, rgba(255,180,110,0.18), transparent 70%);
}
.upnext .thumb svg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -45%);
  width: 38px; height: 38px;
  color: rgba(255,180,110,0.85);
  filter: drop-shadow(0 2px 6px rgba(255,117,43,0.4));
}
.upnext-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upnext-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--tv-fg-muted);
  letter-spacing: 0.03em;
}
.upnext-countdown {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--tv-accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.upnext-countdown svg { width: 11px; height: 11px; }
.upnext-meta .topic-tag {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,117,43,0.10);
  color: var(--tv-accent);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.upnext-title {
  font-size: 16px; font-weight: 600;
  color: var(--tv-fg);
  line-height: 1.35;
  letter-spacing: -0.005em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.upnext-blurb {
  font-size: 13px;
  color: var(--tv-fg-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ====================================================================
   TIMELINE 24h
   ==================================================================== */
.timeline {
  background: var(--tv-surface);
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.timeline-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--tv-fg-muted);
  letter-spacing: 0.04em;
  padding: 0 4px 4px;
}
.timeline-head .now-mark {
  font-family: var(--font-mono);
  color: var(--tv-accent);
  font-size: 12px;
}
.timeline-list {
  display: flex; flex-direction: column;
  gap: 4px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}
.timeline-list::-webkit-scrollbar { width: 6px; }
.timeline-list::-webkit-scrollbar-track { background: transparent; }
.timeline-list::-webkit-scrollbar-thumb { background: var(--tv-line-strong); border-radius: 999px; }

.slot {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-organic);
  position: relative;
}
.slot:hover { background: rgba(255,255,255,0.025); }
body[data-density="dense"] .slot { height: 44px; }
.slot-time {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--tv-fg-faint);
  letter-spacing: 0.02em;
}
.slot-body {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.slot-color {
  width: 8px; height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--slot-color, var(--tv-accent));
}
.slot-name {
  font-size: 13px;
  color: var(--tv-fg);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.slot-chips {
  display: flex; gap: 5px; margin-left: auto;
  overflow: hidden;
}
.slot-chip {
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--tv-fg-faint);
  white-space: nowrap;
}
.slot.past { opacity: 0.55; }
.slot.past .slot-time { color: var(--tv-fg-dim); }
.slot.now {
  background: rgba(255,117,43,0.06);
  border-color: rgba(255,117,43,0.22);
  box-shadow: -3px 0 0 0 var(--tv-accent) inset;
  padding-left: 16px;
}
.slot.now .slot-time { color: var(--tv-accent); font-weight: 600; }
.slot.now .slot-name { font-weight: 500; }

/* tooltip */
.slot-tooltip {
  position: absolute;
  left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--tv-fg);
  width: 220px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0; transform: translate(-6px, -50%);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  z-index: 5;
}
.slot:hover .slot-tooltip { opacity: 1; transform: translate(0, -50%); }
.slot-tooltip-title { color: var(--tv-fg-muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

/* responsive: tighter timeline on mobile */
@media (max-width: 720px) {
  .slot { grid-template-columns: 50px 1fr; }
  .slot-chips { display: none; }
  .timeline-list { max-height: 360px; }
}

/* ====================================================================
   ANCHOR FACE — minimal SVG portrait of "小橙"
   ==================================================================== */
.anchor-face {
  width: 100%; height: 100%;
}
.anchor-talk {
  transform-origin: 50% 92%;
  animation: talking 0.42s steps(2, end) infinite;
}
@keyframes talking {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0.55); }
  100% { transform: scaleY(1); }
}

/* ====================================================================
   SECTION DIVIDER (between right-col cards)
   ==================================================================== */
.right-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--tv-fg-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0 4px;
  margin-bottom: -10px;
  white-space: nowrap;
}
.right-section-title > span:first-child { flex-shrink: 0; }
.right-section-title .line {
  flex: 1; height: 1px; background: var(--tv-line);
}

/* small util */
.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--tv-line-strong);
  color: var(--tv-fg-muted);
  background: var(--tv-bg);
  margin-left: 4px;
}


/* 5/10 Phase 1A r2: 完整露肩+丝巾 — 用 object-fit: contain 让 portrait 完整可见,
   .anchor 的 studio radial gradient 自然形成 TV 演播室左右暗角. */
.tv-live-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: 50% 50%;
  z-index: 2;
  background: transparent;
}
.tv-unmute-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.55) 100%);
  cursor: pointer;
  z-index: 5;
}
.tv-unmute-overlay button {
  background: var(--tv-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(255,117,43,0.55);
  cursor: pointer;
}
.tv-unmute-overlay button:hover { transform: translateY(-1px); }


/* 5/10 r3: TV 演播室背景 — xiaocheng.png 模糊放大铺底, 解决证件照效果两侧黑色 */
.anchor {
  background:
    radial-gradient(120% 80% at 50% 35%, rgba(42,26,14,0.85) 0%, rgba(17,10,5,0.92) 55%, rgba(0,0,0,0.95) 100%) !important;
}
.anchor::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url('assets/xiaocheng.png');
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.4) brightness(0.45);
  transform: scale(1.15);
  z-index: 1;
  pointer-events: none;
}
/* Make sure ::before (light beam) and video are above the backdrop */
.anchor::before { z-index: 1; }
.tv-live-video { z-index: 2; }
.anchor-vignette { z-index: 3; }
.anchor-noise { z-index: 4; }
.video-badges, .bitrate, .sub-bar { z-index: 6; }


/* 5/10 r4: 直接匹配 portrait video 源比例 (1252:1654 ≈ 3:4), 0 黑边. 手机全屏竖屏. */
.video-wrap {
  aspect-ratio: 3 / 4 !important;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 14px;
}
.tv-live-video {
  object-fit: cover !important;
  object-position: center !important;
}
/* video 现在铺满, 不需要 backdrop blur 了 */
.anchor::after { display: none !important; }

/* 桌面: 居中竖屏卡片, 不强占整宽; main-grid 调整让 left 列 narrower */
@media (min-width: 1100px) {
  .main-grid .col-left { max-width: 720px; }
  .video-wrap { max-width: 540px; }
}

/* 移动端 < 720px: 视频几乎全宽 + 圆角缩小, 沉浸感 */
@media (max-width: 720px) {
  .tv-shell { padding: 12px 8px 60px; }
  .video-wrap {
    border-radius: 10px;
    max-width: 100%;
  }
  .hero-region { padding-bottom: 12px; }
  .hero-status { gap: 6px; flex-wrap: nowrap; justify-content: center; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 4px; scrollbar-width: none; }
  .hero-status::-webkit-scrollbar { display: none; }
  .hero-status .chip { font-size: 12px; padding: 0 10px; height: 30px; gap: 5px; flex-shrink: 0; }
  .hero-status .chip svg { width: 12px; height: 12px; }
  .hero-status .chip-host .avatar { width: 18px; height: 18px; font-size: 10px; }
  /* 移动端时间线/接下来折叠到 player 下面, 不抢空间 */
  .main-grid { display: block; }
  .col-right { margin-top: 16px; }
  .col-right .right-section-title:first-of-type { margin-top: 8px; }
}

/* 字幕条字号在 portrait 容器下需要小一点 */
.sub-bar { font-size: clamp(13px, 2vw, 18px) !important; }


/* 5/10 r8 pre-launch: 移动端节目单滑动 + 全屏 hint */
@media (max-width: 720px) {
  .timeline-list {
    max-height: 60vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .col-right { padding-bottom: 24px; }
  .upnext { font-size: 14px; }
  /* 视频容器 hint: 提示用户可点击全屏 */
  .video-wrap { cursor: pointer; }
}

/* 桌面 timeline 也允许滚动避免过长 */
.timeline-list {
  max-height: 720px;
  overflow-y: auto;
}
.timeline-list::-webkit-scrollbar { width: 6px; }
.timeline-list::-webkit-scrollbar-track { background: transparent; }
.timeline-list::-webkit-scrollbar-thumb { background: rgba(255,117,43,0.3); border-radius: 3px; }
