@font-face {
  font-family: "FMOS Display";
  src: url("/fonts/fmos-display.ttf") format("truetype");
  font-display: swap;
}

/* Palette shared with w237.net/stats, plus the logo's stripe red/blue and cream. */
:root {
  --bg: #07051a;
  --bg-2: #120a33;
  --panel: rgba(22, 16, 58, 0.72);
  --panel-edge: rgba(150, 120, 255, 0.22);
  --text: #ece8ff;
  --muted: #a49cc9;
  --faint: #6f6799;
  --pink: #ff4fd8;
  --cyan: #5ee7ff;
  --amber: #ffc861;
  --stripe-red: #ff3b2f;
  --stripe-blue: #1fa8d8;
  --cream: #f6dcb8;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "FMOS Display", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

/* Language switch: both languages live in the markup, the root class shows one. */
.lang-ru .en, .lang-en .ru { display: none !important; }

a { color: var(--cyan); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Starfield and orbits, same as /stats. */
.sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; contain: strict;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 79, 216, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(94, 231, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 55%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, #cfc6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80px 160px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 200px 210px, #9feaff 50%, transparent 51%);
  background-size: 240px 240px;
  opacity: 0.35;
}
.sky::after { background-size: 380px 380px; background-position: 90px 130px; opacity: 0.22; }

.orbit {
  position: absolute; top: 120px; right: -160px;
  border: 1px solid rgba(160, 130, 255, 0.18); border-radius: 50%;
  animation: spin linear infinite; will-change: transform;
}
.orbit span {
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.orbit-1 { width: 360px; height: 360px; animation-duration: 40s; }
.orbit-2 { width: 560px; height: 560px; top: 20px; right: -260px; animation-duration: 75s; animation-direction: reverse; }
.orbit-2 span { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.orbit-3 { width: 820px; height: 820px; top: -110px; right: -390px; animation-duration: 120s; border-style: dashed; }
.orbit-3 span { background: var(--amber); box-shadow: 0 0 10px var(--amber); width: 6px; height: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(7, 5, 26, 0.94); border-bottom-color: var(--panel-edge);
}
.nav-mark {
  font-family: var(--display); font-size: 24px; letter-spacing: 0.04em; text-decoration: none;
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 50%, var(--pink) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang { display: flex; border: 1px solid var(--panel-edge); border-radius: 999px; padding: 3px; margin-left: auto; }
.lang button {
  min-width: 40px; min-height: 32px; border: 0; border-radius: 999px; background: none;
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: rgba(94, 231, 255, 0.16); color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s; }
.hero-media video.ready { opacity: 0.7; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 26, 0.96) 0%, rgba(7, 5, 26, 0.75) 40%, rgba(18, 10, 51, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    radial-gradient(800px 500px at 75% 40%, rgba(255, 79, 216, 0.18), transparent 70%);
}
.scanlines {
  position: absolute; inset: 0; opacity: 0.08;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px);
}
.hero-inner {
  position: relative; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 120px var(--gutter) 96px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--stripe-red), var(--stripe-blue)); }
.logo {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(72px, 15vw, 184px); line-height: 0.88; letter-spacing: 0.02em;
}
.glitch {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 45%, var(--pink) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0;
}
.glitch::before { background-image: linear-gradient(var(--stripe-red), var(--stripe-red)); animation: glitch-a 7s infinite steps(1); }
.glitch::after { background-image: linear-gradient(var(--stripe-blue), var(--stripe-blue)); animation: glitch-b 7s infinite steps(1); }
@keyframes glitch-a { 0%, 91%, 100% { opacity: 0; transform: none; } 92% { opacity: 0.8; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); } 94% { opacity: 0.8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); } 96% { opacity: 0; } }
@keyframes glitch-b { 0%, 91%, 100% { opacity: 0; transform: none; } 93% { opacity: 0.8; transform: translate(4px, 0); clip-path: inset(40% 0 30% 0); } 95% { opacity: 0.8; transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); } 97% { opacity: 0; } }

.hero-title {
  margin: 14px 0 0; font-family: var(--display); font-size: clamp(30px, 4.6vw, 54px); line-height: 1;
  color: var(--cream); letter-spacing: 0.06em;
}
.hero-lead { margin: 20px 0 0; max-width: 520px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid rgba(94, 231, 255, 0.5); background: rgba(94, 231, 255, 0.08);
  color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: rgba(94, 231, 255, 0.18); transform: translateY(-1px); }
