/* =================================================
   AUSTINCR.TV — motyw inspirowany pompki.susquad.pl
   Czerń + elektryczna limonka, brutalistyczno-techowy styl
   ================================================= */

:root {
  --bg: #0b0605;              /* deep warm black */
  --bg-elev: rgba(241, 200, 75, 0.035);
  --bg-card: #160d09;         /* warm dark card */
  --text: #f8f1e7;            /* warm off-white */
  --accent: #f1c84b;          /* imperial gold */
  --accent-on: #1a0c04;
  --accent-red: #d4101f;      /* Chinese red */
  --accent-red-soft: rgba(212, 16, 31, 0.14);
  --success: #00ff88;
  --danger: #ff3b30;
  --mute-1: #cbb89c;
  --mute-2: #948468;
  --mute-3: #4c3f30;
  --line-1: rgba(241, 200, 75, 0.07);
  --line-2: rgba(241, 200, 75, 0.14);
  --line-3: rgba(241, 200, 75, 0.28);
  --accent-glow: 0 0 30px rgba(241, 200, 75, 0.35);

  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Playfair Display', Georgia, serif;

  --display-tracking: -0.05em;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Delikatna ziarnistość / grain na całym tle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

.muted { color: var(--mute-2); }
.accent-text { color: var(--accent); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 700; }

/* Etykiety mono — sygnatura stylu */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: inline-block;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--mute-2);
}

/* =================== NAGŁÓWEK / NAWIGACJA =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.header-coffee { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.1; }
.header-coffee .coffee-note { font-size: 0.55rem; }
@media (max-width: 1080px) { .header-coffee .coffee-note { display: none; } }
@media (max-width: 600px) { .header-coffee { display: none; } }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: var(--accent-glow);
}
.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute-1);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text);
}
.btn:hover { border-color: var(--line-3); transform: translateY(-1px); }
.btn-primary, .btn-sub {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.btn-primary:hover, .btn-sub:hover { filter: brightness(1.1); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(255, 59, 48, 0.35); }
.btn-danger:hover { background: rgba(255, 59, 48, 0.12); border-color: var(--danger); }
.btn-sm { padding: 7px 12px; font-size: 0.7rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =================== KOMUNIKATY (flash) =================== */
.flash-wrap { margin-top: 18px; position: relative; z-index: 2; }
.flash {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid var(--line-2);
}
.flash-success { border-color: rgba(0, 255, 136, 0.4); color: var(--success); background: rgba(0, 255, 136, 0.06); }
.flash-error { border-color: rgba(255, 59, 48, 0.4); color: var(--danger); background: rgba(255, 59, 48, 0.06); }

main { position: relative; z-index: 2; }

/* =================== HERO =================== */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(241, 200, 75, 0.10), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: var(--display-tracking);
  margin: 22px 0;
}
.hero h1 .line2 { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--mute-1);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pasek statystyk pod hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 64px;
}
.hero-stat { background: var(--bg); padding: 28px 24px; }
.hero-stat .num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mute-2);
  margin-top: 6px;
}

/* =================== SEKCJE =================== */
.section { padding: 80px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: var(--display-tracking);
  line-height: 1;
  margin-top: 10px;
}
.divider { border: none; border-top: 1px solid var(--line-1); }

/* =================== KARTY FILMÓW =================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--line-3); }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.thumb .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s;
}
.video-card:hover .thumb .play { opacity: 1; }
.thumb .play span {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: var(--accent-glow);
}
.badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-2);
  color: var(--mute-1);
  z-index: 2;
}
.badge.featured { background: var(--accent); color: #000; border-color: var(--accent); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card-meta {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mute-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =================== FILTRY =================== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--mute-1);
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--line-3); color: var(--text); }
.filter-chip.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* =================== STATYSTYKI =================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(241, 200, 75, 0.08), transparent 70%);
}
.stat-card .icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.stat-card .big {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
  font-variant-numeric: tabular-nums;
}
.stat-card .sub { font-size: 0.85rem; color: var(--mute-2); }

.chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 48px;
}
.chart-wrap h3 { font-weight: 700; margin-bottom: 4px; }

/* Tabela top filmów */
.top-table { width: 100%; border-collapse: collapse; }
.top-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mute-2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
}
.top-table td { padding: 14px; border-bottom: 1px solid var(--line-1); }
.top-table tr:hover td { background: rgba(241, 200, 75, 0.03); }
.rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* =================== ODTWARZACZ / SZCZEGÓŁY FILMU =================== */
.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  margin-bottom: 28px;
}
.player-wrap iframe { width: 100%; height: 100%; border: 0; }

