/* ============================================================
   LEFT NEWS — design tokens + base styles
   ============================================================ */

:root {
  /* Dark editorial-streaming palette (default) */
  --bg-deep: #0a0e1a;
  --bg-elev: #131826;
  --bg-card: #1a2034;
  --bg-card-2: #222a44;
  --border: #2a324c;
  --border-soft: #1f2640;

  --text: #f5f4ef;
  --text-mute: #a0a8c0;
  --text-faint: #6b7390;

  --accent-red: #ef4444;
  --accent-red-deep: #b91c1c;
  --accent-blue: #3b82f6;
  --accent-blue-deep: #1e40af;
  --accent-cream: #f5e9d3;
  --accent-gold: #fbbf24;

  --live: #ef4444;

  /* Type */
  --font-display: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --font-ui: 'Geist', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing rhythm */
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
  --gap-7: 48px;
  --gap-8: 64px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04), 0 12px 30px -10px rgba(0,0,0,0.5);
  --shadow-pop: 0 24px 60px -20px rgba(0,0,0,0.6);

  --maxw: 1480px;
}

/* Light variant (toggled by [data-theme="light"]) */
[data-theme="light"] {
  --bg-deep: #faf8f2;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-2: #f1ede3;
  --border: #d9d4c5;
  --border-soft: #e8e3d4;
  --text: #1a1a1a;
  --text-mute: #525866;
  --text-faint: #8b8f99;
  --accent-cream: #2a2419;
  --shadow-card: 0 1px 0 rgba(0,0,0,0.02), 0 6px 24px -12px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body { min-height: 100vh; }
#root { min-height: 100vh; display: flex; flex-direction: column; }

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

::selection { background: var(--accent-red); color: white; }

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.nav-logo .lm {
  width: 32px; height: 32px;
  background: var(--accent-red);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 20px;
  line-height: 1;
  border-radius: 4px;
  letter-spacing: -0.04em;
}
.nav-logo .lt {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nav-logo .lt span { color: var(--accent-red); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, background .15s;
  background: transparent;
  border: none;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(239,68,68,.7);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.nav-spacer { flex: 1; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  min-width: 280px;
  color: var(--text-mute);
  font-size: 13.5px;
  cursor: text;
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  flex: 1;
  font: inherit;
}
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search .kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-card-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-mute);
}

.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  color: var(--text-mute);
  cursor: pointer;
  position: relative;
}
.nav-icon-btn:hover { background: var(--bg-card); color: var(--text); }
.nav-icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg-deep);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.nav-cta:hover { opacity: .9; }

/* Trending ticker strip */
.ticker {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 38px;
  font-size: 12.5px;
}
.ticker-label {
  background: var(--accent-red);
  color: white;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  white-space: nowrap;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.ticker-rail {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: tickrun 60s linear infinite;
  padding-left: 24px;
}
.ticker-item { color: var(--text-mute); display: inline-flex; gap: 8px; align-items: center; }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .up { color: #22c55e; font-family: var(--font-mono); font-size: 11px; }
.ticker-item .dn { color: var(--accent-red); font-family: var(--font-mono); font-size: 11px; }
@keyframes tickrun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   GENERIC
   ============================================================ */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
  width: 100%;
}
.page-wide { max-width: none; padding: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head .sub {
  color: var(--text-mute);
  font-size: 13px;
}
.section-head a.more {
  color: var(--text-mute);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.section-head a.more:hover { color: var(--text); }

.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-red);
}

/* ============================================================
   HERO / PLAYER
   ============================================================ */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: 1fr; }
}

.player {
  background: black;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}
.player-thumb {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.player-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.85) 100%);
}
.player-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.player-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}
.player-meta .pm-left { min-width: 0; }
.player-meta .pm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.live-pill .ldot {
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulseW 1.5s infinite;
}
@keyframes pulseW {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.player-meta h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 6px;
  line-height: 1.1;
  text-wrap: balance;
}
.player-meta .pm-byline {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-meta .pm-byline .ch-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 10.5px;
  font-family: var(--font-display);
}
.player-meta .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.iconbtn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
}
.iconbtn:hover { background: rgba(255,255,255,0.22); }
.iconbtn.lg { width: 56px; height: 56px; }

.play-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.play-center .playbtn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent-red);
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(239,68,68,0.4), 0 0 0 6px rgba(239,68,68,0.18);
  transition: transform .15s;
}
.play-center .playbtn:hover { transform: scale(1.06); }

