/* ═══════════════════════════════════════════════
   NFLGAMBLER — Design System v3
   Clean Edge / Dark Neutral / Teal + Coral
   ═══════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────── */
:root {
  --bg:         #f5f7fc;
  --bg-2:       #eef1f8;
  --panel:      #ffffff;
  --panel-lt:   rgba(255, 255, 255, 0.85);
  --panel-mid:  rgba(255, 255, 255, 0.96);
  --panel-lite: rgba(248, 250, 254, 0.80);

  --border:     rgba(10, 14, 40, 0.07);
  --border-md:  rgba(10, 14, 40, 0.11);
  --border-hi:  rgba(10, 14, 40, 0.22);

  --text:       #0c0f1a;
  --text-dim:   #4a5568;
  --text-mute:  #8b96ab;
  --text-muted: #8b96ab;

  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --neon:      #22d4a8;
  --neon-dark: #0d9b7a;
  --neon-dim:  rgba(34, 212, 168, 0.12);
  --neon-mid:  rgba(34, 212, 168, 0.26);
  --neon-glow: rgba(34, 212, 168, 0.38);

  --risk:      #f04e6a;
  --risk-dark: #c73050;
  --risk-dim:  rgba(240, 78, 106, 0.10);
  --risk-mid:  rgba(240, 78, 106, 0.22);
  --risk-glow: rgba(240, 78, 106, 0.38);

  --radius:    18px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --max-w:    1200px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(34, 212, 168, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 25% at 95% 95%, rgba(240, 78, 106, 0.05) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

.glass {
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Nav ─────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 252, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-md);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.logo-mark { color: var(--text); }
.logo-dot  { color: var(--neon); }

.nav-dash-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--panel-lt);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 11px;
  transition: border-color 0.18s, color 0.18s;
}
.nav-dash-btn:hover { border-color: var(--border-hi); color: var(--text); }

.dash-pip {
  background: var(--neon);
  color: #000;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dash-pip.bump { transform: scale(1.45); }

/* Page tabs — section switcher */
.page-tabs {
  display: flex;
  gap: 2px;
}
.page-tab {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.page-tab:hover  { color: var(--text); background: rgba(255,255,255,0.05); }
.page-tab.active { color: var(--text); }

/* Sliding indicator bar under active tab */
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--neon);
  border-radius: 2px 2px 0 0;
  transition: left 0.25s var(--ease), width 0.25s var(--ease);
}

/* Page sections */
.page-section { min-height: 60vh; }
[hidden] { display: none !important; }

/* Section hero (non-home pages) */
.section-hero {
  padding: 48px 32px 36px;
  border-bottom: 1px solid var(--border-md);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(214, 248, 238, 0.35) 0%, transparent 100%);
}
.section-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(34, 212, 168, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Content sub-tabs (Articles page) */
.content-tabs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px 0;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-md);
}
.content-tab {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  background: none;
  border: none;
  transition: color 0.15s;
  cursor: pointer;
}
.content-tab:hover  { color: var(--text); }
.content-tab.active { color: var(--neon); border-bottom: 2px solid var(--neon); }

