/* ==========================================================================
   Spelunkr TV — spelunkertv.online
   A walnut-console, cable-guide-flavoured take on 24/7 retro television.
   Hand-written CSS, no framework, no images — the set is built from gradients,
   and the paper grain is an inline SVG turbulence filter.
   ========================================================================== */

/* -------------------------------- Fonts -------------------------------- */
@font-face {
  font-family: 'Alfa Slab One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/alfa-slab-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vt323-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------- Tokens -------------------------------- */
:root {
  --ink: #241409;
  --ink-2: #4b3120;
  --room: #170b1e;
  --room-2: #1f0f27;
  --room-3: #2a1220;
  --cream: #f7e9c8;
  --cream-2: #e4d2ab;
  --muted: #bfa77f;
  --paper: #f3e6c8;
  --amber: #ffc423;
  --amber-deep: #e39a10;
  --tomato: #e2462e;
  --teal: #59c3b4;
  --line: rgba(247, 233, 200, 0.18);
  --font-display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --font-crt: 'VT323', 'Courier New', Courier, monospace;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.06'/%3E%3C/svg%3E");
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)' opacity='.085'/%3E%3C/svg%3E");
}

/* -------------------------------- Reset -------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 720px at 80% 2%, rgba(255, 164, 27, 0.16), transparent 62%),
    radial-gradient(900px 720px at 8% -4%, rgba(107, 63, 160, 0.32), transparent 66%),
    linear-gradient(180deg, #170b1e 0%, #1b0d23 42%, #2a1120 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Very light film grain over the whole set. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.4;
  mix-blend-mode: overlay;
}

img, svg, canvas, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

::selection { background: var(--amber); color: #241409; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }

/* ------------------------------- Utilities ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--amber);
  color: #241409;
  font-family: var(--font-crt);
  font-size: 20px;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 14px;
  font-family: var(--font-crt);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow--ink { color: #8a4a12; }

.section-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.section-lede {
  max-width: 64ch;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.75;
  color: #5b4430;
}

.color-bars {
  display: flex;
  height: 10px;
  width: 100%;
  opacity: 0.92;
}
.color-bars i { flex: 1 1 0; }
.color-bars i:nth-child(1) { background: #b9b9b9; }
.color-bars i:nth-child(2) { background: #b7b700; }
.color-bars i:nth-child(3) { background: #00b7b7; }
.color-bars i:nth-child(4) { background: #00b700; }
.color-bars i:nth-child(5) { background: #b700b7; }
.color-bars i:nth-child(6) { background: #b70000; }
.color-bars i:nth-child(7) { background: #0000b7; }

/* ------------------------------- Masthead ------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(18, 8, 22, 0.9);
  backdrop-filter: blur(9px) saturate(120%);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  border-bottom: 1px solid rgba(255, 196, 35, 0.24);
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 32px);
  min-height: 66px;
  padding-block: 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream);
  flex: 0 0 auto;
}
.brand__icon { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.brand__word {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 25px);
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}
.brand__tv {
  display: inline-block;
  padding: 0.12em 0.34em 0.02em;
  margin-left: -0.08em;
  background: var(--amber);
  color: #2a1608;
  font-size: 0.7em;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transform: translateY(-0.08em) rotate(-2.5deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin-left: auto;
}
.nav a {
  position: relative;
  font-family: var(--font-crt);
  font-size: clamp(17px, 1.7vw, 20px);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e2d0ad;
  padding: 4px 2px;
  transition: color 0.15s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transition: right 0.2s ease;
}
.nav a:hover { color: var(--amber); }
.nav a:hover::after { right: 0; }

.onair {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding-left: clamp(12px, 2vw, 20px);
  border-left: 1px solid var(--line);
  font-family: var(--font-crt);
  text-transform: uppercase;
}
.onair__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 10px rgba(226, 70, 46, 0.9);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.onair__label {
  font-size: 16px;
  letter-spacing: 0.16em;
  color: #d8c3a0;
}
.onair__clock {
  font-size: clamp(18px, 1.9vw, 21px);
  letter-spacing: 0.06em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(34px, 5vw, 64px);
  background-image:
    radial-gradient(1000px 520px at 84% 14%, rgba(255, 164, 27, 0.1), transparent 62%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.014) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.014) 50%, rgba(255, 255, 255, 0.014) 75%, transparent 75%);
  background-size: auto, 6px 6px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 76px);
}

.hero__copy { min-width: 0; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0.002em;
  text-wrap: balance;
  margin-bottom: 18px;
  color: var(--cream);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
}
.hero h1 .hl {
  color: var(--amber);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.hero__lede {
  max-width: 53ch;
  font-size: clamp(14.5px, 1.55vw, 16.5px);
  line-height: 1.78;
  color: #d6c4a2;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(26px, 3.4vw, 38px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.62em 1.05em 0.52em;
  border-radius: 8px;
  font-family: var(--font-crt);
  font-size: clamp(20px, 2.1vw, 24px);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #2a1608;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn--tune {
  color: #2a1608;
  background: linear-gradient(180deg, #ffd75e 0%, #ffb01f 58%, #f19b0b 100%);
  box-shadow:
    0 4px 0 #5b3208,
    0 12px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--tune:hover { filter: brightness(1.06); }
.btn--tune:active { transform: translateY(3px); box-shadow: 0 1px 0 #5b3208, 0 4px 10px rgba(0, 0, 0, 0.4); }
.btn--ghost {
  color: var(--cream);
  background: transparent;
  border: 2px dashed rgba(247, 233, 200, 0.42);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--amber); border-color: var(--amber); background: rgba(255, 196, 35, 0.06); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 42px);
  padding-top: 20px;
  border-top: 1px dashed rgba(247, 233, 200, 0.22);
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1;
  color: var(--amber);
  font-weight: 400;
}
.stats span {
  font-family: var(--font-crt);
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------- Television ----------------------------- */
.hero__tv {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.hero__tv::before {
  content: '';
  position: absolute;
  inset: 8% 2% auto;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 110, 0.17), transparent 78%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.hero__tv > * { position: relative; z-index: 1; }

.tv {
  position: relative;
  width: min(100%, 560px);
  padding-top: 42px;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.55));
}

