/* ═══════════════════════════════════════════
   WC26 边缘实验室 — Linear 暗色主题
   ═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --bg-page: #08090a;
  --bg-panel: #0f1011;
  --bg-surface: #191a1b;
  --bg-hover: #28282c;
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-tertiary: #8a8f98;
  --text-quaternary: #62666d;
  --accent: #5e6ad2;
  --accent-vibrant: #7170ff;
  --accent-hover: #828fff;
  --green: #27a644;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #f06050;
  --red-bg: rgba(240,96,80,0.1);
  --blue: #5e6ad2;
  --border: rgba(255,255,255,0.08);
  --border-subtle: rgba(255,255,255,0.05);
  --radius: 6px;
  --radius-card: 8px;
  --radius-pill: 9999px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 100vh;
  font-feature-settings: 'cv01', 'ss03';
}

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 52px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { color: var(--text-primary); opacity: 0.7; }
.nav-title {
  font-size: 15px; font-weight: 510; color: var(--text-primary);
  letter-spacing: -0.165px;
}
.nav-badge {
  font-size: 12px; color: var(--text-quaternary);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-weight: 510;
}
.nav-meta { display: flex; align-items: center; gap: 8px; }

/* ─── Main ─── */
main { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ─── Loading ─── */
.loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; gap: 16px;
}
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 16px; color: var(--text-primary); font-weight: 510; }
.loading-sub { font-size: 14px; color: var(--text-tertiary); }

/* ─── Summary Bar ─── */
.summary {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 20px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.summary-card {
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  min-width: 110px;
  transition: background 0.12s;
}
.summary-card:hover { background: rgba(255,255,255,0.04); }
.summary-label {
  display: block; font-size: 12px; color: var(--text-quaternary);
  font-weight: 510; margin-bottom: 4px; text-transform: none;
}
.summary-value { font-size: 22px; font-weight: 510; color: var(--text-primary); }
.mono { font-family: var(--font-mono); font-weight: 500; }

/* ─── Tabs ─── */
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0; margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  background: none; border: none;
  padding: 12px 18px;
  font-family: var(--font); font-size: 13px; font-weight: 510;
  color: var(--text-tertiary); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.12s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-secondary); }
.tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ─── Tab Content ─── */
.tab-content { display: none; padding-top: 16px; }
.tab-content--active { display: block; }

/* ─── Section Title ─── */
.section-title {
  font-size: 14px; font-weight: 510; color: var(--text-tertiary);
  margin-bottom: 12px; text-transform: none;
  letter-spacing: 0;
}

/* ─── Controls Bar ─── */
.controls-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 8px;
}
.ctrl-group { display: flex; align-items: center; gap: 6px; }
.ctrl-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-tertiary); font-weight: 510;
}
.ctrl-name { white-space: nowrap; font-size: 12px; }
.ctrl-slider {
  width: 80px; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--border); border-radius: 2px; outline: none;
}
.ctrl-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%; cursor: pointer;
}
.ctrl-slider--sm { width: 60px; }
.ctrl-value { font-size: 12px; color: var(--text-tertiary); min-width: 32px; }
.ctrl-select {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-secondary); font-family: var(--font);
  font-size: 12px; padding: 4px 8px; outline: none;
  font-weight: 510;
}
.ctrl-btn {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px; font-family: var(--font);
  font-size: 12px; font-weight: 510; color: var(--text-tertiary);
  cursor: pointer; transition: all 0.12s;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--text-secondary); }
.ctrl-btn--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ctrl-btn--primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  padding: 5px 16px; font-size: 12px;
}
.ctrl-btn--primary:hover { background: var(--accent-hover); }

