@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .break-all {
    word-break: break-all;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }

  .underline {
    text-decoration-line: underline;
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
}

@media (max-width: 768px) {
  .nav-label {
    display: none;
  }
}

@media (max-width: 900px) {
  main > div {
    grid-template-columns: 1fr !important;
  }
}

img {
  transition: opacity var(--t-med) var(--ease-snap);
}

input:focus {
  border-color: var(--accent) !important;
}

html[data-tv] :focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

html[data-tv] button, html[data-tv] a.btn, html[data-tv] .chip {
  min-height: 44px;
}

html[data-tv] .tv-hints {
  display: flex !important;
}

html[data-tv] .phone-surf-hint, html[data-tv] .hide-on-tv {
  display: none !important;
}

html[data-tv] header {
  padding: 20px 48px !important;
}

html[data-tv] .guide-row {
  font-size: 20px;
}

html[data-tv], html[data-tv] body {
  min-height: 100vh;
}

html[data-tizen] {
  font-size: 22px;
}

html[data-tizen] button, html[data-tizen] a.btn, html[data-tizen] .chip {
  min-height: 56px;
}

.tv-hints {
  display: none;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-ordinal {
  syntax: "*";
  inherits: false
}

@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}



/* ============================================================
   TUBE — Design Tokens  v1.0
   Channels for YouTube. Linear-TV viewing, reinvented.
   ------------------------------------------------------------
   Two themes:
     [data-theme="light"]  — DEFAULT. EARLY EDITION: cool broadcast
                             ivory, navy ink, gold accent, red for live.
     [data-theme="retro"]  — Dark CRT/broadcast nostalgia.
   Every component reads only from tokens; swap themes by
   changing the data-theme attribute on <html>.
   ============================================================ */
