﻿/* Sports Selector Styling */
.sports-selector {
  display: flex;
  gap: 0.5rem;
}

.sports-selector-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sports-selector-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.sports-selector-btn.active {
  background: rgba(99, 102, 241, 0.9);
  border-color: rgb(99, 102, 241);
  color: white;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.sports-selector-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
}

@media (max-width: 768px) {
  .sports-selector-btn {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }
}

/* Tool Selector Styling (NBA-specific tools) */
.tool-selector {
  display: flex;
  gap: 0.5rem;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.tool-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: white;
  transform: translateY(-1px);
}

.tool-btn--active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.6);
  color: white;
}

.tool-btn--active svg {
  stroke: #22c55e;
}

.vendor-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

.vendor-toggle-btn {
  padding: 0.3rem 0.85rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.vendor-toggle-btn + .vendor-toggle-btn {
  border-left: 1.5px solid rgba(59, 130, 246, 0.25);
}

.vendor-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: white;
}

.vendor-toggle-btn--active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-weight: 600;
}

#dfsRankingBtn:hover svg {
  stroke: #fbbf24;
  transition: stroke 0.2s ease;
}

#streakBoardBtn:hover svg {
  stroke: #f97316;
  transition: stroke 0.2s ease;
}

.tool-btn svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

@media (max-width: 768px) {
  .tool-btn {
    padding: 0.35rem 0.5rem;
  }
}

/* ========================================
   NCAAB-specific styles
   ======================================== */

/* Conference badges */
.ncaab-game .conference-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-radius: 3px;
  margin-left: 0.5rem;
}