/* ─── Group Grid (Standings) ─── */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  padding-bottom: 24px;
}
.group-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.group-header {
  font-size: 13px; font-weight: 590; color: var(--text-primary);
  padding: 12px 16px 8px;
  letter-spacing: -0.13px;
}
.group-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.group-table th {
  font-weight: 510; color: var(--text-quaternary);
  font-size: 11px; text-align: center;
  padding: 4px 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.group-table th:first-child { text-align: left; }
.group-table th:nth-child(2) { text-align: left; }
.group-table td {
  padding: 7px 6px; text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.group-table td:first-child { text-align: left; padding-left: 12px; }
.group-table td:nth-child(2) { text-align: left; }
.group-table tr:last-child td { border-bottom: none; }
.group-pos { width: 20px; font-size: 11px; }
.group-team { font-weight: 510; color: var(--text-primary); }
.group-gd.pos { color: var(--emerald); }
.group-gd.neg { color: var(--red); }
.group-pts { font-weight: 590; color: var(--text-primary); }
.group-row--top { background: rgba(94,106,210,0.06); }

/* ─── Match Cards (Predictions) ─── */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
  padding-bottom: 24px;
}
.match-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background 0.12s;
}
.match-card:hover { background: rgba(255,255,255,0.04); }
.match-card--played { border-left: 3px solid var(--accent); }
.match-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.match-group-badge {
  font-size: 10px; font-weight: 510; color: var(--text-quaternary);
  background: rgba(255,255,255,0.04);
  padding: 1px 6px; border-radius: var(--radius-pill);
}
.match-teams {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.match-team {
  font-size: 14px; font-weight: 510; color: var(--text-primary);
  flex: 1;
}
.match-team--home { text-align: left; }
.match-team--away { text-align: right; }
.match-score {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 500;
  color: var(--text-primary);
  padding: 0 12px;
}
.match-probs {
  display: flex; gap: 4px; margin-bottom: 4px;
  font-size: 11px; font-family: var(--font-mono);
}
.prob-bar {
  flex: 1; text-align: center;
  padding: 3px 0; border-radius: 3px;
  font-weight: 500;
}
.prob-bar--home { background: rgba(94,106,210,0.15); color: var(--accent-vibrant); }
.prob-bar--draw { background: rgba(245,158,11,0.12); color: var(--amber); }
.prob-bar--away { background: rgba(240,96,80,0.12); color: var(--red); }
.match-xg {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-quaternary);
  margin-top: 4px;
}
.match-rec {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}
.rec-badge {
  font-size: 10px; font-weight: 510; padding: 1px 7px;
  border-radius: var(--radius-pill);
}
.rec-badge--value { background: var(--emerald); color: #fff; }
.rec-badge--strong { background: var(--green); color: #fff; }
.rec-badge--medium { background: var(--accent); color: #fff; }
.rec-badge--weak { background: rgba(245,158,11,0.2); color: var(--amber); }
.rec-badge--watch { background: rgba(255,255,255,0.05); color: var(--text-tertiary); }
.rec-market { font-size: 11px; color: var(--text-tertiary); }
.rec-edge { font-size: 11px; font-family: var(--font-mono); color: var(--emerald); font-weight: 500; }

/* ─── Bracket ─── */
.bracket-scroll { overflow-x: auto; padding-bottom: 16px; -webkit-overflow-scrolling: touch; }
.bracket {
  display: flex; gap: 20px; min-width: 900px;
  padding: 8px 0;
}
.bracket-round { min-width: 170px; }
.bracket-round-header {
  font-size: 11px; font-weight: 590; color: var(--text-quaternary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}
.bracket-match {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px;
}
.bracket-match--projected { border-color: var(--accent); border-style: dashed; }
.bracket-match--played { border-color: var(--emerald); }
.bracket-teams { display: flex; flex-direction: column; gap: 6px; }
.bracket-team { display: flex; justify-content: space-between; align-items: center; }
.bracket-team-name { font-size: 12px; font-weight: 510; color: var(--text-primary); flex: 1; }
.bracket-team-prob { font-size: 11px; font-family: var(--font-mono); color: var(--text-quaternary); }
.bracket-probs-mini { display: flex; height: 3px; margin-top: 6px; border-radius: 2px; overflow: hidden; }
.bracket-prob-seg--home { background: var(--accent); }
.bracket-prob-seg--draw { background: var(--amber); }
.bracket-prob-seg--away { background: var(--red); }
.bracket-legend {
  display: flex; gap: 16px; justify-content: center;
  padding: 8px 0 16px;
  font-size: 12px; color: var(--text-tertiary);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.dot-projected { border: 1px dashed var(--accent); background: transparent; }
.dot-played { background: var(--emerald); }

/* ─── Knockout Progress ─── */
.knockout-progress {
  display: flex; gap: 4px; justify-content: center;
  padding: 12px 0 24px;
}
.knockout-stage {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px; font-size: 11px;
  transition: all 0.12s;
}
.knockout-stage--done { border-color: var(--emerald); background: rgba(16,185,129,0.06); }
.knockout-stage--active { border-color: var(--accent); background: rgba(94,106,210,0.06); }
.knockout-stage-icon { font-size: 14px; }
.knockout-stage-label { font-weight: 510; color: var(--text-secondary); white-space: nowrap; }
.knockout-stage-count { font-family: var(--font-mono); color: var(--text-quaternary); font-size: 10px; }

/* ─── Compare ─── */
.compare-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.compare-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px; min-width: 140px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.compare-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.compare-card--bi { border-left: 2px solid var(--accent); }
.compare-card--indep { border-left: 2px solid var(--red); }
.compare-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.compare-card-title { font-size: 12px; font-weight: 510; color: var(--text-primary); }
.compare-teams { display: flex; justify-content: space-between; font-size: 13px; font-weight: 510; color: var(--text-secondary); margin-bottom: 6px; }
.compare-probs { display: flex; gap: 4px; margin-bottom: 4px; }
.compare-diff { font-size: 11px; font-family: var(--font-mono); margin-top: 4px; }
.compare-diff--pos { color: var(--emerald); }
.compare-diff--neg { color: var(--red); }

/* ─── Simulation ─── */
.sim-summary {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.kpi-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 130px;
  flex: 1;
}
.kpi-label { font-size: 11px; color: var(--text-quaternary); font-weight: 510; margin-bottom: 4px; }
.kpi-value { font-size: 20px; font-weight: 510; color: var(--text-primary); }
.kpi-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.sim-chart, .sim-list { margin-top: 16px; }
.sim-bar-group { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sim-bar-label {
  width: 140px; font-size: 12px; font-weight: 510; color: var(--text-primary);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sim-bar-track { flex: 1; height: 16px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.sim-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; min-width: 2px; }
.sim-bar-fill--elite { background: linear-gradient(90deg, #5e6ad2, #828fff); }
.sim-bar-fill--strong { background: var(--accent); }
.sim-bar-fill--good { background: #3b82f6; }
.sim-bar-fill--average { background: var(--green); }
.sim-bar-fill--lower { background: var(--amber); }
.sim-bar-fill--weak { background: var(--text-quaternary); }
.sim-bar-value { width: 48px; font-size: 11px; font-family: var(--font-mono); color: var(--text-tertiary); text-align: right; }

/* ─── Schedule ─── */
.schedule-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.schedule-grid { padding-bottom: 24px; }
.schedule-day {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden;
}
.schedule-today { border-color: var(--accent); }
.schedule-day-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}
.schedule-day-date { font-size: 13px; font-weight: 510; color: var(--text-primary); }
.schedule-day-weekday { font-size: 12px; color: var(--text-tertiary); }
.schedule-day-count { font-size: 11px; color: var(--text-quaternary); margin-left: auto; }
.schedule-day-matches { padding: 6px 0; }
.schedule-match {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  font-size: 13px;
  transition: background 0.1s;
}
.schedule-match:hover { background: rgba(255,255,255,0.03); }
.schedule-match-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-quaternary); width: 40px; }
.schedule-match-group { font-size: 10px; color: var(--text-quaternary); width: 50px; }
.schedule-match-teams { display: flex; align-items: center; gap: 8px; flex: 1; }
.schedule-match-team { font-weight: 510; color: var(--text-primary); }
.schedule-match-team:last-child { text-align: right; flex: 1; }
.schedule-match-score { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-primary); padding: 0 8px; }
.schedule-match-rec { font-size: 10px; font-weight: 510; padding: 1px 6px; border-radius: var(--radius-pill); white-space: nowrap; }
.schedule-match-rec--value { background: var(--emerald); color: #fff; }
.schedule-match-rec--strong { background: var(--green); color: #fff; }
.schedule-match-rec--medium { background: var(--accent); color: #fff; }
.schedule-match-rec--weak { background: rgba(245,158,11,0.2); color: var(--amber); }

/* ─── Footer ─── */
/* ─── Markets Tab ─── */
.mkt-header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-bottom:12px; }

/* ─── Daily Picks Tab ─── */
.picks-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.picks-header {
  text-align: center;
  margin-bottom: 24px;
}
.picks-header-title {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #6ac8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.picks-header-sub {
  font-size: 12px;
  color: var(--text-quaternary);
}
.picks-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.picks-kpi {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.picks-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.picks-kpi-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.picks-kpi-sub {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.picks-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.picks-match-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.picks-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.picks-match-teams {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.picks-match-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.picks-match-kickoff {
  font-size: 11px;
  color: var(--text-tertiary);
}
.picks-match-stake {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(35, 166, 213, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
}
.picks-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.picks-bet-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}
.picks-bet-item:hover {
  border-color: rgba(35, 166, 213, 0.3);
}
.picks-bet-selection {
  flex: 1;
}
.picks-bet-market {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-quaternary);
  margin-bottom: 2px;
}
.picks-bet-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.picks-bet-odds {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.picks-bet-right {
  text-align: right;
  min-width: 80px;
}
.picks-bet-ev {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}
.picks-bet-ev.negative { color: #f87171; }
.picks-bet-stake {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1px;
}
.picks-bet-grade {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 3px;
}
.picks-bet-grade.A { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.picks-bet-grade.B { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.picks-bet-grade.C { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.picks-bet-grade.D { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.picks-bet-grade.F { background: rgba(248, 113, 113, 0.15); color: #f87171; }
@media (max-width: 768px) {
  .picks-summary { grid-template-columns: repeat(2, 1fr); }
  .picks-bets-grid { grid-template-columns: 1fr; }
}
.picks-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-quaternary);
}
.picks-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.picks-empty-text {
  font-size: 15px;
  margin-bottom: 4px;
}
.picks-empty-sub {
  font-size: 12px;
}

/* ─── Strategy Signature Bar ─── */
.picks-signature {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.picks-signature span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.picks-signature strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ─── Strategy Selector ─── */
.picks-strategy {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.picks-strategy-btn {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.picks-strategy-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}
.picks-strategy-btn--active {
  background: rgba(35,166,213,0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.picks-strategy-btn--active[data-strategy="aggressive"] {
  background: rgba(248,113,113,0.12);
  border-color: #f87171;
  color: #f87171;
}
.picks-strategy-btn--active[data-strategy="growth"] {
  background: rgba(35,166,213,0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.picks-strategy-btn--active[data-strategy="stable"] {
  background: rgba(52,211,153,0.12);
  border-color: #34d399;
  color: #34d399;
}

/* ─── Picks Interactive Controls ─── */
.picks-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.picks-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.picks-control-group--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.picks-control-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.picks-control-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
}
.picks-control-input-wrap:focus-within {
  border-color: var(--accent);
}
.picks-control-prefix,
.picks-control-suffix {
  padding: 0 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  user-select: none;
}
.picks-control-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 7px 6px;
  width: 90px;
  text-align: center;
}
.picks-control-input::-webkit-inner-spin-button,
.picks-control-input::-webkit-outer-spin-button {
  opacity: 0.5;
}
.picks-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.picks-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.picks-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  transition: background 0.2s;
}
.picks-toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-tertiary);
  top: 2px;
  left: 2px;
  transition: all 0.2s;
}
.picks-toggle input:checked + .picks-toggle-track {
  background: var(--accent);
}
.picks-toggle input:checked + .picks-toggle-track::after {
  background: white;
  left: 18px;
}
.picks-recalc-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
  margin-left: auto;
}
.picks-recalc-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.picks-recalc-btn:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .picks-controls { flex-direction: column; align-items: stretch; }
  .picks-control-group { width: 100%; }
  .picks-control-input { width: 100%; }
  .picks-recalc-btn { margin-left: 0; width: 100%; }
}

/* ─── Chat Tab ─── */
.chat-container {
  display: flex; flex-direction: column;
  height: calc(100vh - 240px); min-height: 400px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}
.chat-header-title { font-size: 14px; font-weight: 510; color: var(--text-primary); }
.chat-header-sub { font-size: 11px; color: var(--text-quaternary); margin-top: 2px; }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-message { display: flex; }
.chat-message--user { justify-content: flex-end; }
.chat-message--ai { justify-content: flex-start; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.chat-bubble--ai {
  background: rgba(94,106,210,0.1);
  border: 1px solid rgba(94,106,210,0.2);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}
.chat-bubble--user {
  background: rgba(35,166,213,0.15);
  border: 1px solid rgba(35,166,213,0.25);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}
.chat-bubble--error {
  background: rgba(240,96,80,0.1);
  border: 1px solid rgba(240,96,80,0.2);
  color: var(--red);
  border-bottom-left-radius: 4px;
}
.chat-bubble--loading {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-style: italic;
  border-bottom-left-radius: 4px;
}
.chat-input-area {
  display: flex; gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.12s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-quaternary); }
.chat-send-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 510;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.12s;
}
.chat-send-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.chat-send-btn:not(:disabled):hover { opacity: 0.85; }
.chat-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.01);
  font-size: 10px;
  color: var(--text-quaternary);
}
.chat-footer-status { display: flex; align-items: center; gap: 4px; }
.chat-footer-model { font-family: var(--font-mono); }
.mkt-teams { font-size:14px; font-weight:500; color:var(--text-primary); }
.mkt-meta { font-size:11px; color:var(--text-tertiary); font-family:var(--font-mono); }
.mkt-section { margin-top:12px; padding:12px; background:var(--surface); border-radius:8px; }
.mkt-section-title { font-size:11px; font-weight:500; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:8px; }

/* WDL Bar */
.mkt-bar-wdl { display:flex; height:24px; border-radius:6px; overflow:hidden; font-size:10px; font-weight:600; color:rgba(255,255,255,0.9); }
.mkt-bar-wdl-seg { display:flex; align-items:center; justify-content:center; min-width:0; transition:flex 0.3s; }
.mkt-bg-home { background:linear-gradient(135deg, #23a6d5, #2386d5); }
.mkt-bg-draw { background:linear-gradient(135deg, #6c5ce7, #a29bfe); }
.mkt-bg-away { background:linear-gradient(135deg, #eb5757, #e74c3c); }
.mkt-bg-accent { background:linear-gradient(135deg, #23a6d5, #23d5ab); }
.mkt-bar-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--text-tertiary); margin-top:4px; }

/* O/U Table */
.mkt-table { width:100%; border-collapse:collapse; font-size:11px; }
.mkt-cell { padding:4px 6px; color:var(--text-secondary); white-space:nowrap; }
.mkt-cell.mkt-num { font-family:var(--font-mono); text-align:right; width:60px; color:var(--text-primary); }
.mkt-bar { height:6px; background:rgba(255,255,255,0.06); border-radius:3px; overflow:hidden; min-width:40px; }
.mkt-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.mkt-bar.mkt-bar.tg { min-width:0; }
.mkt-bar-over { background:linear-gradient(90deg, #23a6d5, #2386d5); }
.mkt-bar-under { background:linear-gradient(90deg, #6c5ce7, #a29bfe); }

/* Double Chance */
.mkt-dc-grid { display:flex; gap:8px; }
.mkt-dc-item { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px; background:rgba(255,255,255,0.03); border-radius:6px; }
.mkt-dc-label { font-size:13px; font-weight:600; color:var(--text-primary); font-family:var(--font-mono); }
.mkt-dc-val { font-size:16px; font-weight:700; color:var(--accent); }

/* Exact Scores Grid */
.mkt-scores-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; }
.mkt-score-item { display:flex; justify-content:space-between; padding:6px 8px; background:rgba(255,255,255,0.03); border-radius:4px; font-size:11px; }
.mkt-score-label { font-weight:500; color:var(--text-primary); font-family:var(--font-mono); }
.mkt-score-val { color:var(--accent); font-family:var(--font-mono); }

/* Total Goals */
.mkt-tg-grid { display:flex; flex-direction:column; gap:4px; }
.mkt-tg-item { display:grid; grid-template-columns:40px 1fr 50px; align-items:center; gap:8px; font-size:11px; }
.mkt-tg-label { color:var(--text-secondary); }
.mkt-tg-val { font-family:var(--font-mono); color:var(--text-primary); text-align:right; }

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0; margin-top: 24px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  text-align: center;
  font-size: 12px; color: var(--text-quaternary);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; height: 48px; }
  main { padding: 0 16px; }
  .nav-title { font-size: 13px; }
  .summary { gap: 6px; }
  .summary-card { padding: 10px 14px; min-width: 80px; }
  .summary-value { font-size: 18px; }
  .group-grid { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .tabs { gap: 0; }
  .tab { padding: 10px 12px; font-size: 12px; }
  .controls-bar { gap: 8px; }
  .knockout-progress { flex-wrap: wrap; }
  .sim-bar-label { width: 100px; font-size: 11px; }
}

/* ─── Expandable Schedule Markets ─── */
.schedule-match {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.schedule-match-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.schedule-match-main:hover { background: rgba(255,255,255,0.03); }
.schedule-match-expand {
  font-size: 10px;
  color: var(--text-quaternary);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.schedule-markets--open ~ * .schedule-match-expand,
.schedule-match-main[onclick] + .schedule-markets.schedule-markets--open ~ .schedule-match-expand { transform: rotate(180deg); }
.schedule-match-wdl {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  width: 80px;
  flex-shrink: 0;
}
.wdl-bar-h { background: var(--blue); }
.wdl-bar-d { background: var(--amber); }
.wdl-bar-a { background: var(--red); }
.schedule-markets {
  display: none;
  padding: 0 14px 14px;
}
.schedule-markets.schedule-markets--open { display: block; }
.schedule-markets .mkt-section { margin-top: 8px; }
.schedule-today {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(35,166,213,0.08);
}

/* Responsive: expandable markets */
@media (max-width: 768px) {
  .schedule-match-main {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 10px;
  }
  .schedule-match-wdl { width: 60px; }
  .schedule-match-expand { margin-left: auto; }
  .schedule-match-time, .schedule-match-group { font-size: 10px; }
  .schedule-match-team { font-size: 13px; }
  .schedule-match-score { font-size: 13px; }
  .schedule-markets { padding: 0 10px 10px; }
  .schedule-markets .mkt-table { display: block; overflow-x: auto; white-space: nowrap; }
  .schedule-markets .mkt-section { padding: 8px; }
  .schedule-markets .mkt-section-title { font-size: 10px; }
  .schedule-markets .mkt-bar-wdl { height: 20px; font-size: 9px; }
  .schedule-markets .mkt-bar-labels { font-size: 10px; }
  .schedule-markets .mkt-scores-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .schedule-markets .mkt-tg-item { font-size: 10px; grid-template-columns: 32px 1fr 40px; }
}

/* ─── Match Drawer ─── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { transform:translateY(30px);opacity:0 } to { transform:translateY(0);opacity:1 } }
.drawer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 92%;
  max-width: 520px;
  max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: slideUp 0.2s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px 8px;
}
.drawer-header-main { display: flex; gap: 8px; font-size: 11px; color: var(--text-quaternary); }
.drawer-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: var(--surface); color: var(--text-secondary);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.drawer-close:hover { background: rgba(255,255,255,0.08); }
.drawer-teams-row {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 8px 20px 20px;
}
.drawer-team { display: flex; align-items: center; gap: 8px; flex: 1; }
.drawer-team--away { flex-direction: row-reverse; }
.drawer-team-flag { font-size: 28px; }
.drawer-team-name { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.drawer-score-col { text-align: center; min-width: 60px; }
.drawer-score { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text-primary); }
.drawer-status { display: block; font-size: 10px; color: var(--text-quaternary); margin-top: 2px; }
.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 0 20px 20px;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Drawer Market Sections */
.dm-section { margin-bottom: 16px; }
.dm-section:last-child { margin-bottom: 0; }
.dm-section-title {
  font-size: 10px; font-weight: 500; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.dm-market {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--surface); border-radius: 8px;
  margin-bottom: 4px;
}
.dm-market:last-child { margin-bottom: 0; }
.dm-market-name { font-size: 12px; color: var(--text-secondary); }
.dm-market-prob { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-primary); }
.dm-market-odds {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-quaternary); margin-left: 8px;
}
.dm-bar-wdl {
  display: flex; height: 28px; border-radius: 8px; overflow: hidden;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 8px;
}
.dm-bar-seg { display: flex; align-items: center; justify-content: center; transition: flex 0.3s; }
.dm-bar-seg--h { background: var(--blue); }
.dm-bar-seg--d { background: var(--amber); }
.dm-bar-seg--a { background: var(--red); }
.dm-bar-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-secondary); margin-bottom: 12px; }
.dm-odds-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.dm-odds-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.dm-odds-card {
  background: var(--surface); border-radius: 8px; padding: 8px;
  text-align: center;
}
.dm-odds-card-label { font-size: 10px; color: var(--text-quaternary); display: block; }
.dm-odds-card-prob { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-primary); display: block; }
.dm-odds-card-dec { font-size: 10px; color: var(--text-quaternary); }
.dm-scores-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 4px;
}
.dm-score-item {
  background: var(--surface); border-radius: 6px; padding: 6px 4px;
  text-align: center;
}
.dm-score-item-name { display: block; font-size: 12px; font-weight: 500; color: var(--text-primary); }
.dm-score-item-prob { display: block; font-size: 10px; color: var(--text-quaternary); }
.dm-tg-grid { display: flex; flex-direction: column; gap: 4px; }
.dm-tg-row { display: flex; align-items: center; gap: 8px; }
.dm-tg-label { width: 36px; font-size: 11px; color: var(--text-secondary); text-align: right; }
.dm-tg-bar { flex: 1; height: 14px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.dm-tg-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; opacity: 0.7; }
.dm-tg-val { width: 40px; font-family: var(--font-mono); font-size: 11px; color: var(--text-primary); text-align: right; }

@media (max-width: 480px) {
  .drawer { width: 96%; max-height: 92vh; border-radius: 12px; }
  .drawer-teams-row { gap: 8px; padding: 4px 12px 16px; }
  .drawer-team-flag { font-size: 22px; }
  .drawer-team-name { font-size: 13px; }
  .drawer-score { font-size: 18px; }
  .drawer-body { padding: 0 12px 16px; }
  .dm-scores-grid { grid-template-columns: repeat(4,1fr); }
}

/* ═══ Quant Engine Tab ═══ */
.quant-container {
  max-width: 960px; margin: 0 auto; padding: 0 16px 60px;
}
.quant-kpis {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-bottom: 20px;
}
.quant-kpi-card {
  background: var(--surface); border-radius: 10px; padding: 14px 12px;
  text-align: center; display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border);
}
.qk-label { font-size: 10px; color: var(--text-quaternary); text-transform: uppercase; letter-spacing: .5px; }
.qk-value { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.qk-value.mono { font-family: var(--font-mono); }
.quant-section {
  background: var(--surface); border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 16px; overflow: hidden;
}
.quant-section-header {
  padding: 14px 16px; display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.quant-section-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.quant-section-sub { font-size: 11px; color: var(--text-quaternary); }
.quant-table-wrap { overflow-x: auto; }
.quant-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.quant-table th {
  padding: 10px 12px; text-align: left; font-weight: 500; color: var(--text-quaternary);
  font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.quant-table td {
  padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary); white-space: nowrap;
}
.quant-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.quant-table tbody tr:last-child td { border-bottom: none; }

/* Signal strength badges */
.sig-STRONG { color: #34d399; font-weight: 600; }
.sig-MODERATE { color: #fbbf24; font-weight: 500; }
.sig-WEAK { color: var(--text-quaternary); }
.sig-score { font-family: var(--font-mono); font-weight: 600; }
.sig-score-high { color: #34d399; }
.sig-score-mid { color: #fbbf24; }
.sig-score-low { color: var(--text-quaternary); }
.sig-action { font-size: 10px; padding: 2px 8px; border-radius: 6px; }
.sig-action.BET { background: rgba(52,211,153,0.15); color: #34d399; }
.sig-action.PASS { background: rgba(255,255,255,0.06); color: var(--text-quaternary); }
.sig-factors { font-family: var(--font-mono); font-size: 11px;}

/* Arbitrage grid */
.quant-arb-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
}
.arb-card {
  background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.arb-card-match { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.arb-card-return { font-size: 16px; font-weight: 700; color: #34d399; }
.arb-card-desc { font-size: 10px; color: var(--text-quaternary); line-height: 1.4; }
.arb-card-conf-HIGH { color: #34d399; font-size: 10px; font-weight: 500; }
.arb-card-conf-MEDIUM { color: #fbbf24; font-size: 10px; font-weight: 500; }
.arb-card-conf-LOW { color: var(--text-quaternary); font-size: 10px; }

/* Backtest grid */
.quant-bt-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border);
}
.bt-item {
  background: var(--surface); padding: 14px; text-align: center;
}
.bt-label { font-size: 10px; color: var(--text-quaternary); display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .5px; }
.bt-value { font-size: 16px; font-weight: 600; color: var(--text-primary); display: block; font-family: var(--font-mono); }
.bt-positive { color: #34d399; }
.bt-negative { color: #f87171; }

@media (max-width: 640px) {
  .quant-kpis { grid-template-columns: repeat(2,1fr); }
  .quant-arb-grid { grid-template-columns: 1fr; }
  .quant-bt-grid { grid-template-columns: repeat(2,1fr); }
}

/* ═══════ Quant v5.2 — Batch / Detail / Spinner ═══════ */

/* Spinner & Loading */
.quant-spinner {
  width: 24px; height: 24px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: qspinner .6s linear infinite; margin: 0 auto;
}
@keyframes qspinner { to { transform: rotate(360deg); } }
.quant-loading-row td { background: var(--surface); }

/* Checkbox column */
.th-cb, .td-cb { width: 32px; text-align: center; padding: 0 4px !important; }
.th-cb input, .td-cb input {
  accent-color: var(--accent); cursor: pointer;
  width: 14px; height: 14px;
}

/* Signal row — active highlight */
.quant-signal-row { cursor: pointer; }
.quant-signal-row--active td {
  background: rgba(94,106,210,0.08) !important;
  border-bottom-color: var(--accent) !important;
}

/* Detail expansion row */
.quant-detail-row td {
  padding: 0 !important; background: rgba(0,0,0,0.15);
}
.quant-detail-body {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  padding: 16px 20px;
}
.qd-col { display: flex; flex-direction: column; gap: 6px; }
.qd-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-quaternary); margin-bottom: 4px;
}
.qd-metric {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; padding: 4px 0;
}
.qd-metric span:first-child { color: var(--text-tertiary); }
.qd-metric span:last-child { color: var(--text-primary); font-weight: 600; }
.qd-metric .qd-pos { color: #34d399; }
.qd-bar { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.qd-bar span { font-size: 10px; color: var(--text-tertiary); }
.qd-track {
  height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
}
.qd-fill { height: 100%; background: #34d399; border-radius: 2px; transition: width .3s; }
.qd-fill-amber { background: #f59e0b; }
.qd-fill-blue { background: #5e6ad2; }
.qd-fill-cyan { background: #22d3ee; }
.qd-fill-purple { background: #a78bfa; }

/* Batch Trading Panel */
.quant-batch-panel {
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.quant-batch-metrics {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 8px;
}
.quant-batch-metric {
  background: rgba(94,106,210,0.06); border-radius: 8px;
  padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 2px;
  border: 1px solid rgba(94,106,210,0.12);
}
.qbm-label { font-size: 9px; color: var(--text-quaternary); text-transform: uppercase; letter-spacing: .5px; }
.qbm-value { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.qbm-value.mono { font-family: var(--font-mono); }
.quant-batch-actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.quant-batch-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary);
  cursor: pointer; transition: all .15s;
}
.quant-batch-btn:hover { background: rgba(255,255,255,0.08); }
.quant-batch-btn--primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.quant-batch-btn--primary:hover { background: var(--accent-hover); }

/* Refresh button */
.quant-refresh-btn {
  margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--text-quaternary); cursor: pointer; font-size: 14px;
  width: 28px; height: 28px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; transition: all .15s;
}
.quant-refresh-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Arb summary & enhanced cards */
.arb-summary {
  grid-column: 1/-1; padding: 10px 14px; font-size: 11px; color: var(--text-quaternary);
  background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border);
}
.arb-card-head { display: flex; justify-content: space-between; align-items: center; }
.arb-card-tag {
  font-size: 9px; padding: 1px 6px; border-radius: 4px; background: rgba(94,106,210,0.12);
  color: var(--accent); text-transform: uppercase; letter-spacing: .5px;
}
.arb-card-odds {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.arb-card-odds span {
  font-size: 9px; color: var(--text-quaternary); background: rgba(255,255,255,0.03);
  padding: 2px 6px; border-radius: 4px;
}
.arb-card--cross { border-left: 2px solid #f59e0b; }
.quant-loading-card {
  grid-column: 1/-1; padding: 30px; display: flex; justify-content: center;
}

/* Mobile */
@media (max-width: 640px) {
  .quant-detail-body { grid-template-columns: 1fr; gap: 12px; }
  .quant-batch-metrics { grid-template-columns: repeat(2,1fr); }
  .quant-signal-row .sig-factors { display: none; }
  .quant-table th:nth-child(n+6):nth-child(-n+10),
  .quant-table td:nth-child(n+6):nth-child(-n+10) { display: none; }
}

/* ═══════ Parameter Tuning Panel (v5.3) ═══════ */

.quant-tune-panel {
  margin-bottom: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  animation: fadeIn .25s ease;
}

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

.qtp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.qtp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.qtp-sub {
  font-size: 11px;
  color: var(--accent);
  background: rgba(94,106,210,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.qtp-reset {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-quaternary);
  cursor: pointer;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all .15s;
}

.qtp-reset:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.qtp-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.qtp-preset-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-quaternary);
  transition: all .15s;
}

.qtp-preset-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.qtp-preset-btn.active {
  border-color: transparent;
}

.qtp-preset-conservative.active {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border-color: #34d399;
}

.qtp-preset-balanced.active {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
  border-color: #fbbf24;
}

.qtp-preset-aggressive.active {
  background: rgba(248,113,113,0.12);
  color: #f87171;
  border-color: #f87171;
}

.qtp-sliders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

.qtp-slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qtp-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.qtp-slider-val {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
}

.qtp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.qtp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
  transition: transform .1s;
}

.qtp-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.qtp-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg-primary);
}

/* Mobile: single column */
@media (max-width: 640px) {
  .qtp-sliders { grid-template-columns: 1fr; }
}

/* ═══════ Multi-Strategy Comparison (v5.4) ═══════ */

.qt-compare-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qt-compare-header {
  border-bottom: 1px solid var(--border);
}

.qt-compare-row {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  gap: 0;
  align-items: center;
}

.qt-compare-row--header {
  padding: 0;
}

.qt-compare-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.qtc-metric-label {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}

.qtc-card {
  padding: 12px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background .15s;
}

.qtc-card:last-child { border-right: none; }

.qtc-card.qtc-best {
  background: rgba(94,106,210,0.06);
}

.qtc-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.qtc-card-params {
  font-size: 10px;
  color: var(--text-quaternary);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.qtc-cell {
  padding: 8px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.qtc-cell:last-child { border-right: none; }

.qtc-cell.qtc-best-cell {
  background: rgba(94,106,210,0.05);
}

.qtc-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  position: relative;
  z-index: 1;
}

.qtc-best-cell .qtc-val {
  color: var(--accent);
}

.qtc-bar-wrap {
  height: 2px;
  margin-top: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
  overflow: hidden;
}

.qtc-bar {
  height: 100%;
  border-radius: 1px;
  transition: width .3s ease;
}

/* Mobile */
@media (max-width: 640px) {
  .qt-compare-row {
    grid-template-columns: 80px repeat(3, 1fr);
  }
  .qtc-metric-label {
    padding: 8px 8px;
    font-size: 10px;
  }
  .qtc-cell {
    padding: 6px 6px;
  }
  .qtc-val { font-size: 10px; }
}

/* ═══════ Bet Journal (v5.5) ═══════ */

/* Real odds comparison table (v5.6) */
.dm-real-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.dm-real-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-quaternary);
  font-weight: 500;
  font-size: 10px;
}
.dm-real-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-primary);
}
.dm-real-table tr:last-child td {
  border-bottom: none;
}

.qj-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.qj-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.qjs-label {
  display: block;
  font-size: 10px;
  color: var(--text-quaternary);
  margin-bottom: 4px;
}

.qjs-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.qj-stat-card.qj-profit { border-left: 2px solid #34d399; }
.qj-stat-card.qj-loss { border-left: 2px solid #f87171; }

.qj-add-form {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.qj-form-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.qj-input, .qj-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.qj-input:focus, .qj-select:focus {
  border-color: var(--accent);
}

.qj-input { flex: 2; min-width: 140px; }
.qj-input-sm { flex: 1; min-width: 60px; }
.qj-select { flex: 1; min-width: 60px; cursor: pointer; }

.qj-add-btn {
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}

.qj-add-btn:hover { opacity: .85; }

.qj-table-wrap {
  overflow-x: auto;
}

.qj-action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 11px;
  transition: background .15s;
}

.qj-action-btn:hover { background: var(--bg-hover); }
.qj-action-del:hover { background: rgba(248,113,113,0.1); }

td.mono, .mono {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
}

.qj-profit { color: #34d399; }
.qj-loss { color: #f87171; }

.sig-strong { color: #34d399; font-weight: 600; font-size: 10px; }
.sig-moderate { color: #fbbf24; font-weight: 600; font-size: 10px; }
.sig-weak { color: var(--text-quaternary); font-size: 10px; }

/* Mobile */
@media (max-width: 640px) {
  .qj-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .qj-form-row { flex-direction: column; }
  .qj-input, .qj-input-sm, .qj-select { min-width: 100%; }
}

/* ═══════ Smart Notification System (v5.7) ═══════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: transla...[truncated]

/* ═══════ Smart Notification System (v5.7) ═══════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  max-height: 60vh;
  overflow: hidden;
}
.toast {
  background: rgba(20,22,26,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: auto;
}
.toast-visible { opacity: 1; transform: translateY(0) scale(1); }
.toast-icon { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.toast-msg { font-size: 11px; color: var(--text-tertiary); line-height: 1.4; word-break: break-word; }
.toast-ev { border-left: 3px solid #34d399; }
.toast-start { border-left: 3px solid #60a5fa; }
.toast-bell { border-left: 3px solid #fbbf24; }
.toast-settle { border-left: 3px solid #a78bfa; }
.toast-arb { border-left: 3px solid #f472b6; }
.toast-error { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid #6b7280; }

/* Notification bell */
.nav-notif {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
  position: relative;
}
.nav-notif:hover { background: rgba(255,255,255,0.06); }
.nav-notif-icon { font-size: 16px; line-height: 1; }
.nav-notif-badge {
  position: absolute;
  top: -2px;
  right: 0;
  background: #34d399;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Notification panel dropdown */
.notif-panel {
  position: fixed;
  top: 52px;
  right: 16px;
  width: 340px;
  max-height: 480px;
  background: rgba(18,20,24,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.notif-panel-header button {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}
.notif-panel-header button:hover { background: rgba(255,255,255,0.06); }
.notif-panel-body { flex: 1; overflow-y: auto; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item:last-child { border-bottom: none; }
.notif-item-icon { font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.notif-item-msg { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.notif-item-time { font-size: 10px; color: var(--text-quaternary); margin-top: 3px; }

/* ═══ Live Tab — 赛事详情 ═══ */
.live-container {
  padding: 12px 16px;
  max-width: 800px;
  margin: 0 auto;
}
.live-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.live-header-title { font-size: 15px; font-weight: 600; color: var(--text); }
.live-header-sub { font-size: 11px; color: var(--text-quaternary); }
.live-section { margin-top: 4px; }
.live-section-title {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  padding: 10px 4px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.live-card-list { display: flex; flex-direction: column; gap: 4px; }
.live-card {
  background: var(--glass-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border, var(--border));
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.15s;
}
.live-card:active { transform: scale(0.99); }
.live-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  gap: 8px;
}
.live-card-teams {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
}
.live-card-team {
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100px;
}
.live-card-score {
  font-size: 14px; font-weight: 700; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  min-width: 36px; text-align: center;
}
.live-card-colon { color: var(--text-tertiary); font-weight: 400; }
.live-card-time {
  font-size: 11px; color: var(--text-tertiary);
  white-space: nowrap;
  min-width: 50px; text-align: right;
}
.live-card-badge {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.live-card-badge--live { background: rgba(255,71,87,0.15); color: #ff4757; animation: live-pulse 2s ease-in-out infinite; }
.live-card-badge--done { background: rgba(255,255,255,0.06); color: var(--text-tertiary); }
.live-card-badge--wait { background: rgba(94,106,210,0.12); color: #5e6ad2; }
@keyframes live-pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
.live-card-arrow {
  font-size: 10px; color: var(--text-quaternary);
  transition: transform 0.15s;
  margin-left: 4px;
}
.live-card-arrow--open { transform: rotate(180deg); }

/* Drawer content */
.live-drawer {
  border-top: 1px solid var(--glass-border, var(--border));
  padding: 0 12px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.live-drawer--open { max-height: 600px; padding: 12px; overflow-y: auto; }
.live-drawer-empty {
  text-align: center; padding: 30px 10px;
  color: var(--text-quaternary); font-size: 13px;
}
.live-drawer-timeline { position: relative; padding-left: 16px; }
.live-drawer-timeline::before {
  content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 2px; background: var(--glass-border, var(--border));
}
.live-dr-entry {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 3px 0; font-size: 12px; line-height: 1.5;
}
.live-dr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px; position: relative; z-index: 1;
}
.live-dr-dot--goal { background: #2ed573; box-shadow: 0 0 4px rgba(46,213,115,0.4); }
.live-dr-dot--card { background: #ffa502; }
.live-dr-dot--event { background: var(--text-quaternary); }
.live-dr-dot--info { background: var(--accent); }
.live-dr-time { color: var(--text-tertiary); font-family: monospace; min-width: 28px; }
.live-dr-text { color: var(--text-secondary); flex: 1; }
.live-dr-text--goal { color: #2ed573; font-weight: 500; }
.live-dr-text--card { color: #ffa502; }
.live-dr-text--half { color: var(--accent); font-weight: 500; }
.live-dr-stats {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 4px 8px; padding: 8px 0;
  font-size: 11px;
}
.live-dr-stat-home { text-align: right; color: var(--text-secondary); }
.live-dr-stat-away { text-align: left; color: var(--text-secondary); }
.live-dr-stat-label { text-align: center; color: var(--text-quaternary); font-size: 10px; }
.live-dr-divider { border-bottom: 1px solid var(--glass-border, var(--border)); margin: 4px 0; }
.live-dr-formation {
  font-size: 11px; color: var(--text-tertiary);
  padding: 6px 0;
}
.live-dr-players { display: flex; gap: 16px; flex-wrap: wrap; padding: 4px 0; }
.live-dr-xi { flex: 1; min-width: 120px; }
.live-dr-xi-title { font-size: 10px; color: var(--text-quaternary); margin-bottom: 2px; }
.live-dr-xi-item { font-size: 11px; color: var(--text-secondary); padding: 1px 0; }
.live-back-bar { padding: 8px 0; text-align: center; }
.live-back-btn {
  background: none; border: 1px solid var(--glass-border, var(--border)); border-radius: 6px;
  color: var(--text-secondary); font-size: 12px; cursor: pointer;
  padding: 6px 16px; font-family: inherit;
}
.live-back-btn:hover { background: rgba(255,255,255,0.05); }
.live-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-quaternary); font-size: 13px;
}

