:root {
  --bg: #0f1525;
  --surface: #151d30;
  --surface2: #1b253b;
  --border: #243050;
  --border2: #2e3d60;
  --cyan: #00D9FF;
  --cyan-dim: rgba(0,217,255,0.12);
  --cyan-mid: rgba(0,217,255,0.25);
  --violet: #8b7ff4;
  --violet-dim: rgba(139,127,244,0.12);
  --gold: #facc15;
  --gold-dim: rgba(250,204,21,0.12);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.12);
  --text: #f8f9fa;
  --text-muted: #adb5bd;
  --text-dim: #6c757d;
  --white: #ffffff;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Roboto', sans-serif;
  --r: 8px;
  --r2: 12px;
}

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

html { scroll-behavior: smooth; }

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

/* ── GRID NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0,217,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(139,127,244,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
header {
  position: relative;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -1px;
}

.brand-title span { color: var(--cyan); }

.brand-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 300;
}

.header-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.hstats-row {
  display: flex;
  gap: 32px;
  align-items: flex-end;
}

.header-disclaimer {
  font-family: var(--font-body);
  font-size: 11px;
  font-style: italic;
  color: var(--cyan);
  opacity: 0.7;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.hstat {
  text-align: right;
}

.hstat-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.hstat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── CONTROLS ── */
.controls {
  padding: 20px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

input[type="text"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 10px 12px 10px 36px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]::placeholder { color: var(--text-dim); }
input[type="text"]:focus { border-color: var(--cyan); }

.filter-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.filter-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.pill:hover { border-color: var(--cyan); color: var(--cyan); }
.pill.active { background: var(--cyan-dim); border-color: var(--cyan); color: var(--cyan); }

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--cyan); }

/* ── MAIN LAYOUT ── */
.main {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  padding: 24px 0 48px;
  align-items: start;
}

@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr; }
}

/* ── TREND CARDS ── */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.trend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 18px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease both;
}

.trend-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-color, var(--cyan));
  opacity: 0.5;
  transition: opacity 0.2s;
}

.trend-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.trend-card:hover::before { opacity: 1; }
.trend-card.active { border-color: var(--cyan); background: var(--surface2); box-shadow: 0 0 0 1px var(--cyan), 0 8px 32px rgba(0,217,255,0.1); }
.trend-card.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--icon-bg, var(--cyan-dim));
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-hot { background: var(--red-dim); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.badge-rising { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(250,204,21,0.3); }
.badge-emerging { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(139,127,244,0.3); }
.badge-stable { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,217,255,0.3); }

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  font-weight: 300;
}

/* ── SCORE METER ── */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 3px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.metric-val.up { color: var(--cyan); }
.metric-val.hot { color: var(--red); }
.metric-val.gold { color: var(--gold); }

/* ── SCORE BAR ── */
.score-bar-wrap {
  margin-bottom: 4px;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.score-bar-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-bar-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.score-track {
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-color, var(--cyan));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── SPARKLINE ── */
.spark-wrap {
  margin-top: 10px;
}

.spark-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

canvas.spark { display: block; width: 100%; height: 44px; }

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  font-weight: 400;
}

/* ── DETAIL PANEL ── */
.detail-panel {
  position: sticky;
  top: 20px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  overflow: hidden;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 16px;
  flex: 1;
}

.panel-empty-icon { font-size: 40px; opacity: 0.3; }

.panel-empty-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}

.panel-content { display: none; flex-direction: column; }
.panel-content.visible { display: flex; }

.panel-hero {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.panel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-color, var(--cyan));
  opacity: 0.04;
}

.panel-icon-lg {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  background: var(--icon-bg, var(--cyan-dim));
  position: relative;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
  position: relative;
}

.panel-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  position: relative;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.pmetric {
  background: var(--surface);
  padding: 14px 16px;
  text-align: center;
}

.pmetric-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.pmetric-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

/* ── ARTICLE OUTLINE ── */
.outline-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.outline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.outline-item:hover {
  border-color: var(--border2);
  background: rgba(255,255,255,0.04);
}

.outline-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-color, var(--cyan));
  min-width: 18px;
  padding-top: 2px;
  opacity: 0.7;
}

.outline-body {}

.outline-h {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.outline-p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ── KEY PLAYERS ── */
.players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── KEY STATS ── */
.stat-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child { border-bottom: none; }

.stat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-color, var(--cyan));
  margin-top: 6px;
  flex-shrink: 0;
}

.stat-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

.stat-text strong {
  color: var(--white);
  font-weight: 600;
}

/* ── CLOSE BTN ── */
.panel-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 6px;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s;
  z-index: 2;
}

.panel-close:hover { color: var(--white); border-color: var(--text-muted); }

/* ── COPY OUTLINE BTN ── */
.copy-btn {
  margin: 16px 24px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,217,255,0.3);
  border-radius: var(--r);
  padding: 10px 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: calc(100% - 48px);
  justify-content: center;
}

.copy-btn:hover { background: rgba(0,217,255,0.2); }

/* ── SUMMARY BAR ── */
.summary-bar {
  padding: 12px 0;
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.sumstat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sumstat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.sumstat-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.sumstat-text strong {
  color: var(--white);
}

/* ── LEADERBOARD RANK ── */
.rank-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  font-weight: 700;
}