.btn-primary {
  border-color: transparent; color: #12061f;
  background: linear-gradient(100deg, var(--cyan), var(--pink));
  box-shadow: 0 10px 40px rgba(255, 79, 216, 0.35);
}
.btn-primary:hover { background: linear-gradient(100deg, #8ff0ff, #ff7ae3); box-shadow: 0 14px 50px rgba(255, 79, 216, 0.5); }
.btn-ghost { border-color: var(--panel-edge); background: transparent; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.playing .play-icon, .play-icon.pause { width: 12px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

/* Sleeve + vinyl: the record slides out and spins while a preview plays. */
.sleeve { position: relative; aspect-ratio: 1; width: min(100%, 440px); justify-self: end; margin-right: 12%; }
.cover {
  position: relative; z-index: 2; display: block; width: 100%; height: auto; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.vinyl {
  position: absolute; z-index: 1; inset: 3%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 15%, rgba(255, 255, 255, 0.05) 15.5% 16%, transparent 16.5%),
    repeating-radial-gradient(circle, #111 0 2px, #1b1b1f 2px 3px),
    #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateX(18%);
  transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, 0.10) 25%, transparent 30% 70%, rgba(255, 255, 255, 0.08) 75%, transparent 80%);
}
.vinyl-label {
  position: absolute; inset: 34%; border-radius: 50%;
  background: url("/media/logo-600.png") center/cover, #050505;
  animation: spin 1.8s linear infinite paused;
}
.sleeve:hover .vinyl { transform: translateX(26%); }
.sleeve.spinning .vinyl { transform: translateX(42%); }
.sleeve.spinning .vinyl-label { animation-play-state: running; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(236, 232, 255, 0.35); border-radius: 14px;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ticker in logo stripe colours ---------- */
.ticker {
  position: relative; z-index: 2; overflow: hidden; padding: 14px 0;
  background: #06050f;
  border-block: 3px solid var(--stripe-red);
  box-shadow: inset 0 3px 0 var(--stripe-blue), inset 0 -3px 0 var(--stripe-blue);
}
.ticker-track { will-change: transform; display: flex; gap: 28px; width: max-content; align-items: center; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--display); font-size: 22px; letter-spacing: 0.12em; color: var(--cream); white-space: nowrap; }
.ticker i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
main, .foot { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(64px, 10vw, 120px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; margin-bottom: 24px; }
.section-title {
  margin: 0 0 16px; font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.section-head .section-title { margin: 0; }
.section-sub { margin: 0; max-width: 560px; color: var(--muted); }
h3.section-title { margin-top: 56px; }
.note { color: var(--faint); font-size: 13px; margin: 14px 0 0; max-width: 820px; }

.card {
  background: rgba(22, 16, 58, 0.9); border: 1px solid var(--panel-edge); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ---------- Departure board ---------- */
.board {
  background: linear-gradient(180deg, #0c0a1c, #08061a);
  border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.board-head, .row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 96px 200px; gap: 14px; align-items: center;
}
.board-head {
  padding: 8px 14px 12px; color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px dashed rgba(255, 200, 97, 0.25);
}
.row {
  position: relative; width: 100%; margin: 6px 0 0; padding: 12px 14px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.025); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background 0.2s;
  overflow: hidden;
}
.row:hover { background: rgba(94, 231, 255, 0.07); }
.row.current { background: rgba(255, 79, 216, 0.10); box-shadow: inset 3px 0 0 var(--pink); }
.row .progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); }

.flaps { display: inline-flex; gap: 2px; font-family: var(--display); font-size: clamp(16px, 2.2vw, 26px); line-height: 1; white-space: nowrap; overflow: hidden; }
.flap {
  position: relative; display: inline-grid; place-items: center; min-width: 0.78em; padding: 0.22em 0.08em 0.18em;
  background: linear-gradient(180deg, #1a1830 0 49%, #12101f 51% 100%); border-radius: 3px;
  color: var(--cream); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.7); }
.flap.space { background: transparent; box-shadow: none; }
.flap.flip { animation: flip 0.09s linear; }
@keyframes flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(0.2); } 100% { transform: scaleY(1); } }
.row-num .flap { color: var(--amber); }
.col-time, .row-time { text-align: right; }
.row-time { font-family: var(--display); font-size: clamp(16px, 2vw, 22px); color: var(--muted); font-variant-numeric: tabular-nums; }
.row-status { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.row-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.row.current .row-status { color: var(--pink); }
.row.current.playing .row-status .dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.row-yt { color: var(--faint); font-size: 12px; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.row-yt:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.board-fallback { margin: 12px 18px; color: var(--cream); font-family: var(--display); font-size: 20px; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.display {
  margin: 0 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02;
  background: linear-gradient(100deg, #fff 20%, var(--cream) 60%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prose p { margin: 0 0 16px; color: #d6d0f2; font-size: 17px; max-width: 640px; }
.quote {
  position: relative; margin: 0; padding: 32px 28px 28px;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.quote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--stripe-red) 0 33%, var(--stripe-blue) 33% 66%, var(--stripe-red) 66%);
}
.quote p { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.12; color: var(--text); }
.quote footer { margin-top: 18px; color: var(--amber); font-size: 14px; letter-spacing: 0.06em; }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.spec {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; line-height: 1.45;
}
.spec b {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1;
  background: linear-gradient(100deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.34fr); gap: 20px; align-items: start; }
.video-card { margin: 0; padding: 12px; overflow: hidden; }
.frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.frame-16x9 { aspect-ratio: 16 / 9; }
.frame-9x16 { aspect-ratio: 9 / 16; }
.frame video, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-card figcaption { display: flex; flex-direction: column; padding: 12px 6px 4px; color: var(--muted); font-size: 13px; }
.video-card figcaption b { color: var(--text); font-size: 16px; }

.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.yt-grid .yt:first-child:nth-last-child(odd) { grid-column: 1 / -1; }   /* odd count: newest video spans the row */
.yt {
  position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--panel-edge); border-radius: 14px;
  overflow: hidden; background: #000; cursor: pointer; color: var(--text); font: inherit;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.4s, opacity 0.3s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 5, 26, 0.9), transparent 55%); }
.yt-play {
  position: absolute; z-index: 1; left: 50%; top: 45%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px;
  background: rgba(255, 59, 78, 0.9); box-shadow: 0 8px 30px rgba(255, 59, 78, 0.4);
}
.yt-play::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt-title { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; text-align: left; font-weight: 700; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(20px, 4vw, 40px); }
.about-logo { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.about-name { margin: 0 0 14px; font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.about-name span { font-family: system-ui, sans-serif; font-size: 15px; color: var(--muted); }
.motto { margin: 8px 0 0; color: var(--amber); font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); }

/* ---------- Listen ---------- */
.listen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.listen a {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 700;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.listen a:hover { border-color: rgba(255, 79, 216, 0.6); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 79, 216, 0.15); }
.listen a small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.listen .icon { width: 32px; height: 32px; flex: none; }
.listen a::after { content: "↗"; margin-left: auto; color: var(--faint); font-weight: 400; }

/* ---------- Footer ---------- */
.foot { padding-top: 80px; padding-bottom: 120px; color: var(--faint); font-size: 13px; text-align: center; }
.stripes { display: grid; gap: 4px; max-width: 220px; margin: 0 auto 18px; }
.stripes i { height: 3px; border-radius: 2px; background: var(--stripe-red); }
.stripes i:nth-child(2) { background: var(--stripe-blue); }

/* ---------- Player ---------- */
.player {
  position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(640px, calc(100% - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px;
  background: rgba(14, 10, 40, 0.96); border: 1px solid var(--panel-edge); border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 79, 216, 0.15);
  animation: rise 0.4s cubic-bezier(.2, .8, .2, 1);
}
.player[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 20px); } }
.p-btn {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--pink)); color: #12061f; font-size: 16px;
}
.p-next { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.p-meta { flex: 1; min-width: 0; }
.p-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--muted); }
.p-title b { color: var(--text); font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0.03em; }
.p-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.p-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.p-viz { flex: none; width: 120px; height: 36px; }
.p-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--faint); font-size: 22px; cursor: pointer; }
.p-close:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .orbit, .sky::before, .sky::after, .ticker-track, .glitch::before, .glitch::after, .vinyl-label, .scroll-hint span { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 104px; }
  .sleeve { justify-self: start; width: min(78%, 360px); margin-right: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .board-head, .row { grid-template-columns: 40px minmax(0, 1fr) 56px; gap: 10px; }
  .col-status, .row-status { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .tall-video { max-width: 340px; }
  .yt-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-logo { max-width: 200px; }
  .p-viz { display: none; }
  .ticker span { font-size: 18px; }
}
@media (max-width: 420px) {
  .specs { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* Idle animations stop while their section is off-screen or the tab is hidden (battery). */
.offscreen .glitch::before, .offscreen .glitch::after, .offscreen .scroll-hint span,
.ticker.offscreen .ticker-track, .tab-hidden .orbit { animation-play-state: paused; }