/* =================== O KANALE =================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.prose p { color: var(--mute-1); margin-bottom: 18px; }
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 26px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-1);
  font-size: 0.9rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--mute-2); }

/* =================== STOPKA =================== */
.site-footer {
  border-top: 1px solid var(--line-1);
  margin-top: 60px;
  padding: 56px 0 32px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-1);
}
.footer-logo { font-family: var(--font-mono); font-size: 1.1rem; }
.footer-brand p { margin-top: 8px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute-1);
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; font-size: 0.78rem; font-family: var(--font-mono); }

/* =================== PUSTE STANY =================== */
.empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--mute-2);
}
.empty .big-emoji { font-size: 2.4rem; display: block; margin-bottom: 14px; }

/* =================== FORMULARZE / ADMIN =================== */
.admin-shell { padding: 50px 0 90px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute-1);
}
.field input[type="text"],
.field input[type="number"],
.field input[type="url"],
.field input[type="password"],
.field textarea,
.field select {
  background: #0d0d0d;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241, 200, 75, 0.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
}
.panel h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.panel .panel-sub { color: var(--mute-2); font-size: 0.85rem; margin-bottom: 22px; }

.admin-video-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  margin-bottom: 10px;
}
.admin-video-row img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 5px; }
.admin-video-row .meta { flex: 1; min-width: 0; }
.admin-video-row .meta h4 { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-video-row .meta .sub { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mute-2); text-transform: uppercase; }
.admin-actions { display: flex; gap: 8px; }
.inline-form { display: inline; }

.sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mute-1);
}
.dot-live {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.login-card {
  max-width: 420px;
  margin: 90px auto;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 40px 34px;
}
.login-card h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }

/* =================== RESPONSYWNOŚĆ =================== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #050505;
    border-bottom: 1px solid var(--line-2);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
  }
  .main-nav.open { max-height: 460px; padding: 16px 24px; }
  .main-nav a, .main-nav .report-bug-btn { padding: 12px 0; width: 100%; text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* =================================================
   MULTI-CHANNEL COMPONENTS (per-channel accent via --c)
   ================================================= */

/* Per-channel theming overrides (elements that set --c) */
.video-card { --c: var(--accent); }
.video-card:hover { border-color: var(--c, var(--accent)); }
.video-card:hover .thumb .play span { background: var(--c, var(--accent)); box-shadow: 0 0 30px color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); }
.badge.featured { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); }
.filter-chip.active { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); }

.chan-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}
.filter-chip.small { font-size: 0.68rem; padding: 6px 13px; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Channel cards (home) ---- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.channel-card {
  --c: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.channel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c, var(--accent));
}
.channel-card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--accent)) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.channel-card:hover { transform: translateY(-5px); border-color: var(--c, var(--accent)); }
.channel-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.channel-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c, var(--accent));
}
.channel-top h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.primary-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  background: var(--c, var(--accent));
  color: #000;
  padding: 2px 6px;
  border-radius: 3px;
}
.channel-handle { font-family: var(--font-mono); font-size: 0.74rem; color: var(--mute-2); }
.channel-tag { color: var(--mute-1); font-size: 0.92rem; flex: 1; }
.channel-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
  font-size: 0.95rem;
}
.channel-stat-row strong { color: var(--c, var(--accent)); font-variant-numeric: tabular-nums; }

