/* HUMN NEWS: the graphics package. a calm, expensive broadcaster reporting the collapse.
   rule: corporate frame, cyberpunk only on the screens.
   - the frame (masthead, network bar, crawl, straps, lower thirds, section heads, footer) is black, graphite and led-white.
   - magenta and yellow work like the studio's light strips: thin lines and edges, never fills behind text.
     solid magenta only for live and lost. cyan only for the machine's voice.
   - glitch, scanlines, neon and the display face live inside screens: pictures, the dead signal, the leaderboard wall.
   - anything you read for more than a second (story headlines, decks, body, quotes) is inter, sentence case, three tones.
   one grammar for tv, the site, the x banner, og cards and thumbnails. the living spec is /style. */

:root {
  /* color: the frame */
  --k: #000; --bg: #05070b; --panel: #0c1118; --panel-2: #121925; --line: #1c2430; --line-2: #2a3446; --faint: #3a4557;
  --fg: #eef1f6; --text: #c3cad6; --dim: #8f99ab; --mute: #7f8a9d;   /* mute: 5:1 on every panel, for secondary text */
  --led: #e7edf6; --led-hi: #ffffff; --ink: #05070b;                  /* the strap plates: the studio's led wall */
  /* color: the light strips */
  --yel: #f9f002; --mag: #e01ad2;
  --cyan: #3ee4f0;                                                    /* the machine's voice, nothing else */
  /* type */
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 28px; --t-hero: clamp(56px, 10vw, 108px);
  --sans: "Inter", system-ui, -apple-system, sans-serif; --read: 640px;
  --cond: "Archivo Cond", "Arial Narrow", sans-serif-condensed, sans-serif;   /* the package: straps, tags, clocks, heads */
  --mono: "JetBrains Mono", ui-monospace, monospace;                            /* the machine */
  --disp: "Dela Gothic One", "Arial Black", sans-serif;                         /* the ident, and screens */
  /* space + shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r1: 2px; --r2: 3px; --rp: 999px;
  --tap: 44px;
  /* motion: broadcast transitions. a wipe or a slide, about 200ms. no glitch in the frame. */
  --cut: 210ms; --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--t-md); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--led); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yel); outline-offset: 2px; border-radius: var(--r1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- voices ---------- */
/* the package voice: condensed caps, short. labels, tags, times. */
.label, .kind { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); line-height: 1.3; }
.kind.sponsored { color: var(--mute); }
/* the machine: mono, cyan, lowercase. only the machine speaks like this. */
.machine { font-family: var(--mono); color: var(--cyan); font-size: var(--t-sm); }
.machine.tag::before { content: "HUMN ▸ "; opacity: .7; }
.hl { font-family: var(--sans); font-weight: 760; letter-spacing: -.022em; color: var(--fg); }
.kick { display: flex; gap: var(--s2) var(--s3); align-items: center; flex-wrap: wrap; }
.cond { font-family: var(--cond); }
.tnum { font-variant-numeric: tabular-nums; }

/* the verdict stamp (desk, cards): solid magenta for lost, an led plate with a yellow edge for won, an outline for unclear */
.verdict { display: inline-block; font-family: var(--cond); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; padding: 2px 7px; border-radius: var(--r1); border: 1px solid transparent; white-space: nowrap; vertical-align: 1px; }
.verdict.v-lost { background: var(--mag); color: var(--ink); }
.verdict.v-won { background: var(--led); color: var(--ink); box-shadow: inset 3px 0 var(--yel); padding-left: 9px; }
.verdict.v-unclear { color: var(--dim); border: 1px dashed var(--mute); }

/* ---------- buttons: led plates, never yellow ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 18px; border-radius: var(--r1);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background var(--cut), border-color var(--cut), color var(--cut), transform .08s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--led); color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: var(--led-hi); }
.btn.ghost { border-color: var(--faint); color: var(--fg); background: transparent; }
.btn.ghost:hover:not(:disabled) { border-color: var(--dim); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid currentColor; border-color: var(--ink) transparent var(--ink) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.busy::after { border-color: var(--fg) transparent var(--fg) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; font-size: var(--t-sm); font-weight: 500; }
.link:hover { text-decoration-color: var(--yel); }

/* ================= THE PACKAGE ================= */

