/* ═══════════════════════════════════════════════════════════════
   NFL Prediction Dashboard — FiveThirtyEight Dark Style
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0d1117;
  --surface:     #161b22;
  --surface2:    #1c2128;
  --border:      #30363d;
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --green:       #238636;
  --green-light: #3fb950;
  --red:         #da3633;
  --red-light:   #f85149;
  --blue:        #1f6feb;
  --blue-light:  #58a6ff;
  --yellow:      #d29922;
  --accent:      #388bfd;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1rem;    font-weight: 600; }
h4 { font-size: 0.875rem; font-weight: 600; }

.muted { color: var(--text-muted); }
.mono  { font-family: var(--mono); font-size: 0.85em; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ─────────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo h1 { font-size: 1.25rem; }
.logo p  { font-size: 0.75rem; color: var(--text-muted); }

.header-meta {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 2s infinite;
}

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

/* ── Nav tabs ───────────────────────────────────────────────── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  user-select: none;
}

.nav-tab:hover { color: var(--text); }

.nav-tab.active {
  color: var(--blue-light);
  border-bottom-color: var(--blue-light);
}

/* ── Main content ───────────────────────────────────────────── */
main { padding: 2rem 0 4rem; }

.section { display: none; }
.section.active { display: block; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.125rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

/* ── Game cards (Section 1) ─────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
  gap: 1.25rem;
}

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

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.game-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.game-meta { font-size: 0.75rem; color: var(--text-muted); }

.matchup-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.team-side.away { align-items: center; }
.team-side.home { align-items: center; }

.team-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
}

.team-name-abbrev {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.team-record { font-size: 0.75rem; color: var(--text-muted); }
.team-elo    { font-size: 0.75rem; font-family: var(--mono); color: var(--text-muted); }

.vs-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Win probability bar */
.prob-bar-section { margin-bottom: 1rem; }

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.prob-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--surface2);
  overflow: hidden;
  position: relative;
}

.prob-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* Game stats row */
.game-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
}

.stat-pill-label { color: var(--text-muted); }
.stat-pill-value { font-weight: 600; font-family: var(--mono); }

/* Edge badge */
.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--mono);
  white-space: nowrap;
}

.edge-badge.positive { background: rgba(35,134,54,0.2); color: var(--green-light); border: 1px solid rgba(35,134,54,0.4); }
.edge-badge.negative { background: rgba(218,54,51,0.2); color: var(--red-light);   border: 1px solid rgba(218,54,51,0.4); }
.edge-badge.neutral  { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }

/* Monte Carlo distribution */
.mc-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mc-cell {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.25rem;
  text-align: center;
}

.mc-cell-val {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--blue-light);
}

.mc-cell-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Model probs breakdown */
.model-probs-header {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.model-probs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.model-prob-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.68rem;
}

.model-prob-pill.agrees  { border-color: var(--blue); }
.model-prob-pill.disagrees { opacity: 0.5; }

.model-prob-label { color: var(--text-muted); margin-right: 0.1rem; }
.model-prob-team  { font-weight: 700; font-family: var(--mono); color: var(--text); }
.model-prob-val   { font-family: var(--mono); color: var(--text-muted); }

.adj-hint {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}

/* ── Section 2: Model Controls ──────────────────────────────── */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.control-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.control-card h4 { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.slider-label { color: var(--text); font-weight: 500; }
.slider-value { font-family: var(--mono); font-weight: 700; color: var(--blue-light); }

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface2);
  border-radius: 99px;
  outline: none;
  border: 1px solid var(--border);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-light);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue);
}

input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-light);
  cursor: pointer;
  border: 2px solid var(--bg);
}

.weight-total {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
}

.weight-total-val {
  font-family: var(--mono);
  font-weight: 700;
  margin-left: auto;
}

.weight-total-val.ok   { color: var(--green-light); }
.weight-total-val.warn { color: var(--yellow); }

.slider-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #7a8a9a);
  line-height: 1.4;
  margin-bottom: 0.1rem;
}