/* Wide "View Channel Comparison" button under the channel grid */
.comparison-cta {
  --c: var(--accent);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 20px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.comparison-cta::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 240px;
  background: radial-gradient(circle at right, rgba(241, 200, 75, 0.10), transparent 70%);
  pointer-events: none;
}
.comparison-cta:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--accent-glow); }
.comparison-cta .cta-icon {
  font-size: 1.4rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 12px;
  flex-shrink: 0;
}
.comparison-cta .cta-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.comparison-cta .cta-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.comparison-cta .cta-text small { color: var(--mute-2); font-size: 0.84rem; }
.comparison-cta .cta-arrow { color: var(--accent); font-size: 1.5rem; font-weight: 700; transition: transform 0.2s; }
.comparison-cta:hover .cta-arrow { transform: translateX(5px); }
.channel-stat-row .arrow { color: var(--c, var(--accent)); font-weight: 700; transition: transform 0.2s; }
.channel-card:hover .arrow { transform: translateX(5px); }

/* ---- Network totals (stats page) ---- */
.totals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 56px;
}
.total-cell { background: var(--bg); padding: 34px 24px; text-align: center; }
.big-num {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.total-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mute-2);
  margin-top: 10px;
}

/* ---- Per-channel stat cards ---- */
.stat-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.stat-channel-card {
  --c: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.stat-channel-card:hover { border-color: var(--c, var(--accent)); transform: translateY(-3px); }
.scc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.scc-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c, var(--accent)); }
.scc-head h3 { font-size: 1rem; font-weight: 700; }
.scc-subs {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--c, var(--accent));
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.scc-sublabel { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--mute-2); margin-top: 4px; }
.scc-bar { height: 6px; background: var(--line-1); border-radius: 100px; overflow: hidden; margin: 16px 0; }
.scc-bar span { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 100px; box-shadow: 0 0 12px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); }
.scc-foot { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--mute-2); text-align: center; }
.scc-foot strong { color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }

/* ---- Footer social row ---- */
.social-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-channel {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--c, var(--accent));
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.social-channel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-channel:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c, var(--accent)) 55%, transparent);
}
.social-badge {
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute-1);
  transition: all 0.2s;
}
.social-badge:hover { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); transform: translateY(-2px); }

/* ---- About: network list ---- */
.info-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-1);
}
.info-channel:last-child { border-bottom: none; }
.info-channel .ic-name { flex: 1; font-weight: 600; }
.info-channel:hover .ic-name { color: var(--c, var(--accent)); }
.info-channel .ic-subs { font-family: var(--font-mono); font-size: 0.8rem; color: var(--mute-2); }

/* ---- Admin: collapsible channel editors ---- */
.channel-editor {
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--c, var(--accent));
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #0d0d0d;
}
.channel-editor summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  list-style: none;
}
.channel-editor summary::-webkit-details-marker { display: none; }
.channel-editor summary::after { content: "▸"; margin-left: auto; color: var(--mute-2); transition: transform 0.2s; }
.channel-editor[open] summary::after { transform: rotate(90deg); }
.admin-video-row { border-left: 3px solid var(--c, var(--accent)); }

@media (max-width: 820px) {
  .totals-row { grid-template-columns: repeat(2, 1fr); }
}

/* =================================================
   SOCIAL BLADE-STYLE DASHBOARD
   ================================================= */
.sb-dash { --c: var(--accent); margin-bottom: 56px; }

.sb-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--c, var(--accent));
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sb-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c, var(--accent)); }
.sb-id { flex: 1; min-width: 140px; }
.sb-id h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.sb-headstats { display: flex; gap: 28px; flex-wrap: wrap; }
.sb-headstats div { text-align: right; }
.sb-headstats strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sb-headstats span { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--mute-2); }

.sb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.sb-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-card-lbl { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--mute-2); }
.sb-card-val { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sb-card-sub { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mute-2); }