/* ---------- Core (theme-independent) ---------- */
:root {
  /* Type families */
  --font-brand:   'Bungee', sans-serif;          /* wordmark + channel numbers only */
  --font-display: 'Space Grotesk', sans-serif;   /* headings, UI */
  --font-body:    'Space Grotesk', sans-serif;   /* body copy */
  --font-mono:    'IBM Plex Mono', monospace;    /* timers, metadata, EPG times */

  /* Type scale (rem) — 1.25 major third above 16px base */
  --text-xs: 0.75rem;   /* 12 — metadata, chips */
  --text-sm: 0.875rem;  /* 14 — secondary UI    */
  --text-md: 1rem;      /* 16 — body            */
  --text-lg: 1.25rem;   /* 20 — card titles     */
  /* Larger steps scale fluidly so heroes don't blow out on phones (mobile-first). */
  --text-xl: clamp(1.25rem, 3.2vw, 1.5625rem);  /* 25 — section heads */
  --text-2xl: clamp(1.45rem, 5vw, 1.953rem);    /* 31 — page titles   */
  --text-3xl: clamp(1.7rem, 6.5vw, 2.441rem);   /* 39 — hero          */
  --text-4xl: clamp(2.2rem, 8vw, 3.815rem);     /* 61 — TV hero       */

  /* Spacing — 4px grid */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* Radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-full: 999px;

  /* Motion */
  --ease-snap: cubic-bezier(.2,.9,.25,1);
  --ease-tv:   cubic-bezier(.4,0,.2,1);
  --t-fast: 120ms; --t-med: 240ms; --t-slow: 420ms;

  /* Z-index ladder */
  --z-player: 10; --z-overlay: 40; --z-modal: 60; --z-toast: 80;

  /* Channel identity palette — derived from SMPTE color bars.
     Each network feed owns one hue across all surfaces. */
  --ch-amber:   #FFB000;  /* CH 01 FIRST FEED  — trending   */
  --ch-red:     #FF4438;  /* CH 04 MOTORWAY    — cars       */
  --ch-green:   #3DDC84;  /* CH 07 COOKED      — food       */
  --ch-cyan:    #2AD0CA;  /* CH 11 ORBIT       — science    */
  --ch-magenta: #C56A2C;  /* CH 13 STATIC      — gaming (rust)   */
  --ch-yellow:  #EFE347;  /* CH 21 THE DIAL    — music      */
  --ch-blue:    #4D7CFE;  /* CH 33 LATE SIGNAL — comedy     */
  --ch-violet:  #6C8CA8;  /* CH 45 GRAIN       — film (dusty)    */
}
/* ---------- RETRO (dark alternate) ---------- */
:root, [data-theme="retro"] {
  color-scheme: dark;

  --bg:        #171209;   /* warm near-black, walnut cabinet */
  --bg-deep:   #0D0A05;   /* player wells, letterbox         */
  --surface:   #241C10;   /* cards, rails                    */
  --surface-2: #322818;   /* hover / elevated                */
  --line:      #453723;   /* hairlines, dividers             */
  --line-hi:   #6B5636;   /* focused hairlines               */

  --ink:       #F6EBD4;   /* warm cream text                 */
  --ink-dim:   #BCA987;   /* secondary text                  */
  --ink-faint: #7E6E52;   /* tertiary / disabled             */
  --ink-inv:   #171209;   /* text on accent fills            */

  --accent:      #FFB000; /* amber phosphor — primary action */
  --accent-hi:   #FFC94D;
  --accent-soft: rgba(255,176,0,.14);
  --live:        #FF4438; /* on-air red                      */
  --positive:    #3DDC84;

  --plate-ink:  #171209; /* text on channel-color fills          */

  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
  --shadow-1: 0 2px 8px rgba(0,0,0,.45);
  --shadow-2: 0 12px 40px rgba(0,0,0,.55);
  --glow-accent: 0 0 24px rgba(255,176,0,.35);

  --thumb-grad-a: linear-gradient(135deg,#3a2c14,#0d0a05);
  --scrim: linear-gradient(180deg, rgba(13,10,5,0) 30%, rgba(13,10,5,.92) 100%);
}
/* CRT flavor utilities — retro theme only */
[data-theme="retro"] .fx-scanlines::after,
:root:not([data-theme="light"]) .fx-scanlines::after {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:2;
  background: repeating-linear-gradient(0deg,
    rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
[data-theme="retro"] .fx-vignette::before,
:root:not([data-theme="light"]) .fx-vignette::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:2;
  background: radial-gradient(120% 120% at 50% 45%,
    transparent 55%, rgba(0,0,0,.42) 100%);
}
/* ---------- EARLY EDITION (default light) ----------
   Cool broadcast ivory. Network navy is the hero / action color,
   gold is the accent, signal red is reserved for live/on-air.
   Light, refined, no purple. */
[data-theme="light"] {
  color-scheme: light;

  /* EARLY EDITION — cool broadcast ivory. Network navy is the hero /
     action color, gold is the accent (wordmark dot, highlights),
     signal red is reserved for live. No purple. */
  --bg:        #EAEEF3;   /* cool ivory canvas                       */
  --bg-deep:   #0E1626;   /* player well — the CRT stays deep navy   */
  --surface:   #F7FAFC;   /* cards, rails — lifted near-white        */
  --surface-2: #DFE7EE;   /* hover / elevated / plate rest           */
  --line:      #CDD8E2;   /* hairlines in the light chrome           */
  --line-hi:   #A6B6C6;

  --ink:       #1E2C42;   /* deep navy ink                           */
  --ink-dim:   #55617A;   /* secondary text (AA on light)            */
  --ink-faint: #8593A6;   /* tertiary / disabled                     */
  --ink-inv:   #F6F4EC;   /* cream text on navy accent fills         */
  --plate-ink: #14213A;   /* dark navy text on channel-color plates  */

  --accent:      #1B2E4B; /* network navy — primary action           */
  --accent-hi:   #26426B;
  --accent-soft: rgba(27,46,75,.10);
  --live:        #E4572E; /* signal red — on-air only                */
  --positive:    #2E9E5B;

  /* Early Edition gold — accent: wordmark dot, highlights, badges */
  --gold:      #E8A812;
  --gold-hi:   #F5B21B;
  --gold-ink:  #1D1F26;

  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
  --shadow-1: 0 1px 4px rgba(20,33,58,.10);
  --shadow-2: 0 14px 40px rgba(20,33,58,.16);
  --glow-accent: none;

  --thumb-grad-a: linear-gradient(135deg,#2E4A68,#0E1626);
  --scrim: linear-gradient(180deg, rgba(14,22,38,0) 30%, rgba(14,22,38,.88) 100%);
}
[data-theme="light"] .fx-scanlines::after,
[data-theme="light"] .fx-vignette::before { content:none; }
/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12;
  letter-spacing: -0.015em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }
/* ---------- Shared components ---------- */
/* Wordmark */
.wordmark { font-family: var(--font-brand); font-size: 1.5em; letter-spacing:.02em;
  color: var(--ink); }
.wordmark b { color: var(--gold, var(--accent)); font-weight:400; }
/* SMPTE bars — brand motif */
.smpte { display:flex; height:8px; border-radius:var(--r-full); overflow:hidden; }
.smpte i { flex:1; }
.smpte i:nth-child(1){background:var(--ch-amber)}
.smpte i:nth-child(2){background:var(--ch-yellow)}
.smpte i:nth-child(3){background:var(--ch-green)}
.smpte i:nth-child(4){background:var(--ch-cyan)}
.smpte i:nth-child(5){background:var(--ch-blue)}
.smpte i:nth-child(6){background:var(--ch-magenta)}
.smpte i:nth-child(7){background:var(--ch-red)}
/* Channel number plate */
.ch-num { font-family: var(--font-brand); font-size: var(--text-lg);
  min-width: 2.6em; text-align:center; padding: .18em .4em;
  border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink); }
.ch-num.on { background: var(--ch, var(--accent)); color: var(--plate-ink);
  border-color: transparent; }
/* LIVE badge */
.badge-live { display:inline-flex; align-items:center; gap:.45em;
  font-family: var(--font-mono); font-weight:600; font-size: var(--text-xs);
  letter-spacing:.12em; color:#fff; background: var(--live);
  padding:.3em .7em; border-radius: var(--r-xs); }
.badge-live::before { content:""; width:.55em; height:.55em; border-radius:50%;
  background:#fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity:.35 } }
/* Chip */
.chip { display:inline-flex; align-items:center; gap:.4em;
  font-size: var(--text-sm); font-weight:600; color: var(--ink-dim);
  background: var(--surface); border:1px solid var(--line);
  padding:.42em 1em; border-radius: var(--r-full);
  transition: all var(--t-fast) var(--ease-snap); }
.chip:hover { border-color: var(--line-hi); color: var(--ink); }
.chip.sel { background: var(--accent); border-color: var(--accent);
  color: var(--ink-inv); }
/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-weight:700; font-size: var(--text-md); padding:.7em 1.5em;
  border-radius: var(--r-full); transition: all var(--t-fast) var(--ease-snap); }
.btn-primary { background: var(--accent); color: var(--ink-inv); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: var(--glow-accent); }
.btn-ghost { border:1.5px solid var(--line-hi); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
/* Card */
.card { background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-md); overflow:hidden;
  transition: transform var(--t-med) var(--ease-snap),
              box-shadow var(--t-med) var(--ease-snap),
              border-color var(--t-fast); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2);
  border-color: var(--line-hi); }
