/* === BLOCKBUSTER ADMIN — design tokens === */
:root {
  --bg-body: #0b1020;
  --bg-dark: #11172a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-elevated: rgba(255, 255, 255, 0.08);

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 204, 0, 0.45);

  --gold: #ffcc00;
  --gold-deep: #ffb400;
  --gold-soft: rgba(255, 204, 0, 0.14);
  --gold-glow: rgba(255, 204, 0, 0.35);

  --navy: #1a3a8f;
  --navy-soft: rgba(26, 58, 143, 0.32);

  --text-main: #e8eaf2;
  --text-muted: #9aa3bd;
  --text-faint: #5d6680;

  --success: #27ae60;
  --success-soft: rgba(39, 174, 96, 0.14);
  --danger: #e74c3c;
  --danger-soft: rgba(231, 76, 60, 0.14);
  --warn: #ffb400;
  --warn-soft: rgba(255, 180, 0, 0.14);
  --info: #4ea8ff;
  --info-soft: rgba(78, 168, 255, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --sidebar-w: 232px;
  --topbar-h: 60px;

  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* subtle cool gradient + grain hint */
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(26, 58, 143, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 204, 0, 0.04), transparent 60%),
    var(--bg-body);
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }
input[type="number"], input[type="text"], select {
  background: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}
/* Hide spinner buttons on number inputs — free-hand entry only */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235d6680'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
option {
  background-color: #11172a;
  color: #e8eaf2;
}

::selection { background: var(--gold-soft); color: var(--gold); }

/* tabular numerics everywhere we want them */
.num { font-variant-numeric: tabular-nums; }

/* === Layout shell === */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
  background: linear-gradient(180deg, #0a0e1c 0%, #0b1020 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  padding: 18px 18px 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand img {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 204, 0, 0.18));
  transform: rotate(-4deg);
}
.sidebar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.sidebar-brand .brand-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.sidebar-brand .brand-sub {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section-label {
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 16px 22px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-section-label::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold-glow);
}

.sidebar-nav {
  flex: 1;
  padding: 4px 10px 14px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
  position: relative;
  text-decoration: none;
  margin: 1px 0;
}
.nav-item:hover { background: var(--bg-card); color: var(--text-main); }
.nav-item.active {
  background: linear-gradient(90deg, var(--gold-soft), transparent 80%);
  color: var(--gold);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px; bottom: 8px;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--gold-glow);
}
.nav-item .nav-icon {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  opacity: 0.85;
}
.nav-item .nav-badge {
  margin-left: auto;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.nav-item .nav-badge.danger { background: var(--danger-soft); color: var(--danger); }
.nav-item .nav-badge.gold { background: var(--gold-soft); color: var(--gold); }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3866, #1a3a8f);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}
.sidebar-footer .who {
  display: flex; flex-direction: column; line-height: 1.2;
}
.sidebar-footer .who .who-name { font-weight: 600; font-size: 12.5px; }
.sidebar-footer .who .who-role { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* === Topbar === */
.main {
  min-width: 0;
}
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.crumbs .crumb-current { color: var(--text-main); font-weight: 600; }
.crumbs .crumb-sep { color: var(--text-faint); }

.topbar-search {
  margin-left: 18px;
  flex: 0 1 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  color: var(--text-faint);
  font-size: 12.5px;
  transition: border-color 150ms var(--ease);
}
.topbar-search:focus-within { border-color: var(--border-focus); }
.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  flex: 1;
  font-size: 13px;
}
.topbar-search .kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-faint);
}

.topbar-spacer { flex: 1; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

/* Now-Playing pill */
.np-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(255, 204, 0, 0.06);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  animation: breathe 3.6s var(--ease) infinite;
  transition: transform 150ms var(--ease);
}
.np-pill:hover { transform: translateY(-1px); }
.np-pill.paused {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  animation: none;
}
.np-pill .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  animation: pulse 1.4s var(--ease) infinite;
}
.np-pill.paused .live-dot { background: var(--text-faint); box-shadow: none; animation: none; }
.np-pill .np-title { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-pill .np-time { font-variant-numeric: tabular-nums; opacity: 0.8; font-weight: 500; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.10), 0 0 22px rgba(255,204,0,0.15); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.6; }
}

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 150ms var(--ease);
}
.icon-btn:hover { background: var(--bg-card-hover); color: var(--text-main); border-color: var(--border-strong); }

/* === Page content === */
.page {
  padding: 26px 28px 60px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 18px;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
}
.page-head h1 .accent { color: var(--gold); }
.page-head .page-sub {
  color: var(--text-muted);
  font-size: 13px;
}
.page-head .page-actions { display: flex; gap: 8px; }

/* === Grid === */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-dash { grid-template-columns: 2fr 1fr; gap: 16px; }