.player-controlbar {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  margin-top: -1px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
}
.pcb-track {
  flex: 1;
  height: 4px;
  background: var(--bg-card-2);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.pcb-track-fill {
  position: absolute; inset: 0;
  background: var(--accent-red);
  border-radius: 999px;
  width: 38%;
}
.pcb-track-buffer {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 62%;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}
.pcb-track-fill::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
}
.pcb-time { font-family: var(--font-mono); color: var(--text-mute); font-size: 11.5px; min-width: 88px; }
.pcb-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-mute);
  display: grid; place-items: center;
  padding: 6px;
  border-radius: 6px;
}
.pcb-btn:hover { color: var(--text); background: var(--bg-card); }
.pcb-btn.primary { color: var(--text); }

/* Now playing details under player */
.now-playing {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.np-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex: 0 0 52px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: white;
}
.np-body { flex: 1; min-width: 0; }
.np-channel {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.np-channel .verified {
  width: 14px; height: 14px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 800;
}
.np-handle { color: var(--text-mute); font-size: 12.5px; margin-top: 2px; }
.np-actions { display: flex; gap: 8px; align-items: center; }
.np-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.np-btn:hover { background: var(--bg-card); }
.np-btn.primary { background: var(--accent-red); border-color: var(--accent-red); color: white; }
.np-btn.primary:hover { background: var(--accent-red-deep); }
.np-btn.ghost { background: transparent; }

.np-description {
  margin-top: 12px;
  color: var(--text-mute);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 70ch;
}

/* ============================================================
   UP NEXT RAIL
   ============================================================ */
.upnext {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.upnext-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.upnext-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.upnext-head .auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
  font-size: 12px;
}
.toggle {
  position: relative;
  width: 32px; height: 18px;
  border-radius: 999px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  cursor: pointer;
  flex: 0 0 32px;
}
.toggle.on { background: var(--accent-red); border-color: var(--accent-red); }
.toggle::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform .15s;
}
.toggle.on::after { transform: translateX(14px); }

.upnext-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card-2) transparent;
}
.upnext-list::-webkit-scrollbar { width: 6px; }
.upnext-list::-webkit-scrollbar-thumb { background: var(--bg-card-2); border-radius: 4px; }

.upnext-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
  align-items: flex-start;
  position: relative;
}
.upnext-item:hover { background: var(--bg-card); }
.upnext-item.now {
  background: color-mix(in oklch, var(--accent-red) 12%, var(--bg-elev));
  border: 1px solid color-mix(in oklch, var(--accent-red) 35%, transparent);
}
.upnext-item.now::before {
  content: 'NOW';
  position: absolute;
  top: 6px; right: 8px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent-red);
}
.upnext-thumb {
  flex: 0 0 116px;
  width: 116px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card-2);
}
.upnext-thumb .dur {
  position: absolute;
  bottom: 4px; right: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
}
.upnext-body { min-width: 0; flex: 1; padding-top: 1px; }
.upnext-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.upnext-meta {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upnext-meta .ch {
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   VIDEO CARD (generic)
   ============================================================ */
.vcard {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vcard-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card-2);
  border: 1px solid var(--border-soft);
}
.vcard-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.vcard:hover .vcard-thumb { transform: translateY(-2px); }
.vcard-thumb { transition: transform .15s; }

.vcard-dur {
  position: absolute;
  bottom: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}
.vcard-tag {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: black;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 1;
}
.vcard-tag.live {
  background: var(--accent-red);
  color: white;
}
.vcard-overlay-title {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: white;
  z-index: 1;
  text-wrap: balance;
}
.vcard-body { padding: 0 2px; }
.vcard-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.vcard-meta {
  margin-top: 4px;
  color: var(--text-mute);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vcard-meta .ch { color: var(--text); font-weight: 500; }

/* Big poster thumbnail */
.thumb-poster {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  text-align: left;
}
.thumb-poster .tp-bg {
  position: absolute; inset: 0;
  opacity: 0.95;
}
.thumb-poster .tp-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.25), transparent 50%);
  mix-blend-mode: overlay;
}
.thumb-poster .tp-ch {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 1;
}
.thumb-poster .tp-ch .mk {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: white;
}
.thumb-poster .tp-ch .nm {
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  letter-spacing: -0.005em;
}

/* ============================================================
   GRID
   ============================================================ */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.vgrid.cozy { gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vgrid.compact { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ============================================================
   NETFLIX ROW (horizontal scroll)
   ============================================================ */
.row {
  margin-bottom: 36px;
}
.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 28px 12px;
}
.row-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-head h3 .badge {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-mute);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.row-head .right { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-mute); }
.row-head .arrow-btns { display: flex; gap: 4px; }
.row-head .arrow-btns button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-mute);
  cursor: pointer;
  display: grid; place-items: center;
}
.row-head .arrow-btns button:hover { color: var(--text); }

