/* ==========================================================================
   BERLY PORTFOLIO TV
   ========================================================================== */
:root {
  --bg: #0b0b0e;
  --bg2: #121217;
  --bg3: #1a1a21;
  --ink: #f4f1ea;
  --ink2: #c9c6bd;
  --mut: #8a8892;
  --line: rgba(244, 241, 234, .1);
  --line2: rgba(244, 241, 234, .18);

  /* SMPTE color bars = brand palette */
  --bar-w: #c8c8c8;
  --yel: #ffd400;
  --cya: #2fd4e0;
  --grn: #3ddc6a;
  --mag: #e040c8;
  --red: #ff3b30;
  --blu: #3b5bff;
  --osd: #9dff8a;
  --bars: linear-gradient(90deg, var(--bar-w) 0 14.3%, var(--yel) 0 28.6%, var(--cya) 0 42.9%, var(--grn) 0 57.1%, var(--mag) 0 71.4%, var(--red) 0 85.7%, var(--blu) 0);

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-osd: 'VT323', ui-monospace, monospace;
  --ok: 1; /* OSD font scale: VT323 runs small, Pixelify (ru) runs big */

  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --top-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html[lang="ru"] { --f-osd: 'Tiny5', ui-monospace, monospace; --ok: .66; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-anchor: none; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); overflow-x: clip; }
html.is-intro, html.is-intro body, html.needs-lang, html.needs-lang body { overflow: hidden; height: 100%; }
html.modal-open body, html.menu-open body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--yel); color: #0b0b0e; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--yel); color: #0b0b0e; padding: 10px 14px; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

.rec {
  display: inline-block; flex: none; width: .55em; height: .55em; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red);
  animation: rec 1.2s steps(1) infinite;
}
@keyframes rec { 50% { opacity: .2; } }