/* ── Hero ────────────────────────────────────── */
.site-hero {
  padding: 60px 32px 60px;
  border-bottom: 1px solid var(--border-md);
  background: linear-gradient(155deg, rgba(214, 248, 238, 0.55) 0%, rgba(245, 247, 252, 0.8) 55%);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-left {}
.hero-right {}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--neon);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.kicker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  margin-right: 8px;
  flex-shrink: 0;
  animation: badge-pulse-neon 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--neon);
  color: #040f0b;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.18s var(--spring), box-shadow 0.2s;
  white-space: nowrap;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 212, 168, 0.38);
}
.hero-cta:active { transform: translateY(0); }

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── HUD Status ──────────────────────────────── */
.hud-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hud-stat {
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.15s;
}
.hud-stat:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.09), 0 8px 20px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.hud-stat-value {
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hud-stat-value.neon { color: var(--neon); }
.hud-stat-value.risk { color: var(--risk); }
.hud-stat-label {
  font-size: 0.6rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Feed ────────────────────────────────────── */
.edges-feed {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Game Card ───────────────────────────────── */
.game-card {
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
}
.game-card.is-sharp  { border-left: 3px solid var(--neon); }
.game-card.is-trap   { border-left: 3px solid var(--risk); }
.game-card:hover     { border-color: var(--border-hi); box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 8px 24px rgba(0,0,0,0.06); }

/* ── Card Header ─────────────────────────────── */
.card-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-week-time {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
}
.badge-sharp {
  color: var(--neon);
  background: var(--neon-dim);
  border-color: var(--neon-mid);
}
.badge-trap {
  color: var(--risk);
  background: var(--risk-dim);
  border-color: var(--risk-mid);
}

/* Animated Status Badge — pulsing live indicator */
@keyframes badge-pulse-neon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 212, 168, 0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(34, 212, 168, 0); }
}
@keyframes badge-pulse-risk {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 78, 106, 0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(240, 78, 106, 0); }
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.badge-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-status.status-sharp {
  color: var(--neon);
  background: var(--neon-dim);
  border-color: var(--neon-mid);
}
.badge-status.status-sharp .badge-status-dot {
  background: var(--neon);
  animation: badge-pulse-neon 2s ease-in-out infinite;
}
.badge-status.status-trap {
  color: var(--risk);
  background: var(--risk-dim);
  border-color: var(--risk-mid);
}
.badge-status.status-trap .badge-status-dot {
  background: var(--risk);
  animation: badge-pulse-risk 2s ease-in-out infinite;
}

/* Badge Delta — line movement indicator */
.badge-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.badge-delta.delta-value {
  color: var(--neon);
  background: var(--neon-dim);
  border-color: var(--neon-mid);
}
.badge-delta.delta-risk {
  color: var(--risk);
  background: var(--risk-dim);
  border-color: var(--risk-mid);
}
.badge-delta-arrow {
  font-size: 0.7rem;
  line-height: 1;
}

.card-matchup {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.team-name {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.matchup-at {
  font-size: 0.75rem;
  color: var(--text-mute);
  font-weight: 500;
}

/* ── Spread Compare ──────────────────────────── */
.spread-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.spread-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.spread-col-item { display: flex; flex-direction: column; gap: 3px; }
.spread-col-item.right { align-items: flex-end; text-align: right; }

.sc-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sc-value {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.sc-value.neon { color: var(--neon); }

.spread-gap-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}
.gap-pts {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon);
  white-space: nowrap;
}
.gap-pts.neg { color: var(--risk); }
.gap-arrow {
  font-size: 0.65rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* Spread track — the horizontal axis visual */
.spread-track-wrap {
  position: relative;
  padding: 8px 0 20px;
}

.spread-track {
  position: relative;
  height: 4px;
  background: rgba(0,0,0,0.10);
  border-radius: 999px;
  margin: 0 12px;
}

.track-gap-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--neon);
  opacity: 0.55;
}

.track-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
}
.marker-dot.market { background: rgba(0,0,0,0.12); border-color: rgba(0,0,0,0.40); }
.marker-dot.sharp  { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 8px var(--neon-glow); }

.marker-label {
  position: absolute;
  top: 16px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-axis {
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-mute);
  letter-spacing: 0.07em;
}

.spread-insight {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Editorial ───────────────────────────────── */
.editorial-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.editorial-section p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text-dim);
}
.editorial-section p + p { margin-top: 10px; }
.editorial-section p:first-child { color: var(--text); }

/* ── Stats Section ───────────────────────────── */
.stats-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Historical ATS Bar */
.ats-block {}

.ats-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ats-record {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.ats-pct {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--neon);
  font-weight: 600;
}

.ats-situation {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.ats-bar-track {
  position: relative;
  height: 8px;
  background: rgba(0,0,0,0.10);
  border-radius: 999px;
  margin-bottom: 6px;
  overflow: visible;
}

.ats-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-dim) 0%, var(--neon) 100%);
  transition: width 0.8s var(--ease);
}

.ats-breakeven-line {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: rgba(0,0,0,0.30);
  border-radius: 1px;
}

.ats-breakeven-line::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.ats-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.ats-edge-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--neon);
  letter-spacing: 0.06em;
}

/* ── Situational Matrix (collapsible) ────────── */
.matrix-toggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xs);
  color: var(--text-mute);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 7px 12px;
  width: 100%;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
  cursor: pointer;
}
.matrix-toggle-btn:hover { border-color: var(--border-hi); color: var(--text-dim); }
.matrix-toggle-btn.open  { border-color: var(--neon-mid); color: var(--neon); }