.pos { color: var(--success); }
.neg { color: var(--danger); }
.zero, .sb-card-val.zero { color: var(--mute-2); }

.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.chart-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.ctog {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line-2);
  background: transparent; color: var(--mute-1); cursor: pointer; transition: all 0.2s;
}
.ctog.active { background: var(--c, var(--accent)); color: #000; border-color: var(--c, var(--accent)); }

.sb-recent {
  background: var(--bg-card); border: 1px solid var(--line-1); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s;
}
.sb-recent:hover { border-color: var(--c, var(--accent)); }
.sb-recent img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.sb-recent h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.3; }

.sb-table th, .sb-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-table .sb-summary td { border-top: 1px solid var(--line-3); font-weight: 700; background: rgba(255,255,255,0.02); }

.tracking-note {
  margin-top: 22px; padding: 14px 18px;
  border: 1px dashed var(--line-2); border-radius: 8px;
  font-size: 0.82rem; color: var(--mute-1); line-height: 1.5;
}

@media (max-width: 820px) {
  .sb-grid { grid-template-columns: 1fr; }
  .sb-cards { grid-template-columns: 1fr; }
  .sb-headstats { gap: 18px; }
  .sb-headstats div { text-align: left; }
}

/* =================================================
   HERO (redesigned) + video rail
   ================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 { margin: 18px 0 4px; }
.hero-tagline {
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 20px;
}
/* Buy me a coffee (hero) */
.coffee-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.coffee-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute-1);
  white-space: nowrap;
}
.btn-coffee {
  background: #ffdd00;
  color: #000;
  border-color: #ffdd00;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255, 221, 0, 0.35);
}
.btn-coffee:hover { background: #ffe534; border-color: #ffe534; transform: translateY(-2px); }

.hero-metrics { display: flex; gap: 38px; margin-top: 36px; flex-wrap: wrap; }
.hero-metrics strong {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-metrics span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute-2);
}

/* Flagship channel card on the right of the hero */
.hero-flagship {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 36px 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-top: 3px solid var(--c, var(--accent));
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.hero-flagship::after {
  content: "";
  position: absolute;
  top: -40px; left: 50%;
  width: 260px; height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--accent)) 20%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-flagship:hover { transform: translateY(-5px); border-color: var(--c, var(--accent)); }
.hero-flagship > * { position: relative; z-index: 1; }
.flagship-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  background: var(--c, var(--accent));
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.hero-flagship img {
  width: 128px; height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c, var(--accent));
  box-shadow: 0 0 40px color-mix(in srgb, var(--c, var(--accent)) 40%, transparent);
  margin: 6px 0;
}
.hero-flagship h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.flagship-subs { margin-top: 12px; font-size: 0.85rem; color: var(--mute-2); }
.flagship-subs strong { display: block; color: var(--c, var(--accent)); font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.flagship-cta { margin-top: 16px; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c, var(--accent)); }

/* Horizontal video bar */
.video-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
}
.video-rail .video-card { scroll-snap-align: start; }
.video-rail::-webkit-scrollbar { height: 8px; }
.video-rail::-webkit-scrollbar-track { background: var(--line-1); border-radius: 4px; }
.video-rail::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 4px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-flagship { max-width: 360px; }
}

/* =================================================
   REPORT A BUG (nav button + modal)
   ================================================= */
.report-bug-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute-1);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.report-bug-btn:hover { color: var(--text); }

.bug-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.bug-modal.open { display: grid; place-items: center; }
.bug-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.bug-card {
  position: relative;
  width: min(480px, calc(100vw - 40px));
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 30px;
  z-index: 1;
  animation: stickerPop 0.3s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.bug-card h3 { font-size: 1.4rem; font-weight: 800; }
.bug-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--mute-1);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.bug-close:hover { color: var(--text); }
.bug-card textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.bug-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(241, 200, 75, 0.12); }
.bug-feedback { font-size: 0.85rem; margin-top: 10px; min-height: 18px; }
.bug-feedback.ok { color: var(--success); }
.bug-feedback.err { color: var(--danger); }