/* === Card === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 150ms var(--ease);
  overflow: hidden;
}
.card.pad { padding: 18px; }
.card.pad-lg { padding: 22px; }
.card:hover { border-color: var(--border-strong); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h3::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold-glow);
}
.card-head .card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Stat card === */
.stat {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.stat .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat .stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .stat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta.up { color: var(--success); }
.delta.down { color: var(--danger); }
.delta.flat { color: var(--text-faint); }

.spark {
  position: absolute;
  inset: auto 0 0 0;
  height: 32px;
  width: 100%;
  opacity: 0.55;
  pointer-events: none;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 500;
  font-size: 12.5px;
  transition: all 150ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--gold);
  color: #1a1300;
  border-color: var(--gold);
  font-weight: 600;
}
.btn.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(255,204,0,0.15); }
.btn.danger {
  color: var(--danger);
  border-color: rgba(231, 76, 60, 0.25);
}
.btn.danger:hover { background: var(--danger-soft); border-color: rgba(231, 76, 60, 0.5); }
.btn.success {
  color: var(--success);
  border-color: rgba(39, 174, 96, 0.25);
}
.btn.success:hover { background: var(--success-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.ghost:hover { color: var(--text-main); background: var(--bg-card); }
.btn.sm { padding: 4px 10px; font-size: 11.5px; }

/* === Pills / badges === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--navy-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(255,204,0,0.2); }
.pill.success { background: var(--success-soft); color: var(--success); border-color: rgba(39,174,96,0.2); }
.pill.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(231,76,60,0.2); }
.pill.info { background: var(--info-soft); color: var(--info); border-color: rgba(78,168,255,0.2); }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(255,180,0,0.2); }
.pill .pill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}

/* === Notification bell + popover === */
.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg-body);
  font-family: var(--font-mono);
}
.notif-pop {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 360px; max-height: 460px;
  background: #11172a; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4);
  z-index: 50;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.notif-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
}
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(255, 204, 0, 0.04); }
.notif-icon {
  width: 28px; height: 28px; flex: none;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--bg-elevated);
}
.notif-icon.danger { color: var(--danger); background: var(--danger-soft); }
.notif-icon.warn { color: var(--warn); background: var(--warn-soft); }
.notif-icon.info { color: var(--info); background: var(--info-soft); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 12.5px; color: var(--text-main); font-weight: 500; line-height: 1.35; }
.notif-meta { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.notif-empty { padding: 28px 14px; text-align: center; color: var(--text-faint); font-size: 12px; }

/* === Settings page columns — masonry-style flow so cards don't equalize row heights === */
.settings-cols {
  column-count: 2;
  column-gap: 16px;
  margin-bottom: 16px;
}
.settings-cols > .card {
  break-inside: avoid;
  display: inline-block;   /* required for break-inside in column layout */
  width: 100%;
  margin-bottom: 16px;
}
.settings-cols > .card:last-child { margin-bottom: 0; }
.settings-cols > .card.pad-lg { padding: 14px 16px; }
.settings-cols > .card h3 { margin-bottom: 4px; font-size: 14px; }

/* === Marquee divider (vintage flavor @ 35) === */
.marquee-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  color: var(--text-faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.marquee-divider::before,
.marquee-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.marquee-divider .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold-glow); }

/* === LIVE / On-Air marquee badge === */
.on-air {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #b91d1d 0%, #7a1010 100%);
  color: #fff7e0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 200, 100, 0.35);
  box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55), 0 2px 10px rgba(231, 76, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: onAirPulse 2.2s ease-in-out infinite;
}
.on-air .on-air-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffd84d;
  box-shadow: 0 0 8px #ffcc00, 0 0 14px rgba(255, 204, 0, 0.6);
  animation: pulse 1.4s var(--ease) infinite;
}
.on-air.idle {
  background: linear-gradient(180deg, #2a3045 0%, #1a1f33 100%);
  color: var(--text-faint);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  animation: none;
}
.on-air.idle .on-air-dot { background: var(--text-faint); box-shadow: none; animation: none; }
@keyframes onAirPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0), 0 2px 10px rgba(231, 76, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0.18), 0 2px 18px rgba(231, 76, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
}

/* === Tables === */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.tbl th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
}
.tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-main);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,0.025); }