/* ---------- the ident (unchanged) and the bug ---------- */
.logo { display: flex; flex-direction: column; text-decoration: none; font-family: var(--disp); line-height: .86; transform: skewX(-7deg); transform-origin: left; flex: none; }
.logo b { font-weight: 400; color: var(--yel); font-size: var(--t-xl); text-shadow: 2px 0 var(--mag), -1px 0 var(--cyan); }
.logo i { font-style: normal; color: var(--fg); font-size: var(--t-xl); }
.logo .a { display: inline-block; color: var(--cyan); text-shadow: 0 0 14px var(--cyan); }
/* the bug: the ident, small, top right of a picture. on the studio plate and the wall, never twice on a shot that carries its own. */
.bug { position: absolute; top: 14px; right: 16px; z-index: 4; opacity: .8; pointer-events: none; }
.bug .logo b, .bug .logo i { font-size: 15px; }

/* ---------- masthead ---------- */
.mast { background: var(--k); position: relative; z-index: 20; }
.mast .wrap { display: flex; align-items: center; gap: var(--s5); height: 76px; }
.brand { display: flex; align-items: center; gap: var(--s5); min-width: 0; }
.brand .logo b, .brand .logo i { font-size: 27px; }
.tagline { color: var(--dim); font-size: 15px; font-weight: 500; padding-left: var(--s5); border-left: 1px solid var(--line); white-space: nowrap; }
.mast-right { margin-left: auto; display: flex; align-items: center; gap: var(--s4); flex: none; }
.xlink { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r1); color: var(--fg); text-decoration: none; font-weight: 700; transition: border-color var(--cut); }
.xlink:hover { border-color: var(--dim); }
.me { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; font-size: 13px; font-weight: 600; color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r1); padding: 0 12px 0 5px; cursor: pointer; background: transparent; transition: border-color var(--cut); }
.me:hover { border-color: var(--dim); }
.me .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); }
.me .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); }
.me img { width: 30px; height: 30px; border-radius: 50%; }

/* the weather bug: humanity's gauge in the masthead, links to the full reading */
.hscore { display: flex; align-items: center; gap: 10px; padding-right: var(--s4); border-right: 1px solid var(--line); height: 40px; text-decoration: none; }
.hscore:hover .hs-k { color: var(--fg); }
.hscore .gauge.mini { width: 54px; height: auto; display: block; overflow: visible; }
.hs-k { font-size: 15px; font-weight: 600; color: var(--text); transition: color var(--cut); }

/* ---------- live badge + clock ---------- */
.onair { display: inline-flex; align-items: stretch; height: 30px; flex: none; }
.live { display: inline-flex; align-items: center; gap: 6px; background: var(--mag); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 0 9px; text-decoration: none; white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 2s ease-in-out infinite; }
.clock { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); color: var(--fg); font-family: var(--cond); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; padding: 0 10px; white-space: nowrap; }
.clock small { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: .02em; }