/* Admin analytics + bug list */
.an-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  overflow: hidden;
  margin: 18px 0 24px;
}
.an-stat { background: var(--bg-card); padding: 20px 18px; text-align: center; }
.an-stat strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.an-stat span { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute-2); margin-top: 6px; display: block; }
.an-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.an-h { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--mute-2); margin-bottom: 10px; }
.an-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-1); font-size: 0.9rem; }
.an-row:last-child { border-bottom: none; }
.an-row strong { font-variant-numeric: tabular-nums; }

.tindex-bar { height: 10px; border-radius: 100px; background: var(--line-2); overflow: hidden; }
.tindex-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.5s ease; }

.bug-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
}
.bug-meta { flex: 1; min-width: 0; }
.bug-meta p { font-size: 0.92rem; line-height: 1.4; margin-bottom: 6px; white-space: pre-wrap; word-break: break-word; }
.bug-meta .muted { font-family: var(--font-mono); font-size: 0.7rem; }

@media (max-width: 720px) { .an-cols { grid-template-columns: 1fr; gap: 20px; } }

/* =================================================
   FIND SECTION
   ================================================= */
.find-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.find-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--mute-1);
  cursor: pointer;
  transition: all 0.2s;
}
.find-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

.find-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 28px;
}
.find-note {
  border: 1px solid rgba(255, 59, 48, 0.4);
  background: rgba(255, 59, 48, 0.06);
  color: var(--danger);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 0.82rem;
  text-align: center;
}
.find-form { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.find-input-wrap { position: relative; width: 100%; max-width: 460px; }
.find-input-wrap input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  padding: 14px 60px 14px 16px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.find-input-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(241, 200, 75, 0.12); }
.find-count {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--mute-2);
}

.find-result { margin-top: 28px; }
.find-player {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.find-player iframe { width: 100%; height: 100%; border: 0; }
.find-meta {
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--mute-1);
  display: grid;
  gap: 8px;
}
.find-empty {
  text-align: center;
  color: var(--mute-2);
  padding: 40px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}

/* =================================================
   WORD ANALYSIS
   ================================================= */
.wa-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
}
.wa-stat { background: var(--bg-card); padding: 26px 18px; text-align: center; }
.wa-stat strong {
  display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.wa-stat span {
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--mute-2); margin-top: 8px; display: block;
}

.wa-search-card {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 28px;
}
.wa-tally {
  text-align: center;
  font-size: 1.05rem;
  color: var(--mute-1);
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0d0d0d;
}
.wa-big { font-size: 1.9rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; vertical-align: -2px; }

.wa-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.wa-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg-card);
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.wa-arrow:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.wa-pos {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--mute-1);
  min-width: 64px; text-align: center; font-variant-numeric: tabular-nums;
}

.wa-words {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 28px;
}
.wa-word { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 0.9rem; }
.wa-rank {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--mute-2);
  width: 26px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.wa-w { width: 110px; flex-shrink: 0; font-weight: 600; }
.wa-bar { flex: 1; height: 7px; background: var(--line-2); border-radius: 100px; overflow: hidden; }
.wa-bar span { display: block; height: 100%; background: var(--accent); border-radius: 100px; }
.wa-c {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--mute-1);
  width: 56px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums;
}

.wa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.wa-list { display: flex; flex-direction: column; }
.wa-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line-1); font-size: 0.92rem;
}
.wa-row:last-child { border-bottom: none; }
.wa-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-row strong { flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--accent); }
.wa-vid { color: var(--text); text-decoration: none; transition: color 0.2s; }
.wa-vid:hover span { color: var(--accent); }

@media (max-width: 760px) {
  .wa-words { grid-template-columns: 1fr; }
  .wa-cols { grid-template-columns: 1fr; gap: 26px; }
  .wa-w { width: 90px; }
}