.ncaab-game .conference-badge.major-conference {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Tournament rounds */
.ncaab-game .tournament-round {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-radius: 3px;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

/* Neutral site indicator */
.ncaab-game .neutral-site-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border-radius: 50%;
  margin-left: 0.25rem;
}

/* Team record */
.ncaab-game .team-record {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

/* Broadcast information */
.ncaab-game .broadcast-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.8;
  padding: 0.25rem 0.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

/* Player class year badge (top-right corner) */
.ncaab-player .class-year-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Player class year text */
.ncaab-player .player-class-year {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Player school name */
.ncaab-player .player-school {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Mini class year badge (inline) */
.ncaab-row .class-year-mini {
  display: inline-block;
  padding: 1px 4px;
  font-size: 0.65rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-radius: 2px;
  margin-left: 0.25rem;
  font-weight: 600;
}

/* Light theme overrides for NCAAB styles */
[data-theme="light"] .ncaab-game .conference-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}

[data-theme="light"] .ncaab-game .conference-badge.major-conference {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .ncaab-game .tournament-round {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

[data-theme="light"] .ncaab-game .neutral-site-badge {
  background: rgba(156, 163, 175, 0.3);
  color: #6b7280;
}

[data-theme="light"] .ncaab-row .class-year-mini {
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}

/* ========================================
   MLB-specific styles
   ======================================== */

/* Venue name in game header */
.mlb-game .game-venue {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Team record inline with team name */
.mlb-game .team-record {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

/* Linescore row (H / E) shown on final games */
.mlb-linescore {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.3rem 0.5rem 0.1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.4rem;
}

.mlb-linescore .linescore-item {
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* Live inning indicator — green pulse matches NBA "live" treatment */
.mlb-game .status-live {
  color: #22c55e;
  font-weight: 700;
}

/* Light theme overrides for MLB styles */
[data-theme="light"] .mlb-game .game-venue {
  opacity: 0.5;
}

[data-theme="light"] .mlb-game .team-record {
  opacity: 0.6;
}

[data-theme="light"] .mlb-linescore .linescore-item {
  opacity: 0.6;
}

/* Responsive scaling and alignment for muted small text next to logo */
@media (max-width: 768px) {
  .muted.small.text-end {
    font-size: 0.85em;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0.75rem auto 0 auto;
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
  }
  .muted.small.text-end .form-check.form-switch {
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }
}
/* Theme Management */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0b1220;
  --bg-secondary: #21262d;
  --bg-tertiary: #30363d;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: rgba(99, 102, 241, 0.9);
  --bg-overlay: rgba(255, 255, 255, 0.08);
  --bg-subtle: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: rgba(0, 0, 0, 0.9);
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.6);
  --border-color: rgba(0, 0, 0, 0.15);
  --accent-color: rgba(99, 102, 241, 0.9);
  --bg-overlay: rgba(0, 0, 0, 0.08);
  --bg-subtle: rgba(0, 0, 0, 0.04);
}

/* Rate Usage Progress Bar */
.rate-usage-container {
  margin-top: 0.25rem;
}

.rate-usage-bar {
  position: relative;
  width: 200px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: auto;
}

[data-theme="light"] .rate-usage-bar {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.rate-usage-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.5s ease;
  border-radius: 3px;
}

/* Color states based on percentage */
.rate-usage-fill[data-status="green"] {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.rate-usage-fill[data-status="yellow"] {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.rate-usage-fill[data-status="red"] {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.rate-usage-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  z-index: 1;
}

[data-theme="light"] .rate-usage-label {
  color: rgba(0, 0, 0, 0.85);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  #devInfo {
    width: 100%;
  }
  
  .rate-usage-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .rate-usage-bar {
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto 0 auto;
    height: 28px; /* Slightly taller on mobile for better touch target */
  }
  
  .rate-usage-label {
    font-size: 0.7rem; /* Slightly larger on mobile */
  }
}

/* Theme toggle icons */
.theme-icon {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.9);
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.theme-icon:hover {
  transform: scale(1.1);
}

/* Header positioning - keep it below modals */
.container-fluid > .d-flex.align-items-center.justify-content-between {
  position: relative;
  z-index: 1;
}

.form-check.form-switch,
#themeToggle,
#themeLabel,
.theme-icon {
  position: relative;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto !important;
}

/* When modal is open, ensure theme toggle can be reached */
body.modal-open #themeToggle,
body.modal-open #themeLabel,
body.modal-open .theme-icon {
  z-index: 1;
}

/* Sun icon in light mode - use golden/orange color */
[data-theme="light"] .theme-icon {
  stroke: #f59e0b;
}

    html, body {
      height: 100%;
    }

    body {
      position: relative;
      background: var(--bg-primary); /* Use theme variable */
      color: var(--text-primary);
      font-size: 0.9375rem;
      min-height: 100vh;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Ensure page content stays below modals */
    body.modal-open > .container-fluid {
      position: relative;
      z-index: 1;
    }

    /* Gradient background layer */
    body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    /* Backpack-style soft gradient */
    background:
        radial-gradient(1200px 600px at 10% 10%, rgba(99,102,241,0.25), transparent 60%),
        radial-gradient(900px 500px at 90% 20%, rgba(236,72,153,0.20), transparent 60%),
        radial-gradient(800px 500px at 50% 90%, rgba(14,165,233,0.20), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0b1220 100%);
    }

    .card {
        background: #0f1a2d;
        border: 1px solid rgba(255,255,255,.08);
      }

    /* Make cards fill available height inside grid cells */
    .h-fill {
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .h-fill .card-body {
      flex: 1 1 auto;
      overflow-x: hidden;
      overflow-y: auto;
    }
    /* Ensure bootstrap h-100 cards also stretch and their body scrolls */
    .card.h-100 {
      display: flex;
      flex-direction: column;
    }
    .card.h-100 .card-body {
      flex: 1 1 auto;
      overflow-x: hidden;
      overflow-y: auto;
    }

    /* Prevent nested horizontal scrollbars inside cards (tables/lists). */
    .card-body {
      overflow-x: hidden;
    }

    /* Let tables fit the card width without creating inner horizontal scrollbars. */
    .table-responsive {
      overflow-x: hidden;
    }

    /* Allow long player names to truncate rather than forcing horizontal scrolling. */
    #boards table td, #boards table th {
      white-space: nowrap;
    }
    #boards table td:nth-child(2),
    #boards table th:nth-child(2) {
      max-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Sparkline SVG in leaderboard rows */
    .spark { color: rgba(99, 102, 241, 0.8); display: block; }
    .spark-cell { width: 52px; padding: 0 4px !important; }
    .spark-th { opacity: 0.6; font-size: 0.7rem; }

    .card-header {
      border-bottom: 1px solid rgba(255,255,255,.08);
      font-size: 0.875rem;
    }

    .card-header > div:first-child {
      color: #ffffff;
    }

    [data-theme="light"] .card-header .muted {
      color: rgba(0, 0, 0, 0.6) !important;
    }

    /* Light mode: table and card body text */
    [data-theme="light"] .table {
      --bs-table-bg: var(--bg-secondary) !important;
      --bs-table-color: var(--text-primary) !important;
      --bs-table-border-color: var(--border-color) !important;
      --bs-table-striped-bg: var(--bg-tertiary) !important;
      --bs-table-hover-bg: var(--bg-tertiary) !important;
      color: var(--text-primary) !important;
    }

    [data-theme="light"] .table td,
    [data-theme="light"] .table th {
      color: var(--text-primary) !important;
    }

    /* Light mode: injury status pills */
    [data-theme="light"] .injury-status {
      color: rgba(0, 0, 0, 0.85) !important;
      border-color: rgba(0, 0, 0, 0.2) !important;
    }

    [data-theme="light"] .injury-status.out-for-season {
      background: rgba(127, 29, 29, 0.35);
      color: rgba(0, 0, 0, 0.85) !important;
    }

    [data-theme="light"] .injury-status.out {
      background: rgba(239, 68, 68, 0.35);
      color: rgba(0, 0, 0, 0.85) !important;
    }

    [data-theme="light"] .injury-status.doubtful {
      background: rgba(194, 65, 12, 0.35);
      color: rgba(0, 0, 0, 0.85) !important;
    }

    [data-theme="light"] .injury-status.questionable {
      background: rgba(245, 158, 11, 0.35);
      color: rgba(0, 0, 0, 0.85) !important;
    }

    [data-theme="light"] .injury-status.probable {
      background: rgba(21, 128, 61, 0.35);
      color: rgba(0, 0, 0, 0.85) !important;
    }

    [data-theme="light"] .injury-status.dtd {
      background: rgba(59, 130, 246, 0.25);
      color: rgba(0, 0, 0, 0.85) !important;
    }

    /* Play-by-play modal quarter scores table */
    #playsQuarterScores {
      color: rgba(255,255,255,.85);
    }

    #playsQuarterScores table {
      border-collapse: collapse;
    }

    #playsQuarterScores thead tr {
      border-bottom: 1px solid rgba(255,255,255,.15);
    }

    #playsQuarterScores th,
    #playsQuarterScores td {
      padding: 2px 8px;
    }

    #playsQuarterScores th {
      font-weight: 600;
    }

    /* Light mode: quarter scores table */
    [data-theme="light"] #playsQuarterScores {
      color: rgba(0,0,0,.85);
    }

    [data-theme="light"] #playsQuarterScores thead tr {
      border-bottom: 1px solid rgba(0,0,0,.15);
    }

    /* ── MLB Play-by-Play ─────────────────────────────────────────────────────── */

    /* Half-inning section */
    .mlb-half-inning { margin-bottom: 1.25rem; }

    .mlb-half-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.3rem 0.75rem;
      border-radius: 6px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    .mlb-half-top {
      background: rgba(99, 102, 241, 0.12);
      border-left: 3px solid rgba(99, 102, 241, 0.7);
      color: rgba(165, 168, 255, 0.95);
    }
    .mlb-half-bot {
      background: rgba(251, 146, 60, 0.1);
      border-left: 3px solid rgba(251, 146, 60, 0.65);
      color: rgba(253, 186, 116, 0.95);
    }
    .mlb-half-arrow { font-size: 0.75rem; }
    .mlb-half-team  { opacity: 0.85; }

    /* Individual play row */
    .mlb-play-row {
      display: flex;
      align-items: baseline;
      gap: 0.6rem;
      padding: 0.45rem 0.6rem;
      border-radius: 6px;
      border: 1px solid transparent;
      margin-bottom: 0.25rem;
      background: rgba(255,255,255,0.025);
      transition: background 0.15s;
    }
    .mlb-play-row.mlb-play-scoring {
      background: rgba(34, 197, 94, 0.08);
      border-color: rgba(34, 197, 94, 0.22);
    }

    /* Outcome badge (HR / 1B / K / OUT etc.) */
    .mlb-outcome-badge {
      flex-shrink: 0;
      display: inline-block;
      min-width: 2.2rem;
      padding: 0.1rem 0.35rem;
      border-radius: 4px;
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-align: center;
      text-transform: uppercase;
    }
    .mlb-outcome-hr      { background: rgba(250, 204,  21, 0.18); color: rgba(253, 224,  71, 1); }
    .mlb-outcome-hit     { background: rgba( 34, 197,  94, 0.15); color: rgba( 74, 222, 128, 1); }
    .mlb-outcome-out     { background: rgba(239,  68,  68, 0.13); color: rgba(252, 165, 165, 1); }
    .mlb-outcome-k       { background: rgba(168,  85, 247, 0.15); color: rgba(216, 180, 254, 1); }
    .mlb-outcome-walk    { background: rgba( 56, 189, 248, 0.13); color: rgba(125, 211, 252, 1); }
    .mlb-outcome-err     { background: rgba(251, 146,  60, 0.13); color: rgba(253, 186, 116, 1); }
    .mlb-outcome-neutral { background: transparent; color: rgba(255,255,255,0.2); min-width: 0; padding: 0; }

    /* Play description */
    .mlb-play-desc {
      flex: 1;
      font-size: 0.82rem;
      color: rgba(255,255,255,0.85);
      line-height: 1.35;
    }
    .mlb-play-row.mlb-play-scoring .mlb-play-desc {
      color: rgba(134, 239, 172, 0.95);
      font-weight: 500;
    }

    /* Right-side outs + score */
    .mlb-play-meta-right {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-left: auto;
    }
    .mlb-play-outs {
      font-size: 0.68rem;
      color: rgba(255,255,255,0.35);
      white-space: nowrap;
    }
    .mlb-play-score-tag {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 0.1rem 0.4rem;
      border-radius: 4px;
      background: rgba(34, 197, 94, 0.18);
      color: rgba(74, 222, 128, 1);
      white-space: nowrap;
    }

    .mlb-play-empty {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.3);
      padding: 0.3rem 0.6rem;
    }

    /* Linescore table */
    #playsInningScores table {
      border-collapse: collapse;
      font-size: 0.75rem;
    }
    #playsInningScores thead tr {
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    #playsInningScores th {
      font-weight: 600;
      color: rgba(255,255,255,0.45);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    #playsInningScores th,
    #playsInningScores td {
      padding: 3px 7px;
      text-align: center;
    }
    #playsInningScores td:first-child,
    #playsInningScores th:first-child { text-align: left; }
    .linescore-inn {
      min-width: 1.6rem;
      color: rgba(255,255,255,0.75);
    }
    .linescore-final {
      font-weight: 700;
      color: rgba(255,255,255,0.95);
      border-left: 1px solid rgba(255,255,255,0.12);
      padding-left: 10px !important;
      min-width: 2rem;
    }

    /* Light mode overrides */
    [data-theme="light"] .mlb-half-top  { background: rgba(99,102,241,0.08); border-left-color: rgba(99,102,241,0.5); color: rgba(67,56,202,1); }
    [data-theme="light"] .mlb-half-bot  { background: rgba(234,88,12,0.07); border-left-color: rgba(234,88,12,0.4); color: rgba(194,65,12,1); }
    [data-theme="light"] .mlb-play-row  { background: rgba(0,0,0,0.02); }
    [data-theme="light"] .mlb-play-row.mlb-play-scoring { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.2); }
    [data-theme="light"] .mlb-play-desc { color: rgba(0,0,0,0.8); }
    [data-theme="light"] .mlb-play-row.mlb-play-scoring .mlb-play-desc { color: rgba(22,101,52,1); }
    [data-theme="light"] .mlb-play-outs { color: rgba(0,0,0,0.35); }
    [data-theme="light"] #playsInningScores th { color: rgba(0,0,0,0.45); }
    [data-theme="light"] .linescore-inn  { color: rgba(0,0,0,0.75); }
    [data-theme="light"] .linescore-final { color: rgba(0,0,0,0.9); border-left-color: rgba(0,0,0,0.12); }

    .muted {
      color: rgba(255,255,255,.65);
      font-size: 0.8125rem;
    }

    .table {
      --bs-table-bg: #0f1a2d;
      --bs-table-striped-bg: rgba(255,255,255,.03);
      --bs-table-hover-bg: rgba(255,255,255,.05);
      --bs-table-color: rgba(255,255,255,.92);
      --bs-table-border-color: rgba(255,255,255,.08);
      font-size: 0.875rem;
    }
    
    .table tbody {
      transition: opacity 0.15s ease;
    }

      /* Season leaders: progressively smaller typography by rank.
         Rank 1 stays at the default table font-size. */
      .leaders-season .leader-text {
        line-height: 1.05;
      }
      .leaders-season tr.leader-rank-2 .leader-text { font-size: 0.95em; }
      .leaders-season tr.leader-rank-3 .leader-text { font-size: 0.90em; }
      .leaders-season tr.leader-rank-rest .leader-text { font-size: 0.85em; }

    /* Highlight players from selected game teams */
    tr.selected-team-player {
      background: rgba(99, 102, 241, 0.1) !important;
      border-left: 3px solid rgba(99, 102, 241, 0.6);
      transition: background 0.3s ease, border-left 0.3s ease;
    }
    
    tr.selected-team-player:hover {
      background: rgba(99, 102, 241, 0.15) !important;
    }

    /* Small toggle styling */
    .form-switch {
      padding-left: 2.25rem;
    }
    .form-switch .form-check-input {
      width: 34px;
      height: 16px;
      margin-top: 0;
      cursor: pointer;
    }

    /* Override Bootstrap's default blue for ALL form-check-input checked states */
    .form-check-input:checked {
      background-color: rgba(99, 102, 241, 0.9) !important;
      border-color: rgb(99, 102, 241) !important;
    }
    
    /* Override Bootstrap's default blue for ALL form-check-input focus states */
    .form-check-input:focus {
      border-color: rgb(99, 102, 241) !important;
      box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
    }

    /* Header toggles: keep switches + labels vertically centered. */
    .board-toggles {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .board-toggles .form-check.form-switch {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding-left: 0; /* avoid Bootstrap's default left padding since we use flex */
      margin-bottom: 0;
    }
    .board-toggles .form-check-input {
      margin-left: 0;
      margin-top: 0;
    }
    .board-toggles .form-check-label {
      margin-bottom: 0;
      line-height: 1;
    }
    /* Season sub-toggle matches toggle-with-label sizing */
    .board-toggles .mini-switch .form-check-input {
      width: 70px;
      height: 32px;
    }
    
    /* Mini-switch checked state with indigo theme */
    .board-toggles .mini-switch .form-check-input:checked {
      background-color: rgba(99, 102, 241, 0.9) !important;
      border-color: rgb(99, 102, 241) !important;
      box-shadow: 0 0 15px rgba(99, 102, 241, 0.5) !important;
    }
    
    /* Card header two-row layout */
    .board-title-row {
      text-align: center;
      margin-bottom: 0.75rem;
    }
    
    .board-toggles-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .mode-label {
      font-size: 0.75rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    /* Label inside toggle switch */
    .toggle-with-label {
      position: relative !important;
      display: inline-block !important;
      min-width: 70px;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .toggle-label-inside {
      position: absolute !important;
      left: 0 !important;
      right: 0 !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      font-size: 0.688rem !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      pointer-events: none !important;
      z-index: 2 !important;
      color: #ffffff !important;
      text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
      margin: 0 !important;
      line-height: 1 !important;
      text-align: center !important;
      white-space: nowrap !important;
      text-transform: uppercase !important;
      width: 70px !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    
    .toggle-with-label .form-check-input {
      width: 70px !important;
      height: 32px !important;
      cursor: pointer !important;
      background-color: #6c757d !important;
      background-image: none !important;
      margin: 0 !important;
      position: relative !important;
    }
    
    .toggle-with-label .form-check-input:checked {
      background: rgba(99, 102, 241, 0.9) !important;
      background-image: none !important;
      border-color: rgb(99, 102, 241) !important;
      color: white !important;
      box-shadow: 0 0 15px rgba(99, 102, 241, 0.5) !important;
    }
    
    .toggle-with-label .form-check-input:focus {
      box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
    }

    /* Smaller toggles for card headers (season/today and plays toggles) */
    .card-header .toggle-with-label {
      min-width: 80px;
    }
    
    .card-header .toggle-label-inside {
      width: 80px !important;
      font-size: calc(0.688rem - 2px) !important;
      text-align: center !important;
    }
    
    .card-header .toggle-with-label .form-check-input {
      width: 80px !important;
      background-image: none !important;
    }

    /* Board visibility toggles should be 70px wide and 28px tall */
    .card-header .board-visibility-toggle.form-check-input {
      width: 70px !important;
      height: 28px !important;
    }
    
    .card-header .toggle-with-label:has(.board-visibility-toggle) {
      min-width: 70px;
    }
    
    .card-header .toggle-with-label:has(.board-visibility-toggle) .toggle-label-inside {
      width: 70px !important;
      font-size: 0.455rem !important;
    }

    /* Key suspects table header styling */
    .table thead th {
      font-size: calc(0.875rem - 2px);
    }

    /* Same sizing as .mode-label, but preserves original casing. */
    .mode-label-size {
      font-size: 0.75rem;
      letter-spacing: 0.02em;
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    .board-title {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      line-height: 1;
    }

    /* Apply theme variables to major components */
    .card {
      background-color: var(--bg-secondary) !important;
      border-color: var(--border-color) !important;
    }

    .card-header {
      background-color: var(--bg-tertiary) !important;
      border-color: var(--border-color) !important;
      color: var(--text-primary) !important;
    }

    .table-dark {
      --bs-table-bg: var(--bg-secondary) !important;
      --bs-table-color: var(--text-primary) !important;
      --bs-table-border-color: var(--border-color) !important;
      --bs-table-striped-bg: var(--bg-tertiary) !important;
      --bs-table-hover-bg: var(--bg-tertiary) !important;
    }

    .text-white {
      color: var(--text-primary) !important;
    }

    .muted {
      color: var(--text-muted) !important;
    }

    /* Modal theming */
    .modal-content {
      background-color: var(--bg-secondary) !important;
      border-color: var(--border-color) !important;
    }

    .modal-header {
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(14,165,233,0.10) 100%) !important;
      border-color: rgba(99,102,241,0.3) !important;
    }

    .modal-body {
      background-color: var(--bg-secondary) !important;
      color: var(--text-primary) !important;
    }

    .modal-footer {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(14, 165, 233, 0.10) 100%) !important;
      border-color: rgba(99, 102, 241, 0.3) !important;
    }

    /* Light mode modal overrides */
    [data-theme="light"] .modal-content {
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    [data-theme="light"] .modal-header {
      background: var(--bg-tertiary) !important;
      border-color: var(--border-color) !important;
    }

    [data-theme="light"] .modal-footer {
      background: var(--bg-secondary) !important;
      border-color: var(--border-color) !important;
    }

    [data-theme="light"] .modal-header,
    [data-theme="light"] .modal-header *,
    [data-theme="light"] .modal-title {
      color: var(--text-primary) !important;
    }

    [data-theme="light"] .modal-body,
    [data-theme="light"] .modal-body * {
      color: var(--text-primary);
    }

    [data-theme="light"] .modal-close-btn {
      background: rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.15);
    }

    [data-theme="light"] .modal-close-btn:hover {
      background: rgba(0, 0, 0, 0.12);
      border-color: rgba(0, 0, 0, 0.25);
    }

    [data-theme="light"] .modal-close-btn::before,
    [data-theme="light"] .modal-close-btn::after {
      background: rgba(0, 0, 0, 0.7);
    }

    [data-theme="light"] .modal-footer-btn {
      background: rgba(0, 0, 0, 0.06);
      border: 1px solid rgba(0, 0, 0, 0.15);
      color: var(--text-primary);
    }

    [data-theme="light"] .modal-footer-btn:hover {
      background: rgba(0, 0, 0, 0.1);
      border-color: rgba(0, 0, 0, 0.25);
      color: var(--text-primary);
    }

    [data-theme="light"] .btn-close {
      filter: none;
    }

    /* Light mode play-by-play styles */
    [data-theme="light"] .play-time {
      color: rgba(99, 102, 241, 1);
    }

    [data-theme="light"] .play-score {
      color: var(--text-secondary);
    }

    [data-theme="light"] .play-center {
      border-left-color: rgba(99, 102, 241, 0.4);
      border-right-color: rgba(99, 102, 241, 0.4);
    }

    [data-theme="light"] .quarter-section {
      border-left-color: rgba(99, 102, 241, 0.5);
    }

    [data-theme="light"] .quarter-title {
      color: var(--text-primary);
    }

    [data-theme="light"] .play-item {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
    }

    [data-theme="light"] .play-text {
      color: var(--text-secondary);
    }

    [data-theme="light"] .play-item.scoring {
      background: rgba(34, 197, 94, 0.1);
      border-color: rgba(34, 197, 94, 0.3);
    }

    [data-theme="light"] .play-item.scoring .play-text {
      color: rgba(22, 101, 52, 1);
    }
    
    /* Light mode defensive plays (red) */
    [data-theme="light"] .play-item.defensive-play .play-text {
      color: rgba(127, 29, 29, 1);
    }
    
    [data-theme="light"] .play-item.defensive-play .play-type {
      color: rgba(185, 28, 28, 1);
    }
    
    /* Light mode positive plays (green) */
    [data-theme="light"] .play-item.positive-play .play-text {
      color: rgba(22, 101, 52, 1);
    }
    
    [data-theme="light"] .play-item.positive-play .play-type {
      color: rgba(21, 128, 61, 1);
    }

    /* Light mode quarter tabs */
    [data-theme="light"] [id^="playsQuarterTabs"] .nav-link {
      color: var(--text-secondary);
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
    }

    [data-theme="light"] [id^="playsQuarterTabs"] .nav-link:hover {
      color: var(--text-primary);
      background: var(--bg-primary);
    }

    [data-theme="light"] [id^="playsQuarterTabs"] .nav-link.active {
      color: #ffffff;
      background: rgba(234, 179, 8, 1);
      border-color: rgba(234, 179, 8, 1);
    }

    /* Play-By-Play Button Styling */
    #play-by-play-btn {
      font-weight: 600;
      padding: 0.375rem 0.75rem;
      font-size: 0.875rem;
    }

    [data-theme="light"] #play-by-play-btn {
      background: rgba(234, 179, 8, 1);
      border-color: rgba(234, 179, 8, 1);
      color: #000000;
      font-weight: 700;
    }

    [data-theme="light"] #play-by-play-btn:hover {
      background: rgba(202, 138, 4, 1);
      border-color: rgba(202, 138, 4, 1);
    }

    [data-theme="light"] #play-by-play-btn:active {
      background: rgba(161, 98, 7, 1) !important;
      border-color: rgba(161, 98, 7, 1) !important;
    }

    /* Light mode rank badges */
    [data-theme="light"] .rank-badge {
      color: var(--text-muted);
    }

    [data-theme="light"] .rank-badge.rank-4,
    [data-theme="light"] .rank-badge.rank-5,
    [data-theme="light"] .rank-badge.rank-6,
    [data-theme="light"] .rank-badge.rank-7,
    [data-theme="light"] .rank-badge.rank-8,
    [data-theme="light"] .rank-badge.rank-9,
    [data-theme="light"] .rank-badge.rank-10 {
      color: var(--text-muted);
    }

    /* Button theming */
    .btn-outline-light {
      border-color: var(--border-color) !important;
      color: var(--text-secondary) !important;
    }

    .btn-outline-light:hover {
      background-color: var(--bg-tertiary) !important;
      border-color: var(--text-muted) !important;
    }

    /* Scroll to top button */
    .scroll-to-top-btn {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1050;
      display: none;
      width: 36px;
      height: 36px;
      padding: 0;
      border-radius: 50%;
      background-color: #000000 !important;
      color: white !important;
      border: 1px solid white !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .scroll-to-top-btn:hover {
      background-color: var(--accent-color) !important;
      color: white !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }

    .scroll-to-top-btn.show {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: scale(0.8);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    [data-theme="light"] .scroll-to-top-btn {
      background-color: white !important;
      color: var(--text-primary) !important;
      border: 1px solid var(--border-color) !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    [data-theme="light"] .scroll-to-top-btn:hover {
      background-color: var(--accent-color);
      color: white;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    /* AI Chat FAB (Floating Action Button) */
    .chat-fab {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1050;
      width: 56px;
      height: 56px;
      padding: 0;
      border-radius: 50%;
      background-color: var(--accent-color) !important;
      color: white !important;
      border: none !important;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
      transition: all 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .chat-fab:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
      background-color: rgba(99, 102, 241, 1) !important;
    }

    .chat-fab:active {
      transform: scale(0.95);
    }

    [data-theme="light"] .chat-fab {
      background-color: var(--accent-color) !important;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    [data-theme="light"] .chat-fab:hover {
      box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    }

    /* Watchlist FAB — sits to the left of the chat FAB */
    .watchlist-fab {
      position: fixed;
      bottom: 20px;
      right: 86px;
      z-index: 1050;
      width: 56px;
      height: 56px;
      padding: 0;
      border-radius: 50%;
      background-color: #7c3aed !important;
      color: white !important;
      border: none !important;
      box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
      transition: all 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .watchlist-fab:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 16px rgba(124, 58, 237, 0.6);
      background-color: #6d28d9 !important;
    }

    .watchlist-fab:active {
      transform: scale(0.95);
    }

    [data-theme="light"] .watchlist-fab {
      background-color: #7c3aed !important;
      box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    }

    [data-theme="light"] .watchlist-fab:hover {
      box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
    }

    /* Page header text stays white in light mode (dark background gradient) */
    [data-theme="light"] .container-fluid > .d-flex.align-items-center.justify-content-between > h1,
    [data-theme="light"] .container-fluid > .d-flex.align-items-center.justify-content-between > h1 *,
    [data-theme="light"] .container-fluid > .d-flex.align-items-center.justify-content-between > .muted,
    [data-theme="light"] .container-fluid > .d-flex.align-items-center.justify-content-between > .muted *,
    [data-theme="light"] .container-fluid > .d-flex.align-items-center.justify-content-between .form-check-label {
      color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Games section light theme styling */
    [data-theme="light"] .games-nav-btn {
      color: var(--text-primary);
    }
    [data-theme="light"] .games-upcoming-btn {
      color: #4f46e5;
      border-color: rgba(99, 102, 241, 0.5) !important;
    }
    [data-theme="light"] .games-upcoming-btn:hover:not(:disabled) {
      color: #3730a3;
      background: rgba(99, 102, 241, 0.12) !important;
      border-color: rgba(99, 102, 241, 0.7) !important;
    }

    [data-theme="light"] .game-card {
      background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
      border: 1px solid var(--border-color);
    }

    [data-theme="light"] .game-card:hover {
      background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.04));
      border-color: var(--accent-color);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    [data-theme="light"] .team-logo {
      background: var(--bg-primary);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    [data-theme="light"] .team-record {
      color: rgba(0,0,0,0.6);
    }

    [data-theme="light"] .game-card:hover .betting-odds-container {
      background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.04));
    }
      border-color: var(--accent-color);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    [data-theme="light"] .team-record.record-positive {
      color: rgba(21, 128, 61, 1);
    }

    [data-theme="light"] .team-record.record-negative {
      color: rgba(185, 28, 28, 1);
    }

    [data-theme="light"] .team-streak.streak-positive {
      color: rgba(21, 128, 61, 1);
    }

    [data-theme="light"] .team-streak.streak-negative {
      color: rgba(185, 28, 28, 1);
    }

    [data-theme="light"] .score-main {
      color: var(--text-primary);
    }

    [data-theme="light"] .status-live {
      background: linear-gradient(90deg,#22c55e,#16a34a);
      color: #ffffff;
    }

    [data-theme="light"] .status-fin {
      background: var(--bg-tertiary);
      color: var(--text-secondary);
    }

    [data-theme="light"] .lineup-row {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
    }

    [data-theme="light"] .lineup-header {
      color: var(--text-primary);
      border-bottom: 1px solid var(--border-color);
    }

    [data-theme="light"] .lineup-section-title {
      color: var(--text-primary);
    }

    [data-theme="light"] .lineup-player-card {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
    }

    [data-theme="light"] .lineup-player-card:hover {
      background: var(--bg-primary);
      border-color: var(--accent-color);
    }

    [data-theme="light"] .lineup-player-name {
      color: var(--text-primary);
    }

    [data-theme="light"] .board-title-row {
      color: rgba(0, 0, 0, 0.9) !important;
    }

    [data-theme="light"] .lineup-player-pos {
      color: var(--text-muted);
    }

    [data-theme="light"] .lineup-player-stats {
      color: var(--text-secondary);
    }

    [data-theme="light"] .lineup-player-stats .stat-label {
      color: var(--text-muted);
      text-transform: uppercase;
    }

    [data-theme="light"] .lineup-player-stats .stat-value {
      color: var(--text-primary);
      text-transform: uppercase;
    }

    /* Light theme for lineup player cards */
    [data-theme="light"] .lineup-player-card .lineup-player-stats .stat-label {
      color: rgba(0, 0, 0, 0.6);
    }

    [data-theme="light"] .lineup-player-card .lineup-player-stats .stat-value {
      color: rgba(0, 0, 0, 0.87);
    }

    /* Light theme for player profile modal stats */
    [data-theme="light"] .modal .lineup-player-stats .stat-label {
      color: rgba(0, 0, 0, 0.6);
    }

    [data-theme="light"] .modal .lineup-player-stats .stat-value {
      color: rgba(0, 0, 0, 0.87);
    }

    [data-theme="light"] .injury-list .injury-item {
      /* Background and border colors set by :has() selectors below */
    }

    /* Light mode injury card backgrounds based on status */
    [data-theme="light"] .injury-item:has(.injury-status.out-for-season) {
      background: rgba(127,29,29,0.20);
      border: 1px solid rgba(127,29,29,0.35);
    }
    [data-theme="light"] .injury-item:has(.injury-status.out) {
      background: rgba(239,68,68,0.15);
      border: 1px solid rgba(239,68,68,0.30);
    }
    [data-theme="light"] .injury-item:has(.injury-status.doubtful) {
      background: rgba(194,65,12,0.15);
      border: 1px solid rgba(194,65,12,0.30);
    }
    [data-theme="light"] .injury-item:has(.injury-status.questionable) {
      background: rgba(245,158,11,0.15);
      border: 1px solid rgba(245,158,11,0.30);
    }
    [data-theme="light"] .injury-item:has(.injury-status.probable) {
      background: rgba(21,128,61,0.12);
      border: 1px solid rgba(21,128,61,0.25);
    }
    [data-theme="light"] .injury-item:has(.injury-status.dtd) {
      background: rgba(59,130,246,0.10);
      border: 1px solid rgba(59,130,246,0.25);
    }

    [data-theme="light"] .injury-item:hover {
      filter: brightness(0.95);
    }

    [data-theme="light"] .injury-name {
      color: var(--text-primary);
    }

    [data-theme="light"] .injury-note {
      color: var(--text-muted);
    }

    [data-theme="light"] .injury-probable {
      background: rgba(34, 197, 94, 0.15);
      color: rgba(22, 101, 52, 1);
      border-color: rgba(34, 197, 94, 0.3);
    }

    /* Display box (leaderboard filter) light theme styling */
    [data-theme="light"] #leaderboardFilterControl {
      background-color: var(--bg-secondary);
      border: 1px solid var(--border-color);
    }

    [data-theme="light"] #leaderboardFilterControl label {
      color: var(--text-primary);
      font-weight: 600;
    }

    [data-theme="light"] label[for="bettingVendorSelector"] {
      color: var(--text-primary);
      font-weight: 600;
    }

    [data-theme="light"] label[for="limitSelector"] {
      color: var(--text-primary) !important;
      font-weight: 600;
    }

    [data-theme="light"] #limitSelector {
      color: var(--text-primary) !important;
    }

    [data-theme="light"] #limitSelector:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.5) !important;
    }

    [data-theme="light"] #limitSelector:focus {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.6) !important;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    }

    [data-theme="light"] #limitSelector option {
      background: var(--bg-primary);
      color: var(--text-primary);
    }

    [data-theme="light"] #bettingVendorSelector {
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(14,165,233,0.10) 100%) !important;
      border: 1px solid rgba(99,102,241,0.3) !important;
      color: var(--text-primary) !important;
    }

    [data-theme="light"] #bettingVendorSelector:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.5) !important;
    }

    [data-theme="light"] #bettingVendorSelector:focus {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.6) !important;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    }

    [data-theme="light"] #bettingVendorSelector option {
      background: var(--bg-primary);
      color: var(--text-primary);
    }

    [data-theme="light"] #dfsRankingVendorSelector {
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(14,165,233,0.10) 100%) !important;
      border: 1px solid rgba(99,102,241,0.3) !important;
      color: var(--text-primary) !important;
    }

    [data-theme="light"] #dfsRankingVendorSelector:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.5) !important;
    }

    [data-theme="light"] #dfsRankingVendorSelector:focus {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.6) !important;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    }

    [data-theme="light"] #dfsRankingVendorSelector option {
      background: var(--bg-primary);
      color: var(--text-primary);
    }
    
    /* Player profile modal styles */
    .player-profile-section-title {
      font-size: 1.4rem;
      font-weight: 600;
    }
    
    .season-selector {
      width: auto;
      background-color: rgba(255,255,255,.1);
      color: rgba(255,255,255,.9);
      border-color: rgba(255,255,255,.2);
    }
    
    [data-theme="light"] .season-selector {
      background-color: rgba(0,0,0,.05);
      color: var(--text-primary);
      border-color: var(--border-color);
    }
    
    [data-theme="light"] .season-selector option {
      background: var(--bg-primary);
      color: var(--text-primary);
    }
    
    .game-log-container {
      max-height: 320px;
      overflow-y: auto;
      border-radius: 12px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 
                  0 1px 3px rgba(0, 0, 0, 0.2);
      background: rgba(0, 0, 0, 0.2);
      padding: 0.5rem;
    }
    
    [data-theme="light"] .game-log-container {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
                  0 1px 3px rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.6);
    }
    
    [id^="gameLogTable"] {
      background: rgba(0,0,0,0.3);
      border: none;
      margin-bottom: 0;
    }
    
    [data-theme="light"] [id^="gameLogTable"] {
      background: var(--bg-secondary);
    }
    
    [id^="gameLogTable"] tr {
      border: none !important;
    }
    
    [id^="gameLogTable"] th {
      text-transform: uppercase;
      font-weight: 600;
    }
    
    [id^="gameLogTable"] td {
      border: none !important;
      padding: 0.5rem !important;
      text-transform: uppercase;
      font-weight: 500;
    }
    
    [id^="gameLogTable"] tbody tr.game-log-row-even {
      transition: all 0.2s ease;
      cursor: pointer;
    }

    [id^="gameLogTable"] tbody tr.game-log-row-even td {
      background-color: var(--bg-secondary) !important;
    }
    
    [id^="gameLogTable"] tbody tr.game-log-row-odd {
      transition: all 0.2s ease;
      cursor: pointer;
    }

    [id^="gameLogTable"] tbody tr.game-log-row-odd td {
      background-color: var(--bg-tertiary) !important;
    }
    
    [id^="gameLogTable"] tbody tr.game-log-row-even:hover {
      transform: scale(1.02);
    }

    [id^="gameLogTable"] tbody tr.game-log-row-even:hover td {
      background-color: var(--bg-primary) !important;
    }
    
    [id^="gameLogTable"] tbody tr.game-log-row-odd:hover {
      transform: scale(1.02);
    }

    [id^="gameLogTable"] tbody tr.game-log-row-odd:hover td {
      background-color: var(--bg-primary) !important;
    }
    
    [data-theme="light"] [id^="gameLogTable"] tbody tr.game-log-row-even td {
      background-color: var(--bg-secondary) !important;
    }
    
    [data-theme="light"] [id^="gameLogTable"] tbody tr.game-log-row-odd td {
      background-color: var(--bg-tertiary) !important;
    }
    
    [data-theme="light"] [id^="gameLogTable"] tbody tr.game-log-row-even:hover {
      transform: scale(1.02);
    }

    [data-theme="light"] [id^="gameLogTable"] tbody tr.game-log-row-even:hover td {
      background-color: rgba(99, 102, 241, 0.15) !important;
    }
    
    [data-theme="light"] [id^="gameLogTable"] tbody tr.game-log-row-odd:hover {
      transform: scale(1.02);
    }

    [data-theme="light"] [id^="gameLogTable"] tbody tr.game-log-row-odd:hover td {
      background-color: rgba(99, 102, 241, 0.15) !important;
    }

    /* Advanced Stats Table - Same styling as Game Log */
    [id^="advancedStatsTable"] {
      background: rgba(0,0,0,0.3);
      border: none;
      margin-bottom: 0;
    }
    
    [data-theme="light"] [id^="advancedStatsTable"] {
      background: var(--bg-secondary);
    }
    
    [id^="advancedStatsTable"] tr {
      border: none !important;
    }
    
    [id^="advancedStatsTable"] th {
      text-transform: uppercase;
      font-weight: 600;
    }
    
    [id^="advancedStatsTable"] td {
      border: none !important;
      padding: 0.5rem !important;
      text-transform: uppercase;
      font-weight: 500;
    }
    
    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even {
      transition: all 0.2s ease;
      cursor: pointer;
    }

    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even td {
      background-color: var(--bg-secondary) !important;
    }
    
    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd {
      transition: all 0.2s ease;
      cursor: pointer;
    }

    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd td {
      background-color: var(--bg-tertiary) !important;
    }
    
    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even:hover {
      transform: scale(1.02);
    }

    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even:hover td {
      background-color: var(--bg-primary) !important;
    }
    
    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd:hover {
      transform: scale(1.02);
    }

    [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd:hover td {
      background-color: var(--bg-primary) !important;
    }
    
    [data-theme="light"] [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even td {
      background-color: var(--bg-secondary) !important;
    }
    
    [data-theme="light"] [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd td {
      background-color: var(--bg-tertiary) !important;
    }
    
    [data-theme="light"] [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even:hover {
      transform: scale(1.02);
    }

    [data-theme="light"] [id^="advancedStatsTable"] tbody tr.advanced-stats-row-even:hover td {
      background-color: rgba(99, 102, 241, 0.15) !important;
    }
    
    [data-theme="light"] [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd:hover {
      transform: scale(1.02);
    }

    [data-theme="light"] [id^="advancedStatsTable"] tbody tr.advanced-stats-row-odd:hover td {
      background-color: rgba(99, 102, 241, 0.15) !important;
    }

    /* ===== ARCHETYPE TAB STYLES ===== */
    .profile-tabs {
      border-bottom: 2px solid rgba(99, 102, 241, 0.3);
      margin-bottom: 1.5rem;
    }
    
    .profile-tabs .nav-link {
      color: rgba(255, 255, 255, 0.7);
      font-weight: 600;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border: none;
      border-bottom: 3px solid transparent;
      padding: 0.75rem 1.5rem;
      transition: all 0.2s ease;
    }
    
    .profile-tabs .nav-link:hover {
      color: rgba(255, 255, 255, 0.9);
      border-bottom-color: rgba(99, 102, 241, 0.5);
    }
    
    .profile-tabs .nav-link.active {
      color: #fff;
      background: none;
      border-bottom-color: #6366f1;
    }
    
    [data-theme="light"] .profile-tabs {
      border-bottom-color: rgba(99, 102, 241, 0.2);
    }
    
    [data-theme="light"] .profile-tabs .nav-link {
      color: rgba(0, 0, 0, 0.6);
    }
    
    [data-theme="light"] .profile-tabs .nav-link:hover {
      color: rgba(0, 0, 0, 0.9);
    }
    
    [data-theme="light"] .profile-tabs .nav-link.active {
      color: #6366f1;
    }
    
    .archetype-content {
      padding: 1rem 0;
    }
    
    .archetype-section {
      max-width: 1000px;
      margin: 0 auto;
    }
    
    .archetype-section-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    }
    
    [data-theme="light"] .archetype-section-title {
      color: #1f2937;
      border-bottom-color: rgba(99, 102, 241, 0.2);
    }
    
    .archetype-primary-role {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
      border: 1px solid rgba(99, 102, 241, 0.3);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    [data-theme="light"] .archetype-primary-role {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
      border-color: rgba(99, 102, 241, 0.2);
    }
    
    .archetype-role-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    
    .archetype-icon {
      font-size: 2rem;
      line-height: 1;
    }
    
    .archetype-label {
      font-size: 1.5rem;
      font-weight: 700;
      color: #fff;
    }
    
    [data-theme="light"] .archetype-label {
      color: #1f2937;
    }
    
    .archetype-probability {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.7);
      margin-left: auto;
    }
    
    [data-theme="light"] .archetype-probability {
      color: rgba(0, 0, 0, 0.6);
    }
    
    .archetype-tier {
      font-size: 0.9rem;
      color: #a5b4fc;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }
    
    [data-theme="light"] .archetype-tier {
      color: #6366f1;
    }
    
    .archetype-description {
      font-size: 1rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 1rem;
    }
    
    [data-theme="light"] .archetype-description {
      color: rgba(0, 0, 0, 0.8);
    }
    
    .archetype-examples,
    .archetype-strengths,
    .archetype-weaknesses {
      font-size: 0.9rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 0.5rem;
    }
    
    [data-theme="light"] .archetype-examples,
    [data-theme="light"] .archetype-strengths,
    [data-theme="light"] .archetype-weaknesses {
      color: rgba(0, 0, 0, 0.7);
    }
    
    .archetype-distribution {
      margin-bottom: 0;
    }
    
    /* Remove extra spacing from tab content areas */
    .role-content,
    .analysis-content {
      padding: 0;
      margin: 0;
    }
    
    /* 2-column grid layout for archetype roles */
    .archetype-roles-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
    }
    
    @media (max-width: 768px) {
      .archetype-roles-grid {
        grid-template-columns: 1fr;
      }
    }
    
    .archetype-role-item {
      min-width: 0; /* allow grid item to shrink below content min-width */
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding: 10px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.2s ease;
    }
    
    .archetype-role-item:hover {
      background: rgba(0, 0, 0, 0.4);
      border-color: rgba(99, 102, 241, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    }
    
    .archetype-role-top {
      border-left: 3px solid #6366f1;
      background: rgba(99, 102, 241, 0.1);
    }
    
    [data-theme="light"] .archetype-role-item {
      background: rgba(255, 255, 255, 0.5);
      border-color: rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="light"] .archetype-role-item:hover {
      background: rgba(255, 255, 255, 0.8);
      border-color: rgba(99, 102, 241, 0.3);
    }
    
    [data-theme="light"] .archetype-role-top {
      background: rgba(99, 102, 241, 0.05);
    }
    
    .archetype-role-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .archetype-role-meta {
      display: flex;
      flex-direction: row;
      gap: 0.75rem;
      align-items: center;
    }
    
    .archetype-bar-container {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
    }
    
    .archetype-role-stats {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      white-space: nowrap;
    }
    
    .archetype-role-rank {
      font-size: 0.9rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.5);
    }
    
    [data-theme="light"] .archetype-role-rank {
      color: rgba(0, 0, 0, 0.4);
    }
    
    .archetype-role-header .archetype-icon {
      font-size: 1.25rem;
    }
    
    .archetype-role-header .archetype-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: #fff;
    }
    
    [data-theme="light"] .archetype-role-header .archetype-label {
      color: #1f2937;
    }
    
    .archetype-bar-visual {
      color: #6366f1;
      letter-spacing: -0.05em;
      font-family: 'Courier New', monospace;
      font-size: 0.75rem;
      display: inline-block;
      overflow: hidden;
    }
    
    .archetype-percentage {
      font-weight: 700;
      color: #fff;
      font-size: 0.75rem;
    }
    
    [data-theme="light"] .archetype-percentage {
      color: #1f2937;
    }
    
    .archetype-score {
      color: rgba(255, 255, 255, 0.5);
      font-size: 0.75rem;
    }
    
    [data-theme="light"] .archetype-score {
      color: rgba(0, 0, 0, 0.4);
    }
    
    .archetype-analysis {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(99, 102, 241, 0.2);
      border-radius: 12px;
      padding: 1.5rem;
    }
    
    [data-theme="light"] .archetype-analysis {
      background: rgba(255, 255, 255, 0.5);
      border-color: rgba(99, 102, 241, 0.15);
    }
    
    .archetype-summary {
      font-size: 0.95rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 0.5rem;
    }
    
    [data-theme="light"] .archetype-summary {
      color: rgba(0, 0, 0, 0.8);
    }
    
    .archetype-insights {
      margin-top: 1rem;
    }
    
    .archetype-insight-list {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .archetype-insight {
      font-size: 0.9rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.85);
      padding: 0.5rem;
      background: rgba(99, 102, 241, 0.1);
      border-left: 3px solid #6366f1;
      border-radius: 4px;
    }
    
    [data-theme="light"] .archetype-insight {
      color: rgba(0, 0, 0, 0.75);
      background: rgba(99, 102, 241, 0.05);
    }

    /* Team Info Modal Table Hover Styles */
    [id^="teamInfoModal"] .table tbody tr.game-log-row-even:hover {
      transform: scale(1.02);
    }

    [id^="teamInfoModal"] .table tbody tr.game-log-row-even:hover td {
      background-color: var(--bg-primary) !important;
    }
    
    [id^="teamInfoModal"] .table tbody tr.game-log-row-odd:hover {
      transform: scale(1.02);
    }

    [id^="teamInfoModal"] .table tbody tr.game-log-row-odd:hover td {
      background-color: var(--bg-primary) !important;
    }
    
    [data-theme="light"] [id^="teamInfoModal"] .table tbody tr.game-log-row-even:hover {
      transform: scale(1.02);
    }

    [data-theme="light"] [id^="teamInfoModal"] .table tbody tr.game-log-row-even:hover td {
      background-color: rgba(99, 102, 241, 0.15) !important;
    }
    
    [data-theme="light"] [id^="teamInfoModal"] .table tbody tr.game-log-row-odd:hover {
      transform: scale(1.02);
    }

    [data-theme="light"] [id^="teamInfoModal"] .table tbody tr.game-log-row-odd:hover td {
      background-color: rgba(99, 102, 241, 0.15) !important;
    }

    /* Next Game Highlight in Schedule Tab */
    #next-game-row {
      border-left: 3px solid #3b82f6;
      background-color: rgba(59, 130, 246, 0.1);
    }
    
    [data-theme="light"] #next-game-row {
      border-left: 3px solid #3b82f6;
      background-color: rgba(59, 130, 246, 0.08);
    }

    [id^="advancedStatsTable"] thead {
      position: sticky;
      top: 0;
      background: rgba(0,0,0,0.8);
      z-index: 10;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    [data-theme="light"] [id^="advancedStatsTable"] thead {
      background: rgba(255,255,255,0.95);
    }

    [id^="advancedStatsTable"] thead tr {
      font-size: 0.8rem;
    }

    [id^="advancedStatsTable"] th.text-center {
      text-align: center;
    }

    [id^="advancedStatsTable"] th {
      font-weight: 700;
      padding: 0.6rem 0.5rem !important;
      border-bottom: 2px solid rgba(255,255,255,0.2) !important;
      color: rgba(255,255,255,0.95);
      text-transform: uppercase;
      font-size: 0.7rem;
      letter-spacing: 0.5px;
    }

    [data-theme="light"] [id^="advancedStatsTable"] th {
      font-weight: 700;
      border-bottom: 2px solid var(--border-color) !important;
      color: rgba(0,0,0,0.85);
    }

    /* Smooth loading transitions for table bodies */
    [id^="gameLogTable"] tbody,
    [id^="advancedStatsTable"] tbody {
      transition: opacity 0.2s ease-in-out;
    }

    [id^="gameLogTable"] thead {
      position: sticky;
      top: 0;
      background: rgba(0,0,0,0.8);
      z-index: 10;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    [data-theme="light"] [id^="gameLogTable"] thead {
      background: rgba(240,240,240,1);
      border-bottom: 2px solid var(--border-color);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    [id^="gameLogTable"] thead tr {
      font-size: 0.8rem;
    }

    [id^="gameLogTable"] th.text-center {
      text-align: center;
    }

    [id^="gameLogTable"] th {
      font-weight: 700;
      padding: 0.6rem 0.5rem !important;
      border-bottom: 2px solid rgba(255,255,255,0.2) !important;
      color: rgba(255,255,255,0.95);
      text-transform: uppercase;
      font-size: 0.7rem;
      letter-spacing: 0.5px;
    }

    [data-theme="light"] [id^="gameLogTable"] th {
      font-weight: 700;
      border-bottom: 2px solid var(--border-color) !important;
      color: rgba(0,0,0,0.85);
    }

    /* Injuries Section */
    .injuries-section {
      margin-top: 1rem;
    }

    .injuries-container {
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 4px;
      padding: 0.75rem;
      min-height: 60px;
    }

    [data-theme="light"] .injuries-container {
      background: rgba(0,0,0,0.02);
      border: 1px solid var(--border-color);
      color: var(--text-color);
    }

    .injury-status-text {
      color: rgba(255,255,255,0.9);
    }

    .injury-description-text {
      color: rgba(255,255,255,0.65);
    }

    .injury-return-text {
      color: rgba(255,255,255,0.55);
    }

    .injury-return-label {
      color: rgba(255,255,255,0.55);
    }

    .injury-return-date {
      color: rgba(255,255,255,1);
      font-weight: 500;
    }

    [data-theme="light"] .injury-status-text {
      color: rgba(0,0,0,0.9);
    }

    [data-theme="light"] .injury-description-text {
      color: rgba(0,0,0,0.65);
    }

    [data-theme="light"] .injury-return-text {
      color: rgba(0,0,0,0.55);
    }

    [data-theme="light"] .injury-return-label {
      color: rgba(0,0,0,0.55);
    }

    [data-theme="light"] .injury-return-date {
      color: rgba(0,0,0,1);
      font-weight: 500;
    }

    /* Injury modal badge styling */
    .injury-modal-badge {
      font-weight: 800;
      background-color: rgba(52, 58, 64, 1);
      color: rgba(255, 255, 255, 0.95);
    }

    [data-theme="light"] .injury-modal-badge {
      background-color: rgba(234, 179, 8, 1);
      color: rgba(0, 0, 0, 0.85);
    }

    #injuryModalBody {
      color: rgba(255,255,255,0.92);
    }

    [data-theme="light"] #injuryModalBody {
      color: rgba(0,0,0,0.92);
    }

    .contracts-section {
      margin-top: 1rem;
    }

    .contracts-container {
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 4px;
      padding: 0.75rem;
      min-height: 60px;
    }

    [data-theme="light"] .contracts-container {
      background: rgba(0,0,0,0.02);
      border: 1px solid var(--border-color);
    }

    .contracts-table-wrapper {
      overflow-x: auto;
    }

    .contracts-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.75rem;
      margin-bottom: 0.5rem;
    }

    .contracts-table tbody th {
      text-transform: uppercase;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      color: rgba(255,255,255,0.5);
      padding: 0.5rem 0.75rem;
      text-align: left;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      width: 40%;
    }

    [data-theme="light"] .contracts-table tbody th {
      color: rgba(0,0,0,0.6);
      border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .contracts-table tbody td {
      padding: 0.5rem 0.75rem;
      color: rgba(255,255,255,0.9);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      width: 60%;
    }

    [data-theme="light"] .contracts-table tbody td {
      color: rgba(0,0,0,0.9);
      border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .contracts-table tbody tr:hover {
      background: rgba(99,102,241,0.1);
    }

    [data-theme="light"] .contracts-table tbody tr:hover {
      background: rgba(99,102,241,0.08);
    }

    /* Leaderboard filter control styling */
    #leaderboardFilterControl {
      background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 8px;
      padding: 0.5rem;
      margin-bottom: 1.5rem;
    }

    #leaderboardFilterControl label {
      color: rgba(255,255,255,0.7);
      font-size: 0.8125rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin: 0;
    }

    label[for="bettingVendorSelector"] {
      color: rgba(255,255,255,0.7);
      font-size: 0.8125rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin: 0;
    }

    label[for="limitSelector"] {
      color: rgba(255,255,255,0.7) !important;
      font-size: 0.8125rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin: 0;
    }

    #limitSelector {
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(14,165,233,0.10) 100%) !important;
      border: 1px solid rgba(99,102,241,0.3) !important;
      color: rgba(255,255,255,0.95) !important;
      font-weight: 500;
      padding: 0.5rem 2.25rem 0.5rem 0.75rem !important;
      border-radius: 6px;
      font-size: 0.875rem;
      transition: all 0.2s ease;
    }

    #limitSelector:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.5) !important;
    }

    #limitSelector:focus {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.6) !important;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    }

    #limitSelector option {
      background: #0f1a2d;
      color: rgba(255,255,255,0.95);
    }

    #bettingVendorSelector {
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(14,165,233,0.10) 100%) !important;
      border: 1px solid rgba(99,102,241,0.3) !important;
      color: rgba(255,255,255,0.95) !important;
      font-weight: 500;
      padding: 0.5rem 2.25rem 0.5rem 0.75rem !important;
      border-radius: 6px;
      font-size: 0.875rem;
      transition: all 0.2s ease;
    }

    #bettingVendorSelector:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.5) !important;
    }

    #bettingVendorSelector:focus {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.6) !important;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    }

    #bettingVendorSelector option {
      background: #0f1a2d;
      color: rgba(255,255,255,0.95);
    }

    #dfsRankingVendorSelector {
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(14,165,233,0.10) 100%) !important;
      border: 1px solid rgba(99,102,241,0.3) !important;
      color: rgba(255,255,255,0.95) !important;
      font-weight: 500;
      padding: 0.5rem 2.25rem 0.5rem 0.75rem !important;
      border-radius: 6px;
      font-size: 0.875rem;
      transition: all 0.2s ease;
    }

    #dfsRankingVendorSelector:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.5) !important;
    }

    #dfsRankingVendorSelector:focus {
      background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(14,165,233,0.18) 100%) !important;
      border-color: rgba(99,102,241,0.6) !important;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    }

    #dfsRankingVendorSelector option {
      background: #0f1a2d;
      color: rgba(255,255,255,0.95);
    }

    /* Betting Odds Display */
    .game-with-odds-container {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .game-with-odds-container:hover {
      background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.04));
      border-radius: 8px;
      transform: translateY(-2px) scale(1.01);
      box-shadow: 
        0 4px 12px rgba(99,102,241,0.15),
        0 8px 24px rgba(0,0,0,0.1);
      z-index: 5;
    }

    .game-info {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      min-width: 160px;
    }

    /* Winner Dominance Meter */
    .winner-dominance-container {
      width: 100%;
      margin-top: 0.5rem;
      margin-bottom: 10px;
      padding: 0.625rem 0.75rem;
      background: rgba(255,255,255,0.02);
      border-radius: 6px;
      transition: all 0.2s ease;
    }

    .dominance-label {
      font-size: 0.65rem;
      font-weight: 600;
      opacity: 0.7;
      margin-bottom: 0.4rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: white;
    }

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

    .dominance-bar {
      flex: 1;
      height: 14px;
      background: rgba(255,255,255,0.08);
      border-radius: 7px;
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    }

    .dominance-fill {
      height: 100%;
      border-radius: 7px;
      box-shadow: 0 2px 6px rgba(99,102,241,0.3);
      position: relative;
      animation: barSlideIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .dominance-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 50%;
      background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
      border-radius: 7px 7px 0 0;
    }

    .dominance-text {
      font-size: 0.7rem;
      font-weight: 700;
      color: rgba(255,255,255,0.95);
      width: 90px;
      flex-shrink: 0;
      text-align: right;
      letter-spacing: 0.025em;
    }

    .dominance-text--na {
      color: rgba(255,255,255,0.3);
      font-weight: 400;
    }

    .game-card:hover .winner-dominance-container {
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    }

    .betting-odds-container {
      width: 100%;
      margin-top: 0.5rem;
      padding: 0.625rem 0.75rem;
      background: rgba(255,255,255,0.02);
      border-radius: 6px;
      font-size: 0.82rem;
      transition: all 0.2s ease;
      color: rgba(255,255,255,0.8);
    }

    .betting-line {
      display: flex;
      align-items: center;
      color: rgba(255,255,255,0.8);
      margin-bottom: 0.25rem;
    }

    .betting-line:last-child {
      margin-bottom: 0;
    }

    .betting-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      margin-right: auto;
      width: 78px;
      flex-shrink: 0;
    }

    .betting-value {
      padding: 0.1rem 0.35rem;
      font-size: inherit;
      line-height: inherit;
    }

    .betting-separator {
      margin: 0 0.5rem;
      color: rgba(255,255,255,0.3);
      font-weight: 300;
    }

    /* Hover effect for betting odds inside game card */
    .game-card:hover .betting-odds-container {
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    }

    /* Light theme dominance meter */
    [data-theme="light"] .winner-dominance-container {
      background: rgba(0,0,0,0.01);
    }

    [data-theme="light"] .dominance-label {
      opacity: 0.7;
      color: #333;
    }

    [data-theme="light"] .dominance-bar {
      background: rgba(0,0,0,0.06);
    }

    [data-theme="light"] .dominance-text {
      color: var(--text-primary);
    }

    /* Upset Probability bar */
    .upset-probability-container {
      width: 100%;
      margin-top: -4px;
      margin-bottom: 10px;
      padding: 0.5rem 0.75rem;
      background: rgba(255,255,255,0.02);
      border-radius: 6px;
      transition: all 0.2s ease;
    }

    .upset-label {
      font-size: 0.65rem;
      font-weight: 600;
      opacity: 0.7;
      margin-bottom: 0.4rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: white;
    }

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

    .upset-bar {
      flex: 1;
      height: 14px;
      background: rgba(255,255,255,0.08);
      border-radius: 7px;
      overflow: hidden;
      position: relative;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    }

    .upset-fill {
      height: 100%;
      border-radius: 7px;
      position: relative;
      animation: barSlideIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .upset-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 50%;
      background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
      border-radius: 7px 7px 0 0;
    }

    .upset-text {
      font-size: 0.7rem;
      font-weight: 700;
      color: rgba(255,255,255,0.95);
      width: 90px;
      flex-shrink: 0;
      text-align: right;
      letter-spacing: 0.025em;
    }

    .upset-text--na {
      color: rgba(255,255,255,0.3);
      font-weight: 400;
    }

    .betting-value--na {
      color: rgba(255,255,255,0.3);
      font-style: normal;
    }

    .upset-playoff-tag {
      font-size: 0.55rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 0.1rem 0.35rem;
      border-radius: 3px;
      background: rgba(250,204,21,0.12);
      color: rgba(253,224,71,0.85);
      border: 1px solid rgba(250,204,21,0.2);
      vertical-align: middle;
      margin-left: 0.3rem;
    }

    .upset-series-label {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      padding: 0.1rem 0.3rem;
      border-radius: 3px;
      background: rgba(99,102,241,0.15);
      color: rgba(165,180,252,0.9);
      border: 1px solid rgba(99,102,241,0.25);
      vertical-align: middle;
      margin-left: 0.3rem;
      white-space: nowrap;
    }

    .game-card:hover .upset-probability-container {
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    }

    /* Upset probability tooltip breakdown */
    .upset-tip-header {
      display: flex; justify-content: space-between; gap: 1.5rem;
      font-size: 0.68rem; font-weight: 600; opacity: 0.6;
      text-transform: uppercase; letter-spacing: 0.05em;
      margin-bottom: 0.35rem;
    }
    .upset-tip-row {
      display: flex; justify-content: space-between; gap: 1.5rem;
      font-size: 0.72rem; padding: 0.1rem 0;
    }
    .upset-tip-row span:last-child { font-weight: 700; white-space: nowrap; }
    .upset-tip-pos span:last-child { color: rgba(34,197,94,0.95); }
    .upset-tip-neg span:last-child { color: rgba(239,68,68,0.95); }
    .upset-tip-neu span:last-child { color: rgba(255,255,255,0.6); }
    .upset-tip-divider {
      border-top: 1px solid rgba(255,255,255,0.12); margin: 0.4rem 0;
    }
    .upset-tip-total {
      display: flex; justify-content: space-between; gap: 1.5rem;
      font-size: 0.75rem; font-weight: 700;
    }
    .upset-tip-note {
      font-size: 0.62rem; opacity: 0.5; margin-top: 0.3rem; text-align: right;
    }

    [data-theme="light"] .upset-probability-container {
      background: rgba(0,0,0,0.01);
    }

    [data-theme="light"] .upset-label {
      opacity: 0.7;
      color: #333;
    }

    [data-theme="light"] .upset-bar {
      background: rgba(0,0,0,0.06);
    }

    [data-theme="light"] .upset-text {
      color: var(--text-primary);
    }

    /* Projected Winner bar — MLB only */
    .proj-winner-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.4rem;
    }
    .proj-winner-header .upset-label {
      margin-bottom: 0;
    }
    .proj-mode-badge {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      padding: 0.1rem 0.4rem;
      border-radius: 3px;
    }
    .proj-mode-badge--confirm {
      background: rgba(59,130,246,0.15);
      color: rgba(99,162,255,0.95);
      border: 1px solid rgba(59,130,246,0.3);
    }
    .proj-mode-badge--lean {
      background: rgba(100,116,139,0.15);
      color: rgba(148,163,184,0.95);
      border: 1px solid rgba(100,116,139,0.3);
    }
    .proj-winner-confirm {
      border-left: 2px solid rgba(59,130,246,0.3);
    }
    .proj-winner-lean {
      border-left: 2px solid rgba(100,116,139,0.3);
    }
    .proj-mode-badge--flip {
      background: rgba(100,116,139,0.08);
      color: rgba(100,116,139,0.5);
      border: 1px solid rgba(100,116,139,0.15);
    }
    .proj-winner-nocall .upset-text {
      color: rgba(100,116,139,0.4);
      font-weight: 400;
    }
    [data-theme="light"] .proj-mode-badge--flip {
      background: rgba(100,116,139,0.07);
      color: rgba(100,116,139,0.55);
      border: 1px solid rgba(100,116,139,0.18);
    }
    [data-theme="light"] .proj-mode-badge--confirm {
      background: rgba(59,130,246,0.1);
      color: rgba(29,78,216,0.95);
    }
    [data-theme="light"] .proj-mode-badge--lean {
      background: rgba(100,116,139,0.1);
      color: rgba(71,85,105,0.95);
    }

    /* Light theme betting odds colors */
    [data-theme="light"] .betting-odds-container {
      background: rgba(0,0,0,0.01);
      color: rgba(0,0,0,0.75);
    }

    [data-theme="light"] .betting-line {
      color: rgba(0,0,0,0.75);
    }

    [data-theme="light"] .betting-label {
      color: rgba(0,0,0,0.4);
    }

    [data-theme="light"] .betting-separator {
      color: rgba(0,0,0,0.3);
    }

    .blowoutalert-logo {
    height: 60px;
    width: auto;
    display: inline-block;
    }

    .azrock-footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.5rem 0 2rem;
      margin-top: 2rem;
      border-top: 1px solid var(--border-color);
    }

    .azrock-powered-by {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #888;
      margin-bottom: 0.5rem;
      opacity: 0.7;
    }

    .azrock-footer-logo {
      height: 80px;
      width: auto;
      display: block;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
      -ms-interpolation-mode: bicubic;
      transform: translateZ(0);
      opacity: 0.85;
      transition: opacity 0.2s ease;
    }

    .azrock-footer-logo:hover {
      opacity: 1;
    }

    @media (max-width: 768px) {
      .azrock-footer-logo { height: 60px; }
    }
    @media (max-width: 480px) {
      .azrock-footer-logo { height: 48px; }
    }

    .sportsfbi-logo {
    height: 110px;
    width: auto;
    display: inline-block;
    margin-left: 50px;
    }

    .sportsfbi-logo.user-avatar-logo {
    height: 86px;
    width: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin-left: 50px;
    }

  /* Responsive header stacking for mobile */
  @media (max-width: 768px) {
    .d-flex.align-items-center.justify-content-between.mb-3 {
      flex-direction: column !important;
      align-items: center !important;
      gap: 0.75rem !important;
      padding: 0 0.5rem;
    }
    .h3.mb-0.d-flex.align-items-center.gap-2 {
      flex-direction: row !important;
      flex-wrap: wrap;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.75rem !important;
      width: 100%;
    }
    .muted.small.text-end {
      text-align: center !important;
      width: 100%;
      max-width: 300px;
    }
  }

  /* Responsive logo scaling for mobile */
  @media (max-width: 768px) {
    .blowoutalert-logo {
      height: 40px;
      width: auto;
      display: inline-block;
    }
    .sportsfbi-logo {
      height: 70px;
      width: auto;
      display: inline-block;
      margin-left: 0;
    }
    .sportsfbi-logo.user-avatar-logo {
      height: 38px;
      width: 38px;
      margin-left: 0;
    }
  }

  /* Extra small screens */
  @media (max-width: 480px) {
    .blowoutalert-logo {
      height: 32px;
    }
    .sportsfbi-logo {
      height: 55px;
    }
    .sportsfbi-logo.user-avatar-logo {
      height: 32px;
      width: 32px;
    }
    .muted.small.text-end {
      font-size: 0.75em;
      max-width: 100%;
    }
  }

    .app-title {
      flex-grow: 1;
      font-size: 2.5rem;     
      font-weight: 700;      
      letter-spacing: 0.02em;
      font-family: 'Roboto', Arial, sans-serif; 
      text-shadow: 0 2px 8px rgba(0,0,0,0.18); 
    }
  /* Games strip styles */
  .games-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* allow cards to wrap onto multiple rows instead of scrolling */
    align-items: center;
    align-content: flex-start; /* ensure wrapped rows start at top */
    gap: 0.32rem; /* reduced spacing between cards */
    justify-content: center; /* center cards horizontally */
    overflow-x: visible; /* avoid horizontal scrollbar */
    padding: 0.30rem 0.18rem;
    margin: 0;
    list-style: none; /* avoid default list styles */
    flex: 1 1 auto;
    min-width: 0;
  }

  .games-strip-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .games-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .games-nav-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    opacity: 0.65;
    user-select: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
  }
  .games-nav-btn:hover:not(:disabled) {
    opacity: 1;
  }
  .games-nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
  }
  .games-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .games-upcoming-btn {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    border-radius: 5px;
    padding: 0.2rem 0.6rem !important;
  }
  .games-upcoming-btn:hover:not(:disabled) {
    color: #fff;
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.7) !important;
  }
  .game-card {
    /* Fill container width to match game-with-odds-container */
    width: 100%;
    min-width: 300px;
    min-height: 480px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 0.34rem;
    box-sizing: border-box;
    overflow: visible;

    /* Flex column to stack game info and betting odds */
    display: flex;
    flex-direction: column;
    /* equal horizontal padding so left team sits the same distance from left border
      as the right team does from the right border */
    cursor: pointer;
    transition: all 0.2s ease;
    padding-left: 0.60rem;
    padding-right: 0.60rem;
    position: relative;
  }
  
  /* Add top padding only on mobile devices with drag handle */
  @media (hover: none) and (pointer: coarse) {
    .game-card {
      padding-top: 0.5rem;
    }
  }
  
  .game-card:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.08));
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
      0 4px 12px rgba(99,102,241,0.2),
      0 8px 24px rgba(0,0,0,0.15);
    z-index: 10;
  }
  
  .game-card.selected {
    background: linear-gradient(180deg, rgba(99,102,241,0.15), rgba(99,102,241,0.1));
    border-color: rgba(99,102,241,0.6);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
    cursor: default;
  }
  
  .game-card.selected:hover {
    background: linear-gradient(180deg, rgba(99,102,241,0.15), rgba(99,102,241,0.1));
    border-color: rgba(99,102,241,0.6);
  }
  
  .game-card.keyboard-focused {
    outline: 3px solid rgba(234, 179, 8, 1);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
  }
  
  [data-theme="light"] .game-card.keyboard-focused {
    outline: 3px solid rgba(234, 179, 8, 1);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.5);
  }

  @keyframes barSlideIn {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
  }

  /* Hot streak widget highlight */
  @keyframes hotStreakPulse {
    0%, 100% {
      box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.4), 0 0 8px rgba(234, 179, 8, 0.15);
    }
    50% {
      box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.9), 0 0 20px rgba(234, 179, 8, 0.45), 0 0 40px rgba(234, 179, 8, 0.15);
    }
  }

  .widget--hot-streak {
    animation: hotStreakPulse 2s ease-in-out infinite;
    border-radius: 6px;
  }

  /* MLB run-environment card glows */
  @keyframes mlbCardGlowHot {
    0%, 100% {
      box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 0 8px rgba(239, 68, 68, 0.15);
    }
    50% {
      box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.9), 0 0 20px rgba(249, 115, 22, 0.45), 0 0 40px rgba(239, 68, 68, 0.15);
    }
  }

  @keyframes mlbCardGlowWarm {
    0%, 100% {
      box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.4), 0 0 8px rgba(234, 179, 8, 0.15);
    }
    50% {
      box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.9), 0 0 20px rgba(245, 158, 11, 0.45), 0 0 40px rgba(234, 179, 8, 0.15);
    }
  }

  .game-card--mlb-hot  { animation: mlbCardGlowHot  2s ease-in-out infinite; }
  .game-card--mlb-warm { animation: mlbCardGlowWarm 2s ease-in-out infinite; }

  /* Drag handle for game cards */
  .game-drag-handle {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    cursor: grab;
    z-index: 10;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    touch-action: none; /* Prevent scrolling when touching the handle */
  }
  
  .game-drag-handle:hover {
    color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.1);
  }
  
  .game-drag-handle:active {
    cursor: grabbing;
    color: rgba(99, 102, 241, 1);
  }
  
  /* Ensure game card content doesn't capture drag events from handle */
  .game-card > *:not(.game-drag-handle) {
    pointer-events: auto;
  }
  
  /* Hide drag handle on desktop (non-touch devices) */
  @media (hover: hover) and (pointer: fine) {
    .game-drag-handle {
      display: none;
    }
    
    /* On desktop, make entire card draggable */
    .game-card {
      cursor: grab;
    }
    
    .game-card:active {
      cursor: grabbing;
    }
  }
  
  /* Ensure drag handle is visible on mobile/touch devices */
  @media (hover: none) and (pointer: coarse) {
    .game-drag-handle {
      display: flex;
    }
    
    /* On mobile, remove cursor styles from card */
    .game-card {
      cursor: pointer;
    }
  }
  
  [data-theme="light"] .game-drag-handle {
    color: rgba(0, 0, 0, 0.3);
  }
  
  [data-theme="light"] .game-drag-handle:hover {
    color: rgba(99, 102, 241, 0.8);
    background: rgba(99, 102, 241, 0.1);
  }
  
  /* Make each list item act as a compact horizontal tile and allow wrapping */
  .games-strip > li {
    flex: 0 0 auto;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
  }
  /* Neutralize list-group-item borders which cause the tall separators */
  .games-strip .list-group-item {
    border: none !important;
    background: transparent !important;
  }
  .team-block { display:flex; flex-direction:column; align-items:center; gap:0.16rem; min-width:44px; max-width:72px }
  .team-block.text-end { align-items:flex-end; text-align:right; justify-self:end; padding-right:0.45rem }
  .team-block.text-start { align-items:flex-start; text-align:left; justify-self:start; padding-left:0.45rem }
  .team-block .muted.small { max-width:72px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:0.58rem }
  /* White circular background behind team logos; dark abbrev text for contrast when image missing */
  .team-logo { width:64px; height:64px; border-radius:50%; background:#ffffff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; color:#0b1220; position:relative; border: 1px solid rgba(11,18,32,0.06); box-shadow: 0 1px 2px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.2s ease; }
  .team-logo:hover { transform: scale(1.08); }
  .team-logo img { width:100%; height:100%; object-fit:cover; border-radius:50% }
  .team-logo img { display:block }
  /* Larger team logos specifically for lineup comparison card */
  #lineup-compare-row .team-logo { width:64px; height:64px; }
  .team-abbr { font-size:0.8875rem; letter-spacing:0.02em; display:none }
  /* W-L record displayed under team logos */
  .team-record { font-size:1rem; text-align:center; color:rgba(255,255,255,0.7); margin-top:0.15rem; font-weight:500; letter-spacing:0.01em }
  .team-streak { font-size:0.7875rem; opacity:0.8; font-weight:600; display:inline-block; margin-top:0.1rem; }
  /* Record color coding: green for winning records, red for losing records */
  .team-record.record-positive { color: rgba(34, 197, 94, 0.95); }
  .team-record.record-negative { color: rgba(239, 68, 68, 0.95); }
  /* Streak color coding: green for win streaks, red for loss streaks */
  .team-streak.streak-positive { color: rgba(34, 197, 94, 0.95); }
  .team-streak.streak-negative { color: rgba(239, 68, 68, 0.95); }
  /* Rest badges: shown under team logo when team is fatigued */
  .rest-badge { font-size:0.6rem; font-weight:700; letter-spacing:0.04em; padding:0.08rem 0.28rem; border-radius:0.25rem; display:inline-block; margin-top:0.1rem; text-transform:uppercase; line-height:1.4; }
  .rest-badge.b2b { background:rgba(239,68,68,0.18); color:rgba(239,68,68,0.95); border:1px solid rgba(239,68,68,0.3); }
  .rest-badge.first-b2b { background:rgba(249,115,22,0.18); color:rgba(249,115,22,0.95); border:1px solid rgba(249,115,22,0.3); }
  .rest-badge.short-rest { background:rgba(234,179,8,0.18); color:rgba(234,179,8,0.95); border:1px solid rgba(234,179,8,0.3); }
  .rest-badge.well-rested { background:rgba(34,197,94,0.18); color:rgba(34,197,94,0.95); border:1px solid rgba(34,197,94,0.3); }

  /* Key injury badge (game card) */
  .key-injury-badge { font-size:0.58rem; font-weight:700; letter-spacing:0.03em; padding:0.06rem 0.26rem; border-radius:0.25rem; display:inline-block; margin-top:0.1rem; text-transform:uppercase; line-height:1.4; background:rgba(239,68,68,0.15); color:rgba(239,68,68,0.9); border:1px solid rgba(239,68,68,0.3); animation:hotStreakPulse 2s ease-in-out infinite; }
  .team-badges { display:flex; flex-wrap:nowrap; gap:0.2rem; justify-content:center; min-height:1.4rem; }
  .team-block { max-width: 130px; }
  .team-block, .team-block.text-start, .team-block.text-end { align-items: center; }
  .team-record { text-align: center; }

  /* Injury impact — facts card section */
  .veredict-injury-impact { padding:0.25rem 0; }
  .inj-team-block { display:flex; flex-wrap:wrap; align-items:baseline; gap:0.25rem 0.4rem; padding:0.15rem 0 0.1rem; }
  .inj-team-abbr { font-size:0.65rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; min-width:2rem; }
  .inj-row { display:contents; }
  .inj-name { font-size:0.72rem; color:var(--text-primary); font-weight:600; }
  .inj-status { font-size:0.62rem; font-weight:700; padding:0.04rem 0.22rem; border-radius:0.2rem; }
  .inj-status.inj-status-out { background:rgba(239,68,68,0.15); color:rgba(239,68,68,0.9); }
  .inj-status.inj-status-season { background:rgba(99,102,241,0.15); color:rgba(99,102,241,0.9); }
  .inj-usage { font-size:0.62rem; color:var(--text-muted); }

  /* Team Leaders Section */
  .team-leaders {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .leaders-header {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-muted);
  }
  
  .leaders-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
  
  .leader-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .category-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.03em;
  }
  
  .leader-photo-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  
  .leader-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
  }
  
  .leader-position {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
  }
  
  .leader-stat {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.95);
  }
  
  /* Responsive adjustments for team leaders */
  @media (max-width: 768px) {
    .leaders-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
    }
    
    .leader-photo-container {
      width: 50px;
      height: 50px;
    }
    
    .leader-name {
      font-size: 0.7rem;
    }
    
    .leader-stat {
      font-size: 0.85rem;
    }
  }
  
  @media (max-width: 480px) {
    .leaders-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* center column should be compact and centered */
  .score-block { text-align:center; min-width:52px; justify-self:center }
  .score-main { font-weight:800; font-size:0.9875rem; color: #ffffff; white-space: nowrap; }
  .status-badge { display:inline-block; padding:0.11rem 0.32rem; border-radius:999px; font-size:0.7475rem; font-weight:700 }
  .status-live { background: linear-gradient(90deg,#22c55e,#16a34a); color:#06270b }
  .status-fin { background: rgba(255,255,255,0.03); color:rgba(255,255,255,0.85) }
  .muted.small { font-size: 0.92rem; }

  /* Lineup row styles */
  .lineup-row {
    display: none;
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }
  .lineup-row.show {
    display: block;
  }
  
  .lineup-header {
    font-weight: 600;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .lineup-header small.text-muted {
    font-size: 0.90rem;
  }
  
  /* Team header clickable area in evidence card */
  .team-header-clickable {
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 0.25rem;
    margin: -0.25rem;
  }
  
  .team-header-clickable:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .team-header-clickable .team-logo:hover {
    transform: scale(1.08);
  }
  
  .lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
  }
  .lineup-player {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  .lineup-player-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .lineup-player-card:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.08));
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(99,102,241,0.2), 0 0 30px rgba(99,102,241,0.1);
    z-index: 10;
  }
  
  .suspect-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .suspect-card:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.08)) !important;
    border-color: rgba(99,102,241,0.4) !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(99,102,241,0.2), 0 0 30px rgba(99,102,241,0.1);
    z-index: 10;
  }
  
  /* Suspect Reasoning Modal Styles */
  .suspect-reasoning-container {
    padding: 0.5rem;
  }
  
  .score-gauge-section circle {
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .score-bar-item {
    animation: slideInUp 0.4s ease-out backwards;
  }
  
  .score-bar-item:nth-child(1) { animation-delay: 0.05s; }
  .score-bar-item:nth-child(2) { animation-delay: 0.1s; }
  .score-bar-item:nth-child(3) { animation-delay: 0.15s; }
  .score-bar-item:nth-child(4) { animation-delay: 0.2s; }
  .score-bar-item:nth-child(5) { animation-delay: 0.25s; }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .reasoning-insights {
    animation: fadeIn 0.5s ease-out 0.3s backwards;
  }
  
  .advantages-concerns {
    animation: fadeIn 0.5s ease-out 0.35s backwards;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Light theme support for suspect reasoning modal */
  [data-theme="light"] .suspect-reasoning-container {
    color: rgba(0, 0, 0, 0.87);
  }
  
  [data-theme="light"] .score-bar-item {
    color: rgba(0, 0, 0, 0.87);
  }
  
  [data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  [data-theme="light"] .modal-header,
  [data-theme="light"] .modal-footer {
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  [data-theme="light"] .gauge-bg-circle {
    stroke: rgba(0, 0, 0, 0.15);
  }
  
  .lineup-player-card.clickable {
    background: rgba(255,255,255,0.03);
  }
  
  .lineup-player-card.clickable:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(99,102,241,0.1));
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(99,102,241,0.25), 0 0 30px rgba(99,102,241,0.12);
  }
  
  .lineup-player-card.keyboard-focused {
    outline: 3px solid rgba(234, 179, 8, 1);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
    transform: translateY(-2px) scale(1.03);
    z-index: 10;
  }
  
  [data-theme="light"] .lineup-player-card.keyboard-focused {
    outline: 3px solid rgba(234, 179, 8, 1);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.5);
  }
  
  .lineup-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
  }
  .lineup-player-name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    flex: 1;
    min-width: 0; /* Allow text to shrink */
  }

  /* Analytics icon button */
  .analytics-icon {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .analytics-icon:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .analytics-icon svg {
    stroke: rgba(99, 102, 241, 0.9);
    transition: stroke 0.3s ease;
  }

  [data-theme="light"] .analytics-icon svg {
    stroke: rgba(99, 102, 241, 1);
  }

  /* Verdict-based analytics icon colors */
  .analytics-icon.verdict-very-positive svg { stroke: #22c55e; }
  .analytics-icon.verdict-positive svg { stroke: #4ade80; }
  .analytics-icon.verdict-neutral svg { stroke: #fbbf24; }
  .analytics-icon.verdict-negative svg { stroke: #f87171; }
  .analytics-icon.verdict-very-negative svg { stroke: #ef4444; }

  .analytics-icon.verdict-very-positive,
  .analytics-icon.verdict-positive,
  .analytics-icon.verdict-neutral,
  .analytics-icon.verdict-negative,
  .analytics-icon.verdict-very-negative {
    opacity: 0.85;
  }

  .analytics-icon.verdict-very-positive:hover,
  .analytics-icon.verdict-positive:hover,
  .analytics-icon.verdict-neutral:hover,
  .analytics-icon.verdict-negative:hover,
  .analytics-icon.verdict-very-negative:hover {
    opacity: 1;
    transform: scale(1.2);
  }

  /* Matchup breakdown icon button */
  .matchup-breakdown-icon {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .matchup-breakdown-icon:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .matchup-breakdown-icon svg {
    stroke: rgba(99, 102, 241, 0.9);
    transition: stroke 0.3s ease;
  }

  [data-theme="light"] .matchup-breakdown-icon svg {
    stroke: rgba(99, 102, 241, 1);
  }

  /* Verdict-based matchup breakdown icon colors */
  .matchup-breakdown-icon.verdict-very-positive svg { stroke: #22c55e; }
  .matchup-breakdown-icon.verdict-positive svg { stroke: #4ade80; }
  .matchup-breakdown-icon.verdict-neutral svg { stroke: #fbbf24; }
  .matchup-breakdown-icon.verdict-negative svg { stroke: #f87171; }
  .matchup-breakdown-icon.verdict-very-negative svg { stroke: #ef4444; }

  .matchup-breakdown-icon.verdict-very-positive,
  .matchup-breakdown-icon.verdict-positive,
  .matchup-breakdown-icon.verdict-neutral,
  .matchup-breakdown-icon.verdict-negative,
  .matchup-breakdown-icon.verdict-very-negative {
    opacity: 0.85;
  }

  .matchup-breakdown-icon.verdict-very-positive:hover,
  .matchup-breakdown-icon.verdict-positive:hover,
  .matchup-breakdown-icon.verdict-neutral:hover,
  .matchup-breakdown-icon.verdict-negative:hover,
  .matchup-breakdown-icon.verdict-very-negative:hover {
    opacity: 1;
    transform: scale(1.2);
  }

  /* Player props icon button */
  .player-props-icon {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .player-props-icon:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .player-props-icon svg {
    stroke: rgba(99, 102, 241, 0.9);
    transition: stroke 0.3s ease;
  }

  [data-theme="light"] .player-props-icon svg {
    stroke: rgba(99, 102, 241, 1);
  }

  /* Verdict-based player props icon colors */
  .player-props-icon.verdict-very-positive svg { stroke: #22c55e; }
  .player-props-icon.verdict-positive svg { stroke: #4ade80; }
  .player-props-icon.verdict-neutral svg { stroke: #fbbf24; }
  .player-props-icon.verdict-negative svg { stroke: #f87171; }
  .player-props-icon.verdict-very-negative svg { stroke: #ef4444; }

  .player-props-icon.verdict-very-positive,
  .player-props-icon.verdict-positive,
  .player-props-icon.verdict-neutral,
  .player-props-icon.verdict-negative,
  .player-props-icon.verdict-very-negative {
    opacity: 0.85;
  }

  .player-props-icon.verdict-very-positive:hover,
  .player-props-icon.verdict-positive:hover,
  .player-props-icon.verdict-neutral:hover,
  .player-props-icon.verdict-negative:hover,
  .player-props-icon.verdict-very-negative:hover {
    opacity: 1;
    transform: scale(1.2);
  }

  /* Player Props Tabs */
  .player-props-tabs {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
  }

  .player-props-tabs::-webkit-scrollbar {
    height: 5px;
  }

  .player-props-tabs::-webkit-scrollbar-track {
    background: transparent;
  }

  .player-props-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
  }

  .prop-tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.9) !important;
  }

  .prop-tab-btn.active {
    background: rgba(99,102,241,0.3) !important;
    border-color: rgba(99,102,241,0.5) !important;
    color: rgba(255,255,255,0.95) !important;
  }

  /* Betting Option Buttons */
  .bet-option-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .bet-option-btn:active {
    transform: scale(0.98);
  }

  .bet-option-btn[data-bet-type="over"]:hover {
    background: rgba(76,175,80,0.25) !important;
    border-color: rgba(76,175,80,0.6) !important;
  }

  .bet-option-btn[data-bet-type="under"]:hover {
    background: rgba(244,67,54,0.25) !important;
    border-color: rgba(244,67,54,0.6) !important;
  }

  .bet-option-btn[data-bet-type="milestone"]:hover {
    background: rgba(255,193,7,0.25) !important;
    border-color: rgba(255,193,7,0.6) !important;
  }

  /* Player Props Modal Layout */
  .player-props-tabs {
    display: flex;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    white-space: nowrap;
  }

  [data-theme="light"] .player-props-tabs {
    background: rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .prop-tab-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: rgba(255,255,255,0.7);
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  [data-theme="light"] .prop-tab-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: rgba(0,0,0,0.7);
  }

  [data-theme="light"] .prop-tab-btn:hover:not(.active) {
    background: rgba(0,0,0,0.1) !important;
    border-color: rgba(0,0,0,0.2) !important;
    color: rgba(0,0,0,0.9) !important;
  }

  [data-theme="light"] .prop-tab-btn.active {
    background: rgba(99,102,241,0.15) !important;
    border-color: rgba(99,102,241,0.3) !important;
    color: rgba(0,0,0,0.95) !important;
  }

  .prop-type-section {
    margin-bottom: 1.5rem;
  }

  .prop-vendor-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
  }

  [data-theme="light"] .prop-vendor-card {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
  }

  /* Over/Under Layout */
  .bet-over-under-row {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
  }

  [data-theme="light"] .bet-over-under-row {
    background: rgba(0,0,0,0.05);
  }

  .bet-line-value {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    padding: 0 1rem;
    min-width: 3rem;
  }

  [data-theme="light"] .bet-line-value {
    color: rgba(0,0,0,0.9);
  }

  /* Milestone Grid */
  .bet-milestone-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
  }

  [data-theme="light"] .bet-milestone-grid {
    background: rgba(0,0,0,0.05);
  }

  /* Bet Buttons - Over/Under */
  .bet-option-btn {
    padding: 0.5rem 0.35rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-height: 3.5rem;
    min-width: 4.5rem;
    max-width: 6rem;
  }

  .bet-option-btn[data-bet-type="over"] {
    background: rgba(76,175,80,0.15);
    border: 1.5px solid rgba(76,175,80,0.4);
    color: rgba(255,255,255,0.95);
    font-size: 0.65rem;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="over"] {
    background: rgba(76,175,80,0.1);
    border: 1.5px solid rgba(76,175,80,0.3);
    color: rgba(0,0,0,0.9);
  }

  .bet-option-btn[data-bet-type="under"] {
    background: rgba(244,67,54,0.15);
    border: 1.5px solid rgba(244,67,54,0.4);
    color: rgba(255,255,255,0.95);
    font-size: 0.65rem;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="under"] {
    background: rgba(244,67,54,0.1);
    border: 1.5px solid rgba(244,67,54,0.3);
    color: rgba(0,0,0,0.9);
  }

  .bet-option-btn[data-bet-type="milestone"] {
    background: rgba(255,193,7,0.15);
    border: 1.5px solid rgba(255,193,7,0.4);
    color: rgba(255,255,255,0.95);
    font-size: 0.65rem;
    padding: 0.4rem 0.3rem;
    min-height: 3rem;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="milestone"] {
    background: rgba(255,193,7,0.1);
    border: 1.5px solid rgba(255,193,7,0.3);
    color: rgba(0,0,0,0.9);
  }

  .bet-option-label {
    font-size: 0.55rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .bet-option-odds {
    font-weight: 700;
    font-size: 0.7rem;
  }

  .bet-option-btn[data-bet-type="over"] .bet-option-odds {
    color: rgba(76,175,80,1);
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="over"] .bet-option-odds {
    color: rgba(56,142,60,1);
  }

  .bet-option-btn[data-bet-type="under"] .bet-option-odds {
    color: rgba(244,67,54,1);
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="under"] .bet-option-odds {
    color: rgba(198,40,40,1);
  }

  .bet-option-btn[data-bet-type="milestone"] .bet-option-odds {
    color: rgba(255,193,7,1);
    font-size: 0.65rem;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="milestone"] .bet-option-odds {
    color: rgba(245,158,11,1);
  }

  .bet-milestone-line {
    font-size: 0.7rem;
    font-weight: 600;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="over"]:hover {
    background: rgba(76,175,80,0.2) !important;
    border-color: rgba(76,175,80,0.5) !important;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="under"]:hover {
    background: rgba(244,67,54,0.2) !important;
    border-color: rgba(244,67,54,0.5) !important;
  }

  [data-theme="light"] .bet-option-btn[data-bet-type="milestone"]:hover {
    background: rgba(255,193,7,0.2) !important;
    border-color: rgba(255,193,7,0.5) !important;
  }

  /* Matchup Profile */
  .matchup-profile {
    margin-top: 1rem;
    animation: 
      anticipationShake 0.4s ease-in-out,
      burstReveal 0.6s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
      gentleFloat 3s 1s ease-in-out infinite;
  }

  .matchup-breakdown {
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.85rem;
  }

  .matchup-breakdown > h6,
  .matchup-breakdown h6 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
  }

  [data-theme="light"] .matchup-breakdown > h6,
  [data-theme="light"] .matchup-breakdown h6 {
    color: rgba(0, 0, 0, 0.85) !important;
  }

  .matchup-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  [data-theme="light"] .matchup-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  .matchup-header h6 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
  }

  [data-theme="light"] .matchup-header h6 {
    color: rgba(0, 0, 0, 0.6);
  }

  .matchup-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
  }

  [data-theme="light"] .matchup-title {
    color: rgba(0, 0, 0, 0.9);
  }

  .matchup-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  @media (max-width: 768px) {
    .matchup-stats-grid {
      grid-template-columns: 1fr;
    }
  }

  .matchup-column {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .matchup-column-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
  }

  [data-theme="light"] .matchup-column-title {
    color: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .matchup-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
  }

  .matchup-stat-row.projection-summary {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid rgba(99, 102, 241, 0.5);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
  }

  [data-theme="light"] .matchup-stat-row.projection-summary {
    background: rgba(99, 102, 241, 0.06);
    border-left-color: rgba(99, 102, 241, 0.6);
  }

  .matchup-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
  }

  [data-theme="light"] .matchup-stat-label {
    color: rgba(0, 0, 0, 0.7);
  }

  .matchup-stat-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.8rem;
  }

  [data-theme="light"] .matchup-stat-value {
    color: rgba(0, 0, 0, 0.9);
  }

  .stat-diff {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem;
  }

  [data-theme="light"] .stat-diff {
    color: rgba(0, 0, 0, 0.55);
  }

  .stat-diff-positive {
    color: #4ade80 !important;
  }

  .stat-diff-negative {
    color: #f87171 !important;
  }

  .stat-diff-neutral {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  [data-theme="light"] .stat-diff-positive {
    color: #16a34a !important;
  }

  [data-theme="light"] .stat-diff-negative {
    color: #dc2626 !important;
  }

  [data-theme="light"] .stat-diff-neutral {
    color: rgba(0, 0, 0, 0.55) !important;
  }

  /* Sparkline styling */
  .sparkline {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: -0.05em;
    color: rgba(99, 102, 241, 0.8);
    margin: 0 0.4rem;
    display: inline-block;
    white-space: nowrap;
  }

  [data-theme="light"] .sparkline {
    color: rgba(99, 102, 241, 1);
  }

  .matchup-factors {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }

  [data-theme="light"] .matchup-factors {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .matchup-factor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
  }

  [data-theme="light"] .matchup-factor {
    color: rgba(0, 0, 0, 0.85);
  }

  .matchup-factor-icon {
    font-weight: bold;
    font-size: 1rem;
    min-width: 1.2rem;
    text-align: center;
  }

  .matchup-factor-positive .matchup-factor-icon {
    color: #22c55e;
  }

  .matchup-factor-negative .matchup-factor-icon {
    color: #ef4444;
  }

  .matchup-factor-neutral .matchup-factor-icon {
    color: #f59e0b;
  }

  /* Archetype Badge Styles */
  .archetype-badge-container {
    margin-bottom: 1rem;
  }

  .archetype-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  [data-theme="light"] .archetype-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .archetype-icon {
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.9;
  }

  .archetype-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .archetype-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
  }

  [data-theme="light"] .archetype-label {
    color: rgba(0, 0, 0, 0.9);
  }

  .archetype-description {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
  }

  [data-theme="light"] .archetype-description {
    color: rgba(0, 0, 0, 0.65);
  }

  /* Role Distribution Section */
  .role-distribution-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.85rem;
    margin-bottom: 1rem;
  }

  [data-theme="light"] .role-distribution-container {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .role-distribution-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  [data-theme="light"] .role-distribution-title {
    color: rgba(0, 0, 0, 0.85);
  }

  .role-distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .role-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .role-bar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .role-bar-icon {
    font-size: 1rem;
    line-height: 1;
  }

  .role-bar-label {
    flex: 1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] .role-bar-label {
    color: rgba(0, 0, 0, 0.9);
  }

  .role-bar-probability {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.95);
    min-width: 35px;
    text-align: right;
  }

  [data-theme="light"] .role-bar-probability {
    color: rgba(59, 130, 246, 1);
  }

  .role-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
  }

  [data-theme="light"] .role-bar-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .role-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.9) 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-theme="light"] .role-bar-fill {
    background: linear-gradient(90deg, rgba(59, 130, 246, 1) 0%, rgba(147, 51, 234, 1) 100%);
  }

  /* Shot Profile & Play Style Section */
  .shot-profile-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
  }

  [data-theme="light"] .shot-profile-container {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .shot-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  @media (max-width: 600px) {
    .shot-profile-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  }

  .shot-profile-section {
    min-width: 0;
  }

  .shot-profile-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }

  [data-theme="light"] .shot-profile-title {
    color: rgba(0, 0, 0, 0.5);
  }

  /* Shot Zone Bars */
  .shot-zone-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .shot-zone-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
  }

  .shot-zone-label {
    width: 55px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }

  [data-theme="light"] .shot-zone-label {
    color: rgba(0, 0, 0, 0.7);
  }

  .shot-zone-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }

  [data-theme="light"] .shot-zone-bar-container {
    background: rgba(0, 0, 0, 0.08);
  }

  .shot-zone-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
  }

  .shot-zone-rim {
    background: linear-gradient(90deg, #ef4444, #f87171);
  }

  .shot-zone-mid {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
  }

  .shot-zone-three {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
  }

  .shot-zone-value {
    width: 32px;
    text-align: right;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] .shot-zone-value {
    color: rgba(0, 0, 0, 0.85);
  }

  .shot-zone-efficiency {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.25rem;
  }

  [data-theme="light"] .shot-zone-efficiency {
    color: rgba(0, 0, 0, 0.5);
  }

  /* Shot Creation Split */
  .shot-creation-split {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
  }

  [data-theme="light"] .shot-creation-split {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .shot-creation-item {
    color: rgba(255, 255, 255, 0.8);
  }

  [data-theme="light"] .shot-creation-item {
    color: rgba(0, 0, 0, 0.75);
  }

  .shot-creation-label {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.25rem;
  }

  [data-theme="light"] .shot-creation-label {
    color: rgba(0, 0, 0, 0.5);
  }

  /* Play Style Stats */
  .playstyle-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .playstyle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    padding: 0.2rem 0;
  }

  .playstyle-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
  }

  [data-theme="light"] .playstyle-label {
    color: rgba(0, 0, 0, 0.7);
  }

  .playstyle-value {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] .playstyle-value {
    color: rgba(0, 0, 0, 0.85);
  }

  .playstyle-unit {
    font-weight: 400;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.2rem;
  }

  [data-theme="light"] .playstyle-unit {
    color: rgba(0, 0, 0, 0.5);
  }

  /* Matchup Insights Styles */
  .matchup-insights {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }

  [data-theme="light"] .matchup-insights {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .matchup-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .matchup-advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  @media (max-width: 768px) {
    .matchup-advantage-grid {
      grid-template-columns: 1fr;
    }
  }

  .matchup-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  [data-theme="light"] .matchup-summary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .matchup-summary-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .matchup-summary-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  [data-theme="light"] .matchup-summary-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .matchup-summary-icon {
    font-size: 0.9rem;
  }

  .matchup-summary-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] .matchup-summary-title {
    color: rgba(0, 0, 0, 0.8);
  }

  .matchup-summary-table {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .matchup-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }

  .matchup-summary-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
  }

  [data-theme="light"] .matchup-summary-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
  }

  .matchup-summary-header-row {
    background: rgba(255, 255, 255, 0.05) !important;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
  }

  [data-theme="light"] .matchup-summary-header-row {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.5);
  }

  .matchup-summary-factor {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
  }

  [data-theme="light"] .matchup-summary-factor {
    color: rgba(0, 0, 0, 0.7);
  }

  .matchup-summary-impact {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
  }

  .matchup-impact-positive {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
  }

  .matchup-impact-neutral {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
  }

  .matchup-impact-negative {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
  }

  [data-theme="light"] .matchup-impact-positive {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
  }

  [data-theme="light"] .matchup-impact-neutral {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
  }

  [data-theme="light"] .matchup-impact-negative {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
  }

  .matchup-verdict {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .matchup-verdict-very-positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
  }

  .matchup-verdict-positive {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
  }

  .matchup-verdict-neutral {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }

  .matchup-verdict-negative {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  .matchup-verdict-very-negative {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.4);
  }

  /* ── Projection bar section ────────────────────────────────────────── */
  .proj-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
  }

  [data-theme="light"] .proj-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
  }

  .proj-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  [data-theme="light"] .proj-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .proj-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
    margin: 0;
  }

  [data-theme="light"] .proj-section-title {
    color: rgba(0, 0, 0, 0.5);
  }

  .proj-multiplier-badge {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.1rem 0.6rem;
    border-radius: 8px;
    letter-spacing: 0;
  }

  .proj-mult-positive {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
  }

  .proj-mult-neutral {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
  }

  .proj-mult-negative {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  [data-theme="light"] .proj-mult-positive { color: #16a34a; background: rgba(34, 197, 94, 0.12); }
  [data-theme="light"] .proj-mult-neutral  { color: #d97706; background: rgba(245, 158, 11, 0.1); }
  [data-theme="light"] .proj-mult-negative { color: #dc2626; background: rgba(239, 68, 68, 0.12); }

  .proj-confidence {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
  }

  .conf-high   { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }
  .conf-medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
  .conf-low    { background: rgba(239, 68, 68, 0.15);  color: #f87171; }

  [data-theme="light"] .conf-high   { color: #16a34a; }
  [data-theme="light"] .conf-medium { color: #d97706; }
  [data-theme="light"] .conf-low    { color: #dc2626; }

  .proj-components {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .proj-component-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }

  .proj-comp-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    width: 3.5rem;
    flex-shrink: 0;
  }

  [data-theme="light"] .proj-comp-label {
    color: rgba(0, 0, 0, 0.7);
  }

  .proj-comp-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }

  [data-theme="light"] .proj-comp-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .proj-comp-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
  }

  .proj-comp-pct {
    font-weight: 600;
    width: 4rem;
    text-align: right;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] .proj-comp-pct {
    color: rgba(0, 0, 0, 0.85);
  }

  .proj-pct-positive { color: #4ade80 !important; }
  .proj-pct-negative { color: #f87171 !important; }

  [data-theme="light"] .proj-pct-positive { color: #16a34a !important; }
  [data-theme="light"] .proj-pct-negative { color: #dc2626 !important; }

  /* Stat chips */
  .proj-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.65rem;
  }

  [data-theme="light"] .proj-stat-chips {
    border-top-color: rgba(0, 0, 0, 0.08);
  }

  .proj-stat-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
  }

  .chip-up   { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
  .chip-down { background: rgba(239, 68, 68, 0.15); color: #f87171; }

  [data-theme="light"] .chip-up   { color: #16a34a; background: rgba(34, 197, 94, 0.1); }
  [data-theme="light"] .chip-down { color: #dc2626; background: rgba(239, 68, 68, 0.1); }

  /* Role distribution mini-bars */
  .proj-roles {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  [data-theme="light"] .proj-roles {
    border-top-color: rgba(0, 0, 0, 0.08);
  }

  .proj-roles-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
  }

  [data-theme="light"] .proj-roles-title {
    color: rgba(0, 0, 0, 0.5);
  }

  .proj-role-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }

  .proj-role-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    width: 8rem;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  [data-theme="light"] .proj-role-label {
    color: rgba(0, 0, 0, 0.7);
  }

  .proj-role-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }

  [data-theme="light"] .proj-role-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .proj-role-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 4px;
  }

  .proj-role-pct {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    width: 2.5rem;
    text-align: right;
    flex-shrink: 0;
  }

  [data-theme="light"] .proj-role-pct {
    color: rgba(0, 0, 0, 0.85);
  }
  /* Pace differential annotation */
  .proj-pace-diff {
    font-size: 0.6rem;
    opacity: 0.65;
    margin-left: 0.15rem;
    font-weight: 400;
  }

  /* Stat leverage bars */
  .proj-leverage {
    margin-top: 0.5rem;
  }

  .proj-leverage-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
  }

  [data-theme="light"] .proj-leverage-title {
    color: rgba(0, 0, 0, 0.5);
  }

  .proj-lev-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }

  .proj-lev-label {
    font-weight: 500;
    width: 2.4rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
  }

  [data-theme="light"] .proj-lev-label {
    color: rgba(0, 0, 0, 0.7);
  }

  .proj-lev-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }

  [data-theme="light"] .proj-lev-track {
    background: rgba(0, 0, 0, 0.08);
  }

  .proj-lev-fill {
    height: 100%;
    border-radius: 4px;
  }

  .proj-lev-fill.lev-high {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
  }

  .proj-lev-fill.lev-mid {
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
  }

  .proj-lev-fill.lev-low {
    background: rgba(255, 255, 255, 0.15);
  }

  [data-theme="light"] .proj-lev-fill.lev-low {
    background: rgba(0, 0, 0, 0.1);
  }

  .proj-lev-val {
    font-weight: 600;
    width: 2.5rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
  }

  [data-theme="light"] .proj-lev-val {
    color: rgba(0, 0, 0, 0.85);
  }

  /* Two-column layout: Projected Stats + Stat Leverage side by side */
  .proj-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.25rem;
  }

  @media (max-width: 576px) {
    .proj-two-col {
      grid-template-columns: 1fr;
    }
  }

  /* Projected stat lines (baseline → projected with delta %) */
  .proj-stat-lines {
    margin-bottom: 0.75rem;
  }

  .proj-stat-baseline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 2.5rem;
    text-align: right;
  }

  [data-theme="light"] .proj-stat-baseline {
    color: rgba(0, 0, 0, 0.45);
  }

  .proj-stat-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
  }

  [data-theme="light"] .proj-stat-arrow {
    color: rgba(0, 0, 0, 0.25);
  }

  .proj-stat-projected {
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
  }

  [data-theme="light"] .proj-stat-projected {
    color: rgba(0, 0, 0, 0.85);
  }

  /* Game quality range — floor/upside from game star rating */
  .game-quality-range {
    margin-bottom: 0.75rem;
  }

  .gq-range-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
  }

  .gq-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    min-width: 5rem;
  }

  .gq-label-right {
    text-align: right;
  }

  [data-theme="light"] .gq-label {
    color: rgba(0, 0, 0, 0.6);
  }

  .gq-track {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    position: relative;
  }

  .gq-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  }

  [data-theme="light"] .gq-dot {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  }

  /* ── end Projection bar section ─────────────────────────────────────── */

  .matchup-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  @media (max-width: 768px) {
    .matchup-insights-grid {
      grid-template-columns: 1fr;
    }
  }

  .matchup-insight-section {
    margin-bottom: 0;
  }

  .matchup-insight-section:last-child {
    margin-bottom: 0;
  }

  .matchup-insight-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .matchup-insight-icon {
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 1rem;
    text-align: center;
  }

  .matchup-insight-positive {
    color: #22c55e;
  }

  .matchup-insight-negative {
    color: #ef4444;
  }

  .matchup-insight-neutral {
    color: #f59e0b;
  }

  .matchup-opportunity-score {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
  }
  [data-theme="light"] .matchup-opportunity-score { color: rgba(0,0,0,0.45); }

  .matchup-insight-section-neutral {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }

  .matchup-insight-title {
    opacity: 0.9;
  }

  .matchup-insight-item {
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
  }

  [data-theme="light"] .matchup-insight-item {
    color: rgba(0, 0, 0, 0.85);
  }

  .matchup-insight-item-positive {
    background: rgba(34, 197, 94, 0.08);
    border-left: 2px solid rgba(34, 197, 94, 0.4);
  }

  [data-theme="light"] .matchup-insight-item-positive {
    background: rgba(34, 197, 94, 0.05);
  }

  .matchup-insight-item-negative {
    background: rgba(239, 68, 68, 0.08);
    border-left: 2px solid rgba(239, 68, 68, 0.4);
  }

  [data-theme="light"] .matchup-insight-item-negative {
    background: rgba(239, 68, 68, 0.05);
  }

  .matchup-insight-item-neutral {
    background: rgba(245, 158, 11, 0.08);
    border-left: 2px solid rgba(245, 158, 11, 0.4);
  }

  [data-theme="light"] .matchup-insight-item-neutral {
    background: rgba(245, 158, 11, 0.05);
  }

  /* ── MLB Matchup Analysis Modal ─────────────────────────────────────── */
  .mlb-matchup-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mlb-matchup-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  @media (max-width: 700px) {
    .mlb-matchup-columns { grid-template-columns: 1fr; }
  }

  .mlb-matchup-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  [data-theme="light"] .mlb-matchup-panel {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
  }

  .mlb-matchup-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mlb-matchup-pitcher-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
  }

  [data-theme="light"] .mlb-matchup-pitcher-name {
    color: var(--text-primary-light, #1e293b);
  }

  .mlb-matchup-vs {
    font-size: 0.72rem;
    opacity: 0.6;
    margin-top: 0.1rem;
  }

  .mlb-matchup-team {
    font-size: 1rem;
    font-weight: 700;
  }

  .mlb-pitcher-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .mlb-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
  }

  [data-theme="light"] .mlb-stat-pill {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
  }

  .mlb-stat-label {
    opacity: 0.6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .mlb-stat-val {
    font-weight: 700;
  }

  .mlb-trend-good { color: #4ade80; font-size: 0.68rem; }
  .mlb-trend-bad  { color: #f87171; font-size: 0.68rem; }

  [data-theme="light"] .mlb-trend-good { color: #16a34a; }
  [data-theme="light"] .mlb-trend-bad  { color: #dc2626; }

  .mlb-opportunity-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    padding: 0.35rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  [data-theme="light"] .mlb-opportunity-row {
    border-color: rgba(0,0,0,0.07);
  }

  .mlb-opp-label { opacity: 0.7; }
  .mlb-opp-score { font-weight: 800; font-size: 1rem; }
  .mlb-opp-hint  { opacity: 0.55; font-size: 0.7rem; }

  .mlb-score-positive { color: #4ade80; }
  .mlb-score-negative { color: #f87171; }
  .mlb-score-neutral  { color: #fbbf24; }

  [data-theme="light"] .mlb-score-positive { color: #16a34a; }
  [data-theme="light"] .mlb-score-negative { color: #dc2626; }
  [data-theme="light"] .mlb-score-neutral  { color: #d97706; }

  .mlb-matchup-factors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .mlb-factor-section { display: flex; flex-direction: column; gap: 0.2rem; }

  .mlb-matchup-no-pitcher {
    font-size: 0.8rem;
    opacity: 0.55;
    text-align: center;
    padding: 1rem 0;
  }

  /* Stack analysis */
  .mlb-stack-analysis {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.875rem;
  }

  [data-theme="light"] .mlb-stack-analysis {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
  }

  .mlb-stack-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  [data-theme="light"] .mlb-stack-header {
    border-bottom-color: rgba(0,0,0,0.07);
  }

  .mlb-stack-icon { font-size: 1rem; }

  .mlb-stack-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    flex: 1;
  }

  .mlb-stack-total {
    font-size: 0.78rem;
    opacity: 0.7;
  }

  .mlb-stack-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mlb-stack-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .mlb-stack-label { opacity: 0.65; min-width: 110px; }

  .mlb-stack-value { font-weight: 600; }

  .mlb-stack-side {
    color: #60a5fa;
    font-weight: 700;
  }

  [data-theme="light"] .mlb-stack-side { color: #2563eb; }

  .mlb-stack-recs {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mlb-stack-rec {
    font-size: 0.78rem;
    opacity: 0.8;
    padding-left: 0.75rem;
    position: relative;
  }

  .mlb-stack-rec::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0.5;
  }

  /* Unavailable state */
  .mlb-matchup-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    gap: 0.5rem;
    text-align: center;
  }

  .mlb-matchup-unavailable-icon { font-size: 2rem; }

  .mlb-matchup-unavailable-title {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.85;
  }

  .mlb-matchup-unavailable-desc {
    font-size: 0.82rem;
    opacity: 0.55;
    max-width: 320px;
  }

  .lineup-player-right {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .lineup-player-pos {
    color: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    flex-shrink: 0;
  }
  .injury-probable {
    background: rgba(34, 197, 94, 0.2);
    color: rgba(255, 255, 255, 1);
    font-size: 0.54rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }
  .lineup-player-stats {
    font-size: 0.80rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
  }
  /* Scoped to lineup cards only - prevents affecting player profile modal */
  .lineup-player-card .lineup-player-stats .stat-line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .lineup-player-card .lineup-player-stats .stat-line:hover {
    transform: scale(1.12);
    background: rgba(99, 102, 241, 0.15);
  }
  .lineup-player-card .lineup-player-stats .stat-label {
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    text-transform: uppercase;
  }
  .lineup-player-card .lineup-player-stats .stat-value {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: uppercase;
    text-align: right;
  }
  /* Player profile modal stats - inline display */
  .modal .lineup-player-stats .stat-line {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .modal .lineup-player-stats .stat-line:hover {
    transform: scale(1.12);
    background: rgba(99, 102, 241, 0.15);
  }
  .modal .lineup-player-stats .stat-label {
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    text-transform: uppercase;
  }
  .modal .lineup-player-stats .stat-value {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: uppercase;
  }

  .lineup-section-title {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
  }

  /* Hide lineup and veredict sections by default */
  #lineup-compare-row.hidden,
  #veredict-section-row.hidden {
    display: none !important;
  }



  .injury-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 280px));
    gap: 0.5rem;
  }

  .injury-item {
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
  }
  
  /* Injury card backgrounds based on status */
  .injury-item:has(.injury-status.out-for-season) {
    background: rgba(127,29,29,0.25);
    border-color: rgba(127,29,29,0.40);
  }
  .injury-item:has(.injury-status.out) {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.30);
  }
  .injury-item:has(.injury-status.doubtful) {
    background: rgba(194,65,12,0.15);
    border-color: rgba(194,65,12,0.30);
  }
  .injury-item:has(.injury-status.questionable) {
    background: rgba(245,158,11,0.15);
    border-color: rgba(245,158,11,0.30);
  }
  .injury-item:has(.injury-status.probable) {
    background: rgba(21,128,61,0.15);
    border-color: rgba(21,128,61,0.30);
  }
  .injury-item:has(.injury-status.dtd) {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.20);
  }
  
  .injury-item:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  
  .injury-item.clickable:hover {
    filter: brightness(1.3);
  }

  .injury-item.keyboard-focused {
    outline: 3px solid rgba(234, 179, 8, 1);
    outline-offset: 2px;
    filter: brightness(1.4);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.3);
  }

  .injury-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .injury-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .injury-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
  }
  .injury-status.out-for-season { background: rgba(127,29,29,0.50); color: rgba(255,255,255,0.95); border-color: rgba(127,29,29,0.70); }
  .injury-status.out { background: rgba(239,68,68,0.35); color: rgba(255,255,255,0.95); border-color: rgba(239,68,68,0.55); }
  .injury-status.doubtful { background: rgba(194,65,12,0.35); color: rgba(255,255,255,0.95); border-color: rgba(194,65,12,0.55); }
  .injury-status.questionable { background: rgba(245,158,11,0.35); color: rgba(255,255,255,0.95); border-color: rgba(245,158,11,0.55); }
  .injury-status.probable { background: rgba(21,128,61,0.35); color: rgba(255,255,255,0.95); border-color: rgba(21,128,61,0.55); }
  .injury-status.dtd { background: rgba(59,130,246,0.18); color: rgba(255,255,255,0.92); border-color: rgba(59,130,246,0.30); }

  .lineup-compare-close {
    --bs-btn-padding-y: 0.18rem;
    --bs-btn-padding-x: 0.55rem;
    --bs-btn-font-size: 0.75rem;
  }

/* ================================
   SCOREBOARD RANKS WITH RIBBONS
   ================================ */

/* ================================
   SCOREBOARD RANK BADGES (RIBBONS)
   ================================ */

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  color: rgba(255,255,255,.70);
  position: relative;
}

/* default ranks 4+ look like your existing style */
.rank-badge.rank-4,
.rank-badge.rank-5,
.rank-badge.rank-6,
.rank-badge.rank-7,
.rank-badge.rank-8,
.rank-badge.rank-9,
.rank-badge.rank-10 {
  background: transparent;
  border: none;
  font-weight: 600;
  color: rgba(255,255,255,.65);
}

/* Shared ribbon look for top 3 */
.rank-badge.rank-1,
.rank-badge.rank-2,
.rank-badge.rank-3 {
  color: #0b1220;            /* dark text on bright ribbon */
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}

/* Ribbon "tails" */
.rank-badge.rank-1::after,
.rank-badge.rank-2::after,
.rank-badge.rank-3::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 10px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  opacity: 0.95;
}

/* â‰¡Æ’Ã‘Ã§ 1st */
.rank-badge.rank-1 {
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  font-size: 1.05rem;
  width: 30px;
  height: 30px;
}
.rank-badge.rank-1::after {
  background: linear-gradient(180deg, #facc15 0%, #d97706 100%);
}

/* â‰¡Æ’Ã‘Ãª 2nd */
.rank-badge.rank-2 {
  background: linear-gradient(180deg, #f3f4f6 0%, #9ca3af 100%);
  font-size: 0.98rem;
  width: 29px;
  height: 29px;
}
.rank-badge.rank-2::after {
  background: linear-gradient(180deg, #e5e7eb 0%, #6b7280 100%);
}

/* â‰¡Æ’Ã‘Ã« 3rd */
.rank-badge.rank-3 {
  background: linear-gradient(180deg, #f0b58c 0%, #b45309 100%);
  font-size: 0.92rem;
  width: 28px;
  height: 28px;
}
.rank-badge.rank-3::after {
  background: linear-gradient(180deg, #f0b58c 0%, #92400e 100%);
}

/* Modern close button for modals */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-close-btn::before,
.modal-close-btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
}

.modal-close-btn::before {
  transform: rotate(45deg);
}

.modal-close-btn::after {
  transform: rotate(-45deg);
}

/* Variant for card headers - no absolute positioning */
.modal-close-btn.card-close {
  position: static;
  margin: 0;
}

/* Modern modal footer button */
.modal-footer-btn {
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.modal-footer-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-footer-btn:active {
  transform: translateY(0);
}

/* Auth icon button styles */
.auth-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-primary);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-icon-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.auth-icon-btn:active {
  transform: scale(0.95);
}

.auth-icon-btn svg {
  display: block;
}

/* Play-by-Play Styles */
.plays-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.plays-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.play-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
}

.play-left {
  display: flex;
  justify-content: flex-end;
}

.play-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 120px;
  padding: 0 1rem;
  border-left: 2px solid rgba(99, 102, 241, 0.3);
  border-right: 2px solid rgba(99, 102, 241, 0.3);
}

.play-right {
  display: flex;
  justify-content: flex-start;
}

.play-time {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(99, 102, 241, 0.9);
}

.play-score {
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.quarter-section {
  border-left: 3px solid rgba(99, 102, 241, 0.5);
  padding-left: 1rem;
}

.quarter-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.play-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 400px;
}

.play-left .play-item {
  text-align: right;
}

.play-right .play-item {
  text-align: left;
}

.play-text {
  color: rgba(255, 255, 255, 0.75);
  word-break: break-word;
  clear: both;
  margin-top: 0.3rem;
}

.play-item.scoring {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.play-item.scoring .play-text {
  color: rgba(34, 197, 94, 0.9);
  font-weight: 500;
}

.play-item.defensive-play {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.play-item.defensive-play .play-type {
  color: rgba(239, 68, 68, 0.95);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.play-item.defensive-play .play-text {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Positive defensive plays (steals, blocks made by defender) */
.play-item.positive-play {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.play-item.positive-play .play-type {
  color: rgba(34, 197, 94, 0.95);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.play-item.positive-play .play-text {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Quarter Tabs Styles */
[id^="playsQuarterTabs"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

[id^="playsQuarterTabs"] .nav-link {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[id^="playsQuarterTabs"] .nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

[id^="playsQuarterTabs"] .nav-link.active {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

  /* Full-screen loading overlay */
  .app-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .app-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .app-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: rgba(99, 102, 241, 0.8);
    border-radius: 50%;
    animation: app-loading-spin 1s linear infinite;
    margin-bottom: 1rem;
  }
  
  .app-loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
  
  /* Keyboard shortcuts modal styling */
  kbd {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
  }
  
  [data-theme="light"] kbd {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
  }

  @keyframes app-loading-spin {
    to { transform: rotate(360deg); }
  }
  
  /* Disable interactions while loading */
  .app-loading .container-fluid,
  .app-loading .main-content {
    pointer-events: none;
    opacity: 0.3;
  }
  /* Export button styling */
  #gamesExportDropdown,
  #lineupsExportDropdown,
  #exportLeadersDropdown {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-color: var(--border-color);
    color: var(--text-secondary);
    background: transparent;
    transition: all 0.2s ease;
  }

  #gamesExportDropdown:hover,
  #lineupsExportDropdown:hover,
  #exportLeadersDropdown:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.1);
  }

  #gamesExportDropdown svg,
  #lineupsExportDropdown svg,
  #exportLeadersDropdown svg {
    vertical-align: text-top;
    margin-right: 0.25rem;
  }

  /* Export dropdown menu */
  .dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  }

  .dropdown-item {
    color: var(--text-secondary);
    transition: all 0.15s ease;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
  }

  [data-theme="light"] .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }  }

  /* ============================================================================
     SORTABLEJS DRAG-AND-DROP STYLES
     ============================================================================ */

  /* Ghost element - the placeholder where item will be dropped */
  .sortable-ghost {
    opacity: 0.4;
    background: rgba(99, 102, 241, 0.2) !important;
    border: 2px dashed rgba(99, 102, 241, 0.5) !important;
  }

  /* Chosen element - the item being picked up */
  .sortable-chosen {
    cursor: grabbing !important;
  }

  /* Drag element - the item being dragged */
  .sortable-drag {
    opacity: 0.8;
    cursor: grabbing !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    transform: rotate(2deg) scale(1.02);
    transition: transform 0.2s ease;
    z-index: 9999 !important;
  }

  /* Game cards - add grab cursor on hover */
  #games-list .game-card {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  #games-list .game-card:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.08));
    border-color: rgba(99,102,241,0.4);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
      0 4px 12px rgba(99,102,241,0.2),
      0 8px 24px rgba(0,0,0,0.15);
    z-index: 10;
  }

  #games-list .game-card:active {
    cursor: grabbing;
  }

  /* Leaderboard cards - make title row grabbable (not toggles row) */
  #boards .board-title-row {
    cursor: grab;
    transition: background-color 0.2s ease;
  }

  #boards .board-title-row:hover {
    background-color: rgba(99, 102, 241, 0.15) !important;
  }

  #boards .board-title-row:active {
    cursor: grabbing;
  }

  /* Main sections - make card headers draggable for section reordering */
  .main-section > .col-12 > .card > .card-header,
  .main-section .card-header.section-drag-handle {
    cursor: grab !important;
    user-select: none;
    transition: all 0.2s ease;
  }

  .main-section > .col-12 > .card > .card-header:hover,
  .main-section .card-header.section-drag-handle:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
    outline:  2px dashed rgba(99, 102, 241, 0.3);
    outline-offset: -2px;
    border-radius: 4px;
  }

  .main-section > .col-12 > .card > .card-header:active,
  .main-section .card-header.section-drag-handle:active {
    cursor: grabbing !important;
  }

  /* Section drag handle icon - hidden by default, visible on mobile */
  .section-drag-handle-icon {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    cursor: grab;
    z-index: 10;
    touch-action: none;
    pointer-events: auto;
  }

  .section-drag-handle-icon:active {
    cursor: grabbing;
    color: rgba(255, 255, 255, 0.5);
  }

  /* Show drag handle on mobile devices, hide grab cursor on section headers */
  @media (hover: none) and (pointer: coarse) {
    .section-drag-handle-icon {
      display: flex;
    }

    .main-section > .col-12 > .card > .card-header,
    .main-section .card-header.section-drag-handle {
      cursor: default !important;
      padding-top: 1.25rem;
    }

    .main-section > .col-12 > .card > .card-header:hover,
    .main-section .card-header.section-drag-handle:hover {
      background-color: transparent !important;
      outline: none;
    }

    .main-section > .col-12 > .card > .card-header:active,
    .main-section .card-header.section-drag-handle:active {
      cursor: default !important;
    }
  }

  /* Light theme adjustments for sortable elements */
  [data-theme="light"] .sortable-ghost {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
  }

  [data-theme="light"] .sortable-drag {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  }

  [data-theme="light"] #boards .board-title-row:hover {
    background-color: rgba(99, 102, 241, 0.08) !important;
  }
  }

  /* ============================================================================
     Season Tabs Styling - Player Profile Modal
     ============================================================================ */
  
  .season-tabs-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
  }
  
  .season-tabs-container::-webkit-scrollbar {
    height: 6px;
  }
  
  .season-tabs-container::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .season-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
  }
  
  .season-tabs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
  }
  
  .season-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    min-width: fit-content;
  }
  
  .season-tab {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }
  
  .season-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
  }
  
  .season-tab:hover:not(.active)::before {
    opacity: 0.08;
  }
  
  .season-tab:hover:not(.active) {
    color: var(--text-primary);
  }
  
  .season-tab.active {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }
  
  .season-tab:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  }
  
  .season-tab-loading {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Light theme adjustments for season tabs */
  [data-theme="light"] .season-tabs {
    background: var(--bg-tertiary);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  }
  
  [data-theme="light"] .season-tab.active {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  }
  
  [data-theme="light"] .season-tab:hover:not(.active) {
    background: rgba(99, 102, 241, 0.08);
  }
  
  /* Responsive adjustments for season tabs */
  @media (max-width: 768px) {
    .season-tab {
      padding: 0.45rem 1rem;
      font-size: 0.85rem;
    }
  }

  /* ============================================================================
     Performance Window Tabs - Role Stability Inline Tabs
     ============================================================================ */
  
  .role-stability-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .performance-window-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.15rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
  }
  
  .perf-window-tab {
    padding: 0.125rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
  }
  
  .perf-window-tab:hover:not(.active):not(:disabled) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
  }
  
  .perf-window-tab.active {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
  }
  
  .perf-window-tab:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  
  .perf-window-tab:focus {
    outline: none;
  }
  
  /* Light theme adjustments for performance window tabs */
  [data-theme="light"] .performance-window-tabs {
    background: #f0f0f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  
  [data-theme="light"] .perf-window-tab.active {
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.25);
  }
  
  [data-theme="light"] .perf-window-tab:hover:not(.active):not(:disabled) {
    background: rgba(99, 102, 241, 0.12);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .role-stability-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .perf-window-tab {
      padding: 0.2rem 0.5rem;
      font-size: 0.7rem;
    }
  }

  /* ============================================================================     Game Quality Rating Stars
     ============================================================================ */

  /* Base game card styles - ensure positioning context exists */
  .game-card {
    position: relative !important;
    padding-left: 30px !important;
    display: flex;
    align-items: center;
  }

  /* MLB cards have no quality stars — restore balanced padding on all screen sizes */
  .game-card--mlb {
    padding-left: 0.60rem !important;
    padding-top: 1rem !important;
  }

  .game-with-odds-container {
    position: relative;
    width: 100%;
    cursor: help;
  }

  /* Container for quality stars - positioned on left side of game card */
  .game-quality-stars {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
    pointer-events: none;
  }

  /* Individual star styling */
  .game-quality-stars .star {
    font-size: 16px;
    line-height: 0.9;
    transition: transform 0.15s ease, color 0.15s ease;
    display: block;
  }

  /* Filled stars - yellow/gold */
  .game-quality-stars .star.filled {
    color: #fbbf24 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  /* Empty stars - gray */
  .game-quality-stars .star.empty {
    color: #6b7280 !important;
    opacity: 0.5;
  }

  /* Hover effect on stars container */
  .game-quality-stars:hover .star {
    transform: scale(1.2);
  }

  /* Color-backed accents for different rating levels */
  .game-quality-stars.rating-high {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
    border-radius: 12px;
    padding: 2px 6px;
  }

  .game-quality-stars.rating-low {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
    border-radius: 12px;
    padding: 2px 6px;
  }

  .game-quality-stars.rating-neutral {
    /* No special accent for 3-star neutral ratings */
  }

  /* Blowout Alert Icon - positioned above the score within score-block */
  .score-block {
    position: relative;
  }

  .blowout-alert-icon {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    z-index: 15;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
  }

  @keyframes alarmGlowPulse {
    0%, 100% {
      filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.5));
    }
    25% {
      filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.15));
    }
    50% {
      filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.5));
    }
    75% {
      filter: drop-shadow(0 0 24px rgba(255, 215, 0, 1)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
    }
  }

  .alarm-light-svg {
    width: 100%;
    height: 100%;
    animation: alarmGlowPulse 1.5s infinite;
  }

  .blowout-alert-icon:hover .alarm-light-svg {
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 1)) !important;
  }

  /* Light theme adjustments for SVG alarm */
  @keyframes alarmGlowPulseLight {
    0%, 100% {
      filter: drop-shadow(0 0 6px rgba(255, 180, 0, 0.6));
    }
    25% {
      filter: drop-shadow(0 0 2px rgba(255, 180, 0, 0.2));
    }
    50% {
      filter: drop-shadow(0 0 6px rgba(255, 180, 0, 0.6));
    }
    75% {
      filter: drop-shadow(0 0 20px rgba(255, 200, 0, 1)) drop-shadow(0 0 10px rgba(255, 200, 0, 0.95));
    }
  }

  [data-theme="light"] .alarm-light-svg {
    animation: alarmGlowPulseLight 1.5s infinite;
  }

  /* Enhanced hover effects for color accents */
  .game-quality-stars.rating-high:hover {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
  }

  .game-quality-stars.rating-low:hover {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  }

  /* Light theme adjustments for stars */
  [data-theme="light"] .game-quality-stars .star.filled {
    color: #f59e0b !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  }

[data-theme="light"] .game-quality-stars .star.empty {
    color: #9ca3af !important;
    opacity: 0.6;
  }

  /* Light theme color accents */
  [data-theme="light"] .game-quality-stars.rating-high {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  }

  [data-theme="light"] .game-quality-stars.rating-low {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  }

  [data-theme="light"] .game-quality-stars.rating-high:hover {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.18) 0%, transparent 70%);
  }

  [data-theme="light"] .game-quality-stars.rating-low:hover {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
  }

  /* ============================================================================
     Custom Tooltip System
     ============================================================================ */
  
  /* Tooltip container */
  .custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 320px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
    text-align: left;
  }
  
  .custom-tooltip.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Tooltip arrow */
  .custom-tooltip::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
  }
  
  /* Tooltip positioned below element */
  .custom-tooltip.tooltip-below::before {
    bottom: auto;
    top: -4px;
    border-top: none;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
  }
  
  /* Light theme tooltip */
  [data-theme="light"] .custom-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  [data-theme="light"] .custom-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.95);
  }
  
  [data-theme="light"] .custom-tooltip.tooltip-below::before {
    border-bottom-color: rgba(255, 255, 255, 0.95);
    border-top-color: transparent;
  }

  /* Mobile responsive adjustments */
  @media (max-width: 768px) {
    .game-card {
      padding-left: 26px !important;
    }

    /* MLB cards have no quality stars — restore balanced padding */
    .game-card--mlb {
      padding-left: 0.60rem !important;
    }

    .game-quality-stars {
      left: 5px;
      gap: 3px;
    }

    .game-quality-stars .star {
      font-size: 18px;
    }
  }

  /* ============================================================================
     GRID TEMPLATE SELECTOR
     ============================================================================ */
  
  .template-selector {
    display: flex;
    gap: 0.25rem;
    align-items: center;
  }
  
  .template-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  
  .template-btn svg {
    stroke: var(--text-secondary);
    transition: stroke 0.2s ease;
  }
  
  .template-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
  }
  
  .template-btn:hover svg {
    stroke: var(--accent-color);
  }
  
  .template-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
  }
  
  .template-btn.active svg {
    stroke: white;
  }
  
  /* Light mode overrides for template buttons */
  [data-theme="light"] .template-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  [data-theme="light"] .template-btn svg {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1.5;
  }
  
  [data-theme="light"] .template-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  [data-theme="light"] .template-btn:hover svg {
    stroke: rgba(255, 255, 255, 1);
    stroke-width: 1.75;
  }
  
  [data-theme="light"] .template-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }
  
  [data-theme="light"] .template-btn.active svg {
    stroke: white;
    stroke-width: 2;
  }
  
  /* Grid Layout Templates */
  #main-sections-container.grid-template-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  #main-sections-container.grid-template-2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 1rem;
  }

  /* 2-column layout: Games in left column, Evidence/FACTS/Leaderboards stacked in right column */
  #main-sections-container.grid-template-2 .main-section[data-section="games"] {
    grid-column: span 2;
    grid-row: 1 / span 5;
  }

  #main-sections-container.grid-template-2 .main-section[data-section="lineup"],
  #main-sections-container.grid-template-2 .main-section[data-section="veredict"],
  #main-sections-container.grid-template-2 .main-section[data-section="leaderboards"] {
    grid-column: 3 / span 10;
  }
  
  #main-sections-container.grid-template-3 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 1rem;
  }
  
  /* 3-column layout: Games(col 1-2) + FACTS(col 3-4) + Evidence/Leaderboards stacked(col 5-12) */
  #main-sections-container.grid-template-3 .main-section[data-section="games"] {
    grid-column: span 2;
    grid-row: 1 / span 5;
  }

  #main-sections-container.grid-template-3 .main-section[data-section="veredict"] {
    grid-column: span 2;
    grid-row: 1 / span 5;
  }
  
  #main-sections-container.grid-template-3 .main-section[data-section="lineup"],
  #main-sections-container.grid-template-3 .main-section[data-section="leaderboards"] {
    grid-column: span 8;
  }

  /* template-3: prevent game cards and veredict from overflowing their grid tracks */
  /* overflow-x: clip clips horizontal overflow without creating a scroll container;
     overflow-y: visible ensures tall content (FACTORS etc.) is not vertically clipped */
  #main-sections-container.grid-template-3 .main-section[data-section="games"],
  #main-sections-container.grid-template-3 .main-section[data-section="veredict"] {
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
  }

  #main-sections-container.grid-template-3 [data-section="games"] .game-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #main-sections-container.grid-template-3 [data-section="games"] .games-strip {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Multi-column templates: betting odds rows wrap vertically in narrow columns */
  #main-sections-container.grid-template-2 [data-section="games"] .betting-line,
  #main-sections-container.grid-template-3 [data-section="games"] .betting-line,
  #main-sections-container.grid-template-4 [data-section="games"] .betting-line {
    flex-wrap: wrap;
    row-gap: 0.1rem;
  }

  #main-sections-container.grid-template-2 [data-section="games"] .betting-label,
  #main-sections-container.grid-template-3 [data-section="games"] .betting-label,
  #main-sections-container.grid-template-4 [data-section="games"] .betting-label {
    width: 80px;
    font-size: 0.67rem;
  }

  /* Multi-column templates: games/veredict columns clip horizontal but scroll vertically */
  #main-sections-container.grid-template-2 .main-section[data-section="games"],
  #main-sections-container.grid-template-2 .main-section[data-section="veredict"],
  #main-sections-container.grid-template-4 .main-section[data-section="veredict"] {
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
  }



  #main-sections-container.grid-template-2 .suspect-card,
  #main-sections-container.grid-template-3 .suspect-card,
  #main-sections-container.grid-template-4 .suspect-card {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
  }

  /* Game card min-width override for template-4 narrow game column */
  #main-sections-container.grid-template-4 [data-section="games"] .game-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Template-2 game card also needs the same override */
  #main-sections-container.grid-template-2 [data-section="games"] .game-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Dominance meter: wrap text below the bar in narrow columns */
  #main-sections-container.grid-template-2 [data-section="games"] .dominance-meter,
  #main-sections-container.grid-template-3 [data-section="games"] .dominance-meter,
  #main-sections-container.grid-template-4 [data-section="games"] .dominance-meter {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  #main-sections-container.grid-template-2 [data-section="games"] .dominance-text,
  #main-sections-container.grid-template-3 [data-section="games"] .dominance-text,
  #main-sections-container.grid-template-4 [data-section="games"] .dominance-text {
    min-width: 0;
    flex-shrink: 1;
  }

  #main-sections-container.grid-template-2 .suspect-card *,
  #main-sections-container.grid-template-3 .suspect-card *,
  #main-sections-container.grid-template-4 .suspect-card * {
    min-width: 0;
  }

  #main-sections-container.grid-template-4 [data-section="games"] .games-strip {
    flex-wrap: wrap;
    justify-content: center;
  }

  #main-sections-container.grid-template-4 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
  }
  
  #main-sections-container.grid-template-4 .main-section[data-section="veredict"] {
    grid-column: span 2;
  }
  
  #main-sections-container.grid-template-4 .main-section[data-section="games"] {
    grid-column: span 2;
  }
  
  #main-sections-container.grid-template-4 .main-section[data-section="lineup"] {
    grid-column: span 4;
  }
  
  #main-sections-container.grid-template-4 .main-section[data-section="leaderboards"] {
    grid-column: span 4;
  }
  
  /* Make sections fill their grid cells */
  #main-sections-container.grid-template-1 .main-section,
  #main-sections-container.grid-template-2 .main-section,
  #main-sections-container.grid-template-3 .main-section,
  #main-sections-container.grid-template-4 .main-section {
    margin-bottom: 0 !important;
  }
  
  /* Two-column layout: all sections have explicit spans — no nth-child rule needed */
  
  /* ── Wide-canvas inline layout (templates 1 & 2) ─────────────────────────── */
  /* veredict sections inline like suspect cards */
  #main-sections-container.grid-template-1 .veredict-sections,
  #main-sections-container.grid-template-2 .veredict-sections {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* suspect cards wrap horizontally */
  #main-sections-container.grid-template-1 .key-suspects-list,
  #main-sections-container.grid-template-2 .key-suspects-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #main-sections-container.grid-template-1 .veredict-section,
  #main-sections-container.grid-template-2 .veredict-section {
    flex: 1 1 260px;
    max-width: 360px;
  }

  #main-sections-container.grid-template-1 .suspect-card,
  #main-sections-container.grid-template-2 .suspect-card {
    flex: 1 1 260px;
    max-width: 360px;
  }

  /* Three-column layout: no overflow rule needed — all sections have explicit spans */
  
  /* Four-column layout: sections without explicit column spans get full width.
     Note: streamer slots are non-.main-section children and shift nth-child counts,
     so we use explicit data-section targeting instead of nth-child. */
  #main-sections-container.grid-template-4 .main-section:not([data-section="games"]):not([data-section="lineup"]):not([data-section="veredict"]):not([data-section="leaderboards"]) {
    grid-column: 1 / -1;
  }
  
  /* 4-column template: betting odds full width inside game card */
  #main-sections-container.grid-template-4 [data-section="games"] .betting-odds-container {
    width: 100%;
  }
  
  /* 4-column template: reduce game card min-width to allow proper column sizing */
  #main-sections-container.grid-template-4 [data-section="games"] .game-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Ensure games-strip doesn't cause overflow in template 4 */
  #main-sections-container.grid-template-4 [data-section="games"] .games-strip {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Make games section itself respect its grid allocation */
  #main-sections-container.grid-template-4 .main-section[data-section="games"] {
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
  }
  
  /* Responsive: collapse to single column on mobile */
  @media (max-width: 768px) {
    #main-sections-container.grid-template-2,
    #main-sections-container.grid-template-3,
    #main-sections-container.grid-template-4 {
      grid-template-columns: 1fr !important;
    }
    
    /* Reset column spans on mobile */
    #main-sections-container.grid-template-2 .main-section[data-section="games"],
    #main-sections-container.grid-template-2 .main-section[data-section="lineup"],
    #main-sections-container.grid-template-2 .main-section[data-section="veredict"],
    #main-sections-container.grid-template-2 .main-section[data-section="leaderboards"],
    #main-sections-container.grid-template-3 .main-section[data-section="veredict"],
    #main-sections-container.grid-template-3 .main-section[data-section="leaderboards"],
    #main-sections-container.grid-template-3 .main-section[data-section="games"],
    #main-sections-container.grid-template-3 .main-section[data-section="lineup"],
    #main-sections-container.grid-template-4 .main-section[data-section="veredict"],
    #main-sections-container.grid-template-4 .main-section[data-section="games"],
    #main-sections-container.grid-template-4 .main-section[data-section="lineup"],
    #main-sections-container.grid-template-4 .main-section[data-section="leaderboards"] {
      grid-column: span 1 !important;
      grid-row: auto !important;
    }
    
    .template-selector {
      margin-top: 0.5rem !important;
    }
  }
  
  /* Responsive: template-3 stays at 2 columns up to 1600px (3-col only above 1600px) */
  /* DOM order is games→lineup→veredict→leaderboards, so use explicit placement
     to force games+veredict side-by-side in row 1 regardless of DOM order. */
  @media (max-width: 1600px) and (min-width: 769px) {
    #main-sections-container.grid-template-3 {
      grid-template-columns: repeat(2, 1fr) !important;
      grid-auto-flow: row !important;
    }

    #main-sections-container.grid-template-3 .main-section[data-section="games"] {
      grid-column: 1 !important;
      grid-row: 1 !important;
    }

    #main-sections-container.grid-template-3 .main-section[data-section="veredict"] {
      grid-column: 2 !important;
      grid-row: 1 !important;
    }

    #main-sections-container.grid-template-3 .main-section[data-section="lineup"] {
      grid-column: 1 / span 2 !important;
      grid-row: 2 !important;
    }

    #main-sections-container.grid-template-3 .main-section[data-section="leaderboards"] {
      grid-column: 1 / span 2 !important;
      grid-row: 3 !important;
    }
  }

  /* Responsive: tablet — four-column layout becomes 2 columns */
  @media (max-width: 992px) and (min-width: 769px) {
    /* Four-column layout becomes 2 columns on tablets */
    #main-sections-container.grid-template-4 {
      grid-template-columns: repeat(2, 1fr);
    }
    
    #main-sections-container.grid-template-4 .main-section[data-section="veredict"],
    #main-sections-container.grid-template-4 .main-section[data-section="games"],
    #main-sections-container.grid-template-4 .main-section[data-section="lineup"],
    #main-sections-container.grid-template-4 .main-section[data-section="leaderboards"] {
      grid-column: span 1 !important;
      grid-row: auto !important;
    }
  }

  /* Responsive: template-4 collapses to 3 columns between 993px and 1600px */
  @media (max-width: 1600px) and (min-width: 993px) {
    #main-sections-container.grid-template-4 {
      grid-template-columns: repeat(3, 1fr) !important;
    }

    #main-sections-container.grid-template-4 .main-section[data-section="veredict"],
    #main-sections-container.grid-template-4 .main-section[data-section="games"],
    #main-sections-container.grid-template-4 .main-section[data-section="lineup"] {
      grid-column: span 1 !important;
      grid-row: auto !important;
    }

    #main-sections-container.grid-template-4 .main-section[data-section="leaderboards"] {
      grid-column: span 3 !important;
      grid-row: auto !important;
    }
  }

  /* ============================================================================
   * MOBILE RESPONSIVE OVERRIDES
   * ============================================================================ */

  @media (max-width: 768px) {
    /* Templates 1 & 2 use flex-direction:row for wide-canvas layouts.
       On mobile, revert to column so cards stack and fill full width. */
    #main-sections-container.grid-template-1 .veredict-sections,
    #main-sections-container.grid-template-2 .veredict-sections,
    #main-sections-container.grid-template-1 .key-suspects-list,
    #main-sections-container.grid-template-2 .key-suspects-list {
      flex-direction: column !important;
    }

    /* Force all FACTS inner cards to full width on mobile */
    #main-sections-container.grid-template-1 .veredict-section,
    #main-sections-container.grid-template-2 .veredict-section,
    #main-sections-container.grid-template-3 .veredict-section,
    #main-sections-container.grid-template-4 .veredict-section,
    #main-sections-container.grid-template-1 .suspect-card,
    #main-sections-container.grid-template-2 .suspect-card,
    #main-sections-container.grid-template-3 .suspect-card,
    #main-sections-container.grid-template-4 .suspect-card,
    .veredict-team-trends,
    .veredict-ou-history {
      width: 100% !important;
      max-width: 100% !important;
      flex: none !important;
    }
  }