/* Thumbnail (gradient placeholder in mockups) */
.thumb { position:relative; aspect-ratio:16/9; background: var(--thumb-grad-a);
  display:flex; align-items:center; justify-content:center; overflow:hidden; }
.thumb .dur { position:absolute; right:8px; bottom:8px;
  font-family:var(--font-mono); font-size:var(--text-xs); font-weight:600;
  background:rgba(0,0,0,.78); color:#fff; padding:.2em .5em;
  border-radius:var(--r-xs); }
.thumb .glyph { font-size:2.6rem; opacity:.9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
/* Progress bar (on-air position) */
.prog { height:4px; background:var(--line); border-radius:var(--r-full);
  overflow:hidden; }
.prog i { display:block; height:100%; background: var(--accent);
  border-radius:var(--r-full); }
/* TV focus state — 10-foot UI. Focus scales & rings; never color-only. */
.tv-focusable { transition: transform var(--t-med) var(--ease-tv),
  box-shadow var(--t-med) var(--ease-tv); }
.tv-focusable.focused { transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--accent), var(--shadow-2), var(--glow-accent);
  z-index:3; position:relative; }
/* Scrollbar (desktop) */
::-webkit-scrollbar { height:10px; width:10px; }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius:99px; }
::-webkit-scrollbar-track { background: transparent; }
/* ---------- Responsive helpers (mobile-first) ---------- */
.app-main { padding: var(--sp-5) var(--sp-4); }
.guide-row { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-4); }
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .nav-desktop { display: none !important; }
  .app-main { padding: var(--sp-4) var(--sp-3) 88px; }
  .guide-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
  .bottom-nav {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: center;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
    color: var(--ink-faint); text-decoration: none; padding: 5px 12px;
    border-radius: var(--r-sm); min-width: 58px;
  }
  .bottom-nav a .bn-ico { font-size: 20px; line-height: 1; }
}