/* =================================================
   MINI GAMES
   ================================================= */
/* Full-screen mini games layout */
.mini-games-full { min-height: 64vh; display: flex; flex-direction: column; }
.mg-switch { display: flex; gap: 12px; justify-content: center; margin-bottom: 30px; }
.mg-switch .g-tab { font-size: 0.84rem; padding: 12px 24px; }
.mini-games-full .game-area { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.mini-games-full .g-hl { max-width: 980px; margin: 0 auto; width: 100%; gap: 30px; }
.mini-games-full .g-card-b h4 { font-size: 1.15rem; }
.mini-games-full .g-views { font-size: 1.6rem; }
.mini-games-full .g-vs span { font-size: 2.6rem; }
.mini-games-full .g-guessr { max-width: 920px; margin: 0 auto; width: 100%; gap: 30px; }
.mini-games-full .g-pill { padding: 12px 26px; }
.mini-games-full .g-pill strong { font-size: 1.7rem; }

.g-tabs { display: flex; gap: 8px; }
.g-tab {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--mute-1);
  cursor: pointer;
  transition: all 0.2s;
}
.g-tab.active { background: var(--c, var(--accent)); color: #000; border-color: var(--c, var(--accent)); }

.game-area { margin-top: 22px; min-height: 320px; position: relative; z-index: 1; }
.g-loading { text-align: center; color: var(--mute-2); padding: 80px 0; font-family: var(--font-mono); }

.g-head { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.g-pill {
  background: #0d0d0d;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute-2);
}
.g-pill strong { display: block; font-size: 1.5rem; color: var(--c, var(--accent)); margin-top: 2px; }

/* Higher or lower */
.g-hl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.g-card {
  background: #0d0d0d;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
  font-family: inherit;
}
.g-card:hover { transform: translateY(-3px); border-color: var(--c, var(--accent)); }
.g-static { cursor: default; }
.g-static:hover { transform: none; border-color: var(--line-2); }
.g-thumb { aspect-ratio: 16/9; background: #000; overflow: hidden; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-card-b { padding: 16px 18px; }
.g-card-b h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.g-views { font-size: 1.3rem; font-weight: 800; color: var(--mute-1); font-variant-numeric: tabular-nums; }
.g-sub { color: var(--mute-2); font-size: 0.85rem; }
.g-vs { text-align: center; }
.g-vs span { font-size: 2rem; font-weight: 900; color: var(--c, var(--accent)); display: block; }
.g-vs small { color: var(--mute-2); font-size: 0.78rem; }
.g-correct { border-color: var(--success) !important; box-shadow: 0 0 24px rgba(0, 255, 136, 0.25); }
.g-wrong { border-color: var(--danger) !important; box-shadow: 0 0 24px rgba(255, 59, 48, 0.25); }

/* Date guessr */
.g-guessr { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.g-controls {
  background: #0d0d0d;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px;
}
.g-controls label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute-1);
  margin: 16px 0 10px;
}
.g-controls label:first-child { margin-top: 0; }
.g-controls input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 100px;
  background: var(--line-2); outline: none;
}
.g-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c, var(--accent)); cursor: pointer;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
}
.g-controls input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--c, var(--accent)); cursor: pointer;
}
.g-range-lbls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--mute-2);
}
.g-badge { background: var(--c, var(--accent)); color: #000; font-weight: 700; padding: 4px 12px; border-radius: 6px; }
.g-lock { width: 100%; justify-content: center; margin-top: 24px; }

.g-over, .g-result {
  text-align: center; padding: 40px 20px;
  background: #0d0d0d; border: 1px solid var(--line-1); border-radius: 14px;
}
.g-over h3, .g-result h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.g-over p, .g-result p { color: var(--mute-1); margin-bottom: 8px; }
.g-over .btn, .g-result .btn { margin-top: 18px; }

.g-intro {
  text-align: center; max-width: 540px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px 20px;
}
.g-intro-emoji { font-size: 3.4rem; line-height: 1; }
.g-intro h3 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.g-intro p { color: var(--mute-1); max-width: 460px; }
.g-start-btn { margin-top: 12px; font-size: 0.95rem; padding: 14px 34px; }

@media (max-width: 720px) {
  .g-hl { grid-template-columns: 1fr; }
  .g-vs { padding: 6px 0; }
  .g-guessr { grid-template-columns: 1fr; }
}

/* =================================================
   CHANNEL COMPARISON ANALYTICS
   ================================================= */
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cc-panel {
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.cc-full { grid-column: 1 / -1; }
.cc-panel h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }

.cc-stat { padding: 12px 0; border-bottom: 1px solid var(--line-1); }
.cc-stat:last-child { border-bottom: none; }
.cc-label { display: block; font-size: 0.82rem; color: var(--mute-1); margin-bottom: 4px; }
.cc-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cc-value-text { font-size: 1.05rem; font-weight: 700; }
.cc-sub { display: block; font-size: 0.76rem; color: var(--mute-2); margin-top: 3px; }

.cc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.cc-chip {
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--line-2);
  color: var(--text);
}