/* ============================================================================
 * VEREDICT CARD STYLING
 * ============================================================================ */
.veredict-container {
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  min-height: 120px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.veredict-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.2s ease-in-out, height 1s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: visible;
}

.veredict-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  text-align: center;
}

.veredict-placeholder-icon {
  margin-bottom: 0.75rem;
  opacity: 0.4;
  color: var(--text-muted);
}

.veredict-placeholder-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.veredict-placeholder-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.veredict-alert {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.veredict-alert-header {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.veredict-alert-text {
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.veredict-main-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.veredict-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.key-suspects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.veredict-section {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.veredict-section:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.08)) !important;
  border-color: rgba(99,102,241,0.4) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(99,102,241,0.2), 0 0 30px rgba(99,102,241,0.1);
  z-index: 10;
}

.veredict-section-header {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid;
}

.veredict-section-header.pros {
  color: #10b981;
  border-bottom-color: #10b981;
}

.veredict-section-header.cons {
  color: #ef4444;
  border-bottom-color: #ef4444;
}

.veredict-section-header.notes {
  color: #8b5cf6;
  border-bottom-color: #8b5cf6;
}

.veredict-item {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-left: 8px;
}

.veredict-item:last-child {
  margin-bottom: 0;
}

.veredict-item--positive {
  color: #4ade80;
}

.veredict-item--negative {
  color: #f87171;
}

[data-theme="light"] .veredict-item--positive {
  color: #16a34a;
}

[data-theme="light"] .veredict-item--negative {
  color: #dc2626;
}

/* VEREDICT tabs */
.veredict-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.veredict-tab {
  background: transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.veredict-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.veredict-tab.active {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* VS Opponent tab */
.vs-opp-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.75rem;
}
.vs-opp-opponent { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.vs-opp-avg { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
[data-theme="light"] .vs-opp-summary { border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .vs-opp-opponent { color: rgba(0,0,0,0.45); }

/* Streak alerts in CASE tab */
.veredict-streaks {
}
.veredict-streaks-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}
.streak-item {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 0.2rem 0;
}

[data-theme="light"] .veredict-streaks {
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .veredict-streaks-header {
  color: rgba(0,0,0,0.4);
}

.veredict-team-trends {
}
.trend-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.82rem;
  color: var(--text-primary);
}
.trend-abbr {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-width: 2.2rem;
  color: rgba(255,255,255,0.7);
}
.trend-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255,255,255,0.8);
}
.trend-delta {
  font-size: 0.75rem;
  font-weight: 600;
}
.trend-delta.trend-up   { color: #4ade80; }
.trend-delta.trend-down { color: #f87171; }
.trend-delta.trend-flat { color: rgba(255,255,255,0.4); }
.trend-games {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

[data-theme="light"] .veredict-team-trends {
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .trend-abbr  { color: rgba(0,0,0,0.6); }
[data-theme="light"] .trend-stat  { color: rgba(0,0,0,0.75); }
[data-theme="light"] .trend-games { color: rgba(0,0,0,0.35); }

/* O/U Hit Rate Widget */
.veredict-ou-history {
}
.ou-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.82rem;
  color: var(--text-primary);
}
.ou-team {
  font-weight: 600;
  font-size: 0.78rem;
  min-width: 7rem;
  color: rgba(255,255,255,0.8);
}
.ou-pct {
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 4rem;
}
.ou-pct.ou-hot { color: #f97316; } /* Orange - over trend */
.ou-pct.ou-cold { color: #60a5fa; } /* Blue - under trend */
.ou-pct.ou-neutral { color: rgba(255,255,255,0.6); }
.ou-record {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

[data-theme="light"] .veredict-ou-history {
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .ou-team { color: rgba(0,0,0,0.75); }
[data-theme="light"] .ou-pct.ou-neutral { color: rgba(0,0,0,0.5); }
[data-theme="light"] .ou-record { color: rgba(0,0,0,0.4); }

/* Four Factors Widget */
.veredict-four-factors {
  padding-top: 0.5rem;
}
.ff-section {
  margin-bottom: 1.5rem;
}
.ff-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.ff-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}
.ff-table thead th {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ff-table thead th:first-child {
  text-align: left;
}
.ff-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ff-table tbody td {
  padding: 0.5rem 0.5rem;
  color: rgba(255,255,255,0.85);
}
.ff-label {
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
.ff-value {
  text-align: center;
  font-weight: 600;
}
.ff-league {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.ff-delta {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.8;
}
.ff-value.ff-good {
  color: #4ade80;
}
.ff-value.ff-bad {
  color: #f87171;
}
.ff-value.ff-neutral {
  color: rgba(255,255,255,0.6);
}
.ff-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.5rem;
}
.ff-note .ff-good {
  color: #4ade80;
  font-weight: 600;
}
.ff-note .ff-bad {
  color: #f87171;
  font-weight: 600;
}

[data-theme="light"] .veredict-four-factors {
}
[data-theme="light"] .ff-section-title {
  color: rgba(0,0,0,0.4);
}
[data-theme="light"] .ff-table thead th {
  color: rgba(0,0,0,0.5);
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .ff-table tbody tr {
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .ff-table tbody td {
  color: rgba(0,0,0,0.85);
}
[data-theme="light"] .ff-label {
  color: rgba(0,0,0,0.6);
}
[data-theme="light"] .ff-league {
  color: rgba(0,0,0,0.4);
}
[data-theme="light"] .ff-value.ff-neutral {
  color: rgba(0,0,0,0.6);
}
[data-theme="light"] .ff-note {
  color: rgba(0,0,0,0.4);
  border-top-color: rgba(0,0,0,0.05);
}

/* Light theme specific adjustments */
[data-theme="light"] .veredict-alert {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #dc2626;
}

[data-theme="light"] .veredict-alert-header {
  color: #dc2626;
}

[data-theme="light"] .veredict-section-header.pros {
  color: #059669;
  border-bottom-color: #059669;
}

[data-theme="light"] .veredict-section-header.cons {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

[data-theme="light"] .veredict-section-header.notes {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

[data-theme="light"] .veredict-tab {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .veredict-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .veredict-tab.active {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.3);
}

/* Quality Rating Badges */
.quality-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quality-details {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.quality-badge-elite {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.quality-badge-good {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.quality-badge-average {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.quality-badge-risky {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.quality-badge-poor {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.quality-badge-neutral {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Light theme adjustments for quality badges */
[data-theme="light"] .quality-badge-elite {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .quality-badge-good {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="light"] .quality-badge-average {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  border-color: rgba(234, 179, 8, 0.4);
}

[data-theme="light"] .quality-badge-risky {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.4);
}

[data-theme="light"] .quality-badge-poor {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .quality-badge-neutral {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.4);
}

[data-theme="light"] .quality-details {
  color: rgba(0, 0, 0, 0.7);
}

/* Projection Badge Styles */
.projection-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.projection-badge-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-end;
}

/* ========================================================================
   CHAT TYPING INDICATOR
   ======================================================================== */

.typing-indicator {
  display: inline-block;
  letter-spacing: 2px;
  font-size: 1.2em;
  animation: typing-dots 1.4s infinite;
}

@keyframes typing-dots {
  0%, 20% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
  60%, 100% {
    opacity: 0.3;
  }
}

/* ========================================================================
   CHAT INPUT PLACEHOLDER
   ======================================================================== */

#chatInput::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

#chatInput::-webkit-input-placeholder {
  color: var(--text-muted);
  opacity: 1;
}

#chatInput::-moz-placeholder {
  color: var(--text-muted);
  opacity: 1;
}

#chatInput:-ms-input-placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* ========================================================================
   INDEX.HTML STRUCTURAL CLASSES - No inline styles from this point on
   ======================================================================== */

/* Container and layout utilities */
.container-flex-auto {
  flex: 1 1 auto;
}

.full-width {
  width: 100%;
}

/* Positioning utilities */
.position-relative {
  position: relative;
}

/* Spacing utilities */
.gap-0-25 {
  gap: 0.25rem;
}

.gap-0-5 {
  gap: 0.5rem;
}

.gap-0-75 {
  gap: 0.75rem;
}

.gap-1 {
  gap: 1rem;
}

.gap-0-3 {
  gap: 0.3rem;
}

.gap-0-4 {
  gap: 0.4rem;
}

.margin-0 {
  margin: 0;
}

.margin-0-line-height-1 {
  margin: 0;
  line-height: 1;
}

.mb-1rem {
  margin-bottom: 1rem;
}

.mt-0-5 {
  margin-top: 0.5rem;
}

/* Sizing utilities */
.width-140 {
  width: 140px;
}

.font-size-1rem {
  font-size: 1rem;
}

.font-size-0-875 {
  font-size: 0.875rem;
}

/* Badge specific styles */
.subscription-badge {
  display: none;
  font-size: 0.65rem;
  vertical-align: middle;
}

#eliteBadge {
  background-color: rgba(139, 92, 246, 1);
  color: white;
}

/* Auth button styles */
.auth-btn-hidden {
  display: none;
}

/* Section header styles */
.section-header-flex {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-icon {
  flex-shrink: 0;
}

/* Card header utilities */
.card-header-transparent {
  background: transparent;
  border: none;
}

.card-header-no-border {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
}

/* Flex container utilities */
.flex-between-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.flex-column-gap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

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

.flex-end-gap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.flex-wrap-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Section title styling */
.section-title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.section-title-wide {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Icon utilities */
.icon-no-shrink {
  flex-shrink: 0;
}

/* Leaderboard header styles */
.leaderboard-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.leaderboard-controls-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.leaderboard-control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaderboard-label {
  margin: 0;
  font-size: 0.875rem;
}

.leaderboard-toggles-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.leaderboard-card-header {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
}

/* Team logo styling */
.team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.team-logo-fallback {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hidden-fallback {
  display: none;
}

/* =================================================================
   APP.JS INLINE STYLE CLASSES  
   ================================================================= */

/* Modal Dialog Sizing Variants */
.modal-sm {
  min-width: min(500px, 95vw);
  width: min(600px, 95vw);
  max-width: 95vw;
  resize: both;
  min-height: min(300px, 85vh);
  max-height: 95vh;
}

.modal-md {
  min-width: min(600px, 95vw);
  width: min(750px, 95vw);
  max-width: 95vw;
  resize: both;
  min-height: min(500px, 85vh);
  height: min(650px, 85vh);
  max-height: 95vh;
}

.modal-md.modal-ncaab {
  height: min(800px, 85vh);
}

.modal-md.modal-nba {
  height: min(800px, 85vh);
}

.modal-lg {
  min-width: min(700px, 95vw);
  width: min(850px, 95vw);
  max-width: 95vw;
  resize: both;
  min-height: min(400px, 85vh);
  max-height: 95vh;
}

.modal-xl {
  min-width: min(900px, 95vw);
  width: min(1100px, 95vw);
  max-width: 95vw;
  resize: both;
  min-height: min(500px, 85vh);
  height: min(800px, 85vh);
  max-height: 95vh;
}

.modal-xxl {
  min-width: min(900px, 95vw);
  min-height: min(500px, 85vh);
  width: min(1200px, 95vw);
  height: min(800px, 85vh);
  margin-top: 10vh;
}

.modal-keyboard {
  min-width: min(550px, 95vw);
  min-height: min(350px, 85vh);
  width: min(700px, 95vw);
  height: auto;
  max-height: 85vh;
}

/* Player profile: suppress horizontal scrollbar caused by non-wrapping archetype bar strings */
.player-profile-modal .modal-body {
  overflow-x: hidden;
}

/* Matchup modals: grow to fit content, cap at 920px — no fixed height so no forced overflow */
.matchup-breakdown-modal .modal-dialog,
.matchup-analysis-modal .modal-dialog {
  height: auto;
  max-height: min(920px, 92vh);
}

/* .modal-content-dark globally uses height:100%; override to auto so it wraps its children */
.matchup-breakdown-modal .modal-content-dark,
.matchup-analysis-modal .modal-content-dark {
  height: auto;
}

/* Breakdown: body does not scroll; tab-content scrolls invisibly if content exceeds cap */
.matchup-breakdown-modal .modal-body {
  padding: 0;
  overflow: hidden;
}
.matchup-breakdown-modal .matchup-breakdown {
  display: flex;
  flex-direction: column;
}
.matchup-breakdown-modal .tab-content {
  overflow-y: auto;
  max-height: calc(min(920px, 92vh) - 210px);
  scrollbar-width: none;
}
.matchup-breakdown-modal .tab-content::-webkit-scrollbar {
  width: 0;
}

/* Analysis: body scrolls invisibly if content exceeds cap */
.matchup-analysis-modal .modal-body {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(min(920px, 92vh) - 115px);
  scrollbar-width: none;
}
.matchup-analysis-modal .modal-body::-webkit-scrollbar {
  width: 0;
}

/* Modal Content Backgrounds */
.modal-content-dark {
  background: #0f1a2d;
  border: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.modal-content-primary {
  background: var(--bg-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.modal-content-keyboard {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  resize: both;
  min-width: min(550px, 95vw);
  min-height: min(350px, 85vh);
  width: min(700px, 95vw);
  height: auto;
  max-height: 85vh;
  transition: box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

/* Player profile modals use plain .modal-content — add transition for depth system */
.player-profile-modal .modal-content,
#mlbPlayerProfileModal .modal-content,
#ncaabPlayerProfileModal .modal-content {
  transition: box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

/* === Modal Active/Inactive Window Depth === */
.modal-window--active {
  box-shadow: inset 0 2px 0 rgba(99, 102, 241, 0.8), 0 8px 40px rgba(0, 0, 0, 0.55) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  opacity: 1;
}

.modal-window--inactive {
  opacity: 0.95;
  box-shadow: none !important;
}

[data-theme="light"] .modal-window--active {
  box-shadow: inset 0 2px 0 rgba(99, 102, 241, 0.7), 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.65) !important;
}

[data-theme="light"] .modal-window--inactive {
  opacity: 0.95;
  box-shadow: none !important;
}

/* Modal Header Variants */
.modal-header-dark {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: move;
  user-select: none;
}

.modal-header-primary {
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  cursor: move;
  user-select: none;
  background: rgba(99, 102, 241, 0.08);
  flex-shrink: 0;
}

.modal-header-standard {
  border-bottom: 1px solid var(--border-color);
  cursor: move;
  user-select: none;
  pointer-events: auto;
}

.border-bottom-none {
  border-bottom: none;
}

/* Modal Footer Variants */
.modal-footer-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer-primary {
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Modal Body Variants */
.modal-body-dark {
  color: rgba(255, 255, 255, 0.92);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Light theme overrides for -dark modal shell classes */
[data-theme="light"] .modal-content-dark {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="light"] .modal-header-dark {
  background: var(--bg-tertiary);
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .modal-header-dark .modal-title,
[data-theme="light"] .modal-header-dark .modal-title * {
  color: var(--text-primary) !important;
}

[data-theme="light"] .modal-footer-dark {
  background: var(--bg-secondary);
  border-top-color: var(--border-color);
}

[data-theme="light"] .modal-body-dark {
  color: var(--text-primary);
}

.modal-body-flex {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.modal-body-column {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-body-auto {
  display: flex;
  flex-direction: column;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

/* On touch devices, prevent scroll from leaking through modal content to the page behind */
@media (hover: none) and (pointer: coarse) {
  .modal-body-dark,
  .modal-body-flex,
  .modal-body-auto,
  .modal-body-column,
  .streak-modal-body {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Constrain all modals to viewport height so the inner body can scroll */
  .modal-xl,
  .modal-xxl,
  .modal-lg,
  .modal-md {
    height: auto;
    max-height: 90svh;
    margin-top: 5svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-xl > .modal-content,
  .modal-xxl > .modal-content,
  .modal-lg > .modal-content,
  .modal-md > .modal-content {
    height: 100%;
    flex: 1;
    min-height: 0;
  }
}

/* Modal Resize Handle */
.modal-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  z-index: 1000;
}

.modal-resize-icon {
  opacity: 0.5;
}

/* Plays Modal Team Info Layout */
.plays-team-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: min(2rem, 3vw);
  pointer-events: none;
  margin-top: 50px;
}

.plays-team-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-start;
  margin-left: min(55px, 5vw);
}

.plays-team-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
  margin-right: min(55px, 5vw);
}

.plays-team-logo-wrapper {
  width: min(50px, 10vw);
  height: min(50px, 10vw);
  flex-shrink: 0;
}

.plays-team-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.plays-team-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.plays-team-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  text-align: right;
}

.plays-team-city {
  font-size: min(0.85rem, 3vw);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plays-team-record {
  font-size: min(calc(0.95rem + 2px), 3.5vw);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.plays-team-name {
  font-size: min(calc(1.05rem + 4px), 4vw);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.plays-score-container {
  /* Container for horizontal score layout (visitor score | label | home score) */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  pointer-events: none;
}

.plays-score-number {
  font-size: min(2.5rem, 8vw);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  min-width: min(60px, 15vw);
  text-align: center;
}

.plays-score-label {
  font-size: min(1.2rem, 4.5vw);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  min-width: min(100px, 20vw);
}

.plays-tabs-container {
  flex-wrap: wrap;
  gap: 0.5rem !important;
  pointer-events: auto;
  margin-top: 12px;
}

.plays-tab-clickable {
  pointer-events: auto;
}

/* Table Styling */
.table-sm {
  font-size: 0.90rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-center-hidden {
  text-align: center;
  display: none;
}

.font-weight-600 {
  font-weight: 600;
}

/* Player Profile Styles */
.player-name-lg {
  font-size: min(1.25rem, 5vw);
}

.player-team-sm {
  font-size: min(calc(1rem - 1px), 4.5vw);
  text-transform: uppercase;
}

.player-position-lg {
  font-size: min(1.25rem, 5vw);
  text-transform: uppercase;
}

.player-status-xs {
  font-size: 0.65rem;
}

.player-picture-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-team-label {
  font-weight: 600;
  font-size: min(calc(1rem - 1px), 4.5vw);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 0.5rem;
}

.player-team-logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  vertical-align: middle;
}

/* Small inline team logo used in MLB leaderboard board rows */
.team-logo-mini {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  box-sizing: content-box;
}

.vertical-middle {
  vertical-align: middle;
}

/* Game Log / Team Lineup Styles */
.flex-end-gap-sm {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

/* Player DFS rank badge — shown on the LEFT of the icon row */
.player-rank-badge {
  margin-right: auto;  /* push all icons to the right */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.5;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
.player-rank-badge.rank-1 {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #1a1200;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.45);
}
.player-rank-badge.rank-2 {
  background: linear-gradient(135deg, #808080, #c0c0c0);
  color: #111;
  box-shadow: 0 0 5px rgba(192, 192, 192, 0.3);
}
.player-rank-badge.rank-3 {
  background: linear-gradient(135deg, #8b4513, #cd7f32);
  color: #1a0a00;
  box-shadow: 0 0 5px rgba(205, 127, 50, 0.3);
}
.player-rank-badge.rank-4 {
  background: rgba(99, 102, 241, 0.22);
  color: rgba(199, 200, 255, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.player-rank-badge.rank-5 {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flex-between-mt0 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0px;
  margin-bottom: 4px;
}

.flex-gap-xs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.usage-spike-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(34, 197, 94, 0.20);
  color: rgba(34, 197, 94, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.40);
}

/* Minutes Declining Alert badge (lineup card) */
.minutes-trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: rgba(234, 179, 8, 0.18);
  color: rgba(234, 179, 8, 0.95);
  border: 1px solid rgba(234, 179, 8, 0.35);
}
[data-theme="light"] .minutes-trend-badge {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.3);
}

/* FI-10 — Injury Return Countdown */
.return-countdown {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(251, 191, 36, 0.85);
  margin-left: 0.2rem;
  white-space: nowrap;
}
.return-countdown-inline {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(251, 191, 36, 0.85);
  margin-left: 0.35rem;
}
[data-theme="light"] .return-countdown,
[data-theme="light"] .return-countdown-inline {
  color: #b45309;
}

/* FI-11 — DFS Score Ranking */
.dfs-ranking-list {
  display: flex;
  flex-direction: column;
}
.dfs-ranking-header {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.25rem;
}
.dfs-rank-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto auto 2.5rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.dfs-rank-row:last-child { border-bottom: none; }
.dfs-rank-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-align: right;
}
.dfs-rank-num.rank-gold   { color: #fbbf24; }
.dfs-rank-num.rank-silver { color: #94a3b8; }
.dfs-rank-num.rank-bronze { color: #b87333; }
.dfs-rank-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.dfs-rank-name:hover { text-decoration: underline; }
.dfs-rank-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.dfs-rank-pos {
  font-size: 0.68rem;
  white-space: nowrap;
}
.dfs-rank-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4ade80;
  text-align: right;
  white-space: nowrap;
}

[data-theme="light"] .dfs-ranking-header { color: rgba(0,0,0,0.4); }
[data-theme="light"] .dfs-ranking-list   { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .dfs-rank-row       { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .dfs-rank-num       { color: rgba(0,0,0,0.4); }
[data-theme="light"] .dfs-rank-meta      { color: rgba(0,0,0,0.5); }
[data-theme="light"] .dfs-rank-score     { color: #16a34a; }

.opacity-75 {
  opacity: 0.75;
}

.mb-border-half {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.text-xs-mb-half {
  font-size: 0.725rem;
  margin-bottom: 0.5rem;
}

.border-top-gray {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  padding-top: 0.5rem;
}

.text-xxs-upper {
  font-size: 0.65rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.text-sm {
  font-size: 0.8rem;
}

.text-xs {
  font-size: 0.875rem;
}

/* Cursor Styles */
.cursor-pointer {
  cursor: pointer;
}

.cursor-move {
  cursor: move;
}

.cursor-grabbing {
  cursor: grabbing;
}

.cursor-resize {
  cursor: nwse-resize;
}

.cursor-default {
  cursor: default;
}

/* Display Utilities */
.display-none {
  display: none;
}

.display-block {
  display: block;
}

.display-flex {
  display: flex;
}

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

/* Flexbox Utilities */
.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.flex-start {
  justify-content: flex-start;
}

.flex-end {
  justify-content: flex-end;
}

.flex-between {
  justify-content: space-between;
}

.flex-center {
  justify-content: center;
}

.align-start {
  align-items: start;
}

.align-center {
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.flex-1-auto {
  flex: 1 1 auto;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-wrap {
  flex-wrap: wrap;
}

.min-width-0 {
  min-width: 0;
}

/* Opacity & Pointer Events */
.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

/* Overflow Utilities */
.overflow-auto {
  overflow: auto;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Position Utilities */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover;
}

.object-fit-contain {
  object-fit: contain;
}

/* Border Radius */
.border-radius-50 {
  border-radius: 50%;
}

.border-radius-8 {
  border-radius: 8px;
}

.border-radius-12 {
  border-radius: 12px;
}

/* Suspect Card Styles */
.suspect-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

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

.suspect-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: color 0.2s ease;
}

.suspect-name:hover {
  color: #6366f1;
}

.suspect-position-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.suspect-details {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.suspect-details .team-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.suspect-details .team-logo-fallback {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(0,0,0,0.55);
}

.suspect-badges {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.suspect-team-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.suspect-tier-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.tier-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.suspect-reasoning {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

.suspect-signal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  cursor: default;
  width: 5.5rem;
  flex-shrink: 0;
}

.signal-badge--hot    { background: rgba(249,115,22,0.18);  color: #fb923c; border: 1px solid rgba(249,115,22,0.35); }
.signal-badge--cold   { background: rgba(96,165,250,0.15);  color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }
.signal-badge--warn   { background: rgba(234,179,8,0.15);   color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.signal-badge--pos    { background: rgba(34,197,94,0.15);   color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.signal-badge--min    { background: rgba(139,92,246,0.15);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.signal-badge--muted  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.12); }
.signal-badge--bounce     { background: rgba(20,184,166,0.15);  color: #2dd4bf; border: 1px solid rgba(20,184,166,0.3); }
.signal-badge--pitch-edge { background: rgba(34,197,94,0.15);   color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.signal-badge--pitch-risk { background: rgba(234,179,8,0.15);   color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }
.signal-badge--pitch-mix  { background: rgba(139,92,246,0.15);  color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }

[data-theme="light"] .signal-badge--hot         { background: rgba(249,115,22,0.1);  color: #ea580c; border-color: rgba(249,115,22,0.3); }
[data-theme="light"] .signal-badge--cold        { background: rgba(59,130,246,0.1);  color: #2563eb; border-color: rgba(59,130,246,0.3); }
[data-theme="light"] .signal-badge--warn        { background: rgba(202,138,4,0.1);   color: #ca8a04; border-color: rgba(202,138,4,0.3); }
[data-theme="light"] .signal-badge--pos         { background: rgba(22,163,74,0.1);   color: #16a34a; border-color: rgba(22,163,74,0.3); }
[data-theme="light"] .signal-badge--min         { background: rgba(109,40,217,0.08); color: #7c3aed; border-color: rgba(109,40,217,0.25); }
[data-theme="light"] .signal-badge--muted       { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .signal-badge--bounce      { background: rgba(13,148,136,0.1);  color: #0d9488; border-color: rgba(13,148,136,0.3); }
[data-theme="light"] .signal-badge--pitch-edge  { background: rgba(22,163,74,0.1);   color: #16a34a; border-color: rgba(22,163,74,0.3); }
[data-theme="light"] .signal-badge--pitch-risk  { background: rgba(161,98,7,0.1);    color: #b45309; border-color: rgba(161,98,7,0.3); }
[data-theme="light"] .signal-badge--pitch-mix   { background: rgba(109,40,217,0.08); color: #7c3aed; border-color: rgba(109,40,217,0.25); }

.suspect-archetype {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.archetype-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.archetype-value {
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 0.5rem;
  color: rgba(255,255,255,0.8);
}

[data-theme="light"] .suspect-name              { color: rgba(0,0,0,0.85); }
[data-theme="light"] .suspect-position-text     { color: rgba(0,0,0,0.4); }
[data-theme="light"] .suspect-reasoning         { color: rgba(0,0,0,0.75); }
[data-theme="light"] .archetype-label           { color: rgba(0,0,0,0.4); }
[data-theme="light"] .archetype-value           { color: rgba(0,0,0,0.75); }
[data-theme="light"] .suspect-details {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .suspect-details .team-logo-fallback { color: rgba(0,0,0,0.5); }

/* ── DFS | PROPS toggle ──────────────────────────────────────────────────── */
.suspects-mode-toggle {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.suspects-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.18s ease;
  line-height: 1;
}

.suspects-mode-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.suspects-mode-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .suspects-mode-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .suspects-mode-btn.active {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.35);
}

.suspects-playoff-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(250, 204, 21, 0.12);
  color: rgba(253, 224, 71, 0.9);
  border: 1px solid rgba(250, 204, 21, 0.25);
  white-space: nowrap;
  align-self: center;
}

/* ── Props edge badge ────────────────────────────────────────────────────── */
.props-edge-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Positive edge — lean OVER */
.props-edge-over {
  background: rgba(34, 197, 94, 0.15);
  color: rgba(34, 197, 94, 0.95);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Negative edge — lean UNDER */
.props-edge-under {
  background: rgba(239, 68, 68, 0.15);
  color: rgba(239, 68, 68, 0.95);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Zero edge — push */
.props-edge-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .props-edge-neutral {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 0, 0, 0.12);
}

.projection-badge-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

/* Chat Modal Message Bubbles */
.chat-message-container {
  display: flex;
  gap: 0.75rem;
  align-items: start;
}

.chat-message-reverse {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble-ai {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  max-width: 80%;
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 0.83rem;
}

.chat-bubble-user {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  max-width: 80%;
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 0.83rem;
  text-align: right;
}

.chat-footer-primary {
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  flex-shrink: 0;
}

.chat-input-container {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.chat-input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
}

.chat-send-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* Keyboard Shortcuts Modal */
.keyboard-category-header {
  font-weight: bold;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

/* Lineup Styles */
.lineup-flex-auto {
  flex: 1 1 auto;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.lineup-note {
  margin-top: 1rem;
  font-size: calc(0.9rem + 1px);
  opacity: 0.8;
  color: white;
}

.lineup-hidden {
  display: none;
  margin-top: 1rem;
}

.lineup-no-transform {
  cursor: default;
  transform: none;
}

/* Margin/Padding Utilities */
.mt-12 {
  margin-top: 12px;
}

.mt-50 {
  margin-top: 50px;
}

.mb-2 {
  margin-bottom: 2px;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-half {
  margin-bottom: 0.5rem;
}

.mb-0-75 {
  margin-bottom: 0.75rem;
}

.pb-half {
  padding-bottom: 0.5rem;
}

.pt-half {
  padding-top: 0.5rem;
}

.pt-1 {
  padding-top: 1rem;
}

.ml-half {
  margin-left: 0.5rem;
}

.mr-12 {
  margin-right: 12px;
}

/* Upgrade Notice Styles */
.upgrade-notice {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-top: 0.5rem;
}

.upgrade-notice-title {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upgrade-notice-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.upgrade-button {
  display: inline-block;
  background: #6366f1;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}

.upgrade-button:hover {
  background: #5558e3;
  color: white;
}

/* Quality Meter Gauge Styles */
.gauge-needle {
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.gauge-pivot {
  fill: #ffffff;
}

[data-theme="light"] .gauge-needle {
  stroke: #1e293b;
}

[data-theme="light"] .gauge-pivot {
  fill: #1e293b;
}

/* =========================================================================
   Notification Toast System
   Uses 'notif' prefix to avoid conflict with Bootstrap's own .toast classes.
   ========================================================================= */

#notif-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-left-width: 3px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 22rem;
  pointer-events: all;
  cursor: pointer;
  animation: notif-slide-in 250ms ease forwards;
}

.notif-success { border-left-color: #10b981; }
.notif-error   { border-left-color: #ef4444; }
.notif-warning { border-left-color: #f59e0b; }
.notif-info    { border-left-color: var(--accent-color); }

.notif-icon { flex-shrink: 0; line-height: 1.5; }
.notif-success .notif-icon { color: #10b981; }
.notif-error   .notif-icon { color: #ef4444; }
.notif-warning .notif-icon { color: #f59e0b; }
.notif-info    .notif-icon { color: var(--accent-color); }

@keyframes notif-slide-in {
  from { opacity: 0; transform: translateX(1.5rem); }
  to   { opacity: 1; transform: translateX(0); }
}

.notif-hiding {
  animation: notif-slide-out 250ms ease forwards;
}

.notif-body { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }

.notif-actions { display: flex; gap: 0.5rem; margin-top: 0.125rem; }

.notif-btn {
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.5;
}
.notif-btn-confirm { background: #ef4444; color: #fff; }
.notif-btn-confirm:hover { background: #dc2626; }
.notif-btn-cancel { background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border-color); }
.notif-btn-cancel:hover { background: var(--bg-tertiary); color: var(--text-primary); }

@keyframes notif-slide-out {
  to { opacity: 0; transform: translateX(1.5rem); }
}

/* Light theme - Fix games card header text color */
[data-theme="light"] #games-title,
[data-theme="light"] .section-header-flex {
  color: #000000;
}

/* Lineup section title color for both themes */
.lineup-section-title {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .lineup-section-title {
  color: #000000;
}

/* ========================================
   DFS Ranking Modal Styles
   ======================================== */

.dfs-ranking-modal-content {
  padding: 0;
}

.dfs-ranking-header-info {
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
}

.dfs-ranking-table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.dfs-ranking-table thead th {
  background: var(--bg-tertiary);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 0.5rem;
  color: var(--text-muted);
}

.dfs-ranking-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.dfs-ranking-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.dfs-ranking-table tbody td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.95);
}

/* Light theme table cells */
[data-theme="light"] .dfs-ranking-table tbody td {
  color: rgba(0, 0, 0, 0.87);
}

/* Position and matchup columns need better contrast */
.dfs-ranking-table tbody td.text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

[data-theme="light"] .dfs-ranking-table tbody td.text-muted {
  color: rgba(0, 0, 0, 0.6) !important;
}

.dfs-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dfs-rank-badge.rank-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.dfs-rank-badge.rank-silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.dfs-rank-badge.rank-bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.player-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.player-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.dfs-score-cell {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-color);
}

.dfs-ranking-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.dfs-ranking-empty svg {
  opacity: 0.5;
  margin-bottom: 1rem;
}

.dfs-ranking-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* Theme support for text-muted elements in DFS ranking modal */
.dfs-ranking-header-info .text-muted,
.dfs-ranking-footer .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="light"] .dfs-ranking-header-info .text-muted,
[data-theme="light"] .dfs-ranking-footer .text-muted {
  color: rgba(0, 0, 0, 0.6) !important;
}


/* ── Streak Board Modal ────────────────────────────────────────────────────── */

.streak-board-modal-content {
  padding: 0.25rem 0;
}

.streak-board-header-info {
  padding: 0 0.25rem;
}

.streak-board-legend {
  display: flex;
  gap: 1rem;
  padding: 0 0.25rem;
}

.streak-legend-item {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .streak-legend-item {
  color: rgba(0, 0, 0, 0.5);
}

.streak-board-table {
  width: 100%;
}

.streak-board-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
}

[data-theme="light"] .streak-board-table thead th {
  color: rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.streak-board-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.streak-board-table tbody tr:hover {
  background: rgba(251, 191, 36, 0.06);
}

.streak-board-table tbody td {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  vertical-align: middle;
}

[data-theme="light"] .streak-board-table tbody td {
  color: var(--text-primary);
}

.streak-board-table tbody td.text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"] .streak-board-table tbody td.text-muted {
  color: rgba(0, 0, 0, 0.45) !important;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fbbf24;
}

.streak-line-cell {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .streak-line-cell {
  color: rgba(0, 0, 0, 0.75);
}

.streak-board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.streak-board-empty svg {
  opacity: 0.4;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.streak-board-empty .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="light"] .streak-board-empty .text-muted {
  color: rgba(0, 0, 0, 0.5) !important;
}

.streak-board-content-area .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="light"] .streak-board-content-area .text-muted {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* Theme support for text-muted elements in streak board modal */
.streak-board-header-info .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="light"] .streak-board-header-info .text-muted {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Streak Board — prop type tab layout */
.streak-modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.streak-board-tabs-wrapper {
  padding: 0 1rem;
  flex-shrink: 0;
  background: var(--bg-secondary, #1e1e2e);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .streak-board-tabs-wrapper {
  background: #f1f5f9;
  border-bottom-color: rgba(99, 102, 241, 0.2);
}

.streak-board-tabs-wrapper .profile-tabs {
  border-bottom: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.streak-board-tabs-wrapper .profile-tabs::-webkit-scrollbar {
  display: none;
}

.streak-nav-tabs .nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.streak-board-content-area {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 1rem;
}

/* Streak Board footer note — theme-aware */
.streak-board-footer-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .streak-board-footer-note {
  color: rgba(0, 0, 0, 0.55);
}

/* Value Plays Board — ratio badges */
.value-ratio-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.value-ratio-high {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.value-ratio-med {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.value-ratio-low {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

[data-theme="light"] .value-ratio-low {
  color: rgba(0, 0, 0, 0.55);
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
}

/* Quarter Scorers — pagination */
.qs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border-color);
}

.qs-pagination-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.qs-pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  letter-spacing: 0.02em;
}

.qs-pagination-btn:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
}

.qs-pagination-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.qs-pagination-btn svg {
  flex-shrink: 0;
}

/* ── Hit Rate History modal ──────────────────────────────────────────────────── */

/* Date picker inside the modal header controls */
.hr-date-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s;
  color-scheme: dark;
}
[data-theme="light"] .hr-date-input {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color-scheme: light;
}
.hr-date-input:focus {
  outline: none;
  border-color: #f97316;
}

/* Vendor pill buttons (props mode) */
.hr-vendor-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.hr-vendor-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}
.hr-vendor-btn.active {
  background: rgba(249,115,22,0.2);
  border-color: rgba(249,115,22,0.5);
  color: #f97316;
}
[data-theme="light"] .hr-vendor-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: var(--text-secondary);
}
[data-theme="light"] .hr-vendor-btn.active {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.4);
  color: #ea6c0a;
}

/* HIT / MISS filter pills */
.hr-filter-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.hr-filter-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}
.hr-filter-hit.active {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.4);
  color: #4ade80;
}
.hr-filter-miss.active {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.4);
  color: #f87171;
}
[data-theme="light"] .hr-filter-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: var(--text-secondary);
}
[data-theme="light"] .hr-filter-hit.active {
  background: rgba(22,163,74,0.1);
  border-color: rgba(22,163,74,0.35);
  color: #16a34a;
}
[data-theme="light"] .hr-filter-miss.active {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.35);
  color: #dc2626;
}

/* Prop / Projection cell */
.hr-prop-cell {
  font-size: 0.82rem;
  white-space: nowrap;
}
.hr-prop-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 3px;
}
.hr-line {
  color: var(--text-secondary);
  margin-right: 3px;
}
.hr-edge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tier badges */
.hr-tier {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hr-tier-excellent { background: rgba(34,197,94,0.18); color: #22c55e; }
.hr-tier-good      { background: rgba(59,130,246,0.18); color: #60a5fa; }
.hr-tier-average   { background: rgba(234,179,8,0.18);  color: #facc15; }
.hr-tier-below     { background: rgba(156,163,175,0.12); color: #9ca3af; }

/* Result badges */
.hr-result {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: inline-block;
}
.hr-hit  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.hr-miss { background: rgba(239,68,68,0.15);   color: #f87171; }
.hr-na   { background: rgba(156,163,175,0.1);  color: #9ca3af; }

/* Hit rate percentage summary */
.hr-pct         { font-weight: 700; }
.hr-pct-good    { color: #22c55e; }
.hr-pct-avg     { color: #facc15; }
.hr-pct-bad     { color: #f87171; }

/* Hit rate mini form dots (player profile hit rate tab) */
.hr-mini-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.hr-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  cursor: default;
  flex-shrink: 0;
}
.hr-dot-hit  { background: #22c55e; }
.hr-dot-miss { background: #f87171; }

/* MLB player profile splits tab */
.splits-section { }
.splits-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}
.splits-table {
  font-size: 0.72rem;
}
.splits-table thead th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.1));
}
.splits-table tbody td {
  padding: 0.3rem 0.5rem;
  vertical-align: middle;
}
.splits-table tbody tr:hover {
  background: rgba(99,102,241,0.05);
}
.splits-subtab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
}
.splits-subtab {
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.splits-subtab:hover { border-color: rgba(99,102,241,0.4); color: var(--text-primary); }
.splits-subtab.active { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.5); color: #818cf8; }
.splits-cat-pane { display: none; }
.splits-cat-pane.active { display: block; }
.splits-row-label { font-weight: 600; }

/* Pitch type table (ARSENAL + vs. PITCH tabs) */
.pitch-type-table {
  font-size: 0.72rem;
}
.pitch-type-table thead th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.1));
}
.pitch-type-table tbody td {
  padding: 0.3rem 0.5rem;
  vertical-align: middle;
}
.pitch-type-table tbody tr:hover { background: rgba(99,102,241,0.05); }
.pitch-type-cell { white-space: nowrap; }
.pitch-type-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.3);
}
[data-theme="light"] .pitch-type-pill {
  background: rgba(99,102,241,0.1);
  color: #4f46e5;
  border-color: rgba(99,102,241,0.25);
}
.pitch-stat-good { color: #22c55e; font-weight: 600; }
.pitch-stat-avg  { color: #f59e0b; font-weight: 600; }
.pitch-stat-bad  { color: #ef4444; font-weight: 600; }
[data-theme="light"] .pitch-stat-good { color: #16a34a; }
[data-theme="light"] .pitch-stat-avg  { color: #b45309; }
[data-theme="light"] .pitch-stat-bad  { color: #dc2626; }

/* Matchup modal — Pitch Arsenal panel */
.mlb-arsenal-loading { min-height: 0; }
.mlb-arsenal-wrap {
  margin: 0.6rem 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .mlb-arsenal-wrap { border-top-color: rgba(0,0,0,0.07); }
.mlb-arsenal-header {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted, rgba(148,163,184,0.7));
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.mlb-arsenal-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.mlb-arsenal-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: default;
  min-width: 52px;
  transition: transform 0.1s;
}
.mlb-arsenal-pill:hover { transform: translateY(-1px); }
.mlb-arsenal-type  { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.2; }
.mlb-arsenal-stats { font-size: 0.62rem; opacity: 0.8; white-space: nowrap; }
.mlb-arsenal-elite    { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.4);  color: #4ade80; }
.mlb-arsenal-avg      { background: rgba(234,179,8,0.1);  border-color: rgba(234,179,8,0.4);  color: #fbbf24; }
.mlb-arsenal-hittable { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.4);  color: #f87171; }
[data-theme="light"] .mlb-arsenal-elite    { background: rgba(34,197,94,0.08);  color: #16a34a; border-color: rgba(34,197,94,0.35); }
[data-theme="light"] .mlb-arsenal-avg      { background: rgba(234,179,8,0.08);  color: #b45309; border-color: rgba(234,179,8,0.35); }
[data-theme="light"] .mlb-arsenal-hittable { background: rgba(239,68,68,0.08);  color: #dc2626; border-color: rgba(239,68,68,0.35); }

.pitch-empty-state {
  color: var(--text-muted, rgba(148,163,184,0.8));
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
}
[data-theme="light"] .pitch-empty-state { color: var(--text-muted, rgba(100,116,139,0.9)); }

/* View mode hiding */
body[data-view-mode="dfs"] #hitRateBtn    { display: none !important; }
body[data-view-mode="simple"] .tool-selector { display: none !important; }

/* Injury item team logo — 24px white circle matching global team-logo style */
.injury-team-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.injury-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

[data-theme="light"] .injury-team-logo {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ── Admin Panel Modal ──────────────────────────────────────────────────────── */
.admin-panel-content { color: #e2e8f0; font-size: 0.82rem; }
.admin-panel-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.admin-panel-section { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0.75rem 1rem; }
.admin-panel-section-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.6rem; }
.admin-panel-grid { display: flex; flex-direction: column; gap: 0.35rem; }
.admin-panel-row { display: flex; justify-content: space-between; align-items: center; min-height: 1.4rem; }
.admin-panel-label { color: #94a3b8; white-space: nowrap; margin-right: 0.5rem; flex-shrink: 0; }
.admin-panel-value { text-align: right; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.admin-panel-sub { color: #64748b; font-size: 0.75rem; }
.admin-panel-footer { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; }
.admin-panel-bar-track { background: #1e293b; border-radius: 3px; height: 5px; width: 60px; display: inline-block; vertical-align: middle; overflow: hidden; }
.admin-panel-bar-fill { height: 5px; border-radius: 3px; transition: width 0.4s ease; }
.admin-panel-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 4px; flex-shrink: 0; }

/* ── Player Profile Insights Accordion ─────────────────────────────────────── */
.pp-accordion {
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.pp-accordion-item {
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pp-accordion-item:first-child { border-top: none; }

.pp-accordion-header {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.7rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}
.pp-accordion-header:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}
.pp-accordion-item.pp-accordion-open > .pp-accordion-header {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,1);
}

.pp-accordion-chevron {
  flex-shrink: 0;
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.25);
  transition: transform 0.22s ease;
  transform: rotate(-90deg);
  margin-left: auto;
}
.pp-accordion-item.pp-accordion-open > .pp-accordion-header .pp-accordion-chevron {
  transform: rotate(0deg);
  border-top-color: rgba(255,255,255,0.55);
}

.pp-accordion-body {
  display: none;
  padding: 0.6rem 0.7rem 0.75rem;
  background: rgba(0,0,0,0.12);
}
.pp-accordion-item.pp-accordion-open > .pp-accordion-body {
  display: block;
}

/* Light theme overrides */
[data-theme="light"] .pp-accordion {
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .pp-accordion-item {
  border-top-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .pp-accordion-header {
  background: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.5);
}
[data-theme="light"] .pp-accordion-header:hover {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.8);
}
[data-theme="light"] .pp-accordion-item.pp-accordion-open > .pp-accordion-header {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.9);
}
[data-theme="light"] .pp-accordion-chevron {
  border-top-color: rgba(0,0,0,0.3);
}
[data-theme="light"] .pp-accordion-item.pp-accordion-open > .pp-accordion-header .pp-accordion-chevron {
  border-top-color: rgba(0,0,0,0.55);
}
[data-theme="light"] .pp-accordion-body {
  background: rgba(0,0,0,0.03);
}

/* Projection Gauge Labels */
.gauge-label-low,
.gauge-label-high {
  fill: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

[data-theme="light"] .gauge-label-low,
[data-theme="light"] .gauge-label-high {
  fill: rgba(0, 0, 0, 0.75);
}

/* Shot Chart — Shot Creation section */
.shot-creation-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.shot-creation-label {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.shot-creation-card {
  background: var(--bg-tertiary);
  padding: 0.75rem;
  border-radius: 6px;
}
.shot-creation-card-type {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}
.shot-creation-card-sub {
  color: var(--text-muted);
  font-size: 0.65rem;
}

/* ── Shot Chart Tab ─────────────────────────────────────────────────────────── */

.shot-chart-title {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.shot-chart-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.shot-chart-court-wrapper {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  text-align: center;
}
[data-theme="light"] .shot-chart-court-wrapper {
  background: rgba(255,255,255,0.4);
}
.shot-chart-legend {
  margin-top: 1rem;
  gap: 1.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* SVG court elements */
.court-bg   { fill: rgba(139,92,42,0.12); }
[data-theme="light"] .court-bg { fill: rgba(139,92,42,0.08); }

.court-boundary { fill: none; stroke: rgba(255,255,255,0.25); }
[data-theme="light"] .court-boundary { stroke: rgba(0,0,0,0.35); }

.court-lines { fill: none; stroke: rgba(255,255,255,0.3); }
[data-theme="light"] .court-lines { stroke: rgba(0,0,0,0.4); }

.court-paint { fill: none; stroke: rgba(255,255,255,0.2); }
[data-theme="light"] .court-paint { stroke: rgba(0,0,0,0.3); }

.court-ft-circle { fill: none; stroke: rgba(255,255,255,0.15); }
[data-theme="light"] .court-ft-circle { stroke: rgba(0,0,0,0.2); }

.court-restricted { fill: none; stroke: rgba(255,140,0,0.4); }
[data-theme="light"] .court-restricted { stroke: rgba(255,140,0,0.6); }

.court-basket-ring { fill: none; stroke: rgba(255,140,0,0.7); }
[data-theme="light"] .court-basket-ring { stroke: rgba(255,140,0,0.85); }

.court-basket-dot { fill: rgba(255,140,0,0.5); }
[data-theme="light"] .court-basket-dot { fill: rgba(255,140,0,0.7); }

.court-center-circle { fill: none; stroke: rgba(255,255,255,0.1); }
[data-theme="light"] .court-center-circle { stroke: rgba(0,0,0,0.15); }

.shot-zone-circle { stroke: rgba(255,255,255,0.5); }
[data-theme="light"] .shot-zone-circle { stroke: rgba(0,0,0,0.5); }

.shot-zone-text {
  fill: white;
  text-shadow: 0 0 3px rgba(0,0,0,0.8);
}
[data-theme="light"] .shot-zone-text {
  fill: #000;
  text-shadow: 0 0 3px rgba(255,255,255,0.9);
}

/* Shot Profile Alerts */
.shot-profile-section {
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}
.shot-profile-label {
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.shot-profile-alert {
  background: var(--bg-tertiary);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 3px;
}
.shot-profile-alert-title {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}
.shot-profile-alert-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.shot-profile-explanation {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}
.shot-profile-sample {
  margin-top: 0.3rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Player Profile — shared inline-style utilities */
.pp-sample-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 0.4rem;
}
.pp-info-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-subtle);
  border-radius: 6px;
}
.pp-bar-track {
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
  background: var(--bg-overlay);
}
.pp-section-divider {
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}
.pp-section-heading {
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ── View Mode Pull-Down Panel ───────────────────────────────────────────── */
.view-mode-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  pointer-events: none;
}

.view-mode-panel {
  position: relative;
  width: 100%;
  height: 44px;
  background: #000;
  transform: translateY(-44px);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.view-mode-panel.open {
  transform: translateY(0);
}

.view-mode-handle {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 22px;
  background: #000;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: background 0.18s;
}

.view-mode-handle:hover {
  background: #141414;
}

.view-mode-handle-bar {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background 0.26s, transform 0.26s;
}

.view-mode-panel.open .view-mode-handle-bar {
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0.7);
}

.view-mode-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-mode-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1;
}

.view-mode-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.view-mode-btn.active {
  border-color: rgba(99, 102, 241, 0.65);
  color: #fff;
  background: rgba(99, 102, 241, 0.14);
}

.view-mode-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.18s;
}

.view-mode-btn:hover svg,
.view-mode-btn.active svg {
  opacity: 1;
}

/* ── View Mode: Per-mode overrides ───────────────────────────────────────────
 * Use body[data-view-mode="x"] selectors for all structural/visibility changes.
 * Behavioral changes (tab defaults, etc.) are handled via the viewmodechange event.
 * ─────────────────────────────────────────────────────────────────────────── */

/* PROP mode — hide DFS-specific UI */
body[data-view-mode="prop"] #dfsRankingBtn,
body[data-view-mode="prop"] .veredict-tab[data-tab="dfsrank"],
body[data-view-mode="prop"] .suspects-mode-btn[data-mode="dfs"] {
  display: none !important;
}

/* DFS mode — hide prop-specific UI */
body[data-view-mode="dfs"] #streakBoardBtn,
body[data-view-mode="dfs"] #quarterScorersBtn,
body[data-view-mode="dfs"] #firstTeamScorersBtn,
body[data-view-mode="dfs"] .suspects-mode-btn[data-mode="props"] {
  display: none !important;
}

/* SIMPLE mode — hide tools, lineup, leaderboards, template selector, and non-essential FACTS tabs; single column enforced via JS */
body[data-view-mode="simple"] .tool-selector,
body[data-view-mode="simple"] #templateSelector,
body[data-view-mode="simple"] .main-section[data-section="lineup"],
body[data-view-mode="simple"] .main-section[data-section="leaderboards"],
body[data-view-mode="simple"] .veredict-tab[data-tab="case"],
body[data-view-mode="simple"] .veredict-tab[data-tab="fourfactors"],
body[data-view-mode="simple"] .veredict-tab[data-tab="dfsrank"] {
  display: none !important;
}

/* STREAMER mode — hide template selector */
body[data-view-mode="streamer"] #templateSelector {
  display: none !important;
}

/* STREAMER mode — PC-only broadcast layout
 * All rules scoped to body[data-view-mode="streamer"] — zero bleed to other modes.
 * Slots are display:none in base CSS; shown here via .streamer-slot override.
 * JS removes grid-template-N class on entry so the 16-col grid below takes full control.
 * ─────────────────────────────────────────────────────────────────────────── */

/* Base: streamer slots are invisible in every non-STREAMER mode */
.streamer-slot { display: none; }

/* ── 16-col grid — !important on both display and columns so grid-template-N
   classes (added by initializeGridTemplate) cannot override this layout ── */
body[data-view-mode="streamer"] #main-sections-container {
  display: grid !important;
  grid-template-columns: repeat(16, 1fr) !important;
  grid-auto-rows: auto !important;
  gap: 1rem !important;
}

/* Neutralize any grid-column / grid-row set by grid-template-N child rules */
body[data-view-mode="streamer"] #main-sections-container > .main-section {
  grid-column: unset !important;
  grid-row: unset !important;
  margin-bottom: 0 !important;
}

/* Row 1: games strip — full 16 cols */
body[data-view-mode="streamer"] #main-sections-container .main-section[data-section="games"] {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin-bottom: 0;
}

/* Row 2: visitor lineup — cols 1–4 */
body[data-view-mode="streamer"] #streamerVisitorLineup {
  grid-column: 1 / span 4 !important;
  grid-row: 2 !important;
  display: block !important;
  min-height: 240px;
  overflow-y: auto;
  align-self: stretch;
}

/* Row 2: camera placeholder — cols 5–12 */
body[data-view-mode="streamer"] #streamerPlaceholder {
  grid-column: 5 / span 8 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: 8px;
  min-height: 240px;
  overflow: hidden;
}

/* Show CAMERA ZONE label only when slot is empty */
body[data-view-mode="streamer"] #streamerPlaceholder:not(:has(.streamer-plays-panel))::after {
  content: 'CAMERA ZONE';
  color: var(--text-primary);
  opacity: 0.18;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  pointer-events: none;
}

/* Plays panel inside streamer placeholder */
.streamer-plays-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.streamer-plays-header {
  padding: 0.6rem 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.streamer-plays-body {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 0;
}

.streamer-plays-body #playsContent {
  height: 100%;
  overflow-y: auto;
  padding: 0 0.25rem;
}

.streamer-plays-footer {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* Row 2: home lineup — cols 13–16 */
body[data-view-mode="streamer"] #streamerHomeLineup {
  grid-column: 13 / span 4 !important;
  grid-row: 2 !important;
  display: block !important;
  min-height: 240px;
  overflow-y: auto;
  align-self: stretch;
}

/* Row 3: FACTS card — full 16 cols */
body[data-view-mode="streamer"] #main-sections-container .main-section[data-section="veredict"] {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin-bottom: 0;
}

/* FACTS suspects cards horizontal (matches single-column template style) */
body[data-view-mode="streamer"] .veredict-sections {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

body[data-view-mode="streamer"] .veredict-section {
  flex: 1 1 260px;
  max-width: 360px;
}

body[data-view-mode="streamer"] .key-suspects-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body[data-view-mode="streamer"] .suspect-card {
  flex: 1 1 220px;
  max-width: 320px;
}

/* Hide: Key Suspects leaderboards — not shown in STREAMER mode */
body[data-view-mode="streamer"] #main-sections-container .main-section[data-section="leaderboards"] {
  display: none !important;
}

/* Neutralize Bootstrap .row negative gutters so grid columns stay true */
body[data-view-mode="streamer"] #main-sections-container > .main-section.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide: original combined lineup (replaced by split slots) */
body[data-view-mode="streamer"] .main-section[data-section="lineup"] {
  display: none !important;
}

/* Hide: drag handles (no reordering in STREAMER) */
body[data-view-mode="streamer"] .section-drag-handle-icon {
  display: none !important;
}

/* Hide: FACTS tab bar — only suspects tab is active in STREAMER */
body[data-view-mode="streamer"] .veredict-tab[data-tab="case"],
body[data-view-mode="streamer"] .veredict-tab[data-tab="fourfactors"],
body[data-view-mode="streamer"] .veredict-tab[data-tab="dfsrank"] {
  display: none !important;
}

/* Hide: games card export button + vendor selector */
body[data-view-mode="streamer"] .main-section[data-section="games"] .flex-end-gap {
  display: none !important;
}

/* Hide: leaderboard filter controls column */
body[data-view-mode="streamer"] .leaderboard-controls-column {
  display: none !important;
}

/* Lineup player cards: vertical stack inside slots */
body[data-view-mode="streamer"] #streamerVisitorLineup .lineup-player-card,
body[data-view-mode="streamer"] #streamerHomeLineup .lineup-player-card {
  width: 100%;
}

/* ── PC-only guard — collapses to normal flow below 1280px ── */
@media (max-width: 1279px) {
  body[data-view-mode="streamer"] #main-sections-container {
    display: block !important;
  }
  body[data-view-mode="streamer"] .streamer-slot {
    display: none !important;
  }
  body[data-view-mode="streamer"] .main-section[data-section="lineup"] {
    display: block !important;
  }
  body[data-view-mode="streamer"] .main-section[data-section="leaderboards"] {
    grid-column: unset;
  }
  body[data-view-mode="streamer"] #boards {
    flex-wrap: wrap;
  }
}

/* ── Radio player ──────────────────────────────────────────────────────────── */
.radio-player {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: width 0.2s ease, padding 0.2s ease;
  max-width: 280px;
}

.radio-player--mini {
  max-width: 48px;
  padding: 0.5rem;
  overflow: hidden;
  gap: 0;
}

.radio-player--mini .radio-info,
.radio-player--mini .radio-volume-wrap,
.radio-player--mini .radio-minimize {
  display: none;
}

.radio-play {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #6366f1;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.radio-play:hover { background: #4f46e5; }

.radio-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.radio-station {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-status {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.radio-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.radio-volume {
  width: 64px;
  height: 3px;
  cursor: pointer;
  accent-color: #6366f1;
}

.radio-minimize {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s;
}
.radio-minimize:hover { color: var(--text-primary); }

/* ── Watchlist ─────────────────────────────────────────────────────────────── */


.watchlist-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.watchlist-add-btn:hover {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.1);
}
.watchlist-add-btn.watchlist-active {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(139, 92, 246, 0.15);
}
.watchlist-add-btn.watchlist-active svg { fill: #a78bfa; }
.watchlist-add-btn.watchlist-btn-disabled,
.watchlist-add-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tracked state on bet buttons (OVER / UNDER / milestone) */
.bet-option-btn.watchlist-active[data-bet-type="over"] {
  background: rgba(76,175,80,0.35) !important;
  border-color: rgba(76,175,80,0.9) !important;
  box-shadow: 0 0 8px rgba(76,175,80,0.45);
}
.bet-option-btn.watchlist-active[data-bet-type="under"] {
  background: rgba(244,67,54,0.35) !important;
  border-color: rgba(244,67,54,0.9) !important;
  box-shadow: 0 0 8px rgba(244,67,54,0.45);
}
.bet-option-btn.watchlist-active[data-bet-type="milestone"] {
  background: rgba(251,191,36,0.25) !important;
  border-color: rgba(251,191,36,0.8) !important;
  box-shadow: 0 0 8px rgba(251,191,36,0.35);
}
.bet-option-btn.watchlist-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Watchlist table Pick column badges */
.watchlist-pick {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.watchlist-pick-over      { background: rgba(76,175,80,0.2);  color: #4ade80; border: 1px solid rgba(76,175,80,0.4); }
.watchlist-pick-under     { background: rgba(244,67,54,0.2);  color: #f87171; border: 1px solid rgba(244,67,54,0.4); }
.watchlist-pick-milestone { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }
.watchlist-odds-milestone { color: #fbbf24; font-weight: 500; }

.watchlist-table-wrap { overflow-x: auto; }
.watchlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.watchlist-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.watchlist-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.watchlist-table tbody tr:hover td { background: rgba(255,255,255,0.03); }

.watchlist-sport-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.watchlist-sport-nba { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.watchlist-sport-mlb { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }

.watchlist-player-name { font-weight: 500; color: var(--text-primary); }
.watchlist-player-name--clickable { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.watchlist-player-name--clickable:hover { color: var(--accent-green, #4ade80); }
.watchlist-team-abbr {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
.watchlist-prop-label { font-weight: 500; margin-right: 0.35rem; }
.watchlist-prop-line {
  display: inline-block;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.3rem;
}
.watchlist-vendor-label {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.watchlist-odds-cell { white-space: nowrap; }
.watchlist-odds-over  { color: #4ade80; font-weight: 500; }
.watchlist-odds-under { color: #f87171; font-weight: 500; }

.watchlist-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.watchlist-remove-btn:hover {
  color: #f87171;
  border-color: rgba(248,113,113,0.4);
  background: rgba(248,113,113,0.1);
}

.watchlist-clear-btn {
  margin-left: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: 4px;
  color: #f87171;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.watchlist-clear-btn:hover {
  background: rgba(248,113,113,0.2);
  border-color: rgba(248,113,113,0.5);
}

.watchlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.watchlist-total-label {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Game odds watchlist buttons */
.game-odds-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  padding: 0.1rem 0.35rem;
  font-size: inherit;
  font-family: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  line-height: inherit;
  vertical-align: middle;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.game-odds-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.game-odds-eye {
  flex-shrink: 0;
  margin-right: 3px;
  opacity: 0.25;
  transition: opacity 0.15s;
  vertical-align: middle;
}
.game-odds-btn:hover:not(:disabled) .game-odds-eye,
.player-link:hover .game-odds-eye {
  opacity: 0.75;
}
.game-odds-btn.watchlist-active .game-odds-eye {
  opacity: 1;
  stroke: #a78bfa;
}
.game-odds-btn.watchlist-btn-disabled .game-odds-eye {
  display: none;
}
.game-odds-btn.watchlist-active {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.65);
  box-shadow: 0 0 6px rgba(124,58,237,0.3);
}
.game-odds-btn.watchlist-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Suspect card watch button — icon-only, inline before prop label */
.suspect-watch-btn {
  opacity: 0.7;
}
.suspect-watch-btn .game-odds-eye {
  opacity: 1;
  margin-right: 0;
  width: 13px;
  height: 13px;
}
.suspect-watch-btn:hover {
  opacity: 1;
}
.suspect-watch-btn.watchlist-active {
  opacity: 1;
}
.game-odds-sub {
  font-size: 0.82em;
  opacity: 0.65;
}

/* Watchlist section header rows */
.watchlist-section-header td {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Game entry pick badge */
.watchlist-pick-game {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,0.3);
}
.watchlist-odds-game { color: var(--text-secondary); font-weight: 500; }

/* Progress column */
.watchlist-progress-cell { text-align: center; white-space: nowrap; }
.watchlist-progress-stub { color: var(--text-muted); font-size: 0.8rem; }
.watchlist-progress-live {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.watchlist-progress-hit  { color: #4ade80; font-size: 1rem; font-weight: 700; }
.watchlist-progress-miss { color: #f87171; font-size: 1rem; font-weight: 700; }
.watchlist-progress-push { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

/* Tab strip */
.watchlist-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
  padding: 0 1rem;
  background: transparent;
}
.watchlist-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.watchlist-tab:hover { color: var(--text-secondary); }
.watchlist-tab.watchlist-tab--active {
  color: #a78bfa;
  border-bottom-color: #7c3aed;
}

/* History rows */
.watchlist-history-row { opacity: 0.72; }

.watchlist-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 0;
  background: rgba(124,58,237,0.12);
  border-top: 1px solid rgba(124,58,237,0.3);
  border-radius: 0 0 6px 6px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.watchlist-upgrade-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.watchlist-upgrade-text strong { color: #c4b5fd; font-size: 0.85rem; }
.watchlist-upgrade-text span   { opacity: 0.7; font-size: 0.78rem; }
.watchlist-upgrade-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}
/* Watchlist — Parlay mode */
.watchlist-parlay-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 5px;
  background: rgba(99,102,241,0.08);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.watchlist-parlay-toggle:hover { background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.55); }
.watchlist-parlay-toggle.parlay-toggle--active { background: rgba(99,102,241,0.22); border-color: #6366f1; color: #fff; box-shadow: 0 0 0 2px rgba(99,102,241,0.3); }
.parlay-check-cell { width: 32px; text-align: center; padding: 0 4px !important; }
.parlay-check { width: 15px; height: 15px; accent-color: #6366f1; cursor: pointer; }
.parlay-check:disabled { opacity: 0.3; cursor: not-allowed; }
.parlay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  margin: 0.5rem 0 0.25rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 8px;
}
.parlay-footer--empty {
  padding: 0.55rem 0.875rem;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border: 1px dashed rgba(99,102,241,0.2);
  border-radius: 8px;
}
.parlay-footer-stats { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.parlay-stat { font-size: 0.82rem; color: var(--text-secondary); }
.parlay-stat--odds { font-size: 1rem; font-weight: 700; color: #a5b4fc; }
.parlay-stat--implied { font-size: 0.75rem; color: var(--text-muted); }
.parlay-export-btn {
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 5px;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.parlay-export-btn:hover { background: rgba(99,102,241,0.28); border-color: #6366f1; color: #fff; }
[data-theme="light"] .watchlist-parlay-toggle { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.06); color: #4f46e5; }
[data-theme="light"] .watchlist-parlay-toggle.parlay-toggle--active { background: rgba(99,102,241,0.15); color: #3730a3; }
[data-theme="light"] .parlay-footer { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.2); }
[data-theme="light"] .parlay-stat--odds { color: #4f46e5; }
[data-theme="light"] .parlay-export-btn { background: rgba(99,102,241,0.08); color: #4f46e5; border-color: rgba(99,102,241,0.3); }
[data-theme="light"] .parlay-export-btn:hover { background: rgba(99,102,241,0.2); color: #3730a3; }

/* ── MLB Batting Signals Modal ─────────────────────────────────────────────── */

/* Stat tab bar */
.bs-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bs-tab {
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.bs-tab:hover { border-color: rgba(99,102,241,0.4); color: var(--text-primary, #f1f5f9); }
.bs-tab.active {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.55);
  color: #a5b4fc;
}
[data-theme="light"] .bs-tab { color: #475569; }
[data-theme="light"] .bs-tab.active { background: rgba(99,102,241,0.12); color: #4f46e5; }

/* Table */
.bs-table-wrap { overflow-x: auto; }
.bs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.bs-th {
  padding: 0.45rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  user-select: none;
  transition: color 0.15s;
}
.bs-th:hover { color: rgba(255,255,255,0.75); }
.bs-th-active { color: #a5b4fc !important; }
.bs-th-spark  { min-width: 56px; }
[data-theme="light"] .bs-th { color: rgba(0,0,0,0.4); }
[data-theme="light"] .bs-th-active { color: #4f46e5 !important; }

.bs-row { border-bottom: 1px solid rgba(255,255,255,0.04); }
.bs-row-alt { background: rgba(255,255,255,0.02); }
.bs-row:hover { background: rgba(99,102,241,0.06); }
[data-theme="light"] .bs-row-alt { background: rgba(0,0,0,0.02); }
[data-theme="light"] .bs-row:hover { background: rgba(99,102,241,0.04); }

.bs-row td { padding: 0.5rem 0.6rem; vertical-align: middle; }

.bs-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  width: 32px;
}
[data-theme="light"] .bs-rank { color: rgba(0,0,0,0.3); }

.bs-player-cell { min-width: 140px; }
.bs-player-cell .player-link {
  font-weight: 600;
  color: #c7d2fe;
  text-decoration: none;
  display: block;
  line-height: 1.2;
}
.bs-player-cell .player-link:hover { color: #818cf8; text-decoration: underline; }
[data-theme="light"] .bs-player-cell .player-link { color: #4338ca; }
[data-theme="light"] .bs-player-cell .player-link:hover { color: #3730a3; }

.bs-batting-order {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  display: block;
}
[data-theme="light"] .bs-batting-order { color: rgba(0,0,0,0.35); }

.bs-team-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary, #9ca3af);
  border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="light"] .bs-team-badge { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #475569; }

/* Stat value cells */
.bs-val-proj   { font-weight: 700; color: #a5b4fc; }
.bs-val-season { color: rgba(255,255,255,0.55); }
.bs-val-l5     { color: rgba(255,255,255,0.72); }
[data-theme="light"] .bs-val-proj   { color: #4f46e5; }
[data-theme="light"] .bs-val-season { color: rgba(0,0,0,0.45); }
[data-theme="light"] .bs-val-l5     { color: rgba(0,0,0,0.6); }

/* Sparkline cell */
.bs-spark-cell { width: 56px; padding: 0 4px !important; }

/* Matchup rating */
.bs-mr {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}
.bs-mr-great   { background: rgba(34,197,94,0.18);  color: #4ade80; }
.bs-mr-good    { background: rgba(132,204,22,0.15); color: #a3e635; }
.bs-mr-neutral { background: rgba(156,163,175,0.1); color: #9ca3af; }
.bs-mr-tough   { background: rgba(251,146,60,0.18); color: #fb923c; }
.bs-mr-brutal  { background: rgba(239,68,68,0.18);  color: #f87171; }

/* Trend */
.bs-trend-up   { color: #4ade80; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.bs-trend-down { color: #f87171; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.bs-trend-flat { color: #9ca3af; font-size: 0.75rem; }

/* Signal badges */
.bs-signal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.bs-game-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.5rem 0 0.75rem; }
.bs-game-badge { display: inline-flex; align-items: center; padding: 0.18rem 0.55rem; border-radius: 0.25rem; font-size: 0.72rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.55); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.bs-game-badge:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.3); }
.bs-game-badge--active { background: rgba(34,197,94,0.18); color: #4ade80; border-color: rgba(34,197,94,0.4); }
[data-theme="light"] .bs-game-badge { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.55); border-color: rgba(0,0,0,0.15); }
[data-theme="light"] .bs-game-badge:hover { background: rgba(0,0,0,0.1); color: rgba(0,0,0,0.85); }
[data-theme="light"] .bs-game-badge--active { background: rgba(22,163,74,0.12); color: #16a34a; border-color: rgba(22,163,74,0.35); }
.bs-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  width: 5.5rem;
  flex-shrink: 0;
}
.bs-signal-elite   { background: rgba(234,179,8,0.18);   color: #fbbf24; border-color: rgba(234,179,8,0.3);   }
.bs-signal-rising  { background: rgba(16,185,129,0.18);  color: #34d399; border-color: rgba(16,185,129,0.3);  }
.bs-signal-risky   { background: rgba(245,158,11,0.18);  color: #f59e0b; border-color: rgba(245,158,11,0.3);  }
.bs-signal-value   { background: rgba(59,130,246,0.18);  color: #60a5fa; border-color: rgba(59,130,246,0.3);  }
.bs-signal-blowout { background: rgba(239,68,68,0.18);   color: #f87171; border-color: rgba(239,68,68,0.3);   }
.bs-signal-contact { background: rgba(139,92,246,0.18);  color: #a78bfa; border-color: rgba(139,92,246,0.3);  }

/* Pitcher fatigue badges (batting signals — Matchup column) */
.bs-pf {
  display: block;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: default;
}
.bs-pf-fresh    { background: rgba(74,222,128,0.15);  color: #4ade80; }
.bs-pf-normal   { background: rgba(156,163,175,0.1);  color: #9ca3af; }
.bs-pf-elevated { background: rgba(250,204,21,0.15);  color: #facc15; }
.bs-pf-fatigued { background: rgba(248,113,113,0.18); color: #f87171; }

/* ── Slate Stacks modal ──────────────────────────────────────────────────── */
.ss-cards { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.25rem 0; }

.ss-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.ss-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ss-matchup {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.ss-away { color: #e2e8f0; }
.ss-at   { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.ss-home { color: #e2e8f0; }

.ss-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ss-total {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.ss-env-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ss-env-high     { background: rgba(34,197,94,0.2);   color: #4ade80; border: 1px solid rgba(34,197,94,0.3);   }
.ss-env-moderate { background: rgba(234,179,8,0.18);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.3);   }
.ss-env-average  { background: rgba(156,163,175,0.12); color: #9ca3af; border: 1px solid rgba(156,163,175,0.2); }
.ss-env-pitcher  { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25);  }

.ss-card-body { padding: 0.65rem 0.85rem; display: flex; flex-direction: column; gap: 0.55rem; }

.ss-stack-row { display: flex; align-items: center; }
.ss-stack-side {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ade80;
}
.ss-stack-side svg { flex-shrink: 0; color: #4ade80; }
.ss-stack-neutral { font-size: 0.82rem; color: rgba(255,255,255,0.4); font-style: italic; }
.ss-edge-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  margin-left: 0.15rem;
}

.ss-pitchers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ss-pitcher-col { display: flex; flex-direction: column; gap: 0.15rem; }
.ss-pitcher-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.ss-pitcher { display: flex; flex-direction: column; gap: 0.1rem; }
.ss-pitcher-name { font-size: 0.82rem; font-weight: 600; color: #e2e8f0; }
.ss-pitcher-stats { font-size: 0.74rem; color: rgba(255,255,255,0.5); }

.ss-weakness-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.15rem;
  width: fit-content;
  text-transform: uppercase;
}
.ss-weak-vulnerable { background: rgba(239,68,68,0.18);  color: #f87171; border: 1px solid rgba(239,68,68,0.3);  }
.ss-weak-suspect    { background: rgba(249,115,22,0.18); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.ss-weak-average    { background: rgba(234,179,8,0.15);  color: #facc15; border: 1px solid rgba(234,179,8,0.25); }
.ss-weak-sharp      { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }

[data-theme="light"] .ss-weak-vulnerable { background: rgba(239,68,68,0.1);  color: #dc2626; border-color: rgba(239,68,68,0.25);  }
[data-theme="light"] .ss-weak-suspect    { background: rgba(249,115,22,0.1); color: #ea580c; border-color: rgba(249,115,22,0.25); }
[data-theme="light"] .ss-weak-average    { background: rgba(234,179,8,0.1);  color: #ca8a04; border-color: rgba(234,179,8,0.2);   }
[data-theme="light"] .ss-weak-sharp      { background: rgba(34,197,94,0.1);  color: #16a34a; border-color: rgba(34,197,94,0.2);   }

.ss-no-analysis {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  padding: 0.2rem 0;
}

.ss-recs {
  margin: 0;
  padding: 0 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ss-recs li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* Key batters section */
.ss-batters {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ss-batters-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.ss-batter-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ss-batter-order {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}
.ss-batter-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-batter-stats {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.ss-batter-stat {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.ss-platoon-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(34,197,94,0.18);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Light theme overrides */
[data-theme="light"] .ss-card            { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .ss-card-header     { background: rgba(0,0,0,0.03); border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .ss-away,
[data-theme="light"] .ss-home            { color: #1e293b; }
[data-theme="light"] .ss-at              { color: rgba(0,0,0,0.35); }
[data-theme="light"] .ss-total           { color: rgba(0,0,0,0.5); }
[data-theme="light"] .ss-env-high        { background: rgba(34,197,94,0.12);  color: #16a34a; border-color: rgba(34,197,94,0.25); }
[data-theme="light"] .ss-env-moderate    { background: rgba(234,179,8,0.12);  color: #b45309; border-color: rgba(234,179,8,0.25); }
[data-theme="light"] .ss-env-average     { background: rgba(100,116,139,0.1); color: #64748b; border-color: rgba(100,116,139,0.2); }
[data-theme="light"] .ss-env-pitcher     { background: rgba(239,68,68,0.1);   color: #dc2626; border-color: rgba(239,68,68,0.2); }
[data-theme="light"] .ss-stack-side      { color: #16a34a; }
[data-theme="light"] .ss-stack-side svg  { color: #16a34a; }
[data-theme="light"] .ss-stack-neutral   { color: rgba(0,0,0,0.4); }
[data-theme="light"] .ss-edge-label      { color: rgba(0,0,0,0.4); }
[data-theme="light"] .ss-pitcher-label   { color: rgba(0,0,0,0.4); }
[data-theme="light"] .ss-pitcher-name    { color: #1e293b; }
[data-theme="light"] .ss-pitcher-stats   { color: rgba(0,0,0,0.5); }
[data-theme="light"] .ss-no-analysis     { color: rgba(0,0,0,0.4); }
[data-theme="light"] .ss-recs li         { color: rgba(0,0,0,0.65); }
[data-theme="light"] .ss-batters         { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .ss-batters-label   { color: rgba(0,0,0,0.4); }
[data-theme="light"] .ss-batter-order    { color: rgba(0,0,0,0.3); }
[data-theme="light"] .ss-batter-name     { color: #1e293b; }
[data-theme="light"] .ss-batter-stat     { color: rgba(0,0,0,0.5); }
[data-theme="light"] .ss-platoon-badge   { background: rgba(34,197,94,0.12); color: #16a34a; border-color: rgba(34,197,94,0.25); }

/* ── NBA Slate Summary Modal ─────────────────────────────────────────────────── */
.slate-date-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; margin-bottom: 0.75rem; }
.slate-summary-section { margin-bottom: 1.25rem; }
.slate-summary-section-header { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border-color); }
.slate-game-block { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 16px; margin-bottom: 1rem; }
.slate-game-header { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.slate-env-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 2px 0; color: var(--text-secondary); }
.slate-env-label { color: var(--text-muted); }
.slate-env-value { color: var(--text-primary); font-weight: 600; }
.slate-blowout-wrap { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slate-blowout-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px solid transparent; }
.slate-blowout-badge--high   { background: rgba(239,68,68,0.15);  color: #f87171; border-color: rgba(239,68,68,0.3); }
.slate-blowout-badge--medium { background: rgba(234,179,8,0.15);  color: #ca8a04; border-color: rgba(234,179,8,0.3); }
.slate-blowout-badge--low    { background: rgba(34,197,94,0.15);  color: #86efac; border-color: rgba(34,197,94,0.3); }
[data-theme="light"] .slate-blowout-badge--high   { background: rgba(239,68,68,0.1);  color: #dc2626; border-color: rgba(239,68,68,0.4); }
[data-theme="light"] .slate-blowout-badge--medium { background: rgba(180,83,9,0.08); color: #b45309; border-color: rgba(180,83,9,0.35); }
[data-theme="light"] .slate-blowout-badge--low    { background: rgba(34,197,94,0.1);  color: #16a34a; border-color: rgba(34,197,94,0.4); }
.slate-ot-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px solid transparent; }
.slate-ot-badge--high   { background: rgba(99,102,241,0.15);  color: #a78bfa; border-color: rgba(99,102,241,0.3); }
.slate-ot-badge--medium { background: rgba(59,130,246,0.15);  color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.slate-ot-badge--low    { background: rgba(148,163,184,0.15); color: #94a3b8; border-color: rgba(148,163,184,0.3); }
[data-theme="light"] .slate-ot-badge--high   { background: rgba(99,102,241,0.1);  color: #4f46e5; border-color: rgba(99,102,241,0.4); }
[data-theme="light"] .slate-ot-badge--medium { background: rgba(59,130,246,0.1);  color: #2563eb; border-color: rgba(59,130,246,0.4); }
[data-theme="light"] .slate-ot-badge--low    { background: rgba(100,116,139,0.1); color: #475569; border-color: rgba(100,116,139,0.4); }
.slate-section { margin-top: 0.75rem; }
.slate-section-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; margin-bottom: 4px; }
.slate-series-info { margin-top: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.slate-script-text { font-size: 0.82rem; color: var(--text-secondary); }
.slate-impact-line { font-size: 0.82rem; color: var(--text-secondary); padding: 2px 0; }
.slate-injury-none { font-size: 0.8rem; color: var(--text-muted); }
.slate-injury-item { display: block; font-size: 0.8rem; color: var(--text-secondary); }
.slate-injury-away { margin-top: 4px; }
.slate-player-tag { font-size: 0.82rem; padding: 2px 0; color: var(--text-secondary); }
.slate-player-tag strong { color: var(--text-primary); }
.slate-player-stat { color: var(--text-muted); font-size: 0.78rem; }
.slate-player-note { font-size: 0.75rem; color: var(--text-muted); margin-left: 4px; }
.slate-tags-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 0.25rem; }
.slate-tags-col { min-width: 0; padding: 0 0.6rem; }
.slate-tags-col:first-child { padding-left: 0; }
.slate-tags-col:last-child { padding-right: 0; }
.slate-tags-col:not(:last-child) { border-right: 1px solid var(--border-color); }
.slate-tags-empty { font-size: 0.78rem; color: var(--text-muted); }
.slate-tag-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.slate-tag-label--core  { color: #22c55e; }
.slate-tag-label--value { color: #f59e0b; }
.slate-tag-label--fade  { color: #ef4444; }
.slate-classification-badge { font-size: 1rem; font-weight: 700; text-align: center; padding: 12px; border-radius: 8px; margin-top: 1rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); }
.slate-upsell-banner { font-size: 0.82rem; color: var(--text-muted); background: var(--bg-tertiary); border: 1px dashed var(--border-color); border-radius: 6px; padding: 10px 14px; text-align: center; margin-top: 0.5rem; }
.slate-upsell-banner a { color: var(--accent-green); text-decoration: none; font-weight: 600; }
.slate-edge-block { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); border-radius: 8px; padding: 12px 16px; margin-bottom: 1rem; }
.slate-edge-title { font-weight: 700; color: rgba(99,102,241,0.9); font-size: 0.82rem; text-transform: uppercase; margin-bottom: 6px; }
.slate-edge-item { font-size: 0.82rem; color: var(--text-secondary); padding: 2px 0; }
/* Stack Heatmap */
.stack-list { display: flex; flex-direction: column; gap: 0.625rem; }
.stack-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.stack-rank { font-size: 1rem; font-weight: 700; color: #6366f1; min-width: 2rem; text-align: center; flex-shrink: 0; }
.stack-info { flex: 1; min-width: 0; }
.stack-matchup { font-weight: 600; color: var(--text-primary); font-size: 0.875rem; }
.stack-meta { font-size: 0.775rem; color: var(--text-muted); margin: 0.2rem 0 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack-bar-wrap { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.stack-bar { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.stack-bar--hot  { background: linear-gradient(90deg, #f97316, #ef4444); }
.stack-bar--warm { background: linear-gradient(90deg, #eab308, #f59e0b); }
.stack-bar--cool { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.stack-badge { flex-shrink: 0; text-align: center; font-size: 0.75rem; font-weight: 700; line-height: 1.3; min-width: 4.5rem; padding: 0.3rem 0.5rem; border-radius: 6px; }
.stack-score-num { font-size: 0.7rem; font-weight: 400; opacity: 0.75; }
.stack-heat--hot  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.stack-heat--warm { background: rgba(234,179,8,0.12);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.stack-heat--cool { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
[data-theme="light"] .stack-row { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .stack-bar-wrap { background: rgba(0,0,0,0.07); }
[data-theme="light"] .stack-heat--hot  { background: rgba(239,68,68,0.08);  color: #dc2626; border-color: rgba(239,68,68,0.2); }
[data-theme="light"] .stack-heat--warm { background: rgba(234,179,8,0.08);  color: #b45309; border-color: rgba(234,179,8,0.2); }
[data-theme="light"] .stack-heat--cool { background: rgba(99,102,241,0.08); color: #4f46e5; border-color: rgba(99,102,241,0.2); }
/* Schedule Difficulty */
.schedule-diff-content { padding: 0.25rem 0; }
.sched-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.sched-header-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.sched-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.875rem; }
.sched-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.sched-info { flex: 1; min-width: 0; }
.sched-matchup { font-weight: 600; color: var(--text-primary); font-size: 0.875rem; }
.sched-meta { font-size: 0.72rem; color: var(--text-muted); margin: 0.15rem 0 0.35rem; }
.sched-bar-wrap { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.sched-bar { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.sched-bar--hard { background: linear-gradient(90deg, #ef4444, #dc2626); }
.sched-bar--med  { background: linear-gradient(90deg, #eab308, #f59e0b); }
.sched-bar--easy { background: linear-gradient(90deg, #22c55e, #16a34a); }
.sched-badge { flex-shrink: 0; text-align: center; font-size: 0.75rem; font-weight: 700; line-height: 1.3; min-width: 4rem; padding: 0.3rem 0.5rem; border-radius: 6px; }
.sched-score-num { font-size: 0.68rem; font-weight: 400; opacity: 0.75; }
.sched-diff--hard { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.sched-diff--med  { background: rgba(234,179,8,0.12);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.sched-diff--easy { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.sched-legend { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
[data-theme="light"] .sched-row { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .sched-bar-wrap { background: rgba(0,0,0,0.07); }
[data-theme="light"] .sched-diff--hard { background: rgba(239,68,68,0.08);  color: #dc2626; border-color: rgba(239,68,68,0.2); }
[data-theme="light"] .sched-diff--med  { background: rgba(234,179,8,0.08);  color: #b45309; border-color: rgba(234,179,8,0.2); }
[data-theme="light"] .sched-diff--easy { background: rgba(34,197,94,0.08);  color: #15803d; border-color: rgba(34,197,94,0.2); }
[data-theme="light"] .sched-legend { border-top-color: rgba(0,0,0,0.08); }