.tv__antennae {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: auto;
  transform: translateX(-50%);
  opacity: 0.95;
  z-index: 0;
}

.tv__case {
  position: relative;
  border-radius: 26px 26px 18px 18px;
  padding: clamp(16px, 2.4vw, 26px) clamp(16px, 2.4vw, 26px) clamp(11px, 1.5vw, 16px);
  background: linear-gradient(180deg, #7c4a24 0%, #633618 26%, #4e2a10 62%, #351b08 100%);
  border: 2px solid #221208;
  box-shadow:
    inset 0 2px 0 rgba(255, 222, 170, 0.22),
    inset 3px 0 0 rgba(255, 222, 170, 0.08),
    inset -3px 0 0 rgba(0, 0, 0, 0.3),
    inset 0 -6px 0 rgba(0, 0, 0, 0.42),
    inset 8px 0 22px rgba(0, 0, 0, 0.28),
    inset -8px 0 22px rgba(0, 0, 0, 0.28),
    0 2px 0 #221208,
    0 30px 54px rgba(0, 0, 0, 0.55);
}

/* Wood grain: two angled pinstripe gradients layered on the cabinet. */
.tv__case::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.2) 0 1px, rgba(255, 224, 176, 0.06) 1px 3px, transparent 3px 7px),
    repeating-linear-gradient(88.5deg, rgba(255, 224, 176, 0.05) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(255, 220, 160, 0.06), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.22));
  opacity: 0.9;
  mix-blend-mode: overlay;
}

.tv__bezel {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  padding: clamp(9px, 1.5vw, 15px);
  background: linear-gradient(180deg, #251d17 0%, #140f0c 58%, #1d1611 100%);
  border: 1px solid #050302;
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.07),
    inset 0 -8px 20px rgba(0, 0, 0, 0.75),
    0 2px 0 rgba(255, 222, 170, 0.12);
}

.tv__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: radial-gradient(ellipse at 50% 45%, #17201a 0%, #090d0a 64%, #050706 100%);
  box-shadow:
    inset 0 0 64px rgba(0, 0, 0, 0.95),
    inset 0 0 16px #000,
    inset 0 0 0 2px #050403;
}

.tv__static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.tv__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tv.is-tuned .tv__video { opacity: 1; }
.tv.is-tuned .tv__static { opacity: 0; }