.row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 28px 4px;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }

.row-card {
  flex: 0 0 280px;
  cursor: pointer;
}
.row-card .vcard-thumb { border-radius: 8px; }
.row-card .vcard-title { font-size: 13.5px; }

/* Creator hero row (Netflix-like big poster) */
.creator-row-poster {
  flex: 0 0 320px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: var(--bg-card-2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-soft);
}
.creator-row-poster .name {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
  z-index: 1;
  text-wrap: balance;
}
.creator-row-poster .handle {
  position: absolute;
  bottom: 64px; left: 14px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}
.creator-row-poster .badge-subs {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 1;
  color: white;
}
.creator-row-poster::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.92) 100%);
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad {
  border: 1px dashed var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
}
.ad-label {
  font-size: 9.5px;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-sponsor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ad-sponsor .ad-logo {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}
.ad-sponsor .ad-body { min-width: 0; }
.ad-sponsor .ad-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}
.ad-sponsor .ad-desc {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 2px 0 0;
  line-height: 1.4;
}
.ad-sponsor .ad-cta {
  margin-left: auto;
  padding: 7px 12px;
  background: var(--text);
  color: var(--bg-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* banner ad */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}
.ad-banner::before {
  content: 'SPONSORED';
  position: absolute;
  top: 6px; right: 10px;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--text-faint);
  font-weight: 700;
}
.ad-banner .ab-graphic {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.ad-banner .ab-text { flex: 1; }
.ad-banner h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.ad-banner p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-mute); }
.ad-banner .ab-cta {
  background: var(--accent-red);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

/* ============================================================
   MINI PLAYER — see polish.css for current bottom-bar styles
   ============================================================ */

/* ============================================================
   LIVE FEED PAGE
   ============================================================ */
.live-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
}
@media (max-width: 1100px) {
  .live-wrap { grid-template-columns: 1fr; }
}

.live-screen {
  background: black;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 16/9;
}
.live-bug {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.live-lower {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92));
  padding: 30px 24px 22px;
  z-index: 2;
}
.live-lower .ll-now {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  margin-bottom: 6px;
}
.live-lower h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: white;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
  max-width: 18ch;
}
.live-lower .ll-source {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.live-lower-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 22px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  color: white;
  font-size: 12.5px;
}
.live-lower-bar .lblbar {
  background: var(--accent-red);
  color: white;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10.5px;
}
.live-lower-bar .countdown {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.feed-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feed-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
}
.feed-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* live chat */
.lchat {
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.lchat-line { line-height: 1.4; }
.lchat-line .u { font-weight: 600; }
.lchat-line .u.host { color: var(--accent-red); }
.lchat-line .u.mod { color: var(--accent-blue); }
.lchat-line .msg { color: var(--text-mute); }
.lchat-input {
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-mute);
  font-size: 12.5px;
}

/* schedule */
.sched-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.sched-item:last-child { border-bottom: none; padding-bottom: 0; }
.sched-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  min-width: 52px;
}
.sched-body { flex: 1; min-width: 0; font-size: 12.5px; }
.sched-body .sb-title { font-weight: 600; }
.sched-body .sb-ch { color: var(--text-mute); font-size: 11.5px; margin-top: 1px; }

/* ============================================================
   CHANNEL DETAIL
   ============================================================ */