/* === Now playing big embed === */
.np-embed {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.np-embed .np-poster {
  width: 96px; height: 144px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255,204,0,0.10), rgba(26,58,143,0.30)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.np-embed h2 { margin: 0 0 6px 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.np-embed .np-meta { color: var(--text-muted); font-size: 12.5px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.np-embed .np-meta .sep { color: var(--text-faint); }

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.progress .bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.progress .bar > i {
  position: absolute; inset: 0;
  width: 38%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
  box-shadow: 0 0 8px var(--gold-glow);
}

.np-controls { display: flex; gap: 8px; padding: 14px 16px; }

/* === Activity feed === */
.activity {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow-y: auto;
}
.activity-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .act-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.activity-row .act-text strong { font-weight: 600; color: var(--text-main); }
.activity-row .act-text { color: var(--text-muted); }
.activity-row .act-time { font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* === Top content list === */
.top-list { display: flex; flex-direction: column; }
.top-row {
  display: grid;
  grid-template-columns: 26px 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.top-row:last-child { border-bottom: none; }
.top-row .rank { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-align: right; }
.top-row .top-poster {
  width: 36px; height: 50px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(26,58,143,0.4), rgba(0,0,0,0.4)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 4px, transparent 4px 8px);
  border: 1px solid var(--border);
}
.top-row .top-title { font-weight: 500; }
.top-row .top-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.top-row .top-stat { font-family: var(--font-mono); font-size: 12px; color: var(--text-main); }

/* === Command center === */
.cmd-center {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmd-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cmd-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
}
.cmd-status .status-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(39,174,96,0.6);
  animation: pulse 1.6s var(--ease) infinite;
}
.cmd-status.paused .status-led { background: var(--warn); box-shadow: 0 0 8px rgba(255,180,0,0.6); animation: none; }
.cmd-status.down .status-led { background: var(--danger); box-shadow: 0 0 8px rgba(231,76,60,0.6); animation: none; }
.cmd-status .meta { color: var(--text-muted); margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; }

.announce-input {
  display: flex;
  gap: 8px;
}
.announce-input input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms var(--ease);
}
.announce-input input::placeholder { color: var(--text-faint); }
.announce-input input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(255,204,0,0.10); }

/* === Log tail === */
.log-tail {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border);
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 0;
}
.log-line {
  display: grid;
  grid-template-columns: 76px 60px 1fr;
  gap: 10px;
  padding: 2px 18px;
  align-items: baseline;
}
.log-line:hover { background: rgba(255,255,255,0.03); }
.log-line .log-ts { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.log-line .log-lvl { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.log-line .log-lvl.info { color: var(--info); }
.log-line .log-lvl.warn { color: var(--warn); }
.log-line .log-lvl.error { color: var(--danger); }
.log-line .log-lvl.debug { color: var(--text-faint); }
.log-line .log-msg { color: var(--text-main); }
.log-line .log-msg .tok { color: var(--text-muted); }
.log-line .log-msg .id { color: var(--gold); }

/* === Charts === */
.chart-area {
  position: relative;
  width: 100%;
  height: 220px;
  padding: 10px 6px 0;
}
.chart-area svg { display: block; width: 100%; height: 100%; }

.legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  align-items: center;
}
.legend .swatch {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}
.legend .item { display: inline-flex; align-items: center; }

/* heatmap */
.heatmap {
  display: grid;
  gap: 3px;
  padding: 14px 18px 18px;
}
.heatmap .hm-row {
  display: grid;
  grid-template-columns: 38px repeat(24, 1fr);
  gap: 3px;
  align-items: center;
}
.heatmap .hm-row .hm-label {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.heatmap .hm-cell {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  transition: transform 150ms var(--ease);
  cursor: pointer;
  position: relative;
}
.heatmap .hm-cell:hover {
  transform: scale(1.18);
  z-index: 5;
  outline: 1px solid var(--gold);
}
.heatmap .hm-axis {
  display: grid;
  grid-template-columns: 38px repeat(24, 1fr);
  gap: 3px;
  font-size: 9.5px;
  color: var(--text-faint);
  margin-top: 6px;
  font-family: var(--font-mono);
}
.heatmap .hm-axis span { text-align: center; }

/* === Scrollbars === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* === Toast === */
.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 42, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-left-width: 3px;
  font-size: 12.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slidein 280ms var(--ease);
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.gold { border-left-color: var(--gold); }
@keyframes slidein {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* === Watch party card === */
.party-card {
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.party-card .party-when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.party-card .party-title { font-size: 16px; font-weight: 700; }
.party-card .party-meta { font-size: 12px; color: var(--text-muted); }
.party-attendees { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.party-attendees .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8f, #2a3866);
  border: 2px solid var(--bg-body);
  margin-left: -6px;
  display: grid; place-items: center;
  font-size: 9.5px;
  color: var(--gold);
  font-weight: 700;
}
.party-attendees .av:first-child { margin-left: 0; }

/* === Filter bar === */
.filterbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filterbar .field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filterbar select,
.filterbar input[type="search"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}
.filterbar select:focus,
.filterbar input[type="search"]:focus { border-color: var(--border-focus); }
.filterbar .grow { flex: 1; }

/* responsive guards */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-dash { grid-template-columns: 1fr; }
}