.matrix-body {
  display: none;
  margin-top: 14px;
}
.matrix-body.visible { display: block; }

.matrix-section-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.matrix-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.57rem;
  color: var(--text-mute);
}
.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}

.matrix-table th,
.matrix-table td {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-mute);
  text-align: center;
  padding: 2px;
  letter-spacing: 0.04em;
}

.matrix-table th.row-header {
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.matrix-cell-wrap {
  height: 24px;
  border-radius: 4px;
}

/* ── Affiliate CTA ───────────────────────────── */
.affiliate-section {
  padding: 18px 22px;
  background: var(--bg-2);
}

.affiliate-inner {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.affiliate-inner.is-value {
  background: linear-gradient(140deg, rgba(220, 252, 242, 0.90), rgba(204, 244, 232, 0.80));
  border: 1px solid rgba(34, 212, 168, 0.32);
}
.affiliate-inner.is-trap {
  background: linear-gradient(140deg, rgba(255, 228, 234, 0.90), rgba(252, 210, 220, 0.80));
  border: 1px solid rgba(240, 78, 106, 0.28);
}

.aff-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aff-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 4px;
}
.aff-badge.value { background: rgba(34, 212, 168, 0.14); color: var(--neon); }
.aff-badge.trap  { background: rgba(240, 78, 106, 0.14); color: var(--risk); }
.aff-book {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.aff-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Slide Button — for affiliate CTA */
.aff-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap 0.2s var(--ease), opacity 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.aff-cta-arrow {
  display: inline-block;
  transition: transform 0.22s var(--ease), opacity 0.22s;
  opacity: 0;
  transform: translateX(-6px);
}
.aff-cta:hover .aff-cta-arrow {
  opacity: 1;
  transform: translateX(0);
}
.aff-cta.value-cta {
  background: linear-gradient(110deg, rgba(34, 212, 168, 0.12), rgba(34, 212, 168, 0.20));
  border: 1px solid rgba(34, 212, 168, 0.40);
  color: var(--neon-dark);
}
.aff-cta.trap-cta {
  background: linear-gradient(110deg, rgba(240, 78, 106, 0.10), rgba(240, 78, 106, 0.18));
  border: 1px solid rgba(240, 78, 106, 0.36);
  color: var(--risk-dark);
}
.aff-cta:active { opacity: 0.75; }

/* ── Card Footer ─────────────────────────────── */
.card-footer {
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.save-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xs);
  color: var(--text-mute);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.save-btn:hover { border-color: var(--neon-mid); color: var(--neon); }
.save-btn.saved {
  background: var(--neon-dim);
  border-color: var(--neon-mid);
  color: var(--neon);
}

/* ── Explainer Section ───────────────────────── */
.explainer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 20px;
}

.explainer-inner { max-width: var(--max-w); margin: 0 auto; }

.explainer-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text);
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.explainer-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-icon {
  font-size: 1.2rem;
  color: var(--neon);
  margin-bottom: 2px;
}

.explainer-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.explainer-card p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.explainer-card p em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer-logo span { color: var(--neon); opacity: 0.6; }
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-mute);
  line-height: 1.65;
  max-width: 520px;
}

/* ── Dashboard ───────────────────────────────── */
.dash-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
}
.dash-backdrop[hidden] { display: none; }