.channel-hero {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  margin-bottom: 18px;
}
.channel-hero .ch-tint {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.85));
}
.channel-hero .ch-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.4), transparent 50%);
}
.channel-hero .ch-body {
  position: absolute;
  left: 32px; bottom: 24px; right: 32px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  z-index: 1;
}
.channel-hero .ch-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  color: white;
  border: 4px solid rgba(255,255,255,0.95);
  flex-shrink: 0;
}
.channel-hero .ch-meta { flex: 1; min-width: 0; color: white; }
.channel-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.channel-hero .ch-stats {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.channel-hero .ch-stats > span { white-space: nowrap; }
.channel-hero .ch-stats .sep { color: rgba(255,255,255,0.4); }
.channel-hero .ch-bio {
  font-size: 13.5px;
  color: rgba(255,255,255,0.9);
  margin-top: 8px;
  max-width: 60ch;
  line-height: 1.5;
}
.channel-hero .ch-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.channel-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}
.channel-tabs .t {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.channel-tabs .t.active {
  color: var(--text);
  border-bottom-color: var(--accent-red);
  font-weight: 600;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-login {
  max-width: 420px;
  margin: 96px auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.admin-login::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.admin-login h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.admin-login .sub { color: var(--text-mute); font-size: 13px; margin: 4px 0 24px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.btn-primary {
  width: 100%;
  padding: 11px 16px;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-red-deep); }
.btn-secondary {
  padding: 9px 14px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-card-2); }
.btn-ghost {
  padding: 8px 12px;
  background: transparent;
  color: var(--text-mute);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }
.btn-danger {
  padding: 8px 12px;
  background: transparent;
  color: var(--accent-red);
  border: 1px solid color-mix(in oklch, var(--accent-red) 30%, transparent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.btn-danger:hover { background: color-mix(in oklch, var(--accent-red) 15%, transparent); }

/* Admin dashboard */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 130px);
}
.admin-side {
  background: var(--bg-elev);
  border-right: 1px solid var(--border-soft);
  padding: 22px 14px;
}
.admin-side .as-section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 0 10px;
  margin: 18px 0 6px;
}
.admin-side .as-section:first-child { margin-top: 0; }
.admin-side .as-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  cursor: pointer;
}
.admin-side .as-item:hover { background: var(--bg-card); color: var(--text); }
.admin-side .as-item.active { background: var(--bg-card); color: var(--text); }
.admin-side .as-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.admin-side .as-item.active .count { color: var(--text-mute); }

.admin-main {
  padding: 28px 36px;
  overflow-x: auto;
}
.admin-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.admin-h h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.018em;
}
.admin-h .sub { color: var(--text-mute); font-size: 13.5px; }
.admin-h .actions { display: flex; gap: 8px; }

/* Stat tiles */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
}
.stat .lbl {
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--text-mute);
  text-transform: uppercase;
  font-weight: 600;
}
.stat .val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.stat .delta {
  font-size: 11.5px;
  font-family: var(--font-mono);
  margin-top: 6px;
}
.stat .delta.up { color: #22c55e; }
.stat .delta.dn { color: var(--accent-red); }
.stat .spark {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 84px; height: 28px;
}

/* Queue table */
.qtable {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.qrow {
  display: grid;
  grid-template-columns: 40px 120px minmax(0, 2fr) 1fr 100px 80px 100px 60px;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  font-size: 13px;
}
.qrow:last-child { border-bottom: none; }
.qrow.head {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  background: var(--bg-card);
}
.qrow .qt {
  width: 80px; height: 46px;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.qrow .qhandle { color: var(--text-faint); cursor: grab; }
.qrow .qtitle { min-width: 0; }
.qrow .qtitle .t {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qrow .qtitle .m {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 2px;
}
.qrow .qstatus {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}
.qstatus.live { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.qstatus.queued { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.qstatus.played { background: var(--bg-card-2); color: var(--text-mute); }
.qstatus.scheduled { background: rgba(251,191,36,0.15); color: var(--accent-gold); }

.qrow .qactions {
  display: flex;
  gap: 4px;
}
.qrow .qactions button {
  background: transparent;
  border: none;
  color: var(--text-mute);
  width: 26px; height: 26px;
  border-radius: 5px;
  cursor: pointer;
  display: grid; place-items: center;
}
.qrow .qactions button:hover { background: var(--bg-card-2); color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  margin-top: 64px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elev);
  padding: 36px 28px 28px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
}
.foot-inner h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.foot-inner a {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  padding: 4px 0;
  cursor: pointer;
}
.foot-inner a:hover { color: var(--text); }
.foot-bottom {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

/* News list */
.headlines {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.headline-row {
  display: grid;
  grid-template-columns: 24px 96px minmax(0, 1fr) 100px;
  gap: 14px;
  padding: 12px 0;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}
.headline-row:hover { background: color-mix(in oklch, var(--bg-card) 60%, transparent); }
.headline-row .rank {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-faint);
  text-align: center;
}
.headline-row .ht {
  width: 96px;
  aspect-ratio: 16/9;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.headline-row .h-body { min-width: 0; }
.headline-row .h-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.32;
  text-wrap: balance;
}
.headline-row .h-meta {
  font-size: 11.5px;
  color: var(--text-mute);
  margin-top: 4px;
}
.headline-row .h-views {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
  text-align: right;
}

/* Toggle pills */
.pillgroup {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.pillgroup .p {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  cursor: pointer;
}
.pillgroup .p.active {
  background: var(--bg-card-2);
  color: var(--text);
}

/* Utility */
.flex-row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.muted { color: var(--text-mute); }

/* Small icon helper sprite (drawn inline as SVG) */
.svgi { display: inline-block; line-height: 0; }
