/* Y2KSPACE reading pages (/watch-2000s-tv-online/, /y2k-tv-channels/, /es/).
   Same tokens as /guide/: a 2001 cable guide channel in the site's phosphor green.
   Each page spends its boldness in one place (the CRT, the daypart grid, the hero still);
   everything here is the quiet floor around it. */
:root {
  --black: #000;
  --phosphor: #00ff41;
  --phosphor-dim: rgba(0, 255, 65, 0.55);
  --grid: #13208a;
  --grid-lit: #2238c7;
  --grid-line: #3550e0;
  --listing: #070b24;
  --gold: #ffe14d;
  --text: #e6eaf2;
  --muted: #a3acc4;
  --display: 'Orbitron', 'Arial Black', sans-serif;
  --body: Verdana, Tahoma, 'DejaVu Sans', sans-serif;
  --mono: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 16px/1.7 var(--body); isolation: isolate;
}
/* scanlines: ground texture so no dark area reads as empty */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
}
a { color: var(--phosphor); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-shadow: 0 0 10px rgba(0,255,65,0.6); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ── top bar ── */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.bar-right { display: flex; align-items: center; gap: 18px; }
.mark { font: 900 22px/1 var(--display); letter-spacing: 0.05em; color: #fff; text-decoration: none;
  text-shadow: 0 0 24px rgba(0,255,65,0.45); }
.mark span { color: var(--phosphor); text-shadow: 0 0 16px rgba(0,255,65,0.9); }
.mark:hover { text-shadow: 0 0 30px rgba(0,255,65,0.7); }
.lang { font: 13px/1 var(--body); color: var(--muted); }
.lang:hover { color: var(--phosphor); }

/* ── power button: the one action on every page ── */
.power {
  display: inline-block; padding: 14px 26px; border: 2px solid var(--phosphor); border-radius: 8px;
  font: 700 15px/1 var(--display); letter-spacing: 0.12em; color: var(--phosphor); text-decoration: none;
  background: rgba(0, 40, 12, 0.55);
  box-shadow: 0 0 18px rgba(0,255,65,0.35), inset 0 0 14px rgba(0,255,65,0.15);
  transition: box-shadow .2s ease, background .2s ease, transform .1s ease;
}
.power:hover { background: rgba(0, 70, 20, 0.7); box-shadow: 0 0 32px rgba(0,255,65,0.65), inset 0 0 18px rgba(0,255,65,0.25); text-shadow: none; }
.power:active { transform: translateY(1px) scale(0.99); }
.bar .power { padding: 10px 16px; font-size: 12px; }
@media (max-width: 420px) { .bar .power { padding: 9px 12px; font-size: 11px; letter-spacing: 0.08em; } .lang { display: none; } }

/* ── type ── */
h1 { margin: 0 0 14px; font: 900 clamp(28px, 5vw, 52px)/1.05 var(--display); letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 0 30px rgba(0,255,65,0.35), 0 2px 10px rgba(0,0,0,0.9); }
.lede { margin: 0 0 22px; font-size: clamp(15px, 1.7vw, 18px); color: #f2f4f8; max-width: 60ch; }
section { padding: 56px 0 0; }
h2 { margin: 0 0 18px; font: 700 clamp(22px, 3vw, 30px)/1.2 var(--display); color: #fff; letter-spacing: 0.02em; }
h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; background: var(--phosphor); box-shadow: 0 0 12px var(--phosphor); }
h3 { margin: 0 0 6px; font: 700 18px/1.25 var(--display); color: #fff; letter-spacing: 0.02em; }
p { margin: 0 0 14px; max-width: 72ch; }
.t { color: var(--gold); }   /* a title, the way the guide channel set them in yellow */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }

/* ── listing rows: the cable guide grid (same as /guide/) ── */
.listings { display: grid; gap: 6px; margin-top: 8px; }
.row { display: grid; grid-template-columns: 190px 1fr; border: 1px solid var(--grid-line); border-radius: 6px; overflow: hidden;
  background: var(--listing); transition: border-color .2s ease, box-shadow .2s ease; }
.net { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px; background: var(--grid);
  border-right: 1px solid var(--grid-line); transition: background .2s ease, box-shadow .2s ease; }
.net b { font: 700 15px/1.2 var(--display); color: #fff; letter-spacing: 0.03em; }
.net small { font: 12px/1.3 var(--mono); color: #c9d2ff; }
.show { padding: 16px 20px; }
.show p:last-child { margin-bottom: 0; }
.row:hover, .row:focus-within { border-color: var(--phosphor-dim); box-shadow: 0 0 22px rgba(0,255,65,0.12); }
.row:hover .net, .row:focus-within .net { background: var(--grid-lit); box-shadow: inset 4px 0 0 var(--phosphor); }
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
  .net { flex-direction: row; align-items: baseline; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--grid-line); padding: 12px 16px; }
}

/* ── steps: a real sequence, so numbers are earned ── */
.steps { counter-reset: step; list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 58px; border: 1px solid var(--grid-line);
  border-radius: 6px; background: var(--listing); max-width: 72ch; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; bottom: 0; width: 42px;
  display: grid; place-items: center; background: var(--grid); border-right: 1px solid var(--grid-line);
  font: 700 15px/1 var(--display); color: var(--phosphor); }

/* ── a note that sits off to the side, like the guide channel's crawl ── */
.note { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; color: var(--text); max-width: 72ch; }

/* ── questions ── */
details { border: 1px solid var(--grid-line); border-radius: 6px; background: var(--listing); margin-bottom: 6px; }
summary { cursor: pointer; padding: 14px 18px; font: 700 15px/1.35 var(--display); letter-spacing: 0.02em; color: #fff; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; transition: background .2s ease; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--phosphor); font-family: var(--mono); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
summary:hover { background: var(--grid); }
details[open] summary { background: var(--grid); border-bottom: 1px solid var(--grid-line); }
details p { padding: 14px 18px 0; }
details p:last-child { padding-bottom: 14px; margin-bottom: 0; }

/* ── more to read: the other pages, as guide listings ── */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; }
.more a { display: block; padding: 14px 16px; border: 1px solid var(--grid-line); border-radius: 6px; background: var(--listing);
  color: #fff; text-decoration: none; transition: background .2s ease, box-shadow .2s ease; }
.more a b { display: block; font: 700 15px/1.3 var(--display); color: #fff; margin-bottom: 4px; }
.more a span { font-size: 14px; color: var(--muted); }
.more a:hover, .more a:focus-visible { background: var(--grid); box-shadow: inset 4px 0 0 var(--phosphor); text-shadow: none; }

/* ── sign-off ── */
.signoff { margin-top: 56px; padding: 32px; border: 1px solid #1c3a22; border-radius: 12px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,255,65,0.12), transparent 70%); }
.signoff p { margin-inline: auto; }
footer { padding: 40px 0 48px; color: var(--muted); font: 13px/1.6 var(--mono); }
footer p { margin: 0 0 6px; }

/* ════ /watch-2000s-tv-online/: the CRT is the bold thing ════ */
.tv-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: 12px; }
@media (max-width: 820px) { .tv-hero { grid-template-columns: 1fr; } }
/* the set: a beige-gray 2001 CRT, and the whole thing is the link to the real TV */
.crt { display: block; position: relative; text-decoration: none; padding: 18px 18px 46px; border-radius: 22px;
  background: linear-gradient(160deg, #3b3b40, #1d1d21 60%, #141417); border: 1px solid #44444a;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08); }
.crt:hover { text-shadow: none; }
.crt-glass { display: block; position: relative; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 18px / 22px; overflow: hidden; background: #000;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 0 0 6px #0c0c0e; }
/* SMPTE-style bars: the "nothing on yet" state */
.bars { position: absolute; inset: 0; display: grid; grid-template-rows: 67% 8% 25%; }
.bars .top { display: grid; grid-template-columns: repeat(7, 1fr); }
.bars .mid { display: grid; grid-template-columns: repeat(7, 1fr); }
.bars .low { display: grid; grid-template-columns: 5fr 1fr 1fr 1fr 1fr; }
.bars i { display: block; }
/* static: shown while the set "tunes" on hover or focus */
.static { position: absolute; inset: -50%; opacity: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-color: #777; }
.osd { position: absolute; z-index: 2; top: 7%; right: 8%; font: 700 clamp(18px, 3vw, 30px)/1 var(--mono); color: #39ff6a;
  text-shadow: 0 0 6px rgba(57,255,106,0.9), 2px 2px 0 #000; }
.crt-glass::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.14), transparent 45%),
              repeating-linear-gradient(to bottom, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px); }
.crt-label { position: absolute; left: 24px; bottom: 15px; font: 700 12px/1 var(--display); letter-spacing: 0.16em; color: #a9a9b2; }
.crt-knob { position: absolute; right: 24px; bottom: 13px; width: 16px; height: 16px; border-radius: 50%;
  background: #0b0b0d; border: 2px solid #55555c; transition: background .2s ease, box-shadow .2s ease; }
.crt-cta { position: absolute; right: 50px; bottom: 15px; font: 700 12px/1 var(--display); letter-spacing: 0.12em; color: var(--phosphor); }
/* pressing the set tunes it: static rolls, then you are taken to the real TV */
.crt:hover .crt-knob, .crt:focus-visible .crt-knob { background: var(--phosphor); box-shadow: 0 0 12px var(--phosphor); }
.crt:hover .static, .crt:focus-visible .static { animation: tune .5s steps(6) 1 forwards; }
@keyframes tune {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .9; transform: translate(-6%, 4%); }
  40% { opacity: .85; transform: translate(5%, -3%); }
  60% { opacity: .9; transform: translate(-3%, -6%); }
  80% { opacity: .6; transform: translate(4%, 5%); }
  100% { opacity: 0; transform: translate(0, 0); }
}

/* ════ /y2k-tv-channels/: the daypart grid is the bold thing ════ */
.guide-screen { margin-top: 12px; border: 1px solid var(--grid-line); border-radius: 12px; overflow: hidden; background: var(--listing);
  box-shadow: 0 0 40px rgba(34,56,199,0.25); }
.guide-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--grid-line); }
@media (max-width: 760px) { .guide-head { grid-template-columns: 1fr; } }
.guide-title { padding: clamp(20px, 4vw, 40px); }
.guide-title .lede { margin-bottom: 0; }
.guide-preview { position: relative; min-height: 220px; border-left: 1px solid var(--grid-line); }
.guide-preview img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.guide-clock { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: rgba(19,32,138,0.92);
  border: 1px solid var(--grid-line); border-radius: 4px; font: 700 14px/1.2 var(--mono); color: #fff; }
@media (max-width: 760px) { .guide-preview { border-left: 0; border-top: 1px solid var(--grid-line); aspect-ratio: 16 / 9; min-height: 0; } }

table.dayparts { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; padding: 4px; }
.dayparts caption { text-align: left; padding: 12px 12px 4px; font: 13px/1.4 var(--mono); color: #c9d2ff; caption-side: top; }
.dayparts th, .dayparts td { vertical-align: top; text-align: left; border-radius: 4px; }
.dayparts thead th { padding: 10px 12px; background: var(--grid-lit); color: #fff; font: 700 13px/1.2 var(--display); letter-spacing: 0.04em; }
.dayparts thead th:first-child { background: transparent; }
.dayparts tbody th { width: 22%; padding: 14px 12px; background: var(--grid); color: #fff; font: 700 14px/1.25 var(--display); }
.dayparts td { padding: 12px; background: #0b1240; border: 1px solid #1d2a7a; font-size: 14px; line-height: 1.5;
  transition: background .15s ease, box-shadow .15s ease; }
.dayparts td b { display: block; color: var(--gold); font-weight: 700; }
.dayparts td.off { background: transparent; border-color: transparent; color: #59618a; font-family: var(--mono); font-size: 13px; }
/* hovering a cell lights it the way the guide channel lit the current program */
.dayparts td:not(.off):hover { background: var(--grid-lit); box-shadow: inset 0 0 0 1px var(--phosphor); }
.dayparts tbody tr:hover th { box-shadow: inset 4px 0 0 var(--phosphor); }
@media (max-width: 640px) {
  table.dayparts, .dayparts tbody, .dayparts tr, .dayparts th, .dayparts td { display: block; width: auto; }
  .dayparts thead { display: none; }
  .dayparts tbody tr { margin: 0 4px 8px; }
  .dayparts caption { display: block; }
  .dayparts tbody th { width: auto; border-radius: 4px 4px 0 0; }
  .dayparts td { border-radius: 0; margin-top: 2px; }
  .dayparts td::before { content: attr(data-daypart); display: block; font: 12px/1.3 var(--mono); color: #c9d2ff; margin-bottom: 2px; }
  .dayparts td.off { display: none; }
}

/* ════ /es/: the hero still is the bold thing (same as /guide/) ════ */
.hero { position: relative; isolation: isolate; border: 1px solid #1c1c1c; border-radius: 14px; overflow: hidden; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 30%, transparent 35%, rgba(0,0,0,0.55) 100%),
              linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 45%, transparent 70%); }
.hero-copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding: clamp(18px, 4vw, 44px); max-width: 760px; }
.hero-copy .lede { text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
@media (max-width: 720px) {
  .hero img { aspect-ratio: 4 / 3; }
  .hero-copy { position: static; background: #000; padding: 20px 16px 24px; }
  .hero::after { background: radial-gradient(ellipse at 30% 30%, transparent 35%, rgba(0,0,0,0.45) 100%); bottom: auto; height: calc(100vw * 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