.dash-panel {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  max-height: 70svh;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: panel-rise 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes panel-rise {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-header h2 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.dash-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-md);
  color: var(--text-dim);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-list {
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-list::-webkit-scrollbar { width: 0; }

.dash-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.dash-matchup {
  font-weight: 700;
  font-size: 0.9rem;
}
.dash-detail {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

.dash-empty {
  font-size: 0.82rem;
  color: var(--text-mute);
  text-align: center;
  padding: 28px 12px;
  font-style: italic;
}

/* ── Mono Alert ──────────────────────────────── */
.mono-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid;
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.mono-alert-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.mono-alert-msg {
  flex: 1;
  color: inherit;
}
.mono-alert.alert-sharp {
  background: rgba(34, 212, 168, 0.06);
  border-color: rgba(34, 212, 168, 0.22);
  border-left: 3px solid var(--neon);
  color: #c8f5ec;
}
.mono-alert.alert-trap {
  background: rgba(240, 78, 106, 0.06);
  border-color: rgba(240, 78, 106, 0.22);
  border-left: 3px solid var(--risk);
  color: #f5c8d0;
}
.mono-alert.alert-neutral {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-md);
  border-left: 3px solid var(--border-hi);
  color: var(--text-dim);
}

/* ── Articles Page ───────────────────────────── */
.article-feed {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 32px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}

.article-card {
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
}
.article-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 10px 28px rgba(0,0,0,0.06);
}

.article-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.article-category-chip {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
}
.category-picks   { color: var(--neon); background: var(--neon-dim); border-color: var(--neon-mid); }
.category-analysis { color: #a78bfa; background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.22); }
.category-news    { color: var(--text-dim); background: rgba(255,255,255,0.04); border-color: var(--border-md); }

.article-date {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.article-author {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
}

.article-read-more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.article-read-more:hover { gap: 8px; }
.article-arrow { transition: transform 0.15s; }
.article-read-more:hover .article-arrow { transform: translateX(3px); }

/* ── Video Hub ───────────────────────────────── */
.video-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Featured video */
.video-featured {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border-md);
  cursor: pointer;
  transition: border-color 0.2s;
}
.video-featured:hover { border-color: var(--neon-mid); }

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.video-featured:hover .video-thumb,
.video-card:hover .video-thumb { transform: scale(1.03); opacity: 0.85; }

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 19, 24, 0.85);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  transition: background 0.18s, transform 0.18s;
  z-index: 2;
}
.video-featured:hover .video-play-btn,
.video-card:hover .video-play-btn {
  background: var(--neon);
  color: #000;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

.video-info {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.video-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--neon);
}
.video-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.video-card .video-title { font-size: 0.88rem; }
.video-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
}

/* Video card grid */
.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.video-card:hover { border-color: var(--border-hi); }

/* Video modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal-backdrop[hidden] { display: none; }
.video-modal {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-md);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-modal-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  padding-right: 36px;
}
.video-embed-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Trends & Social ─────────────────────────── */
.trends-feed {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 32px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}

.trend-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-md);
  background: var(--panel);
  padding: 18px 20px;
  transition: border-color 0.18s;
}
.trend-card:hover { border-color: var(--border-hi); }

/* Tweet card */
.tweet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tweet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-lt);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}
.tweet-author {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.tweet-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.tweet-verified { color: #1d9bf0; font-size: 0.75rem; }
.tweet-handle {
  font-size: 0.72rem;
  color: var(--text-mute);
}
.tweet-time {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  white-space: nowrap;
}
.tweet-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}
.tweet-actions {
  display: flex;
  gap: 20px;
}
.tweet-stat {
  font-size: 0.75rem;
  color: var(--text-mute);
}

/* Trend signal card */
.trend-signal {
  border-left: 3px solid var(--neon);
  background: rgba(34, 212, 168, 0.04);
  border-color: rgba(34, 212, 168, 0.20);
}
.trend-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neon);
  display: block;
  margin-bottom: 6px;
}
.trend-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.trend-body {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}
.trend-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
}

/* Article link card */
.trend-article-link {}
.trend-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.trend-source-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}
.trend-link-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}
.trend-link-title a { color: inherit; }
.trend-link-title a:hover { color: var(--neon); }
.trend-link-excerpt {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.trend-source { font-size: 0.65rem; color: var(--text-mute); }
.trend-time   { font-family: var(--mono); font-size: 0.62rem; color: var(--text-mute); }

/* ── Home Strips ──────────────────────────────── */
.home-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 44px;
}

.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.strip-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.strip-see-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon);
}
.strip-see-all:hover { text-decoration: underline; }

.strip-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip-scroll::-webkit-scrollbar { display: none; }

/* Compact game card */
.compact-card {
  flex-shrink: 0;
  width: 230px;
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s;
  scroll-snap-align: start;
}
.compact-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.compact-card.is-sharp { border-left: 3px solid var(--neon); }
.compact-card.is-trap  { border-left: 3px solid var(--risk); }

.cc-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.cc-matchup {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cc-at { color: var(--text-mute); margin: 0 4px; }

.cc-spreads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.cc-spread-item { display: flex; flex-direction: column; gap: 2px; }
.cc-spread-item.right { text-align: right; align-items: flex-end; }

.cc-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.cc-val {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}
.cc-val.neon { color: var(--neon); }

.cc-gap {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--neon-dim);
  color: var(--neon);
}
.cc-gap.neg { background: var(--risk-dim); color: var(--risk); }

