:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0d0e0c;
  --paper: #f4f2e8;
  --yellow: #f4df24;
  --line: rgba(244, 242, 232, 0.14);
  --muted: rgba(244, 242, 232, 0.5);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --display: "Syne", Arial Black, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--black); color: var(--paper); font-family: var(--mono); }
a { color: inherit; }
button, video { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); color: #000; padding: .75rem 1rem; font-size: .7rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.scanlines { pointer-events: none; position: fixed; inset: 0; z-index: 80; opacity: .035; background: repeating-linear-gradient(0deg,#fff 0,#fff 1px,transparent 1px,transparent 4px); }

.site-header { position: sticky; top: 0; z-index: 50; height: 80px; padding: 0 clamp(1rem, 3vw, 2rem); display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(5,5,5,.96); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; overflow: hidden; border: 1px solid rgba(244,223,36,.65); background: var(--yellow); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.brand-copy { min-width: 0; display: grid; gap: .25rem; }
.brand-copy strong { font-family: var(--display); font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.brand-copy small { color: var(--yellow); font-size: .52rem; letter-spacing: .24em; white-space: nowrap; }
.return-link { margin-left: auto; height: 42px; display: inline-flex; align-items: center; gap: .55rem; padding: 0 .8rem; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .58rem; letter-spacing: .14em; transition: border-color .2s, color .2s; }
.return-link:hover, .return-link:focus-visible { border-color: var(--yellow); color: var(--yellow); outline: none; }
.return-short { display: none; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner, .archive { width: min(100%, 1500px); margin: 0 auto; padding-left: clamp(1rem, 3vw, 2rem); padding-right: clamp(1rem, 3vw, 2rem); }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.orbit { position: absolute; border: 1px solid rgba(244,223,36,.1); border-radius: 50%; }
.orbit-large { width: 680px; height: 680px; right: -260px; top: -330px; }
.orbit-small { width: 260px; height: 260px; right: 4vw; top: 2rem; }
.channel-label { width: max-content; max-width: 100%; margin: 0; padding: .65rem .8rem; border: 1px solid rgba(244,223,36,.32); background: rgba(244,223,36,.045); color: var(--yellow); font-size: .55rem; letter-spacing: .2em; }
.live-dot { display: inline-block; width: .48rem; height: .48rem; margin-right: .5rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,.75); }
h1 { margin: 1.7rem 0 0; max-width: 1000px; font-family: var(--display); font-size: clamp(4rem, 12vw, 8.2rem); line-height: .82; letter-spacing: -.075em; }
h1 span { color: var(--yellow); }
.hero-note { margin-top: clamp(2rem, 5vw, 3.2rem); max-width: 860px; padding-left: 1.2rem; border-left: 2px solid var(--yellow); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: end; }
.hero-note > p { margin: 0; max-width: 650px; color: var(--muted); font-size: clamp(.68rem, 1.2vw, .86rem); line-height: 1.8; }
.channel-stats { margin: 0; display: flex; gap: 1.5rem; }
.channel-stats div { display: grid; gap: .35rem; }
.channel-stats dt { color: rgba(244,242,232,.3); font-size: .48rem; letter-spacing: .16em; }
.channel-stats dd { margin: 0; color: var(--paper); font-size: .62rem; letter-spacing: .08em; white-space: nowrap; }

.archive { padding-top: clamp(2rem, 4vw, 3.2rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.section-heading { min-height: 44px; display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid var(--line); color: rgba(244,242,232,.35); font-size: .52rem; letter-spacing: .17em; }
.section-heading h2 { margin: 0; color: var(--paper); font-size: .62rem; letter-spacing: .22em; }
.section-heading > span:last-child { margin-left: auto; }
.signal-glyph { color: var(--yellow); font-size: 1rem; }
.status-panel { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 1rem; border: 1px solid var(--line); background: var(--panel); text-align: center; color: rgba(244,242,232,.4); font-size: .62rem; letter-spacing: .14em; }
.status-panel[hidden] { display: none; }
.tuner { width: 28px; height: 28px; border: 2px solid rgba(244,223,36,.2); border-top-color: var(--yellow); border-radius: 50%; animation: tune .8s linear infinite; }
@keyframes tune { to { transform: rotate(360deg); } }
.status-error { border-color: rgba(251,146,60,.35); color: #fdba74; }
.status-error p, .status-empty p { max-width: 520px; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.7; letter-spacing: 0; }
.status-error button { border: 1px solid rgba(251,146,60,.5); background: transparent; color: #fdba74; padding: .75rem 1rem; cursor: pointer; font-size: .55rem; letter-spacing: .14em; }
.status-empty { border-style: dashed; }
.status-empty strong { color: var(--paper); font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2.2rem); letter-spacing: -.02em; }
.empty-icon { color: var(--yellow); font-size: 2rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.video-card:hover, .video-card:focus-within { border-color: rgba(244,223,36,.7); }
.video-frame { position: relative; aspect-ratio: 9 / 16; max-height: 78vh; overflow: hidden; background: #000; }
.video-frame video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.signal-number { pointer-events: none; position: absolute; left: .75rem; top: .75rem; z-index: 2; padding: .35rem .5rem; border: 1px solid rgba(0,0,0,.25); background: var(--yellow); color: #000; font-size: .48rem; font-weight: 700; letter-spacing: .15em; }
.video-copy { padding: 1rem; }
.video-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; color: rgba(244,242,232,.38); font-size: .48rem; letter-spacing: .12em; }
.video-meta .av { margin-left: auto; color: var(--yellow); }
.video-card h3 { margin: .85rem 0 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.06; letter-spacing: -.025em; overflow-wrap: anywhere; }
.video-card p { margin: .8rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { min-height: 86px; padding: 1.5rem clamp(1rem, 3vw, 2rem); display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: rgba(244,242,232,.28); font-size: .52rem; letter-spacing: .15em; }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { height: 70px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy small { font-size: .44rem; }
  .return-long { display: none; }
  .return-short { display: inline; }
  .hero-note { grid-template-columns: 1fr; gap: 1.5rem; }
  .channel-stats { justify-content: flex-start; }
  .section-heading > span:last-child { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .video-frame { max-height: 72vh; }
  footer { flex-direction: column; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tuner { animation: none; }
}