/* ---------- buttons ---------- */
.btn {
  --sh: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 999px; border: 2px solid #0b0b0e;
  font: 800 15px/1.1 var(--f-body); letter-spacing: .01em; text-align: center;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: box-shadow .18s var(--ease-out), background-color .2s, border-color .2s, color .2s;
}
.btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: -1;
  background: var(--bars); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn--primary { background: var(--yel); color: #0b0b0e; box-shadow: 4px 4px 0 var(--sh); }
.btn--primary:hover { box-shadow: 7px 7px 0 var(--sh); }
.btn--primary:active { box-shadow: 1px 1px 0 var(--sh); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn--small.btn--primary { box-shadow: 3px 3px 0 var(--sh); }
.btn__ico { font-size: 12px; }

/* ==========================================================================
   SMOOTH SCROLL (Lenis)
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ==========================================================================
   INTRO
   ========================================================================== */
html.no-intro:not(.needs-lang) .boring, html.no-intro .curtain, html.no-intro .skip,
html.no-intro #introStatic, html.no-intro .bars { display: none; }
html.no-intro.needs-lang .boring { z-index: 57; }

.boring {
  position: fixed; inset: 0; z-index: 53;
  background: #f1f1f1; color: #2a2a2a;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; overflow: hidden;
  transform-origin: 50% 50%;
}
.boring__rain { position: absolute; inset: 0; pointer-events: none; }
.boring__rain i { position: absolute; width: 1px; height: 16px; background: #bdbdbd; }
.boring__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.boring__name { font-size: 13px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #5a5a5a; }
.boring__title {
  margin: 14px 0 18px;
  font: italic 800 clamp(48px, 9vw, 104px)/1.05 'Inter', system-ui, sans-serif;
  letter-spacing: -.02em; color: #2a2a2a; white-space: nowrap;
}
.boring__title .bl, .boring__name .bl { display: inline-block; will-change: transform; }
.boring__text { max-width: 500px; color: #a0a0a0; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.75; }
.boring__text b { color: #555; font-weight: 600; }
.boring__video {
  position: relative; margin-top: 32px;
  width: min(480px, 84vw); aspect-ratio: 16 / 9; max-height: 28vh;
  background: #d8d8d8; border-radius: 4px;
  display: grid; place-items: center;
}
.boring__video span { width: 0; height: 0; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.boring__made { position: absolute; bottom: 14px; left: 0; right: 0; font-size: 12px; color: #b5b5b5; }

/* language choice, dressed as the same free website-builder page */
.boring__lang { position: relative; display: none; flex-direction: column; align-items: center; }
html.needs-lang .boring__lang { display: flex; }
html.needs-lang .boring__inner { display: none; }
.boring__title--lang { font-size: clamp(34px, 8vw, 76px); white-space: normal; }
.boring__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.boring__btn {
  min-width: 150px; padding: 15px 28px; border: 0; border-radius: 6px; cursor: pointer;
  background: #2b2b2b; color: #fff; font: 600 15px/1 'Inter', system-ui, sans-serif;
  transition: background-color .2s, box-shadow .2s;
}
.boring__btn:hover, .boring__btn.is-sel { background: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.boring__btn:focus-visible { outline: 2px solid #2b2b2b; outline-offset: 3px; border-radius: 6px; }
.boring__check {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; cursor: pointer;
  color: #9a9a9a; font: 500 13px/1 'Inter', system-ui, sans-serif;
}
.boring__check input { width: 16px; height: 16px; margin: 0; accent-color: #2b2b2b; cursor: pointer; }

.curtain { position: fixed; inset: 0; z-index: 52; background: #000; display: grid; place-items: center; }
.crt-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 30px 10px rgba(255, 255, 255, .8); opacity: 0; }

.static-full, .static-layer {
  background-image: var(--noise);
  background-size: 320px 320px;
  image-rendering: pixelated;
  animation: noise .24s steps(1) infinite;
  pointer-events: none;
}
.static-full { position: fixed; inset: 0; z-index: 54; opacity: 0; visibility: hidden; filter: contrast(1.6) brightness(1.1); }
.static-full--lang { z-index: 140; }
.static-layer { position: absolute; inset: 0; z-index: 6; opacity: 0; filter: contrast(1.2); border-radius: inherit; }
/* a soft glow of colour (the cassette landing, a channel change) */
.wash-layer { position: absolute; inset: 0; z-index: 6; opacity: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: screen; }
@keyframes noise {
  0%   { background-position: 0 0; }
  20%  { background-position: -83px 41px; }
  40%  { background-position: 57px -112px; }
  60%  { background-position: -141px -23px; }
  80%  { background-position: 96px 77px; }
  100% { background-position: -19px 133px; }
}

.bars { position: fixed; inset: 0; z-index: 55; display: flex; pointer-events: none; }
.bars i { flex: 1; transform: scaleY(0); transform-origin: 50% 0; }
.bars i:nth-child(1) { background: var(--bar-w); }
.bars i:nth-child(2) { background: var(--yel); }
.bars i:nth-child(3) { background: var(--cya); }
.bars i:nth-child(4) { background: var(--grn); }
.bars i:nth-child(5) { background: var(--mag); }
.bars i:nth-child(6) { background: var(--red); }
.bars i:nth-child(7) { background: var(--blu); }

.skip {
  position: fixed; left: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; border: 0;
  background: rgba(20, 20, 24, .82); color: #fff;
  font: 700 13px/1 var(--f-body); cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
}
.skip:hover { background: #000; }

/* ==========================================================================
   HOST — mascot, bubble, podiums
   ========================================================================== */
/* document-sized layer: while standing on a podium the host is positioned in
   page coordinates (scrolls natively, no jitter) and this layer clips him so he
   can never widen the page. No z-index here, so his own z-index still works. */
body { position: relative; }
.host-layer { position: absolute; inset: 0; overflow: hidden; overflow: clip; pointer-events: none; }
.host {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 260px; height: 225px;
  transform-origin: 130px 215px;
  pointer-events: none;
  visibility: hidden;
  will-change: transform;
}
.host.is-ready { visibility: visible; }
html.modal-open .host { z-index: 85; }
html.modal-open .bubble { z-index: 86; }
.host svg { width: 100%; height: 100%; overflow: visible; display: block; }
.host .h-hit { pointer-events: auto; cursor: grab; touch-action: none; }
html.grabbing, html.grabbing * { cursor: grabbing !important; user-select: none; }
/* rubber-hose limbs: dark outline + light core, readable on the dark site */
.h-limb { fill: none; stroke: #0b0b0e; stroke-width: 9; stroke-linecap: round; }
.h-limb-in { fill: none; stroke: #f4f1ea; stroke-width: 4; stroke-linecap: round; }
.h-ant { stroke: #0b0b0e; stroke-width: 4; stroke-linecap: round; }
.h-bulb { fill: var(--red); stroke: #0b0b0e; stroke-width: 3; animation: bulb 1.6s steps(1) infinite; }
@keyframes bulb { 50% { fill: #7a1a15; } }
.h-bulb2 { fill: #f4f1ea; stroke: #0b0b0e; stroke-width: 3; }
.h-antbase { fill: #0b0b0e; }
.h-cab { fill: #ffd23f; }
.h-cabshade { fill: #f0b000; }
.h-cabhl { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2.5; }
.h-cabline { fill: none; stroke: #0b0b0e; stroke-width: 5; }
.h-screen { fill: #121218; }
.h-screenline { fill: none; stroke: #0b0b0e; stroke-width: 4.5; }
.h-glare { fill: rgba(255, 255, 255, .13); }
.h-knob { fill: #2b2b33; stroke: #0b0b0e; stroke-width: 3; }
.h-knobmark { stroke: #f4f1ea; stroke-width: 2; stroke-linecap: round; }
.h-grill { stroke: #0b0b0e; stroke-width: 3; stroke-linecap: round; opacity: .5; }
.h-glove { fill: #fff; stroke: #0b0b0e; stroke-width: 4; }
.h-finger { stroke: #0b0b0e; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.h-shoe { fill: #f4f1ea; stroke: #0b0b0e; stroke-width: 4; stroke-linejoin: round; }
.h-stripe { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.hf { fill: #8ff3ff; }
.hs { fill: none; stroke: #8ff3ff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.hs3 { fill: none; stroke: #8ff3ff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hy { fill: #ffd23f; }
[data-mood] { display: none; }
[data-mood].on { display: inline; }
.host.talking [data-mood].on .hm { animation: flap .13s steps(1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flap { 50% { transform: scaleY(.3); } }

.bubble {
  position: fixed; left: 0; top: 0; z-index: 61;
  max-width: min(260px, 64vw); padding: 12px 16px;
  background: #fff; color: #0b0b0e;
  font: 800 15px/1.35 var(--f-body);
  border: 3px solid #0b0b0e; border-radius: 18px;
  box-shadow: 5px 5px 0 #0b0b0e;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transform-origin: 100% 100%;
}
.bubble.is-big { max-width: min(340px, 78vw); font-size: clamp(16px, 1.6vw, 21px); padding: 14px 20px; }
.bubble::after {
  content: ''; position: absolute; bottom: -14px; right: 26px;
  width: 22px; height: 22px; background: #fff;
  border-right: 3px solid #0b0b0e; border-bottom: 3px solid #0b0b0e;
  transform: skewX(35deg) rotate(45deg) scale(.7);
}
.bubble.tail-left { transform-origin: 0 100%; }
.bubble.tail-left::after { right: auto; left: 26px; transform: skewX(-35deg) rotate(45deg) scale(.7); }
.bubble.tail-side { transform-origin: 100% 50%; }
.bubble.tail-up { transform-origin: 50% 0; }
.bubble.tail-up::after { bottom: auto; top: -14px; right: calc(50% - 11px); transform: skewX(35deg) rotate(-135deg) scale(.7); }
.bubble.tail-side::after { right: -12px; bottom: auto; top: calc(50% - 11px); transform: rotate(-45deg) scale(.7); }
.bubble__r { visibility: hidden; }

/* a little studio podium the host jumps onto. It isn't there until he needs it:
   it rises out of the page when he heads to it (or when you carry him around,
   so you can see where he can be put down) and sinks back when he leaves */
.podium {
  --stage-h: 250px; --pw: 124px; --foot: 25px;
  position: relative; width: 230px; height: var(--stage-h);
  pointer-events: none;
}
.podium > i {
  transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
}
html:not(.grabbing) .podium:not(.is-up):not(.is-drop) > i {
  transform: translateY(50px) scale(.4); opacity: 0;
  transition: transform .4s ease-in, opacity .3s .1s;
}
html.grabbing .podium:not(.is-drop) .podium__top,
html.grabbing .podium:not(.is-drop) .podium__front { opacity: .7; }
.podium__beam {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  width: calc(var(--pw) * 1.7); height: calc(var(--stage-h) + 24px);
  background: linear-gradient(to top, color-mix(in srgb, var(--c) 38%, transparent), transparent 88%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  opacity: 0; transition: opacity .6s;
}
.podium.is-on .podium__beam { opacity: 1; }
.podium__top {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 2;
  width: var(--pw); height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 65%);
  border: 3px solid #0b0b0e;
  transition: box-shadow .5s;
}
.podium.is-on .podium__top { box-shadow: 0 0 34px color-mix(in srgb, var(--c) 70%, transparent); }
.podium__front {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: var(--pw); height: 26px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 35%, #000), color-mix(in srgb, var(--c) 65%, #000) 50%, color-mix(in srgb, var(--c) 30%, #000));
  border: 3px solid #0b0b0e; border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 12px 12px;
}

/* ==========================================================================
   OSD, HEADER, MENU
   ========================================================================== */
.osd {
  position: fixed; top: calc(var(--top-h) + 18px); right: var(--pad); z-index: 45;
  font-family: var(--f-osd); color: var(--osd); text-align: right;
  text-shadow: 0 0 12px rgba(157, 255, 138, .65), 2px 2px 0 rgba(0, 0, 0, .8);
  pointer-events: none; opacity: 0; line-height: .9;
}
.osd b { display: block; font-weight: 400; font-size: calc(clamp(44px, 5vw, 68px) * var(--ok)); }
.osd span { font-size: calc(clamp(18px, 1.8vw, 24px) * var(--ok)); letter-spacing: .08em; }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(11, 11, 14, .92), rgba(11, 11, 14, .72));
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--bars); transform: scaleX(0); transform-origin: 0 50%; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__tv {
  display: inline-flex; flex: none; width: 34px; height: 26px; padding: 3px;
  border: 2px solid var(--ink); border-radius: 8px; overflow: hidden;
}
.logo__tv i { flex: 1; }
.logo__tv i:nth-child(1) { background: var(--bar-w); } .logo__tv i:nth-child(2) { background: var(--yel); }
.logo__tv i:nth-child(3) { background: var(--cya); }   .logo__tv i:nth-child(4) { background: var(--grn); }
.logo__tv i:nth-child(5) { background: var(--mag); }   .logo__tv i:nth-child(6) { background: var(--red); }
.logo__tv i:nth-child(7) { background: var(--blu); }
.logo:hover .logo__tv i { animation: barflick .3s steps(2) 2; }
@keyframes barflick { 50% { filter: invert(1); } }
.logo__word { font: 800 17px/1 var(--f-display); letter-spacing: .02em; white-space: nowrap; }
.logo__word span { font-weight: 500; color: var(--ink2); }
.logo__pill { background: var(--red); color: #fff; font: 800 11px/1 var(--f-display); padding: 4px 7px; border-radius: 6px; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink2); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a.is-on { color: var(--ink); }
.nav a.is-on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--bars); }
.top__right { display: flex; align-items: center; gap: 14px; }
.onair { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f-body); color: var(--grn); white-space: nowrap; }
.onair b { font-weight: 400; }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 10px var(--grn); animation: avail 2.4s ease-in-out infinite; }
@keyframes avail { 50% { box-shadow: 0 0 0 5px rgba(61, 220, 106, .15), 0 0 10px var(--grn); } }
.clock { font: 400 20px/1 'VT323', monospace; color: var(--mut); min-width: 70px; }
.sfx {
  background: none; border: 1px solid var(--line2); border-radius: 8px; white-space: nowrap;
  padding: 6px 9px; font: 400 calc(17px * var(--ok))/1 var(--f-osd); color: var(--mut); cursor: pointer; letter-spacing: .04em;
}
.sfx b { font-weight: 400; color: var(--ink2); }
.sfx[aria-pressed="true"] { border-color: var(--osd); color: var(--osd); }
.sfx[aria-pressed="true"] b { color: var(--osd); }
.langsw { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line2); border-radius: 10px; }
.langsw button { border: 0; background: none; color: var(--mut); font: 800 12px/1 var(--f-body); padding: 7px 9px; border-radius: 7px; cursor: pointer; transition: background-color .2s, color .2s; }
.langsw button:hover { color: var(--ink); }
.langsw button.is-on { background: var(--ink); color: #0b0b0e; }
.menubtn {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line2); background: none; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menubtn i { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s; }
.menubtn[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menubtn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menubtn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 39; background: rgba(8, 8, 11, .97); display: grid; padding: calc(var(--top-h) + 20px) var(--pad) 30px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__panel { display: flex; flex-direction: column; gap: 28px; }
.menu__osd { font: 400 calc(24px * var(--ok))/1 var(--f-osd); color: var(--osd); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 10px rgba(157, 255, 138, .5); }
.menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--line2); }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line2); }
.menu__list b { font: 400 calc(24px * var(--ok))/1 var(--f-osd); color: var(--yel); min-width: 70px; font-weight: 400; }
.menu__list span { font: 800 clamp(24px, 7vw, 36px)/1.1 var(--f-display); letter-spacing: -.02em; }
.menu__opts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.langsw--big button { font-size: 15px; padding: 11px 16px; }
.sfx--big { font-size: calc(22px * var(--ok)); padding: 10px 14px; }

/* ==========================================================================
   HERO — ON AIR
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
  align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: calc(var(--top-h) + 40px) var(--pad) 110px;
  max-width: 1560px; margin: 0 auto;
}
.hero__glow {
  position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
}
.hero__glow i { position: absolute; width: 38vw; height: 38vw; max-width: 620px; max-height: 620px; border-radius: 50%; filter: blur(90px); opacity: .16; will-change: transform; }
.hero__glow i:nth-child(1) { background: var(--yel); right: 8%; top: 8%; }
.hero__glow i:nth-child(2) { background: var(--mag); right: 30%; top: 42%; }
.hero__glow i:nth-child(3) { background: var(--cya); right: -6%; top: 46%; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 calc(22px * var(--ok))/1.1 var(--f-osd); letter-spacing: .06em; text-transform: uppercase; color: var(--osd);
  text-shadow: 0 0 10px rgba(157, 255, 138, .4);
}
.fit .line { display: block; }
.fit .line > span { display: inline-block; white-space: nowrap; }
.hero__title {
  margin: 20px 0 24px;
  font: 900 clamp(38px, 4.4vw, 92px)/.98 var(--f-display);
  letter-spacing: -.035em;
}
.hero__title .line { overflow: hidden; padding: .02em .06em .08em 0; margin-bottom: -.08em; }
.hero__title em { font-style: normal; color: var(--yel); display: inline-block; }
.hero__title em.glitching { animation: rgbsplit .45s steps(2) 1; }
@keyframes rgbsplit {
  0%   { text-shadow: 4px 0 0 rgba(224, 64, 200, .9), -4px 0 0 rgba(47, 212, 224, .9); transform: translateX(0); }
  50%  { text-shadow: -3px 2px 0 rgba(224, 64, 200, .9), 3px -2px 0 rgba(47, 212, 224, .9); transform: translateX(2px) skewX(-6deg); }
  100% { text-shadow: none; transform: none; }
}
.hero__lead { max-width: 31em; font-size: clamp(16px, 1.2vw, 19px); color: var(--ink2); }
.hero__lead b { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.podium--hero { --stage-h: clamp(150px, 22vh, 210px); --pw: 104px; width: 180px; }
.podium--hero-m { display: none; }
@media (min-width: 1101px) { .hero__tvwrap { padding-top: clamp(40px, 11vh, 130px); } }

.hero__tvwrap { perspective: 1600px; display: flex; flex-direction: column; }
.tv {
  position: relative;
  padding: clamp(8px, 1.3vw, 18px) clamp(8px, 1.3vw, 18px) 0;
  border-radius: clamp(18px, 2.2vw, 32px);
  background: linear-gradient(160deg, #26262d 0%, #15151a 55%, #101014 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 0 0 1px rgba(255, 255, 255, .05),
    0 50px 100px -30px rgba(0, 0, 0, .9),
    0 0 120px -40px rgba(255, 212, 0, .25);
  transform-style: preserve-3d;
  will-change: transform;
}
.tv__screen {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.4vw, 20px); overflow: hidden;
  background: #000; isolation: isolate;
  transform-origin: 50% 50%;
}
.tv__poster, .tv__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv__poster { object-fit: cover; transform: scale(1.02); }
.tv__video { opacity: 0; transition: opacity .9s ease; overflow: hidden; }
.tv__video.is-on { opacity: 1; }
/* the iframe is taller than its screen: the video still fits by width,
   while YouTube's title bar and watermark land outside the visible area */
/* own videos are plain files: they simply cover the screen */
.tv__video video, .pcard__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tv__video iframe, .pcard__video iframe {
  position: absolute; left: 0; top: -70px; width: 100%; height: calc(100% + 140px);
  border: 0; pointer-events: none;
}
.tv__fx {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 0, 0, .55) 100%);
}
.tv__fx::after { content: ''; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 32%); }
.tv__osd {
  position: absolute; z-index: 3;
  font: 400 calc(clamp(15px, 1.5vw, 22px) * var(--ok))/1 var(--f-osd); color: #fff; letter-spacing: .05em;
  text-shadow: 0 0 8px rgba(255, 255, 255, .55), 2px 2px 0 rgba(0, 0, 0, .7);
  pointer-events: none;
}
.tv__osd--tl { top: 12px; left: 14px; }
.tv__osd--tr { top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 7px; color: #ffd9d6; }
.tv__osd--bl { bottom: 12px; left: 14px; font-family: 'VT323', monospace; font-size: clamp(15px, 1.5vw, 22px); }
.tv__bug {
  position: absolute; right: 14px; bottom: 10px; z-index: 3;
  font: 800 clamp(10px, 1vw, 14px)/1 var(--f-display); letter-spacing: .03em; color: rgba(255, 255, 255, .78);
  display: inline-flex; align-items: center; gap: 5px;
}
.tv__bug b { background: rgba(255, 59, 48, .9); color: #fff; padding: 3px 5px; border-radius: 4px; font-size: .8em; }
.tv__play {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: clamp(58px, 7vw, 92px); aspect-ratio: 1; margin: calc(clamp(58px, 7vw, 92px) / -2) 0 0 calc(clamp(58px, 7vw, 92px) / -2);
  border-radius: 50%; background: var(--yel); color: #0b0b0e;
  border: 3px solid #0b0b0e; box-shadow: 5px 5px 0 #0b0b0e;
  display: grid; place-items: center; font-size: clamp(18px, 2vw, 28px);
  opacity: 0; scale: .7;
  transition: opacity .25s, scale .35s var(--ease-out);
  pointer-events: none;
}
.tv__play span { margin-left: 4px; }
.tv:hover .tv__play, .tv__hit:focus-visible ~ .tv__play { opacity: 1; scale: 1; }
.tv__hit { position: absolute; inset: 0; z-index: 5; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.tv__chin {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 6px 12px;
  font: 400 calc(15px * var(--ok))/1 var(--f-osd); color: var(--mut); letter-spacing: .1em;
}
.tv__leds { display: inline-flex; gap: 8px; }
.tv__leds i { width: 7px; height: 7px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 8px var(--grn); }
.tv__leds i + i { background: var(--red); box-shadow: 0 0 8px var(--red); animation: rec 1.2s steps(1) infinite; }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 46px; display: flex; align-items: stretch;
  background: var(--yel); color: #0b0b0e; overflow: hidden;
  border-top: 2px solid #0b0b0e;
}
.ticker__label {
  flex: none; display: flex; align-items: center;
  padding: 0 18px; background: var(--red); color: #fff;
  font: 800 13px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em;
  position: relative; z-index: 1;
}
.ticker__track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker__move { display: flex; white-space: nowrap; will-change: transform; }
.ticker__move span { font: 700 14px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; padding: 0 22px; }
.ticker__move span::after { content: '✦'; margin-left: 44px; }

/* ==========================================================================
   BUMPERS — "commercial break" strips
   ========================================================================== */
.bumper { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 90px) 0; }
.bumper__band {
  position: relative; transform: rotate(-2.2deg); margin: 0 -4vw;
  background: #101015; padding: clamp(10px, 1.4vw, 18px) 0;
  border-block: 3px solid #0b0b0e;
  box-shadow: 0 -4px 0 0 var(--yel), 0 4px 0 0 var(--mag);
}
.bumper--alt .bumper__band { transform: rotate(1.6deg); background: var(--yel); box-shadow: none; }
.bumper__row { overflow: hidden; white-space: nowrap; }
.bumper__track { display: inline-flex; will-change: transform; }
.bumper__track span {
  display: inline-flex; align-items: center;
  font: 900 clamp(34px, 6.4vw, 104px)/1.08 var(--f-display); text-transform: uppercase; letter-spacing: -.03em;
  padding: 0 .3em; color: var(--ink);
}
.bumper__track span::after { content: '✦'; margin-left: .55em; font-size: .5em; color: var(--yel); }
.bumper__row--rev .bumper__track span { color: transparent; -webkit-text-stroke: 2px var(--ink2); }
.bumper__row--rev .bumper__track span::after { color: var(--mag); -webkit-text-stroke: 0; }
.bumper--alt .bumper__track span { color: #0b0b0e; }
.bumper--alt .bumper__track span::after { color: var(--red); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--pad) 0; }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  grid-template-areas: "slot slot" "title stage" "lead stage";
  column-gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 60px);
  position: relative; isolation: isolate;
}
/* giant outlined channel number drifting behind a section */
.sec-num {
  position: absolute; right: 0; top: -.32em; z-index: -1;
  font: 900 clamp(150px, 24vw, 400px)/.8 var(--f-display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 234, .075);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.ratings .sec-num { top: -.12em; }
.sec-head .slot { grid-area: slot; }
.sec-head .sec-title { grid-area: title; }
.sec-head .sec-lead { grid-area: lead; max-width: 36em; margin-top: 18px; }
.sec-head .podium { grid-area: stage; align-self: end; justify-self: center; }
.slot {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 400 calc(22px * var(--ok))/1.1 var(--f-osd); text-transform: uppercase; letter-spacing: .06em; color: var(--osd);
  text-shadow: 0 0 10px rgba(157, 255, 138, .35);
  margin-bottom: 18px;
}
.slot b { font-weight: 400; }
.slot span { border: 1px solid currentColor; border-radius: 6px; padding: 3px 8px 2px; font-family: 'VT323', monospace; font-size: 22px; }
.sec-title {
  position: relative;
  font: 900 clamp(44px, 7vw, 124px)/.9 var(--f-display);
  letter-spacing: -.045em; text-transform: uppercase;
}
.sec-title .w { display: inline-block; white-space: nowrap; }
.sec-title .ch { display: inline-block; will-change: transform; }
.sec-title em { font-style: normal; color: var(--yel); }
.sec-title__chip {
  display: inline-block; width: .24em; height: .24em; margin-left: .1em; border-radius: 50%;
  background: var(--c, var(--yel)); vertical-align: .06em;
  box-shadow: 0 0 30px var(--c, var(--yel));
}
.sec-lead { color: var(--ink2); font-size: clamp(16px, 1.25vw, 19px); }
/* elements wait hidden until their scroll reveal plays */
.js-anim .sec-head:not(.is-in) > :not(.podium):not(.sweep):not(.sec-num),
.js-anim .rv:not(.is-in) { opacity: 0; }
.sweep { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent, var(--osd), transparent); box-shadow: 0 0 18px var(--osd); opacity: 0; }

/* ---------- screens shared ---------- */
.screen {
  position: relative; overflow: hidden; isolation: isolate;
  background: #000; border-radius: 16px;
}
.screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, .45) 100%);
}
.screen::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 42%);
  opacity: 0; transition: opacity .3s;
}
.tilt-on .screen::before { opacity: 1; }
.s-osd {
  position: absolute; z-index: 4; pointer-events: none;
  font: 400 calc(18px * var(--ok))/1 var(--f-osd); color: #fff; letter-spacing: .05em;
  text-shadow: 0 0 8px rgba(255, 255, 255, .5), 2px 2px 0 rgba(0, 0, 0, .7);
}
.s-osd--tl { top: 10px; left: 12px; }
.s-osd--tr { top: 10px; right: 12px; font-family: 'VT323', monospace; font-size: 18px; }
.s-play {
  position: absolute; z-index: 5; right: 8px; bottom: 8px;
  padding: 6px 9px 4px; border-radius: 9px;
  background: var(--c, var(--yel)); color: #0b0b0e; border: 2px solid #0b0b0e; box-shadow: 3px 3px 0 #0b0b0e;
  font: 400 calc(17px * var(--ok))/1 var(--f-osd); letter-spacing: .05em; white-space: nowrap;
}
.s-new {
  position: absolute; z-index: 5; left: 10px; bottom: 10px;
  background: var(--red); color: #fff; border-radius: 6px; padding: 5px 7px 4px;
  font: 800 10px/1 var(--f-display); letter-spacing: .08em;
  animation: newpulse 1.6s ease-in-out infinite;
}
@keyframes newpulse { 50% { transform: scale(1.12); box-shadow: 0 0 16px var(--red); } }

/* ---------- PRIME TIME ---------- */
.prime__wall { display: grid; grid-template-columns: 3.16fr 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.pcard { display: flex; flex-direction: column; gap: 14px; text-align: left; cursor: pointer; color: inherit; min-width: 0; outline: none; perspective: 900px; }
.pcard .screen {
  aspect-ratio: var(--ar); border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: box-shadow .3s;
  transform-style: preserve-3d;
}
.pcard:hover .screen, .pcard:focus-visible .screen { box-shadow: 0 0 0 3px var(--c), 0 30px 70px -25px rgba(255, 212, 0, .35); }
.pcard:hover .screen img { transform: scale(1.05); }
.pcard__video { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .8s; overflow: hidden; }
.pcard__video.is-on { opacity: 1; }
.pcard__meta { display: flex; flex-direction: column; gap: 4px; }
.pcard__title { font: 700 clamp(15px, 1.25vw, 20px)/1.25 var(--f-display); letter-spacing: -.01em; }
.pcard__tag { color: var(--mut); font-size: 14px; line-height: 1.45; }
.pcard--wide .pcard__title { font-size: clamp(18px, 1.7vw, 26px); }

/* ---------- RATINGS ---------- */
.ratings { position: relative; isolation: isolate; max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad) 0; }
.ratings .slot span { color: var(--red); border-color: var(--red); }
.ratings__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.stat {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(20px, 2.4vw, 30px); border-radius: 22px;
  background: var(--bg2); border: 1px solid var(--line);
  /* GSAP owns `transform` here (the blocks fall crooked and get fixed), hover uses `translate` */
  transition: translate .45s var(--ease-out), border-color .3s, box-shadow .45s var(--ease-out);
}
.stat:hover { translate: 0 -6px; border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 45%, transparent); }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.stat::after {
  content: ''; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c); filter: blur(60px); opacity: .12; z-index: -1;
}
.stat__n { display: block; font: 900 clamp(46px, 6vw, 92px)/1 var(--f-display); color: var(--c); letter-spacing: -.04em; white-space: nowrap; }
.stat__l { display: block; margin-top: 12px; font: 400 calc(21px * var(--ok))/1.15 var(--f-osd); text-transform: uppercase; color: var(--ink2); letter-spacing: .04em; }
.stat__bars { position: absolute; top: 22px; right: 22px; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.stat__bars i { width: 5px; border-radius: 2px; background: var(--c); animation: sig 1.4s ease-in-out infinite; }
.stat__bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.stat__bars i:nth-child(2) { height: 55%; animation-delay: .15s; }
.stat__bars i:nth-child(3) { height: 80%; animation-delay: .3s; }
.stat__bars i:nth-child(4) { height: 100%; animation-delay: .45s; }
@keyframes sig { 50% { opacity: .25; } }

/* ---------- PROGRAMME ---------- */
.tuner { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tuner__btn {
  --c: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--bg2); color: var(--ink2);
  font: 700 15px/1.1 var(--f-body); cursor: pointer; text-align: left;
  transition: border-color .2s, background-color .2s, color .2s, transform .25s var(--ease-out);
}
.tuner__btn:hover { color: var(--ink); border-color: var(--line2); transform: translateY(-2px); }
.tuner__btn b {
  font: 400 22px/1 'VT323', monospace; letter-spacing: .04em; flex: none;
  background: var(--c); color: #0b0b0e; border-radius: 8px; padding: 5px 8px 3px; min-width: 46px; text-align: center;
}
.tuner__btn.is-on { color: var(--ink); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg2)); }
.tuner__btn[data-ch="all"] b { background: var(--bars); text-shadow: 0 0 4px #fff; }

.guide__screen {
  position: relative; isolation: isolate;
  border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(1200px 400px at 10% -10%, rgba(255, 255, 255, .035), transparent 60%), var(--bg2);
  padding: clamp(6px, 2vw, 28px) clamp(14px, 2.2vw, 32px);
  overflow: hidden;
}
.guide__osd {
  position: absolute; top: 14px; right: 20px; z-index: 7;
  font: 400 calc(clamp(36px, 4vw, 56px) * var(--ok))/1 var(--f-osd); color: var(--osd);
  text-shadow: 0 0 12px rgba(157, 255, 138, .7), 2px 2px 0 rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none;
}
.row { display: flex; flex-direction: column; gap: 18px; padding: 26px 0 30px; border-top: 1px dashed var(--line2); }
/* the cassette's glow lights the screen behind the videos, never over them */
.guide__rows { position: relative; z-index: 1; }
.guide__screen > .wash-layer { z-index: 0; mix-blend-mode: normal; }
.row:first-child { border-top: 0; }
.row[hidden] { display: none; }
.row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.row__ch { font: 400 24px/1 'VT323', monospace; letter-spacing: .05em; background: var(--c); color: #0b0b0e; border-radius: 8px; padding: 5px 9px 3px; }
.row__name { font: 800 22px/1.1 var(--f-display); letter-spacing: -.01em; }
.row__blurb { color: var(--ink2); font-size: 14px; line-height: 1.5; }
.row__count { margin-left: auto; font: 400 calc(18px * var(--ok))/1 var(--f-osd); color: var(--mut); letter-spacing: .05em; text-transform: uppercase; }
.row__strip { --rowH: clamp(150px, 12.5vw, 180px); display: flex; flex-wrap: wrap; gap: 22px 18px; align-items: flex-start; }
.guide__screen.is-solo .row__strip { --rowH: clamp(190px, 18.5vw, 280px); }

.card {
  --cw: calc(var(--rowH) * var(--arn));
  width: max(150px, var(--cw));
  display: flex; flex-direction: column; gap: 9px;
  text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  perspective: 700px;
}
/* justified lines (desktop): the card is exactly as wide as its picture */
.row__strip.is-justified .card { --cw: calc(var(--rowH) * var(--arnL, var(--arn))); width: var(--cw); }
.row__strip.is-justified .card__meta, .row__strip.is-justified .card__tag { max-width: var(--cw); }
.card .screen {
  width: var(--cw); height: var(--rowH); border-radius: 12px;
  outline: 2px solid transparent; outline-offset: 3px;
  transition: outline-color .2s;
  transform-style: preserve-3d;
}
.card:hover .screen, .card:focus-visible .screen { outline-color: var(--c); }
.card:hover .screen img { transform: scale(1.06); }
.card:focus-visible { outline: none; }
.card__meta { display: flex; gap: 8px; align-items: baseline; max-width: max(150px, var(--cw)); }
.card__time { flex: none; font: 400 18px/1 'VT323', monospace; color: var(--c); letter-spacing: .03em; }
.card__title { font: 700 14px/1.3 var(--f-body); color: var(--ink); }
.card__tag { font-size: 13px; line-height: 1.4; color: var(--mut); max-width: max(150px, var(--cw)); }
.swipe-hint { display: none; }

/* ---------- CONTACT ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__title em { color: var(--yel); }
.crows { border-top: 1px solid var(--line2); }
.crow {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; align-items: center; gap: 12px 24px;
  width: 100%; padding: clamp(18px, 2.2vw, 28px) clamp(12px, 1.6vw, 22px);
  background: none; border: 0; border-bottom: 1px solid var(--line2);
  color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: color .35s;
}
.crow::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--c); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .55s var(--ease-out);
}
.crow:hover::before, .crow:focus-visible::before { transform: scaleX(1); }
.crow:hover, .crow:focus-visible { color: #0b0b0e; outline: none; }
.crow__k { font: 400 calc(22px * var(--ok))/1 var(--f-osd); text-transform: uppercase; letter-spacing: .08em; color: var(--mut); transition: color .35s; }
.crow:hover .crow__k, .crow:focus-visible .crow__k { color: rgba(11, 11, 14, .65); }
.crow__v {
  min-width: 0; font: 800 clamp(20px, 2.9vw, 44px)/1.15 var(--f-display); letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .55s var(--ease-out);
}
.crow:hover .crow__v { transform: translateX(10px); }
.crow__a {
  font: 400 calc(21px * var(--ok))/1 var(--f-osd); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  color: var(--c); padding: 8px 12px 6px; border: 1px solid currentColor; border-radius: 10px;
  transition: color .35s;
}
.crow:hover .crow__a, .crow:focus-visible .crow__a { color: #0b0b0e; }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(30px, 5vw, 60px) var(--pad) 34px; overflow: hidden; }
.foot__mark {
  font: 900 clamp(40px, 9vw, 160px)/.9 var(--f-display); letter-spacing: -.05em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink); user-select: none; margin-bottom: clamp(20px, 3vw, 40px);
}
.foot__mark .ch { display: inline-block; will-change: transform; }
.foot__mark .ch.y { color: var(--yel); }
.foot__mark .ch.r { color: var(--red); }
.foot__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  color: var(--mut); font-size: 14px; padding-right: 110px;
}
.foot__btns { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.foot button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink2); font: 700 14px var(--f-body); }
.foot button:hover { color: var(--yel); }

/* ==========================================================================
   PLAYER MODAL
   ========================================================================== */
.pm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px var(--pad); }
.pm[hidden] { display: none; }
.pm__backdrop { position: fixed; inset: 0; background: rgba(6, 6, 9, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pm__dialog { position: relative; display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); max-width: 100%; }
.pm__screen {
  position: relative; overflow: hidden; isolation: isolate;
  background: #000; border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line2), 0 40px 120px -20px rgba(0, 0, 0, .9);
  transform-origin: 50% 50%;
}
.pm__video, .pm__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm__file { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.pm__video.is-file iframe, .pm__video.is-file #pmPlayer, .pm__video:not(.is-file) .pm__file { display: none; }
.pm__osd {
  position: absolute; top: 14px; left: 18px; z-index: 7; pointer-events: none;
  font: 400 40px/1 'VT323', monospace; color: var(--osd);
  text-shadow: 0 0 12px rgba(157, 255, 138, .7), 2px 2px 0 rgba(0, 0, 0, .8); opacity: 0;
}
.pm__notes { width: 300px; flex: none; }
.pm__ch { font: 400 calc(20px * var(--ok))/1.1 var(--f-osd); letter-spacing: .06em; color: var(--c, var(--osd)); text-transform: uppercase; }
.pm__title { margin-top: 10px; font: 800 clamp(20px, 2vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; }
.pm__dur { margin-top: 8px; font: 400 calc(18px * var(--ok))/1.2 var(--f-osd); color: var(--mut); }
.pm__dl { margin: 22px 0 0; }
.pm__dl dt { font: 400 calc(18px * var(--ok))/1 var(--f-osd); letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--osd)); }
.pm__dl dd { margin: 6px 0 16px; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.pm__nav { display: flex; gap: 10px; margin-top: 6px; }
.pm__nav .btn { flex: 1; font-family: 'VT323', monospace; font-size: 19px; font-weight: 400; letter-spacing: .04em; }
.podium--pm { --stage-h: 176px; --pw: 96px; width: 100%; margin-top: 6px; }
@media (min-width: 801px) {
  .pm__notes { align-self: stretch; display: flex; flex-direction: column; }
  .pm__notes > :first-child, .pm__notes .podium--pm { margin-top: auto; }
}
.pm__close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--line2); background: rgba(20, 20, 24, .8); color: var(--ink);
  font-size: 18px; cursor: pointer; transition: border-color .2s, transform .3s var(--ease-out);
}
.pm__close:hover { border-color: var(--ink); transform: rotate(90deg); }

.off { position: fixed; inset: 0; z-index: 58; background: #000; display: grid; place-items: center; cursor: pointer; }
.off[hidden] { display: none; }
.off__crt { position: absolute; inset: 0; background: #fff; transform-origin: 50% 50%; opacity: 0; pointer-events: none; }
.off p { font: 400 calc(22px * var(--ok))/1.3 var(--f-osd); letter-spacing: .08em; color: #555; text-transform: uppercase; animation: rec 2s steps(1) infinite; text-align: center; padding: 0 20px; }

/* the host gets angry: the whole screen blushes */
.scold {
  position: fixed; inset: 0; z-index: 59; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 60%, rgba(255, 59, 48, 0) 35%, rgba(255, 59, 48, .38) 100%);
}
/* electric teleport: a crackling bolt across the screen */
.host-bolt { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 62; pointer-events: none; overflow: visible; display: none; }
.bolt-glow { fill: none; stroke: #8ff3ff; stroke-width: 10; stroke-opacity: .35; stroke-linejoin: round; stroke-linecap: round; filter: blur(4px); }
.bolt-core { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px #8ff3ff); }
.bolt-spark { fill: #fff; filter: drop-shadow(0 0 10px #8ff3ff) drop-shadow(0 0 4px #fff); }
/* the cassette he throws */
.flying-tape { position: fixed; left: 0; top: 0; z-index: 62; width: 40px; height: 28px; pointer-events: none; transform-origin: 50% 50%; filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .5)); }
.flying-tape svg { width: 100%; height: 100%; display: block; }
/* where he stands / where you can drop him */
.tuner__btn.has-host { box-shadow: 0 0 0 1px var(--c), 0 -14px 30px -10px color-mix(in srgb, var(--c) 70%, transparent); }
.tuner__btn.is-drop { outline: 2px dashed var(--c); outline-offset: 4px; }
.podium.is-drop .podium__beam { opacity: 1; }
.podium.is-drop .podium__top { box-shadow: 0 0 34px color-mix(in srgb, var(--c) 80%, transparent); }
.card.is-drop .screen { outline-color: var(--c); }
.card.is-drop .screen img { transform: scale(1.06); }
.pcard.is-drop .screen { box-shadow: 0 0 0 3px var(--c), 0 30px 70px -25px rgba(255, 212, 0, .35); }
#heroTV.is-drop { box-shadow: 0 0 0 3px var(--osd), 0 50px 100px -30px rgba(0, 0, 0, .9); }
html.grabbing .podium .podium__beam { opacity: .45; }

/* stretchy arms when he holds the TV / a card */
.host-arms { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 61; pointer-events: none; overflow: visible; display: none; }
.host-arms .h-glove { filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
html.modal-open .host-arms { z-index: 86; }
html.modal-open .host-bolt { z-index: 87; }
html.modal-open .host-pad { z-index: 84; }

/* the hover pad: wherever there is no podium under him */
.host-pad {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 180px; height: 100px; transform-origin: 90px 20px;
  pointer-events: none; display: none; will-change: transform;
}
.host-pad svg { width: 100%; height: 100%; overflow: visible; display: block; }
.pad-front { fill: #1b3c44; stroke: #0b0b0e; stroke-width: 3.5; stroke-linejoin: round; }
.pad-top { stroke: #0b0b0e; stroke-width: 3.5; }
.pad-led { fill: #8ff3ff; animation: padled 1.2s steps(1) infinite; }
.pad-led:nth-of-type(2) { animation-delay: .4s; }
.pad-led:nth-of-type(3) { animation-delay: .8s; }
@keyframes padled { 50% { fill: #2a5f68; } }
.pad-beam { animation: padbeam .18s steps(2) infinite; transform-origin: 50% 0; }
@keyframes padbeam { 50% { opacity: .7; } }

/* a card yanked open into the player (it becomes the player window) */
.pm-ghost {
  position: fixed; left: 0; top: 0; z-index: 84; overflow: hidden;
  border-radius: 16px; background: #000; pointer-events: none;
  box-shadow: 0 0 0 1px var(--line2), 0 40px 120px -20px rgba(0, 0, 0, .9);
}
.pm-ghost img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the blocks he knocks straight, the letters he steps on */
.stat.is-fixed { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 18px 40px -18px var(--c); }
.foot__mark .ch.is-hit { color: var(--osd); text-shadow: 0 0 24px rgba(157, 255, 138, .6); }

/* ---------- misc ---------- */
.grain {
  position: fixed; inset: -120px; z-index: 95; pointer-events: none;
  background-image: var(--noise); background-size: 220px 220px;
  opacity: .05; mix-blend-mode: screen;
  animation: grain .7s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }       17% { transform: translate(-41px, 23px); }
  34% { transform: translate(27px, -58px); } 51% { transform: translate(-63px, -12px); }
  68% { transform: translate(52px, 44px); }  85% { transform: translate(-14px, 71px); }
}
.cursor-pill {
  position: fixed; left: 0; top: 0; z-index: 96; pointer-events: none;
  padding: 6px 10px 4px; border-radius: 9px;
  background: var(--c, var(--yel)); color: #0b0b0e; border: 2px solid #0b0b0e;
  font: 400 calc(20px * var(--ok))/1 var(--f-osd); letter-spacing: .05em; white-space: nowrap;
  opacity: 0; scale: .5;
  transition: opacity .2s, scale .25s var(--ease-out);
}
.cursor-pill.is-on { opacity: 1; scale: 1; }
.toast {
  position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); z-index: 97; translate: -50% 0;
  background: var(--ink); color: #0b0b0e; padding: 12px 18px; border-radius: 12px;
  font: 800 14px/1.2 var(--f-body); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .s-play { display: none; }
}
@media (hover: none) {
  .tv__play { opacity: 1; scale: .85; }
  .cursor-pill { display: none; }
}

@media (max-width: 1240px) {
  .onair { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menubtn { display: inline-flex; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(var(--top-h) + 34px); gap: 26px; }
  .hero__copy { max-width: 760px; }
  .ratings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* phones and tablets: the podium stands next to the text (never a lonely row)
     and only rises out of the page when the host is coming to it */
  .hero__copy {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
    grid-template-areas: "kicker kicker" "title title" "lead stage" "cta cta";
  }
  .hero__copy > .kicker { grid-area: kicker; justify-self: start; }
  .hero__title { grid-area: title; }
  .hero__lead { grid-area: lead; align-self: start; }
  .hero__cta { grid-area: cta; }
  .podium--hero-m { --stage-h: 170px; width: 150px; display: block; grid-area: stage; align-self: end; margin: 0 0 -8px; }
}

@media (max-width: 800px) {
  :root { --top-h: 60px; }
  .clock, .top .sfx { display: none; }
  .hero { padding-bottom: 84px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .prime__wall { grid-template-columns: 1fr 1fr; }
  .prime__wall .pcard--wide { grid-column: 1 / -1; }

  .sec-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "slot slot" "title title" "lead stage"; }
  .sec-head .sec-lead { align-self: start; }
  .sec-head .podium, .podium--hero { --stage-h: 132px; --pw: 80px; --foot: 22px; width: 104px; }
  .sec-head .podium { justify-self: end; margin: 0 -4px -12px 0; }
  .podium__top { height: 18px; bottom: 12px; }
  .podium__front { height: 22px; }

  .tuner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tuner__btn { gap: 8px; padding: 6px 10px 6px 6px; font-size: 12.5px; justify-content: center; }
  .tuner__btn b { min-width: 38px; font-size: 19px; padding: 4px 6px 2px; }
  .tuner__btn[data-ch="all"] { grid-column: 1 / -1; }
  .row { gap: 14px; padding: 22px 0; }
  .row__blurb { flex-basis: 100%; order: 3; }
  .row__strip, .guide__screen.is-solo .row__strip {
    --rowH: 168px;
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(14px, 2.2vw, 32px)); padding: 0 clamp(14px, 2.2vw, 32px) 10px;
    scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
            mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .row__strip::-webkit-scrollbar { display: none; }
  .card { flex: none; scroll-snap-align: start; }
  .swipe-hint { order: 4; display: inline-flex; align-items: center; gap: 6px; font: 400 calc(18px * var(--ok))/1 var(--f-osd); color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
  .swipe-hint::after { content: '→'; animation: nudge 1.2s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(5px); } }

  .crow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k a" "v v"; padding: 18px 6px; gap: 10px 14px; }
  .crow__k { grid-area: k; }
  .crow__a { grid-area: a; }
  .crow__v { grid-area: v; font-size: clamp(18px, 5.2vw, 30px); }

  .pm { padding: 70px 12px 16px; align-items: start; overflow-y: auto; }
  .pm__dialog { flex-direction: column; align-items: stretch; width: 100%; gap: 18px; }
  .pm__screen { margin: 0 auto; border-radius: 14px; }
  .pm__notes { width: 100%; padding: 0 4px 20px; }
  .pm__close { right: 12px; }
  /* his podium stands to the right of the notes, he watches the video above */
  .pm__notes { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-content: start; }
  .pm__notes > * { grid-column: 1; }
  .pm__nav { grid-column: 1 / -1; }
  .podium--pm { grid-column: 2; grid-row: 1 / span 4; align-self: start; width: 170px; --stage-h: 160px; --pw: 86px; margin-top: 0; }
  .osd { display: none; }
  .foot__row { flex-direction: column; align-items: flex-start; padding-right: 0; padding-bottom: 70px; }
}

@media (max-width: 560px) {
  .top { gap: 10px; }
  .top__cta, .onair { display: none; }
  .top__right { gap: 8px; }
  .logo { gap: 7px; }
  .logo__tv { width: 28px; height: 22px; border-radius: 7px; }
  .logo__word { font-size: 13.5px; }
  .logo__pill { font-size: 10px; padding: 3px 6px; }
  .langsw button { padding: 7px 8px; }
  .menubtn { width: 40px; height: 40px; }
  .hero__title { margin: 16px 0 18px; }
  .kicker { font-size: calc(19px * var(--ok)); }
  .ticker { height: 40px; }
  .ticker__label { padding: 0 12px; font-size: 11px; }
  .ticker__move span { font-size: 12px; }
  .ratings__grid { gap: 10px; }
  .stat { padding: 40px 16px 18px; border-radius: 18px; } /* the number sits under the signal icon */
  .stat__bars { top: 16px; right: 14px; height: 16px; }
  .guide__screen { border-radius: 20px; }
  .pm__notes { column-gap: 8px; }
  .podium--pm { width: 112px; --stage-h: 128px; --pw: 70px; }
}
@media (max-width: 390px) {
  .logo__word { font-size: 12px; }
  .logo__tv { width: 26px; }
  .langsw button { padding: 6px 6px; font-size: 11.5px; }
  .menubtn { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .static-full, .static-layer, .rec, .onair i, .h-bulb, .tv__leds i + i, .stat__bars i, .s-new { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