.weight-auto-note {
  font-size: 0.73rem;
  color: var(--text-muted, #7a8a9a);
  margin-top: 0.6rem;
  line-height: 1.4;
}

.btn-reset-weights {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-reset-weights:hover { background: var(--surface3, #2a3040); border-color: var(--blue); }
.btn-reset-weights:disabled { opacity: 0.55; cursor: default; }

/* ── Section 3: Matchup Predictor ───────────────────────────── */
.predictor-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .predictor-layout { grid-template-columns: 1fr; }
}

.predictor-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

select:focus { border-color: var(--blue-light); }

.btn {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: var(--accent); }

.predictor-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.predictor-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.predictor-team-logo { width: 64px; height: 64px; object-fit: contain; }
.predictor-team-name { font-size: 1.125rem; font-weight: 700; margin-top: 0.5rem; }
.predictor-prob      { font-size: 2rem; font-weight: 800; font-family: var(--mono); color: var(--blue-light); }
.predictor-prob-lbl  { font-size: 0.75rem; color: var(--text-muted); }

.predictor-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.detail-block-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.detail-block-value { font-size: 0.9rem; font-weight: 700; font-family: var(--mono); }

.explanation-box {
  margin-top: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

/* ── Section 4: Leaderboard ─────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

thead {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 0.75rem 0.875rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th:hover { color: var(--text); }
th.sorted { color: var(--blue-light); }

th .sort-icon { margin-left: 0.25rem; opacity: 0.5; font-size: 0.65rem; }
th.sorted .sort-icon { opacity: 1; color: var(--blue-light); }

td {
  padding: 0.7rem 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

tbody tr { background: var(--surface); transition: background 0.1s; }
tbody tr:hover { background: var(--surface2); }

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.team-logo-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.team-abbrev { font-weight: 700; letter-spacing: 0.03em; }
.team-full   { font-size: 0.7rem; color: var(--text-muted); }

/* ELO uncertainty band */
.elo-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.elo-value { font-weight: 700; font-family: var(--mono); }

.elo-band {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.trend-icon {
  font-size: 0.875rem;
  font-weight: 700;
}
.trend-up   { color: var(--green-light); }
.trend-down { color: var(--red-light); }
.trend-neutral { color: var(--text-muted); }

.playoff-bar {
  width: 80px;
  height: 6px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.playoff-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

/* ── Section 5: Model Performance ───────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--blue-light);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}

.metric-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-desc  { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .charts-row { grid-template-columns: 1fr; }
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.chart-container { position: relative; }

/* ── Offseason banner ───────────────────────────────────────── */
.offseason-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.offseason-banner-icon { font-size: 1.25rem; }
.offseason-banner p    { font-size: 0.875rem; color: var(--text-muted); }
.offseason-banner strong { color: var(--text); }

/* ── Loading spinner ────────────────────────────────────────── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Utilities ──────────────────────────────────────────────── */
.text-green  { color: var(--green-light); }
.text-red    { color: var(--red-light); }
.text-blue   { color: var(--blue-light); }
.text-yellow { color: var(--yellow); }
.text-mono   { font-family: var(--mono); }
.font-bold   { font-weight: 700; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: 0.25rem; }
.gap-2       { gap: 0.5rem; }
.gap-3       { gap: 0.75rem; }
.mt-1        { margin-top: 0.25rem; }
.mt-2        { margin-top: 0.5rem; }
.mt-3        { margin-top: 0.75rem; }
.mb-1        { margin-bottom: 0.25rem; }
.mb-2        { margin-bottom: 0.5rem; }
.mb-3        { margin-bottom: 0.75rem; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--mono);
}

.rank-1 { background: rgba(210,153,34,0.25); color: #d29922; }
.rank-2 { background: rgba(91,98,110,0.25);  color: #8b949e; }
.rank-3 { background: rgba(131,90,57,0.25);  color: #ce9c72; }
.rank-n { background: var(--surface2); color: var(--text-muted); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3    { color: var(--text); margin-bottom: 0.5rem; }
.empty-state p     { font-size: 0.875rem; }

/* ── League Switcher ────────────────────────────────────────── */
.league-switcher {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.league-btn {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  user-select: none;
}

.league-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.league-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ── Prediction Drivers ─────────────────────────────────────── */
.drivers-section {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.drivers-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.driver-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.driver-item::before {
  content: '•';
  flex-shrink: 0;
  margin-top: 0.05em;
}

.driver-item.positive { color: var(--green-light); }
.driver-item.negative { color: var(--red-light); }

/* ── NBA-specific stat pills ────────────────────────────────── */
.stat-pill.warn .stat-pill-label {
  color: var(--yellow);
}

.stat-pill.warn .stat-pill-value {
  color: var(--yellow);
}

/* ── Explanation box ────────────────────────────────────────── */
.explanation-box {
  margin-top: 0.875rem;
  padding: 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.explanation-box strong {
  color: var(--text);
}
.explanation-narrative {
  margin: 0 0 0.625rem;
}
.explanation-eff-panel {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}
.explanation-eff-header {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.explanation-eff-team-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.eff-team-name {
  font-weight: 600;
  color: var(--text);
  min-width: 2.5rem;
  font-size: 0.8rem;
}
.eff-stat {
  font-size: 0.775rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.eff-stat strong {
  color: var(--text);
}
.eff-rank {
  font-size: 0.65rem;
  color: var(--blue-light);
  margin-left: 0.2rem;
  opacity: 0.85;
}
.explanation-matchup-row {
  font-size: 0.775rem;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}
.explanation-matchup-row.positive {
  background: rgba(var(--green-rgb, 52,199,89), 0.08);
  color: var(--green);
}
.explanation-matchup-row.negative {
  background: rgba(var(--red-rgb, 255,59,48), 0.08);
  color: var(--red);
}
.explanation-matchup-row strong {
  color: inherit;
}

/* ── Prob bar fill color variants ───────────────────────────── */
.prob-fill.fill-green {
  background: linear-gradient(90deg, var(--green), var(--green-light)) !important;
}

.prob-fill.fill-red {
  background: linear-gradient(90deg, var(--red), var(--red-light)) !important;
}

/* ═══════════════════════════════════════════════════════════════
   GAME HEADER — right side with Adjust button
   ═══════════════════════════════════════════════════════════════ */
.game-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.adj-toggle-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font);
}
.adj-toggle-btn:hover { background: var(--border); color: var(--text); }
.adj-toggle-btn.active { background: var(--blue); border-color: var(--blue-light); color: #fff; }

.adj-badge {
  background: var(--yellow);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   GAME CONTEXT SECTION (rest, streak, travel, timezone)
   ═══════════════════════════════════════════════════════════════ */
.context-stats {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.stat-pill.streak-hot {
  border-color: rgba(63, 185, 80, 0.4);
  background: rgba(63, 185, 80, 0.08);
}
.stat-pill.streak-hot .stat-pill-value { color: var(--green-light); }

.stat-pill.streak-cold {
  border-color: rgba(88, 166, 255, 0.4);
  background: rgba(88, 166, 255, 0.08);
}
.stat-pill.streak-cold .stat-pill-value { color: var(--blue-light); }

/* ═══════════════════════════════════════════════════════════════
   INJURY PANEL
   ═══════════════════════════════════════════════════════════════ */
.injury-panel {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.inj-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: var(--font);
  transition: color 0.15s;
}
.inj-toggle-btn:hover { color: var(--text); }

.inj-content {
  margin-top: 0.6rem;
}
.inj-content.hidden { display: none; }

.inj-key-out {
  font-size: 0.75rem;
  color: var(--red-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.inj-team-section {
  margin-bottom: 0.6rem;
}

.inj-team-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inj-elo-penalty {
  background: rgba(218, 54, 51, 0.15);
  color: var(--red-light);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-family: var(--mono);
}

.inj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.injury-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}
.injury-chip.out {
  border-color: rgba(218, 54, 51, 0.5);
  background: rgba(218, 54, 51, 0.1);
  color: var(--red-light);
}
.injury-chip.doubtful {
  border-color: rgba(210, 153, 34, 0.5);
  background: rgba(210, 153, 34, 0.1);
  color: var(--yellow);
}
.injury-chip.questionable {
  border-color: rgba(210, 153, 34, 0.25);
  background: rgba(210, 153, 34, 0.05);
  color: var(--yellow);
  opacity: 0.85;
}
.inj-pos {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.1rem;
}
.inj-status {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
}
/* Player value tier badges */
.inj-tier-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.08rem 0.28rem;
  border-radius: 3px;
  margin-right: 0.18rem;
  vertical-align: middle;
}
.tier-superstar {
  background: rgba(255, 200, 0, 0.2);
  color: #f5c400;
  border: 1px solid rgba(255, 200, 0, 0.35);
}
.tier-allstar {
  background: rgba(80, 150, 255, 0.18);
  color: #6aadff;
  border: 1px solid rgba(80, 150, 255, 0.35);
}
.tier-backup {
  background: rgba(150, 150, 150, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(150, 150, 150, 0.25);
}
.tier-rotation {
  background: rgba(130, 130, 130, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(130, 130, 130, 0.2);
}
.tier-starter {
  background: rgba(160, 160, 160, 0.10);
  color: #888;
  border: 1px solid rgba(160, 160, 160, 0.20);
}

/* Always-visible injury tier summary box */
.inj-tier-box {
  background: rgba(255, 60, 60, 0.05);
  border: 1px solid rgba(255, 60, 60, 0.18);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  margin: 0.4rem 0 0.3rem 0;
  font-size: 0.78rem;
}
.inj-tier-box-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.inj-tier-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.12rem 0;
  color: var(--text-secondary);
}
.inj-tier-row .inj-player-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inj-tier-row .inj-tier-status {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.inj-tier-elo {
  margin-left: auto;
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}
.inj-tier-total {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--text-primary);
}
.inj-tier-total .inj-tier-total-elo {
  color: #ff6b6b;
}
.inj-stack-note {
  font-size: 0.67rem;
  color: #f5c400;
  margin-top: 0.2rem;
}
.inj-tier-team-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0.35rem 0 0.1rem 0;
}
.inj-tier-team-label:first-of-type {
  margin-top: 0;
}

/* Prediction driver tier highlights */
.driver-item.superstar-injury { color: #f5c400; font-weight: 600; }
.driver-item.allstar-injury   { color: #6aadff; }
.driver-item.stack-bonus      { color: #f5c400; font-style: italic; font-size: 0.78rem; }

/* ═══════════════════════════════════════════════════════════════
   PER-GAME ADJUSTMENT PANEL
   ═══════════════════════════════════════════════════════════════ */
.adjust-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.adjust-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adj-reset-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
}
.adj-reset-btn:hover { background: var(--border); color: var(--text); }

.adjust-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adjust-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.adjust-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.adjust-row-label label {
  font-weight: 500;
  color: var(--text);
  text-align: center;
  flex: 1;
}
.adj-val {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--blue-light);
  font-size: 0.8rem;
}

.adj-slider {
  width: 100%;
  height: 4px;
  accent-color: var(--blue-light);
  cursor: pointer;
}

.adj-result {
  margin-top: 0.75rem;
  min-height: 1.5rem;
}

.adj-result-row {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
}
.adj-result-row strong { color: var(--blue-light); }

/* ═══════════════════════════════════════════════════════════════
   PREDICTION LOG TAB
   ═══════════════════════════════════════════════════════════════ */
.log-league-section h3.log-league-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.log-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.accuracy-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.acc-stat {
  flex: 1;
  min-width: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
}
.acc-stat.good { border-color: rgba(63, 185, 80, 0.4); background: rgba(63, 185, 80, 0.06); }
.acc-stat.bad  { border-color: rgba(218, 54, 51, 0.4); background: rgba(218, 54, 51, 0.06); }

.acc-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1.2;
}
.acc-stat.good .acc-stat-val { color: var(--green-light); }
.acc-stat.bad  .acc-stat-val { color: var(--red-light); }

.acc-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.tier-breakdown {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tier-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  min-width: 100px;
}
.tier-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.tier-val {
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text);
}

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

.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.log-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.log-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.log-table tr:hover td { background: var(--surface2); }
.log-table tr:last-child td { border-bottom: none; }

.log-date { color: var(--text-muted); font-size: 0.78rem; }
.log-matchup { font-weight: 500; }
.log-pick { font-weight: 700; font-family: var(--mono); }
.log-pick.home-pick { color: var(--blue-light); }
.log-pick.away-pick { color: var(--blue-light); }
.log-conf { font-family: var(--mono); color: var(--text-muted); }

.log-correct   { color: var(--green-light); font-weight: 700; }
.log-incorrect { color: var(--red-light); font-weight: 700; }
.log-pending   { color: var(--text-muted); font-style: italic; }

.log-postmortem-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.65rem;
  padding: 0 0.25rem;
  margin-left: 0.35rem;
  opacity: 0.6;
  transition: opacity 0.15s, transform 0.2s;
  vertical-align: middle;
}
.log-postmortem-btn:hover { opacity: 1; }
.log-postmortem-btn.open { transform: rotate(180deg); opacity: 1; }

.log-postmortem-text {
  padding: 0.625rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.25rem 0 0.5rem;
}
/* ── Rich post-mortem panel ─── */
.pm-content { font-size: 0.8rem; }
.pm-score-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.pm-margin {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}
.pm-narrative {
  margin-bottom: 0.5rem;
}
.pm-narrative-line {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.3rem;
}
.pm-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0.5rem 0 0.25rem;
  opacity: 0.7;
}
.pm-eff-table { margin-bottom: 0.4rem; }
.pm-eff-row {
  display: grid;
  grid-template-columns: 6rem repeat(3, 1fr);
  gap: 0.25rem;
  font-size: 0.775rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.pm-eff-row:last-child { border-bottom: none; }
.pm-eff-header { font-size: 0.65rem; opacity: 0.6; }
.pm-winner-row { color: var(--text); font-weight: 500; }
.pm-model-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.pm-vote {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  font-weight: 500;
}
.pm-vote-correct {
  background: rgba(52,199,89,0.15);
  color: var(--green);
  border: 1px solid rgba(52,199,89,0.25);
}
.pm-vote-wrong {
  background: rgba(255,59,48,0.12);
  color: var(--red);
  border: 1px solid rgba(255,59,48,0.2);
}
.pm-vote-summary {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.pm-reason {
  font-style: italic;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.btn-clear-log {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-clear-log:hover {
  background: rgba(218, 54, 51, 0.1);
  border-color: var(--red-light);
  color: var(--red-light);
}
.log-league-btn {
  padding: 0.3rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.log-league-btn:hover { color: var(--text); border-color: var(--accent); }
.log-league-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════
   SCORE DISPLAY
   ═══════════════════════════════════════════════════════════════ */
.score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
}
.score-final {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.score-live {
  background: rgba(218, 54, 51, 0.08);
  border: 1px solid rgba(218, 54, 51, 0.4);
}
.score-away, .score-home {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.score-winner {
  color: var(--text);
  font-size: 1rem;
}
.score-winner strong {
  font-size: 1.25rem;
  color: var(--blue-light);
}
.score-sep {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red-light);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.text-live { color: var(--red-light); font-weight: 700; font-size: 0.75rem; }
.live-clock {
  font-variant-numeric: tabular-nums;
  color: var(--red-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* Live polling indicator on Refresh button */
.live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red-light);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   KEY FACTORS STRIP
   ═══════════════════════════════════════════════════════════════ */
.key-factors-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0.5rem 0;
  font-size: 0.78rem;
}
.kf-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.kf-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kf-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin: 0 0.1rem;
}
.kf-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  font-size: 0.78rem;
}
.kf-good { color: var(--green-light); }
.kf-bad  { color: var(--red-light); }
.kf-warn { color: var(--yellow); }

/* ═══════════════════════════════════════════════════════════════
   FUTURE GAME STYLES
   ═══════════════════════════════════════════════════════════════ */
.game-card-future {
  border-left: 3px solid var(--blue);
  opacity: 0.92;
}
.future-badge {
  background: rgba(31, 111, 235, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(31, 111, 235, 0.3);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   INJURY PANEL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */
.inj-none {
  font-size: 0.8125rem;
  color: var(--green-light);
  padding: 0.35rem 0;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   ADJUSTMENT PANEL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */
.adj-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}
.adj-notes-wrap {
  margin-top: 0.75rem;
}
.adj-notes-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.adj-notes-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8125rem;
  font-family: var(--font);
  padding: 0.5rem 0.75rem;
  resize: vertical;
  transition: border-color 0.15s;
}
.adj-notes-input:focus {
  outline: none;
  border-color: var(--blue);
}
.adj-notes-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   SEASON RECORD BANNER & STREAK DOTS
   ═══════════════════════════════════════════════════════════════ */
.season-record-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.record-good  { border-color: rgba(63, 185, 80, 0.4); background: rgba(63, 185, 80, 0.06); }
.record-bad   { border-color: rgba(218, 54, 51, 0.4);  background: rgba(218, 54, 51, 0.06); }
.record-neutral { border-color: var(--border); background: rgba(255,255,255,0.02); }

.season-record-main {
  font-size: 1rem;
  font-weight: 600;
}
.record-good  .season-record-main { color: var(--green-light); }
.record-bad   .season-record-main { color: var(--red-light); }
.record-neutral .season-record-main { color: var(--text); }

.season-acc {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}
.streak-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.streak-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 0.1rem;
}
.streak-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: default;
}
.streak-w { background: rgba(63, 185, 80, 0.2); color: var(--green-light); border: 1px solid rgba(63, 185, 80, 0.35); }
.streak-l { background: rgba(218, 54, 51, 0.15); color: var(--red-light);   border: 1px solid rgba(218, 54, 51, 0.3); }

/* ── Streak badges on team cards ──────────────────────────────── */
.streak-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 3px;
  letter-spacing: 0.02em;
}
.streak-badge.streak-w { background: rgba(63, 185, 80, 0.2); color: var(--green-light); border: 1px solid rgba(63, 185, 80, 0.35); }
.streak-badge.streak-l { background: rgba(218, 54, 51, 0.15); color: var(--red-light); border: 1px solid rgba(218, 54, 51, 0.3); }

/* ── H2H strip ────────────────────────────────────────────────── */
.h2h-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin: 0.5rem 0;
  font-size: 0.78rem;
  flex-wrap: wrap;
}
.h2h-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.h2h-leader {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
}
.h2h-record {
  font-weight: 600;
  color: var(--text-primary);
}
.h2h-sep { color: var(--text-muted); }
.h2h-sub { font-size: 0.7rem; color: var(--text-muted); }
.h2h-dots-label { font-size: 0.7rem; color: var(--text-muted); }
.h2h-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: default;
}
.h2h-dot-home { background: var(--blue); }
.h2h-dot-away { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); }

/* ── Game filter pills ─────────────────────────────────────────── */
.game-filter-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.filter-pill:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}

/* ── Per-model accuracy grid ──────────────────────────────────── */
.model-accuracy-section {
  margin: 1rem 0;
}
.model-accuracy-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.model-accuracy-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.model-acc-cell {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  text-align: center;
  min-width: 68px;
}
.model-acc-cell.good { border-color: rgba(63,185,80,0.3); background: rgba(63,185,80,0.08); }
.model-acc-cell.bad  { border-color: rgba(218,54,51,0.3);  background: rgba(218,54,51,0.06); }
.model-acc-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.model-acc-cell.good .model-acc-val { color: var(--green-light); }
.model-acc-cell.bad  .model-acc-val { color: var(--red-light); }
.model-acc-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}
.model-acc-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── Kalshi Odds Tab ─────────────────────────────────────────── */
.kalshi-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.kalshi-table { width: 100%; border-collapse: collapse; }
.kalshi-table th,
.kalshi-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.kalshi-table th {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--card-bg);
}
.kalshi-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.num-cell { text-align: right; font-family: var(--font-mono); }
.mismatch-high { color: #f97316; font-weight: 700; }
.mismatch-mid  { color: #eab308; font-weight: 600; }
.mismatch-low  { color: var(--text-secondary); }
.edge-model  { color: var(--green-light); font-size: 0.8rem; font-weight: 500; }
.edge-market { color: #60a5fa; font-size: 0.8rem; font-weight: 500; }
.game-matchup { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }
.kalshi-link { color: var(--accent); text-decoration: none; font-size: 0.78rem; font-family: var(--font-mono); }
.kalshi-link:hover { text-decoration: underline; }
.kalshi-volume { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.4rem; }
.kalshi-market-cell { font-size: 0.8rem; }