/* Subscriber / views pie */
.cc-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cc-panel-head h3 { margin-bottom: 0; }
.cc-toggle { display: flex; gap: 6px; }
.cc-tog {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-2);
  background: transparent; color: var(--mute-1); cursor: pointer; transition: all 0.2s;
}
.cc-tog.active { background: var(--accent); color: #000; border-color: var(--accent); }

.cc-pie-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.cc-pie { height: 240px; position: relative; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.cc-leg { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--mute-1); }
.cc-leg .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cc-leg strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* Viral / best-month video lists */
.cc-viral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-viral {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0d0d0d;
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.cc-viral:hover { border-color: var(--accent); transform: translateY(-2px); }
.cc-viral-rank {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
}
.cc-viral strong { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

@media (max-width: 860px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-pie-wrap { grid-template-columns: 1fr; }
  .cc-viral-grid { grid-template-columns: 1fr; }
}

/* =================================================
   GAME STATS PANELS
   ================================================= */
.game-panel {
  --c: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--c, var(--accent));
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.game-panel::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--accent)) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; position: relative; z-index: 1; }
.game-emoji {
  font-size: 2rem;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.game-head h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.game-stat { background: var(--bg-card); padding: 22px 18px; text-align: center; }
.game-stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--c, var(--accent));
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.game-stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute-2);
}

/* =================================================
   ANIMATED BACKGROUND (site-wide) — floating blobs, grid, grain
   ================================================= */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 {
  width: 48vw; height: 48vw; left: -10vw; top: -12vw;
  background: radial-gradient(circle at 35% 35%, rgba(241, 200, 75, 0.38), transparent 70%);
  animation: floatA 26s ease-in-out infinite;
}
.blob-2 {
  width: 42vw; height: 42vw; right: -12vw; top: 18vh;
  background: radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.20), transparent 70%);
  animation: floatB 33s ease-in-out infinite;
}
.blob-3 {
  width: 40vw; height: 40vw; left: 28vw; bottom: -18vw;
  background: radial-gradient(circle at 50% 50%, rgba(183, 148, 246, 0.20), transparent 70%);
  animation: floatC 40s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(9vw, 7vh) scale(1.14); }
  66% { transform: translate(-5vw, 11vh) scale(0.92); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, -6vh) scale(1.18); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(6vw, -8vh) scale(0.9); }
  75% { transform: translate(-7vw, 4vh) scale(1.1); }
}
.bg-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 36s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}
@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(64px, 64px); }
}

/* =================================================
   SCROLL-REVEAL + ENTRANCE ANIMATIONS
   ================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* Logo mark breathing glow */
.logo-mark { animation: glowPulse 3.2s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(241, 200, 75, 0.4); }
  50% { box-shadow: 0 0 26px rgba(241, 200, 75, 0.85); }
}