/* ---------- the network bar ---------- */
.netbar { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid rgba(224,26,210,.55); position: relative; z-index: 19; }   /* the ceiling strip: a violet hairline under the network bar */
.netbar .wrap { display: flex; align-items: stretch; gap: var(--s6); height: 50px; }
.netbar a { display: flex; align-items: center; font-family: var(--cond); font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; position: relative; white-space: nowrap; min-height: var(--tap); }
.netbar a:hover { color: var(--fg); }
.netbar a[aria-current] { color: var(--fg); }
.netbar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--yel); transform: scaleX(0); transform-origin: left; transition: transform var(--cut) var(--ease); }
.netbar a[aria-current]::after, .netbar a:hover::after { transform: scaleX(1); }
.netbar a:hover:not([aria-current])::after { background: var(--faint); }
.upnext { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--cond); font-size: 15px; color: var(--fg); font-weight: 600; white-space: nowrap; min-width: 0; }
.upnext b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.upnext span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- the crawl: the ticker. headlines in the reading face, the machine in its own. ---------- */
.crawl { display: flex; height: 38px; background: var(--k); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.crawl-k { flex: none; display: flex; align-items: center; padding: 0 14px 0 20px; color: var(--fg); font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-right: 2px solid var(--yel); background: var(--k); position: relative; z-index: 2; }
.crawl-lane { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.crawl-track { display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.crawl-track.run { animation: crawl var(--dur, 60s) linear infinite; }
.crawl:hover .crawl-track, .crawl:focus-within .crawl-track, .crawl.paused .crawl-track { animation-play-state: paused; }
.crawl-track a, .crawl-track .m { padding: 0 18px; border-right: 1px solid var(--line-2); font-size: var(--t-sm); line-height: 1; }
.crawl-track a { color: var(--text); text-decoration: none; font-weight: 500; }
.crawl-track a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--yel); text-underline-offset: 4px; }
.crawl-track .m { font-family: var(--mono); font-size: var(--t-xs); color: var(--cyan); }
.crawl-p { flex: none; width: 38px; display: grid; place-items: center; background: var(--k); border: 0; border-left: 1px solid var(--line); color: var(--dim); cursor: pointer; position: relative; z-index: 2; }
.crawl-p:hover { color: var(--fg); }
.crawl-p::before { content: ""; width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.crawl.paused .crawl-p::before { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------- straps: a tag over an led plate. section and story heads on pictures. ---------- */
.strap { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 92%; }
.s-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; background: var(--k); color: var(--fg); font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 3px 0 var(--yel); padding-left: 13px; }
.s-hl { display: block; background: var(--led); color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1.04; letter-spacing: -.005em; padding: 10px 16px 12px; text-decoration: none; }
a.s-hl:hover { background: var(--led-hi); }
.strap.sm .s-tag { height: 22px; font-size: 11px; }
.strap.sm .s-hl { font-size: 20px; padding: 6px 10px 7px; }
.strap.md .s-hl { font-size: 28px; padding: 8px 12px 9px; }
.strap.live .s-tag { background: var(--mag); color: var(--ink); box-shadow: none; padding-left: 10px; }

/* ---------- lower third: a name plate and its detail ---------- */
.l3 { display: inline-flex; flex-wrap: wrap; font-family: var(--cond); font-size: 13px; line-height: 1; letter-spacing: .03em; }
.l3 b { background: var(--led); color: var(--ink); padding: 7px 10px; font-weight: 800; }
.l3 span { background: var(--panel-2); color: var(--fg); padding: 7px 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.l3 a { color: inherit; }

/* ---------- the player frame: a picture as a camera shot ---------- */
.frame { position: relative; display: block; }
.f-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.f-pic > img, .f-pic > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-pic .deadsig { position: absolute; inset: 0; }
.frame > .onair { position: absolute; top: 14px; left: 16px; height: 26px; z-index: 4; }
.frame > .onair .live { font-size: 12px; }
.frame > .onair .clock { font-size: 15px; background: rgba(0,0,0,.72); }
.frame > .strap { position: relative; margin: -34px 0 0 24px; z-index: 3; }
.frame .f-over { position: absolute; left: 12px; bottom: 12px; z-index: 3; }
.f-cap { display: flex; gap: 10px; align-items: center; background: var(--k); color: var(--text); font-size: 14px; line-height: 1.4; padding: 9px 12px; box-shadow: inset 3px 0 var(--yel); padding-left: 15px; }
.f-cap a { color: var(--fg); }

/* ---------- section heads: a short yellow strip over the head, like the studio's light lines ---------- */
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding-top: 12px; margin-bottom: 6px; position: relative; }
.shead::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--yel); }
.shead::after { content: ""; position: absolute; top: 0; left: 32px; width: 10px; height: 3px; background: var(--mag); }   /* the studio pairs its strips: yellow, then violet */
.shead h2 { font-family: var(--cond); font-weight: 800; font-size: 26px; color: var(--fg); line-height: 1.1; }
.shead .sh-more, .shead a.label { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.shead .sh-more:hover, .shead a.label:hover { color: var(--fg); }
.shead .label:not(a) { font-size: 13px; }
.state { display: inline-flex; align-items: center; gap: 7px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.state.on { color: var(--fg); } .state.on::before { background: var(--mag); animation: pulse 2s ease-in-out infinite; }
/* a block head inside a story: a short strip and the word */
.bk { display: flex; align-items: center; gap: 10px; color: var(--dim); font-family: var(--cond); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.bk::before { content: ""; width: 18px; height: 3px; background: var(--yel); flex: none; }

/* ---------- the rundown: a running order with times ---------- */
.rundown a { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rundown time { font-family: var(--cond); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--fg); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 3px; }
.rundown time small { font-size: 12px; font-weight: 600; color: var(--dim); }
.rundown .h { color: var(--fg); font-weight: 650; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.rundown .d { display: block; color: var(--dim); font-size: 15px; line-height: 1.5; margin-top: 4px; font-weight: 400; }
.rundown .h .kind { display: block; margin-bottom: 3px; }
.rundown a:hover .h { text-decoration: underline; text-decoration-color: var(--yel); text-underline-offset: 3px; }

.rundown a.has-pic { grid-template-columns: 62px 1fr 220px; align-items: start; }
.rundown a.has-pic .f-pic { border: 1px solid var(--line); }
@media (max-width: 600px) { .rundown a.has-pic { grid-template-columns: 52px 1fr 112px; } .rundown a.has-pic .fc-h { font-size: 12px; } .rundown a.has-pic .fc-k, .rundown a.has-pic .bug { display: none; } }

/* ---------- segment cards: a shot, a time, a headline ---------- */
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.seg { display: block; text-decoration: none; }
.seg .f-pic { background: radial-gradient(70% 90% at 80% 10%, rgba(224,26,210,.12), transparent 70%), #07090e; }
.seg-tx { padding-top: 12px; display: grid; gap: 6px; }
.seg time { font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.seg h3 { color: var(--fg); font-size: 19px; font-weight: 760; line-height: 1.25; letter-spacing: -.01em; }
.seg p { font-size: 15px; line-height: 1.5; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seg:hover h3 { text-decoration: underline; text-decoration-color: var(--yel); text-underline-offset: 3px; }
.seg .play { position: absolute; left: 14px; bottom: 14px; z-index: 3; width: 40px; height: 40px; background: rgba(0,0,0,.75); display: grid; place-items: center; }
.seg .play::before { content: ""; border-left: 12px solid var(--fg); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* the fallback screen: a story without its own picture */
.f-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 8% 9%; overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), radial-gradient(70% 90% at 85% 15%, rgba(224,26,210,.22), transparent 70%), radial-gradient(60% 80% at 0% 100%, rgba(62,228,240,.10), transparent 70%), #07060c; }
.fc-k { font-family: var(--mono); font-size: clamp(9px, 1.2vw, 13px); letter-spacing: .12em; color: var(--cyan); }
.fc-h { font-family: var(--cond); font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 2.4vw, 30px); line-height: 1; color: var(--yel); text-shadow: 2px 0 var(--mag), -1px 0 var(--cyan);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.f-card .bug { top: 10px; right: 12px; }
.f-card .bug .logo b, .f-card .bug .logo i { font-size: 12px; }

/* ---------- the up next bumper ---------- */
.bumper { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; background: var(--panel); padding: 22px 24px; border-top: 1px solid var(--yel); }
.b-k { justify-self: start; background: var(--k); color: var(--fg); font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; white-space: nowrap; }
.b-tx b { display: block; color: var(--fg); font-family: var(--cond); font-size: 30px; font-weight: 800; line-height: 1.05; }
.b-tx span { display: block; font-size: 15px; color: var(--text); margin-top: 4px; }
.b-tx .b-top { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-family: var(--cond); font-size: 15px; font-weight: 600; color: var(--fg); }
.b-tx .b-top i { font-style: normal; color: var(--dim); margin-right: 6px; font-variant-numeric: tabular-nums; }
.b-acts { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------- the verdict, at the end of a story ---------- */
.vblk { margin-top: 40px; display: grid; gap: 10px; justify-items: start; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v-tag { font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; background: var(--k); color: var(--fg); box-shadow: inset 3px 0 var(--yel); padding-left: 12px; }
.vblk.v-lost .v-tag { background: var(--mag); color: var(--ink); box-shadow: none; padding-left: 9px; }
.v-call { color: var(--fg); font-family: var(--cond); font-size: 34px; font-weight: 800; line-height: 1.05; }
.vblk small { font-size: 14px; color: var(--dim); }
.vblk small a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.vblk small a:hover { text-decoration-color: var(--yel); }

/* ---------- end card: the call to action after a story ---------- */
.endcard { background: var(--panel); padding: 22px 24px; display: grid; gap: 6px; box-shadow: inset 3px 0 var(--yel); padding-left: 27px; }
.endcard b { color: var(--fg); font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1.1; }
.endcard .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- the wall: the studio's led screen. cyberpunk lives in here. ---------- */
.wall { position: relative; padding: 4px; border: 2px solid var(--yel); box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(224,26,210,.55); background: #000; }
.wall-in { position: relative; overflow: hidden; background: radial-gradient(80% 120% at 85% 0%, rgba(224,26,210,.30), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(62,228,240,.12), transparent 70%), #07060c; }
.wall .bug { top: 18px; right: 20px; }

/* ---------- the gauge ---------- */
.gauge .off { opacity: .16; }
.gauge .lit { opacity: 1; animation: breathe 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.22s); }
.gauge .needle { transform-origin: 150px 140px; transform: rotate(-90deg); transition: transform 1.6s cubic-bezier(.2,.9,.25,1.15); }
.gauge.on .needle { transform: rotate(var(--a)); }
.gauge .wob { transform-origin: 150px 140px; animation: tremor 5.2s ease-in-out infinite; animation-delay: 1.6s; }
.gauge .eye { animation: eye 2.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes tremor { 0%, 100% { transform: rotate(0deg); } 18% { transform: rotate(1.4deg); } 37% { transform: rotate(-.6deg); } 55% { transform: rotate(.9deg); } 74% { transform: rotate(-1.1deg); } 88% { transform: rotate(.3deg); } }
@keyframes eye { 0%, 100% { filter: drop-shadow(0 0 0 rgba(62,228,240,0)); } 50% { filter: drop-shadow(0 0 6px rgba(62,228,240,.9)); } }
/* humanity's record: "1 won 10 lost" */
.rec { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.rec b { font-family: var(--cond); font-weight: 800; font-size: 28px; line-height: 1; }
.rec small { font-size: 15px; font-weight: 600; color: var(--dim); }
.rec small + b { margin-left: 12px; }
.rec .flap { width: .62em; }
.rec .flap .h { background: transparent; }
.rec .flap .up { box-shadow: none; }
.rec b.y { color: var(--yel); } .rec b.m { color: var(--mag); }

/* ---------- split-flap tiles ---------- */
.board { display: inline-flex; gap: 2px; }
.flap { position: relative; display: inline-block; width: .7em; height: 1.08em; line-height: 1.08em; perspective: 240px; font-family: var(--cond); font-weight: 800; }
.flap .h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--panel-2); color: inherit; backface-visibility: hidden; }
.flap .h i { position: absolute; left: 0; right: 0; height: 200%; text-align: center; font-style: normal; }
.flap .up, .flap .fu { top: 0; border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.flap .dn, .flap .fd { bottom: 0; border-radius: 0 0 2px 2px; transform-origin: 50% 0%; }
.flap .dn i, .flap .fd i { top: -100%; }
.flap .up i, .flap .fu i { top: 0; }
.flap .up { box-shadow: inset 0 -1px 0 rgba(0,0,0,.75); }
.flap .dn { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.flap .fu, .flap .fd { visibility: hidden; }
.flap.go .fu { visibility: visible; animation: flap-top .15s ease-in forwards; }
.flap.go .fd { visibility: visible; animation: flap-bot .15s ease-out forwards; }
@keyframes flap-top { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes flap-bot { 0%, 45% { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.decoding { position: relative; }
.decoding > .noise { position: absolute; inset: 0; color: var(--cyan); white-space: nowrap; overflow: hidden; background: #07060c; font-family: var(--mono); font-size: .92em; pointer-events: none; }

/* ---------- motion ---------- */
@keyframes pulse { 50% { opacity: .35; } }
/* the wipe: a strap or plate reveals left to right, once */
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.wipe .s-tag, .wipe.l3, .wipe .l3 { animation: wipe var(--cut) var(--ease) both; }
.wipe .s-hl { animation: wipe var(--cut) var(--ease) 90ms both; }
@keyframes glitch {                     /* screens only: a tear, a split, back to normal */
  0%, 92%, 100% { transform: skewX(-7deg); text-shadow: 2px 0 var(--mag), -2px 0 var(--cyan); clip-path: none; }
  93% { transform: skewX(-7deg) translate(5px, -2px); text-shadow: 7px 0 var(--mag), -6px 0 var(--cyan); }
  94% { transform: skewX(-7deg) translate(-4px, 1px); clip-path: inset(10% 0 45% 0); }
  95% { transform: skewX(-7deg) translate(2px, 0); clip-path: inset(55% 0 5% 0); }
}

/* ---------- screens ---------- */
.hud { position: relative; }
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.30) 0 1px, transparent 1px 3px); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.screen video, .screen img.poster { width: 100%; height: 100%; object-fit: cover; }
.deadsig { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(70% 90% at 50% 45%, rgba(62,228,240,.10), transparent 70%), #05040a; }
.deadsig svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.deadsig .msg { position: relative; z-index: 2; display: grid; gap: var(--s2); padding: var(--s6) var(--s4) var(--s4); }
.deadsig .msg b { font-family: var(--disp); font-weight: 400; color: var(--fg); font-size: clamp(22px, 3.2vw, 34px); line-height: 1.1; letter-spacing: .02em; }

/* pages that draw on the client keep the sign-off below the fold until they've drawn: no layout shift */
main[data-fill] { min-height: 100vh; }

/* ---------- lists ---------- */
.rows a { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rows .h { color: var(--fg); font-weight: 650; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; display: block; margin-top: 4px; }
.rows a:hover .h { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yel); }
.rows .ago { font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { color: var(--dim); font-size: var(--t-sm); padding: var(--s3) 0; }
.empty.machine { color: var(--cyan); }
.skel { display: grid; gap: var(--s3); }
.skel i { display: block; height: 14px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: pulse 1.4s ease-in-out infinite; }
.skel i:nth-child(3n) { width: 70%; } .skel i:nth-child(3n+1) { width: 92%; }

/* the newsroom before it opens */
.locked .redact, .locked .feed-grid { filter: blur(6px) saturate(.6); opacity: .5; pointer-events: none; user-select: none; }
.offline { position: absolute; left: 0; right: 0; top: 40px; display: none; justify-content: center; z-index: 5; padding: 0 var(--s4); }
.locked .offline { display: flex; }
.offline .box { background: rgba(5,7,11,.95); border-top: 1px solid var(--yel); padding: var(--s5) var(--s6); text-align: center; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: grid; gap: var(--s2); justify-items: center; }
.offline .box b { font-family: var(--cond); font-weight: 800; font-size: var(--t-xl); color: var(--fg); line-height: 1.1; }
.offline .box p { color: var(--dim); font-size: var(--t-sm); }

/* cards (the broadcast archive): segment cards in a grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s5); }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(70% 90% at 80% 10%, rgba(224,26,210,.12), transparent 70%), #07090e; display: grid; place-items: center; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { position: absolute; inset: 0; }
.card .thumb .ph svg { width: 100%; height: 100%; display: block; }
.card .thumb .play { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; background: rgba(0,0,0,.75); display: grid; place-items: center; }
.card .thumb .play::before { content: ""; border-left: 12px solid var(--fg); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.card .b { padding: var(--s3) 0 0; display: grid; gap: 6px; }
.card .b .h { color: var(--fg); font-weight: 760; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.card:hover .b .h { text-decoration: underline; text-decoration-color: var(--yel); text-underline-offset: 3px; }
.card .b .ago { font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--dim); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 36px; padding: 0 14px; border-radius: var(--r1); border: 1px solid var(--line-2); background: transparent; color: var(--text); font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: border-color var(--cut), color var(--cut), background var(--cut); }
.chip:hover { border-color: var(--dim); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--led); border-color: var(--led); color: var(--ink); }
.chip .n { opacity: .65; margin-left: 4px; }

/* ---------- join modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); padding: var(--s4); }
.modal.open { display: flex; }
.modal.open .sheet { animation: slide var(--cut) var(--ease) both; }
.sheet { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border-top: 2px solid var(--yel); border-radius: var(--r2); padding: var(--s5); position: relative; }
.sheet h3 { font-family: var(--cond); font-weight: 800; font-size: var(--t-xl); color: var(--fg); line-height: 1.1; padding-right: var(--s6); }
.sheet .close { position: absolute; top: 8px; right: 8px; width: var(--tap); height: var(--tap); display: grid; place-items: center; background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; border-radius: var(--r1); }
.sheet .close:hover { color: var(--fg); background: var(--panel-2); }
.stepr { margin-top: var(--s4); display: grid; gap: var(--s3); }
.sheet label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--dim); }
.sheet .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--dim); font-weight: 400; cursor: pointer; }
.sheet .chk input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--led); flex: none; }
.note { font-size: 13px; color: var(--dim); min-height: 1.4em; }
.note.err { color: var(--mag); } .note.ok { color: var(--fg); }
.step { border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg); padding: var(--s3); display: grid; gap: 10px; transition: border-color var(--cut), opacity var(--cut); }
.step.done { border-color: var(--line-2); box-shadow: inset 3px 0 var(--yel); }
.step.off { opacity: .45; pointer-events: none; }
.step .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step .hd b { color: var(--fg); font-size: var(--t-sm); font-weight: 600; }
.step .hd b span { font-family: var(--cond); font-weight: 700; color: var(--dim); margin-right: 6px; }
.step .st { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: var(--s2); }
.step.done .st { color: var(--fg); }
.step .st img { width: 22px; height: 22px; border-radius: 50%; }
.step .reflink { font-family: var(--mono); font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; display: block; width: 100%; word-break: break-all; }
.step .st .link { color: var(--fg); }
.signout { background: none; border: 0; color: var(--dim); font-size: 13px; cursor: pointer; text-decoration: underline; justify-self: start; min-height: 32px; }
.legal { font-size: 13px; color: var(--dim); }
.legal a { color: var(--fg); }

/* ---------- inputs ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="datetime-local"], input:not([type]), textarea, select {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r1); color: var(--fg); font-size: var(--t-md);
  padding: 11px 12px; outline: none; width: 100%; min-height: var(--tap); transition: border-color var(--cut); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--led); }
input::placeholder, textarea::placeholder { color: var(--mute); }

/* ---------- the sign-off ---------- */
footer.site { background: var(--k); margin-top: 72px; border-top: 1px solid var(--line); }
footer.site .top { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: end; padding: 44px 0 28px; }
footer.site .top .logo b, footer.site .top .logo i { font-size: 46px; }
footer.site .motto { font-family: var(--cond); font-size: 17px; font-weight: 600; color: var(--text); padding-bottom: 6px; }
footer.site .bot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap; border-top: 1px solid var(--line); padding: var(--s3) 0 var(--s6); }
footer.site nav { display: flex; gap: 0 22px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; color: var(--dim); font-size: 14px; display: inline-flex; align-items: center; min-height: 36px; }
footer.site nav a:hover { color: var(--fg); }
footer.site .eot { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
footer.site .jp { font-family: var(--disp); color: var(--mag); font-size: 15px; letter-spacing: .2em; margin-left: var(--s3); text-transform: none; vertical-align: -2px; }

/* ---------- layout ---------- */
@media (max-width: 1080px) { .tagline { display: none; } }
@media (max-width: 900px) {
  .upnext { display: none; }
  .segs { grid-template-columns: 1fr; }
  .hs-k { display: none; }
  .hscore { padding-right: var(--s3); }
}
@media (max-width: 600px) {
  .mast .wrap { height: 60px; gap: 10px; }
  .brand .logo b, .brand .logo i { font-size: 19px; }
  .mast-right { gap: 8px; }
  .mast .xlink { display: none; }
  .hscore { padding-right: 8px; height: 36px; }
  .hscore .gauge.mini { width: 38px; }
  .clock small { display: none; }
  .live { font-size: 12px; padding: 0 7px; }
  .clock { font-size: 16px; padding: 0 8px; }
  .mast .btn.small { padding: 0 10px; min-height: 40px; }
  .netbar .wrap { gap: 22px; height: 48px; }
  .netbar a { font-size: 17px; }
  .crawl-k { padding-left: 16px; }
  .s-hl { font-size: 24px; padding: 8px 10px 9px; }
  .strap.md .s-hl { font-size: 21px; }
  .frame > .strap { margin: -22px 0 0 10px; max-width: 94%; }
  .frame > .onair { top: 10px; left: 10px; }
  .bumper { grid-template-columns: 1fr; padding: 20px; }
  .v-call { font-size: 28px; }
  footer.site .top { grid-template-columns: 1fr; padding-top: 36px; }
  footer.site .top .logo b, footer.site .top .logo i { font-size: 34px; }
  .btn.small, .chip { min-height: var(--tap); }
  footer.site nav a { min-height: var(--tap); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .crawl-lane { overflow-x: auto; scrollbar-width: none; }
  .crawl-p { display: none; }
}
/* the fallback screen, small (rundown thumbnails) */
.rundown .f-card { padding: 10px 12px; }
.rundown .f-card .fc-k { display: none; }
.rundown .f-card .fc-h { font-size: 16px; -webkit-line-clamp: 3; padding-right: 34px; }