/* ── SOURCE LINKS ── */
.stat-source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cyan);
  text-decoration: none;
  margin-left: 6px;
  opacity: 0.7;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.stat-source:hover { opacity: 1; text-decoration: underline; }

/* ── LAST UPDATED ── */
.last-updated {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.last-updated-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── EXPORT BUTTON ── */
.export-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 8px 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.export-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── PRINT STYLES ── */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
  }

  body::before,
  .grid-bg,
  .controls,
  .export-btn,
  .panel-close,
  .copy-btn { display: none !important; }

  .container { max-width: 100%; padding: 0; }

  header {
    border-bottom: 2px solid #333;
    padding: 20px 0 16px;
  }

  .brand-tag { color: #666 !important; }
  .brand-title { color: #111 !important; font-size: 24pt !important; }
  .brand-title span { color: #0a7 !important; }
  .brand-sub { color: #555 !important; }
  .last-updated { color: #666 !important; }
  .last-updated-dot { display: none; }

  .hstat-val { color: #111 !important; }
  .hstat-lbl { color: #666 !important; }

  .summary-bar { border-bottom: 1px solid #ccc; }
  .sumstat-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sumstat-text { color: #333 !important; }
  .sumstat-text strong { color: #111 !important; }

  .main {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .detail-panel { display: none !important; }

  .trends-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .trend-card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }

  .trend-card::before { display: none; }

  .card-title { color: #111 !important; }
  .card-desc { color: #444 !important; }
  .metric { background: #f8f8f8 !important; border-color: #ddd !important; }
  .metric-lbl { color: #666 !important; }
  .metric-val { color: #111 !important; }
  .metric-val.up { color: #0a7 !important; }
  .metric-val.hot { color: #c33 !important; }
  .metric-val.gold { color: #b80 !important; }

  .score-bar-lbl { color: #666 !important; }
  .score-bar-val { color: #111 !important; }
  .score-track { background: #ddd !important; }
  .score-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  .spark-wrap { display: none; }

  .tag {
    background: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #555 !important;
  }

  .card-badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .rank-badge { color: #999 !important; }

  .stat-source { color: #0a7 !important; }

  @page {
    margin: 1.5cm;
    size: A4 landscape;
  }

  .report-topbar,
  .report-footer { display: none !important; }
}

/* ── REPORT TOPBAR ── */
.report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
  position: relative;
  z-index: 1;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover { color: var(--cyan); }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
  line-height: 1;
}

.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-toggle::before { content: '☀'; }
[data-theme="light"] .theme-toggle::before { content: '☾'; }

/* ── SOURCES SECTION ── */
.sources-section {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.sources-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 32px 32px;
}

.sources-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sources-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 6px 0 6px;
}

.sources-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 640px;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.source-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  overflow: hidden;
}

.source-chip:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  color: var(--cyan);
}

.source-chip-arrow {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  flex-shrink: 0;
}

.source-chip:hover .source-chip-arrow {
  color: var(--cyan);
}

/* ── REPORT FOOTER ── */
.report-footer {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.report-footer__link {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.report-footer__link:hover { color: var(--cyan); }

.report-footer__icon {
  width: 20px;
  height: 20px;
}

.report-footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface2: #e9ecef;
  --border: #dee2e6;
  --border2: #adb5bd;
  --text: #212529;
  --text-muted: #495057;
  --text-dim: #6c757d;
  --white: #212529;
  --cyan: #0d7377;
  --cyan-dim: rgba(13,115,119,0.1);
  --cyan-mid: rgba(13,115,119,0.2);
  --violet: #6d3fc4;
  --violet-dim: rgba(109,63,196,0.1);
  --gold: #b8860b;
  --gold-dim: rgba(184,134,11,0.1);
  --red: #dc3545;
  --red-dim: rgba(220,53,69,0.1);
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(13,115,119,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(109,63,196,0.05) 0%, transparent 60%);
}

[data-theme="light"] .grid-bg { opacity: 0.18; }

[data-theme="light"] .trend-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

[data-theme="light"] .trend-card.active {
  box-shadow: 0 0 0 1px var(--cyan), 0 8px 32px rgba(13,115,119,0.08);
}

[data-theme="light"] .metric { background: rgba(0,0,0,0.02); }
[data-theme="light"] .outline-item { background: rgba(0,0,0,0.02); }
[data-theme="light"] .outline-item:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .player-chip { background: rgba(0,0,0,0.03); }
[data-theme="light"] .tag { background: rgba(0,0,0,0.04); }
[data-theme="light"] .panel-close { background: rgba(0,0,0,0.06); }
[data-theme="light"] .badge-hot { border-color: rgba(220,53,69,0.3); }
[data-theme="light"] .badge-rising { border-color: rgba(184,134,11,0.3); }
[data-theme="light"] .badge-emerging { border-color: rgba(109,63,196,0.3); }
[data-theme="light"] .badge-stable { border-color: rgba(13,115,119,0.3); }
[data-theme="light"] .copy-btn { border-color: rgba(13,115,119,0.3); }