/* Sheen sweep on primary buttons */
.btn-primary, .btn-sub { position: relative; overflow: hidden; }
.btn-primary::after, .btn-sub::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after, .btn-sub:hover::after { animation: sheen 0.85s ease; }
@keyframes sheen { to { left: 135%; } }

/* Live-updating heading shimmer on the big numbers */
.big-num, .hero-metrics strong { background-clip: padding-box; }

/* =================================================
   HERO STICKER WIDGET + scroll cue
   ================================================= */
.hero { position: relative; }
.hero-scroll {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute-2);
  z-index: 2;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 9px); opacity: 1; }
}

.hero-sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.sticker-stage {
  width: 290px; height: 290px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
}
.sticker-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid var(--line-1);
  -webkit-mask: linear-gradient(#000, transparent);
  mask: linear-gradient(#000, transparent);
}
.sticker-stage img,
.sticker-stage video,
.sticker-stage canvas,
.sticker-stage svg {
  max-width: 240px;
  max-height: 240px;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.55));
  animation: stickerPop 0.45s cubic-bezier(0.2, 1.35, 0.4, 1);
}
.sticker-stage.floaty img,
.sticker-stage.floaty video,
.sticker-stage.floaty canvas,
.sticker-stage.floaty svg { animation: stickerPop 0.45s cubic-bezier(0.2, 1.35, 0.4, 1), stickerFloat 4s ease-in-out 0.45s infinite; }
@keyframes stickerPop { from { transform: scale(0.55) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes stickerFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.sticker-skeleton {
  width: 190px; height: 190px;
  border-radius: 24px;
  background: linear-gradient(110deg, #0d0d0d 30%, #1a1a1a 50%, #0d0d0d 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.sticker-btn .dice { display: inline-block; }
.sticker-btn:hover .dice { animation: roll 0.55s ease; }
@keyframes roll { 50% { transform: rotate(180deg) scale(1.25); } }
.sticker-fallback { font-size: 5rem; animation: stickerFloat 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .blob, .bg-grid, .logo-mark, .hero-scroll,
  .sticker-stage img, .sticker-stage video, .sticker-stage canvas { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 880px) {
  .hero-sticker { order: -1; }
  .sticker-stage { width: 240px; height: 240px; }
  .hero-scroll { display: none; }
}

/* =================================================
   CHINESE THEME — imperial red + gold (Austin = Chinese Clash Royale)
   Remove this whole block (and restore the :root vars) to go back.
   ================================================= */
body::before { background-image: radial-gradient(rgba(241, 200, 75, 0.03) 1px, transparent 1px); }

/* Header: imperial-red top rule + gold hairline */
.site-header { border-top: 3px solid var(--accent-red); box-shadow: inset 0 -1px 0 rgba(241, 200, 75, 0.18); }

/* Logo: red mark */
.logo-mark { background: var(--accent-red); box-shadow: 0 0 16px rgba(212, 16, 31, 0.55); }

/* Primary actions: imperial red with gold text; Subscribe stays red */
.btn-primary { background: var(--accent-red); color: var(--accent); border-color: var(--accent-red); box-shadow: 0 0 26px rgba(212, 16, 31, 0.42); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-sub { background: var(--accent-red); color: #fff; border-color: var(--accent-red); box-shadow: 0 0 22px rgba(212, 16, 31, 0.4); }
.btn-sub:hover { border-color: var(--accent); }

/* Hero: imperial red glow (right) balanced by a warm gold glow (left) */
.hero::after { background: radial-gradient(circle, rgba(212, 16, 31, 0.18), transparent 65%); }
.hero::before {
  content: "";
  position: absolute;
  bottom: -25%; left: -10%;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(241, 200, 75, 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-title {
  background: linear-gradient(175deg, #fff7e6 0%, var(--accent) 70%, #b8860b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Gold accents on misc decorative bits */
.eyebrow, .section-label { color: var(--accent); }
.serif-italic.accent-text { color: var(--accent-red); }