.tv__loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.tv__loading-text {
  padding: 0.25em 0.7em;
  font-family: var(--font-crt);
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 196, 35, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  animation: loading-pulse 1.8s ease-in-out infinite;
}
.tv.is-tuning .tv__loading { opacity: 1; visibility: visible; }
.tv.is-tuning .tv__idle { opacity: 0; visibility: hidden; }
.tv.is-tuning .tv__static { opacity: 1; }
.tv.is-tuning .tv__video { opacity: 0; }

.tv__idle {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  background: rgba(0, 0, 0, 0.16);
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}
.tv.is-tuned .tv__idle { opacity: 0; visibility: hidden; }
.tv__idle-line {
  font-family: var(--font-crt);
  font-size: clamp(21px, 3vw, 31px);
  letter-spacing: 0.16em;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  animation: crt-flicker 4.5s linear infinite;
}
.tv__idle-sub {
  font-family: var(--font-crt);
  font-size: clamp(14px, 1.7vw, 18px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #d9c9a8;
  text-shadow: 0 0 8px #000;
  animation: crt-blink 2.6s steps(2, jump-none) infinite;
}

.tv__osd {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  font-family: var(--font-crt);
  color: #fdf6e3;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tv.is-tuned .tv__osd { opacity: 1; }

.osd { position: absolute; text-shadow: 0 0 4px #000, 0 1px 3px #000; }
.osd--live {
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.16em;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.osd--live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 8px var(--tomato);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.osd--ch {
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  font-size: clamp(14px, 1.9vw, 20px);
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}
.osd--now {
  left: 12px;
  right: 84px;
  bottom: 10px;
  font-size: clamp(12px, 1.55vw, 17px);
  letter-spacing: 0.04em;
  color: #ffe9a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osd--time {
  right: 12px;
  bottom: 10px;
  font-size: clamp(12px, 1.55vw, 17px);
  letter-spacing: 0.06em;
  color: #bfe8e2;
  font-variant-numeric: tabular-nums;
}
.osd--brand {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.4);
}

.tv__hit {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
}
.tv__hit:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: -7px;
}

.tv__scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.24) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.tv__glare {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 52%, rgba(0, 0, 0, 0.46) 100%),
    radial-gradient(120% 90% at 18% 6%, rgba(255, 255, 255, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.28));
}

.tv__controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 14px);
  margin-top: clamp(12px, 1.7vw, 17px);
}

.knob-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.knob {
  width: clamp(32px, 3.9vw, 40px);
  height: clamp(32px, 3.9vw, 40px);
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #0b0603;
  cursor: pointer;
  color: var(--amber);
  background: radial-gradient(circle at 35% 28%, #4c3627 0%, #271a13 56%, #120b07 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 6px rgba(0, 0, 0, 0.6),
    0 2px 0 #0b0603,
    0 3px 9px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s ease, transform 0.08s ease;
}
.knob:hover { filter: brightness(1.22); }
.knob:active { transform: translateY(1px); }
.knob--icon { color: var(--cream); }
.knob svg { display: block; }

.knob .icon-sound-off { display: none; }
#sound-btn[aria-pressed='false'] .icon-sound-on { display: none; }
#sound-btn[aria-pressed='false'] .icon-sound-off { display: block; }
#sound-btn[aria-pressed='false'] { color: var(--tomato); }

.knob-readout {
  min-width: 76px;
  padding: 1px 9px;
  text-align: center;
  font-family: var(--font-crt);
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: 0.1em;
  color: var(--amber);
  background: #0a0705;
  border-radius: 4px;
  box-shadow: inset 0 0 9px #000, inset 0 0 0 1px rgba(255, 196, 35, 0.18);
}

.tv__plate {
  font-family: var(--font-crt);
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 233, 200, 0.6);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  user-select: none;
}

.tv__grille {
  position: relative;
  z-index: 1;
  height: 13px;
  margin-top: clamp(10px, 1.4vw, 14px);
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #2b190c 0 2px, #170d06 2px 5px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(255, 222, 170, 0.12);
  opacity: 0.9;
}