/* Week navigator */
.week-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 14px;
}
.week-nav::-webkit-scrollbar { display: none; }

.week-nav-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xs);
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.week-nav-btn:hover { border-color: var(--neon); color: var(--neon); }
.week-nav-btn.active {
  background: var(--neon);
  border-color: var(--neon);
  color: #fff;
}

/* Upcoming / skeleton cards */
.compact-card.cc-upcoming {
  opacity: 0.68;
  gap: 8px;
}
.cc-date {
  font-size: 0.64rem;
  color: var(--text-mute);
  line-height: 1.3;
}
.cc-time-net {
  font-size: 0.6rem;
  color: var(--text-mute);
}
.cc-no-line {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 3px 8px;
  border: 1px dashed var(--border-md);
  border-radius: var(--radius-xs);
}

.cc-save {
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid var(--border-md);
  color: var(--text-mute);
  transition: all 0.15s;
}
.cc-save.saved { color: var(--neon); border-color: var(--neon-mid); }
.cc-save:hover { border-color: var(--border-hi); color: var(--text); }

/* Home article mini-cards */
.home-article-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.15s;
  scroll-snap-align: start;
  cursor: pointer;
}
.home-article-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.ha-chip { display: inline-block; }

.ha-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.ha-excerpt {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Home video mini-cards */
.home-video-card {
  flex-shrink: 0;
  width: 230px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  scroll-snap-align: start;
}
.home-video-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.hv-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.hv-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease), opacity 0.3s; }
.home-video-card:hover .hv-thumb { transform: scale(1.04); opacity: 0.85; }
.hv-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.hv-title {
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Featured Article Hero ───────────────────── */
.featured-article-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(214, 248, 238, 0.55) 0%, rgba(245, 247, 252, 1) 60%);
  border-bottom: 1px solid rgba(34, 212, 168, 0.18);
  cursor: pointer;
  transition: border-bottom-color 0.3s;
}
.featured-article-hero:hover {
  border-bottom-color: rgba(34, 212, 168, 0.28);
}
.featured-article-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -120px;
  width: 640px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(34, 212, 168, 0.10) 0%, transparent 62%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.featured-article-hero:hover::before {
  opacity: 1.4;
}

.fa-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 20px 48px;
}

.fa-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fa-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  opacity: 0.65;
}

.fa-category-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}
.fa-category-chip.category-analysis {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.10);
  border: 1px solid rgba(167, 139, 250, 0.22);
}
.fa-category-chip.category-picks {
  color: var(--neon);
  background: var(--neon-dim);
  border: 1px solid var(--neon-mid);
}
.fa-category-chip.category-news {
  color: var(--text-dim);
  background: rgba(10, 14, 40, 0.05);
  border: 1px solid var(--border-md);
}

.fa-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 16px;
  max-width: 640px;
}

.fa-excerpt {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--text-dim);
  line-height: 1.68;
  max-width: 560px;
  margin: 0 0 24px;
}

.fa-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fa-author {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-mute);
}

.fa-read-more {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--neon);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease);
}
.fa-read-more:hover { gap: 12px; }

/* ── Article Modal ───────────────────────────── */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 60px;
  overflow-y: auto;
}
.article-modal-backdrop[hidden] { display: none; }

.article-modal {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius);
  padding: 32px 36px 40px;
  position: relative;
}

.article-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-md);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.article-modal-close:hover { background: rgba(255,255,255,0.16); color: var(--text); border-color: var(--border-hi); }

.am-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.am-date {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
}
.am-title {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.am-author {
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.am-body p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.78;
  margin-bottom: 20px;
}
.am-body p:first-child {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.78;
}
.am-body p:last-child { margin-bottom: 0; }

/* ── Clickable trend cards ───────────────────── */
a.trend-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.trend-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-1px);
  transition: border-color 0.18s, transform 0.15s;
}
.tweet-view {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon);
  margin-left: auto;
}
.trend-read-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon);
}

/* ── Writer record badge */
.am-record {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background: rgba(34,212,168,0.1);
  border: 1px solid rgba(34,212,168,0.25);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--neon);
  vertical-align: middle;
}
.am-record-pending {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-md);
  color: var(--text-mute);
}

