/* ============================================================
   BITUBE — Cinema made by machines
   ============================================================ */

:root {
  --bg: #07080b;
  --bg-soft: #0a0c11;
  --surface: #10131a;
  --surface-2: #151923;
  --surface-3: #1b202b;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --text: #f4f6fa;
  --muted: #9aa3b3;
  --dim: #6a7383;

  --lime: #c9ff3d;
  --lime-soft: rgba(201, 255, 61, 0.12);
  --violet: #9d7bff;
  --cyan: #5fe3ff;
  --pink: #ff6ec7;
  --amber: #ffb347;
  --red: #ff4d5e;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(157, 123, 255, 0.10), transparent 60%),
    radial-gradient(760px 460px at 8% 4%, rgba(201, 255, 61, 0.07), transparent 62%),
    radial-gradient(1000px 700px at 50% 110%, rgba(95, 227, 255, 0.05), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection {
  background: var(--lime);
  color: #0a0c07;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #222836;
  border-radius: 99px;
  border: 3px solid var(--bg);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: #0a0c07;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   Ticker
   ============================================================ */

.ticker {
  height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(201, 255, 61, 0.06), transparent 28%, transparent 72%, rgba(157, 123, 255, 0.07)),
    #080a0e;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  padding-left: 44px;
  animation: marquee 46s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.header.is-scrolled {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.menu-btn { display: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #e2ff6e, #9df57f 55%, #5fe3ff);
  box-shadow: 0 0 20px rgba(201, 255, 61, 0.28);
}

.brand-mark svg { width: 27px; height: 27px; }

.brand-word {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
}

.brand-tv { color: var(--lime); }

.search {
  flex: 1 1 auto;
  max-width: 620px;
  height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search:focus-within {
  border-color: rgba(201, 255, 61, 0.45);
  background: #12151c;
  box-shadow: 0 0 0 4px rgba(201, 255, 61, 0.07);
}

.search-icon { width: 18px; height: 18px; flex: none; }

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 13px var(--font-body);
}

.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }

.search kbd {
  flex: none;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.observer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.observer-chip svg { width: 14px; height: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--lime);
  color: #0a0c07;
  box-shadow: 0 6px 24px rgba(201, 255, 61, 0.18);
}

.btn-primary:hover {
  background: #d8ff6b;
  box-shadow: 0 8px 30px rgba(201, 255, 61, 0.32);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.menu-btn { display: none; }

.dot-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
}

.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #080a06;
  cursor: pointer;
  background: linear-gradient(140deg, #5fe3ff, #9d7bff);
  transition: transform 0.2s;
}

.avatar:hover { transform: scale(1.06); }

/* ============================================================
   Shell / sidebar
   ============================================================ */

.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  max-width: 1780px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 20px 14px 32px 22px;
  scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar { width: 0; }

.nav-group { display: flex; flex-direction: column; gap: 3px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #c3cad6;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.nav-item svg { width: 20px; height: 20px; color: var(--muted); flex: none; }

.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-item:hover svg { color: var(--text); }

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 600;
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(201, 255, 61, 0.7);
}

.nav-item.is-active svg { color: var(--lime); }

.nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.nav-new {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(201, 255, 61, 0.22);
  border-radius: 4px;
  padding: 2px 5px;
}

.live-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.14), 0 0 10px rgba(255, 77, 94, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
  flex: none;
}

.live-pip-lg { width: 9px; height: 9px; }

.nav-sep {
  height: 1px;
  background: var(--line);
  margin: 16px 10px;
}

.nav-label {
  margin: 4px 12px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.model-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.model-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 7px rgba(201, 255, 61, 0.8);
  margin-left: auto;
  flex: none;
}

.sidebar-note {
  margin: 24px 4px 0;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.sidebar-note p {
  margin: 0 0 4px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
}

.sidebar-note span { color: var(--dim); font-size: 11.5px; }

/* ============================================================
   Mini avatars
   ============================================================ */

.mini-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #080a06;
  letter-spacing: -0.02em;
}

.card .mini-avatar,
.model-item .mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.grad-sora { background: linear-gradient(140deg, #dfff6a, #3ee0b0); }
.grad-veo { background: linear-gradient(140deg, #5fe3ff, #7c7bff); }
.grad-runway { background: linear-gradient(140deg, #b28bff, #ff7ad9); }
.grad-kling { background: linear-gradient(140deg, #ff9a6b, #ff4d8d); }
.grad-luma { background: linear-gradient(140deg, #ffe27a, #ff9d5c); }
.grad-pika { background: linear-gradient(140deg, #ff6ec7, #ff4d5e); }
.grad-mj { background: linear-gradient(140deg, #8ea2ff, #d0a3ff); }

/* ============================================================
   Main
   ============================================================ */

.main {
  min-width: 0;
  padding: 22px 28px 64px 24px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(470px, 60vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: #05070a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  animation: kenburns 34s ease-in-out infinite alternate;
}

.hero-img {
  position: absolute;
  inset: -6%;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 42%;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(1.04);
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, 0.93) 0%, rgba(4, 5, 8, 0.62) 44%, rgba(4, 5, 8, 0.08) 78%),
    linear-gradient(0deg, rgba(4, 5, 8, 0.96) 0%, rgba(4, 5, 8, 0.28) 46%, rgba(4, 5, 8, 0.22) 100%);
}

.hero-topline {
  position: absolute;
  top: 22px;
  left: clamp(22px, 3.5vw, 40px);
  right: clamp(22px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.premiere-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(6, 8, 11, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7ecf5;
}

.premiere-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

.hero-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(225, 232, 244, 0.7);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 0 clamp(22px, 3.5vw, 40px) clamp(26px, 3.5vw, 40px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #ccd4e1;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  flex: none;
}

.hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  max-width: 52ch;
  margin: 15px 0 0;
  color: #c6cedb;
  font-size: 14.5px;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.hero-channel .mini-avatar { width: 26px; height: 26px; font-size: 11px; }
.meta-sep { color: var(--dim); }

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn { height: 44px; padding: 0 22px; font-size: 13.5px; }

.hero-icon {
  width: 44px;
  height: 44px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.hero-icon:hover { background: rgba(255, 255, 255, 0.12); }

#queueBtn.is-added {
  color: var(--lime);
  border-color: rgba(201, 255, 61, 0.4);
  background: var(--lime-soft);
}

.spec-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 254px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(8, 10, 14, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
}

.spec-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

.spec-card dl { margin: 6px 0 0; }

.spec-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 11px;
}

.spec-card dt { color: var(--dim); }
.spec-card dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #dbe2ee;
}

.spec-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-wave span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--lime);
  opacity: 0.65;
  animation: waveform 1.4s ease-in-out infinite;
}

.spec-wave span:nth-child(3n) { animation-delay: 0.2s; }
.spec-wave span:nth-child(3n + 1) { animation-delay: 0.45s; }
.spec-wave span:nth-child(4n) { animation-delay: 0.65s; }
.spec-wave span:nth-child(5n) { animation-delay: 0.9s; }

@keyframes waveform {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(2.4); opacity: 1; }
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  gap: 8px;
  margin: 22px 0 4px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #c3cad6;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.chip:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.chip.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a0c07;
  font-weight: 600;
}

.chip.is-active .live-pip {
  background: #0a0c07;
  box-shadow: none;
  animation: none;
}

/* ---------- Sections / cards ---------- */

.section { margin-top: 30px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(201, 255, 61, 0.3);
  border-radius: 5px;
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s;
}

.view-all span { transition: transform 0.2s var(--ease); }
.view-all:hover { color: var(--lime); }
.view-all:hover span { transform: translateX(3px); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 26px 18px;
}

.card { min-width: 0; }

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d1015;
  isolation: isolate;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 34%);
  opacity: 0.8;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.1s var(--ease-out), filter 0.5s;
}

.card:hover .thumb img,
.thumb:hover img {
  transform: scale(1.075);
  filter: saturate(1.12) brightness(1.04);
}

.badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-model {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: rgba(5, 7, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef2f9;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}

.badge-dot.cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.badge-dot.violet { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.badge-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.badge-dot.pink { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.badge-dot.lime { background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.badge-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }

.badge-dur {
  right: 10px;
  bottom: 10px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #f2f5fa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-play {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 255, 61, 0.94);
  color: #080a06;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.hover-play svg { width: 23px; height: 23px; margin-left: 2px; }

.card:hover .hover-play,
.thumb:focus-visible .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hover-scrub {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(201, 255, 61, 0.7);
  transition: width 1.1s linear;
}

.card:hover .hover-scrub { width: 100%; }

.meta {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 11px;
}

.meta-text { min-width: 0; }

.meta h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta h3 a { transition: color 0.15s; }
.meta h3 a:hover { color: var(--lime); }

.channel {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #c7cedb;
  font-size: 12px;
  font-weight: 500;
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0c07;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

.sub {
  margin: 3px 0 0;
  color: var(--dim);
  font-size: 11.5px;
}

.more-btn {
  width: 30px;
  height: 30px;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.more-btn svg { width: 16px; height: 16px; }

.card:hover .more-btn,
.more-btn:focus-visible { opacity: 1; }

.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 70px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
}

.empty-state svg { width: 34px; height: 34px; color: var(--dim); margin-bottom: 6px; }
.empty-state p { margin: 0; font-size: 15px; font-weight: 500; }
.empty-state span { color: var(--dim); font-size: 12.5px; }

/* ---------- Live ---------- */

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.live-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 255, 61, 0.32);
  background: var(--surface-2);
}

.live-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0e13;
}

.live-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.live-card:hover .live-thumb img { transform: scale(1.05); }

.badge-live {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 18px rgba(255, 77, 94, 0.4);
}

.badge-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}

.badge-viewers {
  bottom: 10px;
  left: 10px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e9eef7;
  backdrop-filter: blur(8px);
}

.live-body { padding: 14px 16px 17px; }

.live-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.live-body h3 {
  margin: 7px 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.live-body .sub { line-height: 1.55; }

/* ---------- Leaderboard ---------- */

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
  overflow: hidden;
}

.leaderboard { padding: 6px 20px; }

.lb-row {
  display: grid;
  grid-template-columns: 42px minmax(160px, 1.1fr) minmax(120px, 2fr) 90px 72px;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.lb-row:last-child { border-bottom: 0; }

.lb-head {
  padding: 11px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.lb-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.lb-model {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.lb-model .mini-avatar { width: 28px; height: 28px; font-size: 11px; }

.lb-bar {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lb-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--lime), #5fe3a1);
  transition: width 1.1s var(--ease-out);
}

.leaderboard.is-visible .lb-bar i { width: var(--w); }

.lb-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: right;
  color: #d5dce8;
}

.lb-delta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: right;
}

.lb-delta.up { color: var(--lime); }
.lb-delta.down { color: var(--red); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin-top: 44px;
  padding: clamp(26px, 3.6vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 4% 0%, rgba(201, 255, 61, 0.1), transparent 62%),
    radial-gradient(700px 420px at 100% 110%, rgba(157, 123, 255, 0.14), transparent 60%),
    var(--surface);
}

.cta::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 61, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.cta-copy { position: relative; z-index: 1; }

.cta h2 {
  margin: 13px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lime { color: var(--lime); }

.cta-desc {
  max-width: 52ch;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cta-fine {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 11.5px;
}

.terminal-wrap { position: relative; z-index: 1; }

.terminal {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #080a0e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}

.term-dots { display: flex; gap: 5px; }

.term-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4150;
}

.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }

.term-title {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.term-copy {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.term-copy:hover {
  color: var(--lime);
  border-color: rgba(201, 255, 61, 0.35);
  background: var(--lime-soft);
}

.terminal pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: #d8dfeb;
  tab-size: 2;
}

.t-prompt { color: var(--lime); }
.t-ok { color: #7cf0a8; }
.t-dim { color: #6b7688; }
.t-str { color: #ffd479; }
.t-err { color: #ff6b7a; }

.terminal-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 2px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.terminal-note .t-ok { animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 58px;
  padding: 36px 4px 24px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 40px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-social { display: flex; gap: 8px; margin-top: 16px; }

.footer-social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.footer-social a:hover {
  color: var(--lime);
  border-color: rgba(201, 255, 61, 0.35);
  background: var(--lime-soft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.15s;
}

.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11.5px;
}

.footer-bottom p { margin: 0; }

.footer-monitor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Mobile nav ---------- */

.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 62px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(7, 8, 11, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.mobile-nav svg { width: 21px; height: 21px; }
.mobile-nav .is-active { color: var(--lime); }
.mobile-nav .upload-trigger { color: var(--text); }

/* ---------- Dialogs ---------- */

dialog.modal {
  width: min(530px, calc(100vw - 28px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

dialog.modal::backdrop {
  background: rgba(2, 3, 5, 0.74);
  backdrop-filter: blur(7px);
}

dialog.modal[open] { animation: modalIn 0.28s var(--ease-out); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-content { position: relative; }

dialog.modal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
    #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 77, 94, 0.22), transparent 65%);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.modal-close svg { width: 16px; height: 16px; }

.denied-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 77, 94, 0.32);
  border-radius: 999px;
  background: rgba(255, 77, 94, 0.09);
  color: #ff8b96;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
}

.denied-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 7px var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

.modal h2 {
  position: relative;
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modal-desc {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.modal-code {
  position: relative;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #07090d;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  color: #d8dfeb;
}

.modal-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions .btn { height: 42px; font-size: 12.5px; }

.modal-fine {
  position: relative;
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 11px;
}

/* Player */

dialog.player-modal { width: min(1010px, calc(100vw - 28px)); padding: 14px; }

.player-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.player-frame > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.82);
}

.player-big-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(201, 255, 61, 0.94);
  color: #080a06;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.player-big-btn:hover { transform: translate(-50%, -50%) scale(1.05); background: #d9ff72; }
.player-big-btn svg { width: 26px; height: 26px; }
.player-big-btn .ico-play { margin-left: 3px; }
.player-big-btn .ico-pause { display: none; }
.player-modal.is-playing .ico-play { display: none; }
.player-modal.is-playing .ico-pause { display: block; }
.player-modal.is-playing .player-big-btn {
  opacity: 0;
  pointer-events: none;
}

.player-frame:hover .player-big-btn { opacity: 1; pointer-events: auto; }

.player-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
}

.player-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  cursor: pointer;
}

.player-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(201, 255, 61, 0.6);
}

.player-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.player-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.player-times {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #aeb7c6;
  white-space: nowrap;
}

.player-note {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #141821;
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile app card ---------- */

.mobile-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  align-items: center;
  gap: 34px;
  margin-top: 34px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(560px 220px at 88% 20%, rgba(95, 227, 255, 0.09), transparent 70%),
    radial-gradient(520px 240px at 4% 100%, rgba(201, 255, 61, 0.07), transparent 70%),
    var(--surface);
  overflow: hidden;
}

.mobile-cta h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.mobile-cta-desc {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.mobile-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.btn-quiet {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.mobile-cta-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--dim);
}

.mobile-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(201, 255, 61, 0.7);
}

.mobile-cta-note {
  margin: 10px 0 0;
  max-width: 52ch;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.55;
}

.mobile-cta-qr {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.mobile-cta-qr > div {
  display: block;
  width: 176px;
  height: 176px;
  padding: 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.mobile-cta-qr svg { display: block; width: 100%; height: 100%; }
.mobile-cta-qr > p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.mobile-qr-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  color: #07080b;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
  word-break: break-all;
}

@media (max-width: 860px) {
  .mobile-cta {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
    padding: 24px;
  }

  .mobile-cta-qr {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .mobile-cta-qr > div {
    width: 128px;
    height: 128px;
    padding: 9px;
  }

  .mobile-cta-qr > p { text-align: left; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1240px) {
  .spec-card { display: none; }
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .observer-chip { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
}

@media (max-width: 1100px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-grid .live-card:last-child { display: none; }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .menu-btn { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); }
  .main { padding: 18px 18px 92px; }
  .hero { min-height: clamp(430px, 58vh, 540px); }
  .cta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .toast { bottom: 82px; }
  .header { gap: 12px; padding: 0 16px; }
}

@media (max-width: 760px) {
  .header {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px;
    row-gap: 10px;
  }
  .search {
    order: 5;
    flex-basis: 100%;
    max-width: none;
    height: 38px;
  }
  .top-actions { gap: 6px; }
  .top-actions .upload-trigger { height: 36px; padding: 0 14px; font-size: 12px; }
  .top-actions .upload-trigger svg { width: 15px; height: 15px; }
  .avatar { width: 32px; height: 32px; }

  .main { padding: 14px 14px 92px; }
  .hero { border-radius: 20px; min-height: 460px; }
  .hero-topline { top: 16px; left: 16px; right: 16px; }
  .hero-time { display: none; }
  .hero-content { padding: 0 18px 22px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-desc { font-size: 13px; }
  .hero-meta { font-size: 11.5px; }
  .hero-actions .btn { height: 42px; padding: 0 18px; font-size: 12.5px; }
  .hero-icon { width: 42px; height: 42px; }

  .section-head h2 { font-size: 15.5px; }
  .view-all { font-size: 11px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 14px; }
  .meta { grid-template-columns: 34px minmax(0, 1fr); }
  .meta .mini-avatar { width: 32px; height: 32px; }
  .more-btn { display: none; }

  .live-grid { grid-template-columns: 1fr; }
  .live-grid .live-card:last-child { display: block; }

  .leaderboard { padding: 4px 14px; }
  .lb-row { grid-template-columns: 30px minmax(0, 1fr) 68px 56px; gap: 8px; padding: 11px 0; }
  .lb-head { grid-template-columns: 30px minmax(0, 1fr) 68px 56px; }
  .lb-bar-col { display: none; }
  .lb-model { font-size: 12px; }
  .lb-model .mini-avatar { width: 25px; height: 25px; }
  .lb-num { font-size: 10.5px; }
  .lb-delta { font-size: 9.5px; }

  .cta { padding: 24px 20px; border-radius: 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-bottom { font-size: 10.5px; }

  .modal { padding: 24px !important; }
  .modal h2 { font-size: 23px; }
  .player-modal { padding: 8px !important; }
  .player-meta h3 { font-size: 13px; }
  .player-controls { padding: 30px 12px 12px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .live-grid .live-card:last-child { display: block; }
  .hero h1 { font-size: 36px; }
  .chips { margin-top: 16px; }
  .section { margin-top: 26px; }
  .brand-word { font-size: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark svg { width: 25px; height: 25px; }
}

/* ============================================================
   Motion preferences
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .leaderboard .lb-bar i { width: var(--w); }
}