.tv__legs {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: -15px;
  display: flex;
  justify-content: space-between;
  z-index: -1;
}
.tv__legs i {
  width: 13%;
  max-width: 58px;
  height: 17px;
  background: linear-gradient(180deg, #3c210f, #241206);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.tv__caption {
  margin-top: 30px;
  max-width: 42ch;
  text-align: center;
  font-family: var(--font-crt);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: rgba(247, 233, 200, 0.66);
}

/* Fullscreen: the whole viewport becomes the picture. */
.tv:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding-top: 0;
  filter: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv:fullscreen .tv__case {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv:fullscreen .tv__case::before,
.tv:fullscreen .tv__antennae,
.tv:fullscreen .tv__controls,
.tv:fullscreen .tv__grille,
.tv:fullscreen .tv__legs { display: none; }
.tv:fullscreen .tv__bezel {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv:fullscreen .tv__screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}
.tv:fullscreen .tv__video { object-fit: contain; }

/* --------------------------------- Ticker ------------------------------- */
.ticker {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 50px;
  background: #0d0611;
  border-block: 1px solid rgba(255, 196, 35, 0.3);
  overflow: hidden;
}
.ticker__label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0 18px;
  background: linear-gradient(180deg, #e2462e, #b62f1c);
  color: #fdf0d5;
  font-family: var(--font-crt);
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.55);
}
.ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2.3em;
  padding-left: 1.6em;
  white-space: nowrap;
  font-family: var(--font-crt);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: #d9c6a2;
  animation: ticker-scroll 90s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track b { color: var(--amber); font-weight: 400; }
.ticker__track i { font-style: normal; color: rgba(226, 70, 46, 0.85); }

/* ------------------------------ Channel guide --------------------------- */
.guide {
  position: relative;
  color: var(--ink);
  padding: clamp(46px, 6.4vw, 88px) 0 clamp(42px, 5.6vw, 74px);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 340px at 82% -6%, rgba(255, 164, 27, 0.14), transparent 70%),
    var(--paper-grain);
}
.guide > .color-bars { position: absolute; top: 0; left: 0; right: 0; }