/* ── Writer color accents ────────────────────── */
.article-card[data-author="vanessa-cole"],
.home-article-card[data-author="vanessa-cole"] {
  border-left: 3px solid rgba(34, 212, 168, 0.55);
}
.article-card[data-author="tommy-ricci"],
.home-article-card[data-author="tommy-ricci"] {
  border-left: 3px solid rgba(245, 158, 11, 0.55);
}
.article-card[data-author="dr-marcus-webb"],
.home-article-card[data-author="dr-marcus-webb"] {
  border-left: 3px solid rgba(167, 139, 250, 0.55);
}
.article-card[data-author*="dawkins"],
.home-article-card[data-author*="dawkins"] {
  border-left: 3px solid rgba(96, 165, 250, 0.55);
}

.article-card[data-author="vanessa-cole"] .article-author    { color: rgba(34, 212, 168, 0.75); }
.article-card[data-author="tommy-ricci"]  .article-author    { color: rgba(245, 158, 11, 0.75); }
.article-card[data-author="dr-marcus-webb"] .article-author  { color: rgba(167, 139, 250, 0.75); }
.article-card[data-author*="dawkins"]     .article-author    { color: rgba(96, 165, 250, 0.75); }

.home-article-card[data-author="vanessa-cole"] .ha-title { color: rgba(34, 212, 168, 0.92); }
.home-article-card[data-author="tommy-ricci"]  .ha-title { color: var(--text); }
.home-article-card[data-author="dr-marcus-webb"] .ha-title { color: var(--text); }
.home-article-card[data-author*="dawkins"]     .ha-title { color: var(--text); }

/* ── Responsive: hero & HUD ──────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .site-hero { padding: 48px 20px 48px; }
  .home-strip { padding: 0 20px 36px; }
  .section-hero { padding: 40px 20px 28px; }
  .article-feed, .video-grid, .trends-feed, .content-tabs { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .hud-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-title { font-size: 2rem; }
}

/* ── Desktop: home strips become grids ───────── */
@media (min-width: 860px) {
  #edgesFeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
    gap: 14px;
  }
  #edgesFeed .compact-card {
    flex-shrink: unset;
    width: auto;
    scroll-snap-align: none;
  }
  #homeArticlesFeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
    gap: 14px;
  }
  #homeArticlesFeed .home-article-card {
    flex-shrink: unset;
    width: auto;
    scroll-snap-align: none;
  }
  #homeVideosFeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
    gap: 14px;
  }
  #homeVideosFeed .home-video-card {
    flex-shrink: unset;
    width: auto;
    scroll-snap-align: none;
  }
}

/* ── Light mode: misc component fixes ───────── */
.trend-signal {
  background: rgba(34, 212, 168, 0.06);
  border-color: rgba(34, 212, 168, 0.24);
}
.trend-source-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-md);
}
.dash-item {
  background: var(--bg-2);
  border-color: var(--border-md);
}
.dash-empty { color: var(--text-mute); }
.video-card, .video-featured {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
}
.trend-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
}
.compact-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
}
.home-article-card, .home-video-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
}
.editorial-section p { color: var(--text-dim); }
.editorial-section p:first-child { color: var(--text); }
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-md);
}

/* ── News Section ────────────────────────────── */
.news-controls {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-filter-btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-md);
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.news-filter-btn:hover {
  border-color: var(--neon);
  color: var(--neon-dark);
}
.news-filter-btn.active {
  background: var(--neon-dim);
  border-color: var(--neon);
  color: var(--neon-dark);
}

.news-refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-last-updated {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-mute);
}

.news-refresh-btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-md);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.news-refresh-btn:hover { color: var(--neon-dark); border-color: var(--neon); }

.news-feed {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 20px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* News card */
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.news-team-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--neon-dim);
  color: var(--neon-dark);
  border: 1px solid var(--neon-mid);
}
.news-team-badge.league {
  background: rgba(167, 139, 250, 0.10);
  color: #7c63e0;
  border-color: rgba(167, 139, 250, 0.25);
}

.news-timestamp {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  white-space: nowrap;
}

.news-headline {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}

.news-body {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.62;
  /* show first paragraph only, expand on click */
  overflow: hidden;
}
.news-body.expanded { overflow: visible; }

.news-body p { margin: 0 0 10px; }
.news-body p:last-child { margin-bottom: 0; }

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.news-agent {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--text-mute);
}

.news-expand-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-dark);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s;
}
.news-expand-btn:hover { opacity: 0.75; }

/* Home news strip cards */
.home-news-card {
  min-width: 240px;
  max-width: 260px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.home-news-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.home-news-card .news-team-badge { font-size: 0.58rem; }
.home-news-card .news-headline { font-size: 0.87rem; }
.home-news-card .news-timestamp { font-size: 0.60rem; }

@media (min-width: 860px) {
  #homeNewsFeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    gap: 16px;
    padding: 0 20px;
  }
  .home-news-card { min-width: unset; max-width: unset; }
}

/* Reddit trend card */
.trend-reddit {
  text-decoration: none;
  color: inherit;
}
.trend-source-badge.reddit-badge {
  background: rgba(255, 87, 0, 0.10);
  color: #c94e00;
  border: 1px solid rgba(255, 87, 0, 0.22);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
}
.trend-flair {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.60rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  color: var(--text-mute);
  margin-bottom: 4px;
}

/* ── Nav auth ──────────────────────────────── */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}

.nav-login-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: 1px solid var(--border-md);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-login-btn:hover { border-color: var(--neon); color: var(--neon); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-user[hidden] { display: none; }

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neon);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-signout-btn {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-signout-btn:hover { color: var(--risk); }

/* ── Auth modal ────────────────────────────── */
.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 40, 0.48);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-backdrop[hidden] { display: none; }

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(10,14,40,0.18);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-mute);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}
.auth-close:hover { color: var(--text); background: var(--bg-2); }

.auth-logo {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon);
  margin-bottom: 20px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mute);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--neon); }
.auth-tab:hover:not(.active) { color: var(--text-dim); }

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xs);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--sans);
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.auth-input:focus { outline: none; border-color: var(--neon); }
.auth-input::placeholder { color: var(--text-mute); }

.auth-error {
  font-size: 0.75rem;
  color: var(--risk);
  margin: 0;
  padding: 8px 12px;
  background: var(--risk-dim);
  border-radius: var(--radius-xs);
}
.auth-error.auth-success { color: var(--neon-dark); background: var(--neon-dim); }
.auth-error[hidden] { display: none; }

.auth-submit {
  width: 100%;
  padding: 11px;
  background: var(--neon);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s, opacity 0.15s;
}
.auth-submit:hover { background: var(--neon-dark); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-switch {
  font-size: 0.75rem;
  color: var(--text-mute);
  text-align: center;
  margin: 16px 0 0;
}
.auth-switch a { color: var(--neon); font-weight: 600; }

/* ── Newsletter popup ──────────────────────── */
.nl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 40, 0.48);
  backdrop-filter: blur(4px);
  z-index: 350;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 24px;
}
.nl-backdrop[hidden] { display: none; }

@media (min-width: 540px) {
  .nl-backdrop { align-items: center; }
}

.nl-panel {
  background: var(--panel);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(10,14,40,0.18);
  border-top: 3px solid var(--neon);
}

.nl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-mute);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}
.nl-close:hover { color: var(--text); background: var(--bg-2); }

.nl-kicker {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  background: var(--neon-dim);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}

.nl-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.2;
}

.nl-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0 0 20px;
  line-height: 1.55;
}

.nl-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.nl-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xs);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  font-family: var(--sans);
  min-width: 0;
  transition: border-color 0.15s;
}
.nl-input:focus { outline: none; border-color: var(--neon); }
.nl-input::placeholder { color: var(--text-mute); }

.nl-submit {
  padding: 10px 18px;
  background: var(--neon);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.nl-submit:hover { background: var(--neon-dark); }
.nl-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.nl-dismiss {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--text-mute);
  cursor: pointer;
  text-align: center;
  padding: 4px;
}
.nl-dismiss:hover { color: var(--text-dim); text-decoration: underline; }

.nl-success {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-dark);
  text-align: center;
  padding: 12px 0;
  margin: 0;
}

@media (max-width: 480px) {
  .nl-form { flex-direction: column; }
  .nl-submit { width: 100%; padding: 12px; }
  .auth-panel { padding: 28px 20px 20px; }
}