.guide .section-lede { color: #5b4430; }

.guide__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 14px;
}
.guide__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #6a4d33;
}
.guide__sep { color: rgba(42, 26, 15, 0.34); }
.guide__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-crt);
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a03a20;
}
.guide__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 2px rgba(226, 70, 46, 0.16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.guide__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filter {
  padding: 4px 11px 2px;
  border: 1.5px solid #2a1a0f;
  border-radius: 999px;
  background: transparent;
  color: #3d2a1a;
  font-family: var(--font-crt);
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.08s ease;
}
.filter:hover { background: #efe0bd; }
.filter:active { transform: translateY(1px); }
.filter.is-active { background: #2a1a0f; color: #f7e9c8; }
.filter:focus-visible { outline: 2px solid #a03a20; outline-offset: 2px; }

/* Electronic programme guide -------------------------------------------------
   A horizontal scroller with a sticky channel column. Programme blocks are
   positioned by percentage of the four-hour window, so the same markup works at
   every screen size (only --slotw / --chw change). */
.epg {
  --chw: 208px;
  --slotw: 108px;
  --slots: 8;
  --trackw: calc(var(--slotw) * var(--slots));
  position: relative;
  border: 1.5px solid #2a1a0f;
  border-radius: 10px;
  background: #fbf3dd;
  box-shadow: 6px 6px 0 rgba(42, 26, 15, 0.16);
  overflow: hidden;
}
.epg__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #8a6a45 #efe0bd;
  scrollbar-width: thin;
}
.epg__inner {
  position: relative;
  width: calc(var(--chw) + var(--trackw));
  min-height: 120px;
}

.epg__head {
  display: flex;
  height: 36px;
  background: #2a1a0f;
  color: #e4d2ab;
  position: relative;
  z-index: 2;
}
.epg__corner {
  position: sticky;
  left: 0;
  z-index: 5;
  flex: 0 0 var(--chw);
  width: var(--chw);
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #241409;
  border-right: 2px solid #0c0703;
  font-family: var(--font-crt);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8b696;
}
.epg__times { display: flex; flex: 0 0 var(--trackw); width: var(--trackw); }
.epg__time {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-left: 1px solid rgba(247, 233, 200, 0.14);
  font-family: var(--font-crt);
  font-size: 15px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  color: #e4d2ab;
}
.epg__time.is-hour { color: var(--amber); border-left-color: rgba(255, 196, 35, 0.42); }

.epg__row {
  position: relative;
  display: flex;
  height: 58px;
  border-bottom: 1px solid rgba(42, 26, 15, 0.12);
}
.epg__row:last-child { border-bottom: 0; }
.epg__row.is-active { background: rgba(255, 196, 35, 0.14); }

.epg__ch {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: 0 0 var(--chw);
  width: var(--chw);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 12px;
  border: 0;
  border-right: 2px solid #2a1a0f;
  border-left: 5px solid var(--ch, #e2462e);
  background: #f3e6c8;
  color: #241409;
  text-align: left;
  cursor: pointer;
}
.epg__row:nth-child(even) .epg__ch { background: #efe0bd; }
.epg__row.is-active .epg__ch { background: #ffe9a8; }
.epg__ch:hover { background: #fff6df; }
.epg__ch:focus-visible { outline: 2px solid #a03a20; outline-offset: -5px; }
.epg__dial {
  flex: 0 0 auto;
  min-width: 26px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.epg__chname {
  min-width: 0;
  font-family: var(--font-crt);
  font-size: 15px;
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epg__track {
  position: relative;
  flex: 0 0 var(--trackw);
  width: var(--trackw);
  background-image: repeating-linear-gradient(
    to right,
    rgba(42, 26, 15, 0.09) 0 1px,
    transparent 1px var(--slotw)
  );
}

.epg__program {
  position: absolute;
  top: 4px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 6px;
  border: 1px solid rgba(42, 26, 15, 0.16);
  border-left: 3px solid var(--ch, #e2462e);
  border-radius: 4px;
  background: #f8efd8;
  color: #3d2a1a;
  text-align: left;
  overflow: hidden;
  pointer-events: none;
}
.epg__rowhit {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.epg__rowhit:focus-visible { outline: 2px solid #a03a20; outline-offset: -3px; }
.epg__row:hover .epg__track { background-color: rgba(255, 196, 35, 0.09); }
.epg__row.is-active:hover .epg__track { background-color: transparent; }

.epg__program.is-live {
  background: rgba(42, 26, 15, 0.06);
  background: color-mix(in srgb, var(--ch, #e2462e) 17%, #f8efd8);
  border-color: color-mix(in srgb, var(--ch, #e2462e) 48%, #2a1a0f);
}
.epg__program.is-live::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--progress, 0%);
  background: var(--ch, #e2462e);
}
.epg__ptime {
  font-family: var(--font-crt);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #7a5a3a;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epg__program.is-live .epg__ptime { color: #8a2b18; }
.epg__program.is-narrow .epg__ptitle { visibility: hidden; }
.epg__ptitle {
  font-size: 11.5px;
  line-height: 1.2;
  color: #3d2a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epg__now {
  position: absolute;
  top: 36px;
  bottom: 0;
  left: calc(var(--chw) + (var(--trackw) * var(--nowfrac, 0)));
  width: 2px;
  margin-left: -1px;
  background: rgba(226, 70, 46, 0.82);
  z-index: 2;
  pointer-events: none;
}

.epg__loading,
.epg__noscript {
  padding: 28px 22px;
  font-family: var(--font-crt);
  font-size: 19px;
  color: #6a4d33;
}

.epg__hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-crt);
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #6a4d33;
}
.epg__hint span { color: #a03a20; font-size: 18px; }

.guide__note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6a4d33;
}
.guide__note a {
  color: #a03a20;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.guide__note a:hover { color: var(--ink); }

/* --------------------------------- About -------------------------------- */
.about {
  padding: clamp(56px, 7.4vw, 104px) 0;
  background: linear-gradient(180deg, #170b1e 0%, #1e0e26 58%, #28111f 100%);
  border-top: 1px solid rgba(247, 233, 200, 0.08);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: start;
}

.prose { max-width: 66ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.9vw, 2.95rem);
  line-height: 1.04;
  margin-bottom: 18px;
  color: var(--cream);
  text-wrap: balance;
}
.prose p {
  margin-bottom: 17px;
  font-size: clamp(14.5px, 1.45vw, 16px);
  line-height: 1.8;
  color: #d3c1a2;
}
.prose strong { color: #fff3d8; }
.quicktake {
  position: relative;
  margin: 0 0 22px;
  padding: 20px 22px 19px;
  border: 1px solid rgba(255, 196, 35, 0.34);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: rgba(255, 196, 35, 0.07);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.18);
}
.quicktake__label {
  margin: 0 0 8px;
  font-family: var(--font-crt);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}
.quicktake p:last-child {
  margin: 0;
  font-size: clamp(14.5px, 1.45vw, 15.5px);
  line-height: 1.75;
  color: #e0ceac;
}
.quicktake strong { color: #fff3d8; }

.dial-list {
  font-family: var(--font-crt);
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #d3c1a2;
}

.prose h3 {
  margin: 30px 0 9px;
  font-family: var(--font-crt);
  font-size: clamp(20px, 2.1vw, 25px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1.15;
}
.textlink {
  color: #ffd469;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 212, 105, 0.5);
  text-underline-offset: 3px;
}
.textlink:hover { color: #fff; }

.about__card {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(247, 233, 200, 0.18);
  border-radius: 12px;
  background: rgba(247, 233, 200, 0.045);
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.28);
}
.about__card-kicker {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(247, 233, 200, 0.2);
  font-family: var(--font-crt);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}
.facts { display: grid; gap: 10px; }
.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dotted rgba(247, 233, 200, 0.12);
}
.facts dt {
  font-family: var(--font-crt);
  font-size: 14px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; font-size: 13px; color: var(--cream); text-align: right; }
.about__card-note {
  margin-top: 15px;
  font-family: var(--font-crt);
  font-size: 14.5px;
  line-height: 1.5;
  color: #a58e73;
}

/* ------------------------------ How to watch ---------------------------- */
.how {
  padding: clamp(56px, 7vw, 98px) 0;
  background: #120a17;
  border-top: 1px solid rgba(247, 233, 200, 0.07);
}
.section-head--dark h2 { color: var(--cream); }
.section-head--dark .section-lede { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
}
.step {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(247, 233, 200, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(247, 233, 200, 0.055), rgba(247, 233, 200, 0.018));
}
.step__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  line-height: 1;
  color: rgba(255, 196, 35, 0.85);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.32);
}
.step h3 {
  margin: 0 0 7px;
  font-family: var(--font-crt);
  font-size: clamp(21px, 2.2vw, 25px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cream);
}
.step p {
  font-size: 13.8px;
  line-height: 1.7;
  color: #c8b696;
}

/* --------------------------------- Retro -------------------------------- */
.retro {
  padding: clamp(56px, 7vw, 100px) 0;
  background: linear-gradient(180deg, #2a1220 0%, #190c1f 100%);
  border-top: 1px solid rgba(247, 233, 200, 0.07);
}
.retro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.retro__sign {
  padding: 26px 24px;
  border: 1px solid rgba(255, 196, 35, 0.4);
  border-radius: 8px;
  background: #0d0812;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.35), inset 0 0 34px rgba(255, 196, 35, 0.05);
  transform: rotate(-1.2deg);
}
.retro__sign-head {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 196, 35, 0.24);
  font-family: var(--font-crt);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tomato);
}
.retro__sign-body {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--amber);
  text-shadow: 0 0 22px rgba(255, 196, 35, 0.3);
}
.retro__sign-foot {
  margin-top: 14px;
  text-align: right;
  font-family: var(--font-crt);
  font-size: 16px;
  color: var(--muted);
}

/* ---------------------------------- FAQ --------------------------------- */
.faq {
  padding: clamp(56px, 7vw, 100px) 0 clamp(62px, 8vw, 110px);
  background: #170b1e;
  border-top: 1px solid rgba(247, 233, 200, 0.07);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 4.6vw, 60px);
  align-items: start;
}
.faq__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.03;
  margin-bottom: 12px;
  color: var(--cream);
}
.faq__head .section-lede { color: var(--muted); }
.faq__list { display: grid; gap: 11px; }
.faq__item {
  border: 1px solid rgba(247, 233, 200, 0.16);
  border-radius: 8px;
  background: rgba(247, 233, 200, 0.032);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.faq__item:hover { border-color: rgba(255, 196, 35, 0.36); }
.faq__item[open] {
  border-color: rgba(255, 196, 35, 0.42);
  background: rgba(255, 196, 35, 0.045);
}
.faq__item summary {
  position: relative;
  display: block;
  padding: 17px 48px 17px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-crt);
  font-size: clamp(18px, 2vw, 21px);
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--cream);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-52%);
  font-family: var(--font-crt);
  font-size: 26px;
  line-height: 1;
  color: var(--amber);
  transition: transform 0.18s ease;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.faq__item p {
  padding: 0 20px 19px;
  margin: 0;
  font-size: 14.3px;
  line-height: 1.75;
  color: #c8b696;
}

/* -------------------------------- Footer -------------------------------- */
.footer {
  position: relative;
  border-top: 1px solid rgba(255, 196, 35, 0.22);
  background: #0c0611;
}
.footer > .color-bars { height: 6px; opacity: 0.8; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 48px);
  padding-block: clamp(38px, 4.6vw, 58px) 30px;
}
.footer__word {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  color: var(--cream);
  line-height: 1;
}
.footer__word span { color: var(--amber); }
.footer__tag {
  margin-top: 10px;
  max-width: 30ch;
  font-family: var(--font-crt);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer__nav { display: flex; flex-direction: column; gap: 9px; }
.footer__nav a {
  width: fit-content;
  font-family: var(--font-crt);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d3c1a2;
}
.footer__nav a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #8f7a60;
  margin-bottom: 12px;
}
.footer__meta {
  font-family: var(--font-crt);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #b7a184;
}

/* --------------------------------- 404 ---------------------------------- */
.offair {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(255, 164, 27, 0.12), transparent 62%),
    linear-gradient(180deg, #170b1e, #2a1120);
  text-align: center;
}
.offair__inner { max-width: 620px; }
.offair__tv { width: 180px; margin: 0 auto 26px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.55)); }
.offair__kicker {
  font-family: var(--font-crt);
  font-size: 20px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 10px;
}
.offair h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 16px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.offair p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 26px;
}
.offair .btn { margin-inline: auto; }

/* ------------------------------- Keyframes ------------------------------ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes crt-blink {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.15; }
}
@keyframes crt-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  94% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
}
@keyframes loading-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ------------------------------- Responsive ----------------------------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 6vw, 54px); }
  .hero__tv { order: 2; }
  .hero__copy { max-width: 720px; }
  .about__grid,
  .retro__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about__card { position: static; max-width: 520px; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  .masthead__row {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-block: 8px 10px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 18px;
    margin-left: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(247, 233, 200, 0.1);
  }
  .nav a { font-size: 17px; }
  .onair { border-left: 0; padding-left: 0; margin-left: auto; }
  .hero h1 { text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3); }
  .tv__plate { display: none; }
  .tv__caption { margin-top: 26px; font-size: 16px; }
  .ticker__label { font-size: 16px; padding: 0 12px; }
  .ticker__track { font-size: 17px; gap: 1.6em; }
  .guide .section-head { margin-bottom: 24px; }
  .epg { --chw: 158px; --slotw: 96px; }
  .epg__chname { font-size: 14px; }
  .epg__dial { font-size: 18px; min-width: 22px; }
  .epg__ch { gap: 6px; padding: 0 8px 0 10px; }
  .epg__time { font-size: 13.5px; padding-left: 6px; }
  .guide__meta { font-size: 12px; }
  .filter { font-size: 14px; padding: 3px 9px 1px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__legal { grid-column: auto; }
  .offair__tv { width: 140px; }
}

@media (max-width: 430px) {
  .onair__label { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats { gap: 12px; }
  .stats li { flex: 1 1 0; min-width: 0; }
  .stats span { font-size: 12.5px; letter-spacing: 0.05em; }
  body::before { display: none; }
  .tv__plate { display: none; }
  .epg { --chw: 146px; --slotw: 92px; }
  .epg__chname { font-size: 13px; }
  .epg__dial { font-size: 16.5px; min-width: 20px; }
  .epg__row { height: 56px; }
  .knob-readout { min-width: 64px; font-size: 17px; }
  .knob-group { gap: 5px; }
  .tv__controls { gap: 4px; }
  .tv { padding-top: 34px; }
}

/* ---------------------------- Motion & print ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; transform: none; }
  .onair__dot,
  .osd--live i,
  .tv__idle-line,
  .tv__idle-sub { animation: none; }
  .ch-card,
  .btn,
  .faq__item,
  .knob { transition: none; }
}

@media print {
  body { background: #fff; color: #111; }
  body::before,
  .masthead,
  .hero__tv,
  .ticker,
  .footer,
  .color-bars { display: none !important; }
  .guide { background: #fff; }
  a { color: #111; }
}
