/* ==========================================================================
   rimmetrics — Design System
   Cape Henlopen Lady Vikings Basketball Analytics Dashboard
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;600&family=Bebas+Neue&display=swap');

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --bg:           #05080e;
  --surface:      #0a0f1a;
  --surface2:     #101828;
  --surface-lift: #141e30;
  --border:       #1a2540;
  --border-bright:#243356;
  --gold:         #F5C518;
  --gold-dim:     #c9a010;
  --gold-glow:    rgba(245,197,24,0.12);
  --gold-faint:   rgba(245,197,24,0.04);
  --blue:         #5BA4D4;
  --blue-bright:  #7FC0E8;
  --blue-dim:     #3A7BAA;
  --text:         #eef1f8;
  --muted:        #6e88a8;
  --muted2:       #4a6080;
  --loss:         #e05a3a;
  --green:        #4DC98A;
  --purple:       #A06CDC;
  --orange:       #E8913A;
}

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

/* ==========================================================================
   Body & Background Texture
   ========================================================================== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(245,197,24,0.015) 28px, rgba(245,197,24,0.015) 29px),
    repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(91,164,212,0.01) 28px, rgba(91,164,212,0.01) 29px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 60px;
  width: 100%;
}
.layout {
  display: flex;
  flex: 1;
}
.main {
  flex: 1;
  padding: 24px 28px 60px;
  max-width: 1200px;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  background: rgba(5,8,14,0.97);
  border-bottom: 1px solid rgba(245,197,24,0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(245,197,24,0.35), 0 0 16px rgba(245,197,24,0.25);
}
/* Fallback logo circle (roster mockup style) */
.logo {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 35% 35%, #F5C518, #C49A12 60%, #8A6A00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  color: var(--bg);
  box-shadow: 0 0 0 2px rgba(245,197,24,0.35), 0 0 16px rgba(245,197,24,0.25);
}
.brand-text .name {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-shadow: 0 0 16px rgba(245,197,24,0.3);
}
.brand-text .sub {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
}
nav {
  display: flex;
  gap: 3px;
}
nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
nav a:hover {
  color: var(--gold);
  border-color: rgba(245,197,24,0.22);
  background: rgba(245,197,24,0.06);
}
nav a.active {
  color: var(--gold);
  background: rgba(245,197,24,0.1);
  border-color: rgba(245,197,24,0.22);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.season-pill {
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  color: var(--gold);
}
.last-updated {
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  flex-shrink: 0;
  overflow-y: auto;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
}
.sidebar-head {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sidebar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.sidebar-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.sidebar-record {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: var(--text);
}
.sidebar-record .w { color: var(--green); font-weight: 700 }
.sidebar-record .l { color: var(--loss); font-weight: 700 }
.sidebar-toggle {
  display: flex;
  gap: 4px;
}
.toggle-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.toggle-btn.active {
  border-color: rgba(245,197,24,0.3);
  color: var(--gold);
  background: var(--gold-faint);
}
.toggle-btn:hover {
  border-color: rgba(245,197,24,0.22);
  color: var(--gold);
}

/* Player List (Roster sidebar) */
.player-list { padding: 0 8px }
.player-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.player-item:hover {
  background: var(--gold-faint);
  border-color: rgba(245,197,24,0.12);
}
.player-item.active {
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.25);
}
.player-item.active .pi-name { color: var(--gold) }
.player-item.active .pi-num {
  background: var(--gold-glow);
  border-color: rgba(245,197,24,0.4);
  color: var(--gold);
}
.pi-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--blue);
  flex-shrink: 0;
  transition: all .15s;
}
.pi-info { flex: 1; min-width: 0 }
.pi-name {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}
.pi-pos {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pi-ppg {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  color: var(--gold-dim);
  flex-shrink: 0;
}

/* Game List (Game Stats sidebar) */
.game-list { padding: 0 8px }
.game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.game-item:hover {
  background: var(--gold-faint);
  border-color: rgba(245,197,24,0.12);
}
.game-item.active {
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.25);
}
.gi-result {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.gi-w {
  background: rgba(77,201,138,0.2);
  border: 1px solid rgba(77,201,138,0.4);
  color: var(--green);
}
.gi-l {
  background: rgba(224,85,85,0.15);
  border: 1px solid rgba(224,85,85,0.3);
  color: var(--loss);
}
.gi-info { flex: 1; min-width: 0 }
.gi-opp {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-item.active .gi-opp { color: var(--gold) }
.gi-date { font-size: 10px; color: var(--muted) }
.gi-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  color: var(--gold-dim);
  flex-shrink: 0;
}
.game-item.active .gi-score { color: var(--gold) }

/* Data Entry sidebar nav */
.side-nav { padding: 0 8px }
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.side-item:hover {
  background: var(--gold-faint);
  border-color: rgba(245,197,24,0.12);
}
.side-item.active {
  background: rgba(245,197,24,0.08);
  border-color: rgba(245,197,24,0.25);
}
.side-item.active .si-label { color: var(--gold) }
.side-item.active .si-icon {
  background: var(--gold-glow);
  border-color: rgba(245,197,24,0.4);
  color: var(--gold);
}
.si-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--blue);
  flex-shrink: 0;
  transition: all .15s;
}
.si-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}
.si-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.side-section {
  padding: 12px 16px 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
}

/* Recent uploads (sidebar) */
.recent-upload {
  padding: 8px 12px;
  margin: 0 8px 2px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.ru-name { font-size: 11px; color: var(--text); font-weight: 600 }
.ru-meta { font-size: 10px; color: var(--muted); margin-top: 2px }
.ru-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}
.ru-success {
  background: rgba(77,201,138,0.12);
  border: 1px solid rgba(77,201,138,0.3);
  color: var(--green);
}

/* ==========================================================================
   Panel Component
   ========================================================================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
  border-radius: 10px 10px 0 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.panel-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.panel-action {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  cursor: pointer;
  padding: 3px 10px;
  border: 1px solid rgba(91,164,212,0.25);
  border-radius: 4px;
  background: none;
  transition: all .15s;
  text-decoration: none;
}
.panel-action:hover {
  color: var(--gold);
  border-color: rgba(245,197,24,0.3);
  background: var(--gold-faint);
}

/* ==========================================================================
   KPI Cards
   ========================================================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 9px 9px 0 0;
}
.kpi:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-2px);
}
.kpi-gold::before  { background: linear-gradient(90deg, var(--gold-dim), transparent) }
.kpi-blue::before  { background: linear-gradient(90deg, var(--blue-dim), transparent) }
.kpi-green::before { background: linear-gradient(90deg, #2E8A5A, transparent) }
.kpi-red::before   { background: linear-gradient(90deg, #8A3535, transparent) }
.kpi-purple::before{ background: linear-gradient(90deg, #6A3E9C, transparent) }
.kpi-orange::before{ background: linear-gradient(90deg, #8A5520, transparent) }
.kpi-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 5px;
}
.kpi-val {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.kv-gold   { color: var(--gold);   text-shadow: 0 0 12px rgba(245,197,24,0.18) }
.kv-blue   { color: var(--blue) }
.kv-green  { color: var(--green) }
.kv-red    { color: var(--loss) }
.kv-purple { color: var(--purple) }
.kv-orange { color: var(--orange) }
.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.kpi-bar {
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.kpi-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-dim), var(--gold));
}
.kpi-trend { font-size: 11px; margin-top: 4px }
.up   { color: var(--green) }
.down { color: var(--loss) }
.flat { color: var(--muted) }

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.g2   { display: grid; grid-template-columns: 1fr 1fr;     gap: 16px; margin-bottom: 16px }
.g3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px }
.g2-1 { display: grid; grid-template-columns: 2fr 1fr;     gap: 16px; margin-bottom: 16px }
.g1-2 { display: grid; grid-template-columns: 1fr 2fr;     gap: 16px; margin-bottom: 16px }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; margin-bottom: 16px }
table { width: 100%; border-collapse: collapse; font-size: 13px }

/* Grouped column headers */
thead tr.col-group th {
  padding: 5px 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.grp-shooting { color: rgba(91,164,212,0.7) }
.grp-rebounds  { color: rgba(77,201,138,0.7) }
.grp-other    { color: rgba(160,108,220,0.7) }

thead th {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 8px 10px;
  text-align: center;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}
thead th:hover { color: var(--gold) }
thead th:first-child {
  text-align: left;
  padding-left: 16px;
  min-width: 160px;
  position: sticky;
  left: 0;
  z-index: 11;
  background: var(--surface);
  cursor: default;
}
thead th.sorted { color: var(--gold) }
thead th.sorted::after { content: ' \25BC'; font-size: 8px }
thead th.sorted-asc { color: var(--gold) }
thead th.sorted-asc::after { content: ' \25B2'; font-size: 8px }

tbody tr {
  border-bottom: 1px solid rgba(91,164,212,0.06);
  transition: background .12s;
}
tbody tr:nth-child(even) { background: rgba(91,164,212,0.03) }
tbody tr:hover { background: var(--gold-faint) !important }
tbody td {
  padding: 8px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
tbody td:first-child {
  text-align: left;
  padding-left: 16px;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
}
tbody tr:nth-child(even) td:first-child { background: #0e1726 }
tbody tr:hover td:first-child {
  background: var(--surface-lift) !important;
  color: var(--gold) !important;
}

/* Player number badge in tables */
.pnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  margin-right: 8px;
  vertical-align: middle;
}
tbody tr:hover .pnum {
  background: var(--gold-glow);
  border-color: rgba(245,197,24,0.3);
  color: var(--gold);
}

/* Value classes */
.val-gold { color: var(--gold); font-weight: 700; font-family: 'Oswald', sans-serif }
.val-top  { color: var(--gold); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 13px }
.val-high { color: var(--text); font-weight: 600 }
.val-low  { color: var(--muted) }
.val-zero { color: #3A4560 }
.result-w { color: var(--green); font-family: 'Oswald', sans-serif; font-weight: 700 }
.result-l { color: var(--loss);  font-family: 'Oswald', sans-serif; font-weight: 700 }

/* Leader highlighting */
.is-leader {
  background: rgba(245,197,24,0.1) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
}

/* Special rows */
.row-total td {
  background: linear-gradient(180deg, #1A2540, #131D32) !important;
  border-top: 2px solid rgba(245,197,24,0.3) !important;
  color: var(--gold) !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.row-total td:first-child {
  background: linear-gradient(180deg, #1A2540, #131D32) !important;
  color: var(--gold) !important;
  letter-spacing: 1px;
}
.row-divider td {
  background: var(--bg) !important;
  height: 6px;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.row-label td {
  background: rgba(91,164,212,0.04) !important;
  padding: 6px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--border) !important;
}
.row-opp td {
  color: var(--muted) !important;
  font-style: italic;
}
.row-opp-total td {
  background: rgba(91,164,212,0.06) !important;
  border-top: 1px solid rgba(91,164,212,0.2) !important;
  color: var(--blue) !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

/* Table footer / legend */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(10,15,26,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.legend { display: flex; align-items: center; gap: 12px }
.legend-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted) }
.legend-dot { width: 8px; height: 8px; border-radius: 2px }
.ld-leader { background: rgba(245,197,24,0.5); border: 1px solid var(--gold) }

/* Rank badges */
.rank-1 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 700;
  background: rgba(245,197,24,0.2); border: 1px solid rgba(245,197,24,0.4); color: var(--gold);
}
.rank-2 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 700;
  background: rgba(91,164,212,0.15); border: 1px solid rgba(91,164,212,0.3); color: var(--blue);
}
.rank-3 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 700;
  background: rgba(77,201,138,0.12); border: 1px solid rgba(77,201,138,0.25); color: var(--green);
}

/* Inline bars (season stats table) */
.inline-bar { height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; margin-top: 3px }
.inline-fill { height: 100%; border-radius: 2px }

/* Comparison table */
table.comp { width: 100%; border-collapse: collapse; font-size: 12px }
table.comp thead th {
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue);
  padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--border);
  white-space: nowrap; cursor: pointer; transition: color .15s;
}
table.comp thead th:hover { color: var(--gold) }
table.comp thead th:first-child { text-align: left; cursor: default }
table.comp thead th.sorted { color: var(--gold) }
table.comp thead th.sorted::after { content: ' \25BC'; font-size: 8px }
table.comp tbody tr { border-bottom: 1px solid rgba(91,164,212,0.06); transition: background .12s }
table.comp tbody tr:nth-child(even) { background: rgba(91,164,212,0.03) }
table.comp tbody tr:hover { background: var(--gold-faint) !important }
table.comp tbody td { padding: 9px 10px; text-align: center; font-variant-numeric: tabular-nums }
table.comp tbody td:first-child { text-align: left; padding-left: 0 }

/* Player cell (analytics comparison table) */
.player-cell { display: flex; align-items: center; gap: 8px }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.pc-name { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; color: var(--text) }
.pc-pos { font-size: 10px; color: var(--muted) }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg);
  box-shadow: 0 0 16px rgba(245,197,24,0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(245,197,24,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: none;
  border: 1px solid var(--border-bright);
  color: var(--blue);
}
.btn-secondary:hover {
  border-color: rgba(91,164,212,0.4);
  background: rgba(91,164,212,0.06);
}
.btn-danger {
  background: none;
  border: 1px solid rgba(224,90,58,0.3);
  color: var(--loss);
}
.btn-danger:hover { background: rgba(224,90,58,0.06) }

/* Filter buttons */
.filter-group { display: flex; align-items: center; gap: 4px }
.filter-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.filter-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn.active, .filter-btn:hover {
  border-color: rgba(245,197,24,0.3);
  color: var(--gold);
  background: var(--gold-faint);
}

/* ==========================================================================
   Insight Blocks
   ========================================================================== */
.insight {
  background: var(--surface);
  border: 1px solid rgba(91,164,212,0.15);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}
.insight-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
  font-weight: 600;
}
.insight-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
}
.insight-text strong { color: var(--gold) }
.insight-text .neg { color: var(--loss); font-weight: 600 }

/* Player Insights panel (roster) */
.insight-panel {
  background: var(--surface);
  border: 1px solid rgba(91,164,212,0.15);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.insight-panel .panel-title { color: var(--blue) }
.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(91,164,212,0.06);
}
.insight-item:last-child { border-bottom: none }
.insight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.insight-dot-gold { background: var(--gold) }
.insight-dot-red  { background: var(--loss) }

/* ==========================================================================
   Upload Components
   ========================================================================== */
.upload-strip {
  background: var(--surface);
  border: 1px dashed var(--border-bright);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.upload-strip:hover { border-color: rgba(245,197,24,0.35) }
.upload-left { display: flex; align-items: center; gap: 14px }
.upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(91,164,212,0.1);
  border: 1px solid rgba(91,164,212,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--blue);
}
.upload-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}
.upload-desc { font-size: 11px; color: var(--muted); margin-top: 2px }
.upload-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(245,197,24,0.35);
  background: rgba(245,197,24,0.08);
  color: var(--gold);
  cursor: pointer;
  transition: all .15s;
}
.upload-btn:hover {
  background: rgba(245,197,24,0.15);
  border-color: var(--gold);
}

/* Upload zone (data entry) */
.upload-zone {
  border: 2px dashed var(--border-bright);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(91,164,212,0.03) 100%);
}
.upload-zone:hover {
  border-color: rgba(245,197,24,0.4);
  background: linear-gradient(135deg, rgba(245,197,24,0.03) 0%, rgba(91,164,212,0.03) 100%);
}
.uz-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(91,164,212,0.08);
  border: 1px solid rgba(91,164,212,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--blue);
  transition: all .25s;
}
.upload-zone:hover .uz-icon {
  background: rgba(245,197,24,0.1);
  border-color: rgba(245,197,24,0.3);
  color: var(--gold);
}
.uz-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.uz-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.uz-formats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.uz-format {
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.uz-or { font-size: 12px; color: var(--muted2); margin: 12px 0 }
.uz-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid rgba(245,197,24,0.35);
  background: rgba(245,197,24,0.08);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
.uz-browse:hover {
  background: rgba(245,197,24,0.15);
  border-color: var(--gold);
}

/* ==========================================================================
   W/L Grid
   ========================================================================== */
.wl-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}
.wl-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
  transition: transform .15s;
}
.wl-cell:hover { transform: scale(1.15); z-index: 2 }
.wl-w {
  background: rgba(77,201,138,0.2);
  border: 1px solid rgba(77,201,138,0.4);
  color: var(--green);
}
.wl-l {
  background: rgba(224,85,85,0.15);
  border: 1px solid rgba(224,85,85,0.3);
  color: var(--loss);
}

/* ==========================================================================
   Hero Banner (Dashboard)
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, #0D1628 50%, rgba(91,164,212,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
  border-radius: 12px 12px 0 0;
}
.hero::after {
  content: 'VIKINGS';
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  color: rgba(245,197,24,0.025);
  line-height: 1;
  pointer-events: none;
  letter-spacing: 8px;
}
.hero-top { display: flex; align-items: center; justify-content: space-between }
.hero-left { display: flex; align-items: center; gap: 24px }
.hero-record { text-align: center }
.hero-record .big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245,197,24,0.25);
}
.hero-record .label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.hero-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--border-bright), transparent);
}
.hero-meta { display: flex; flex-direction: column; gap: 8px }
.hero-meta-row { display: flex; align-items: center; gap: 16px }
.hm-stat { display: flex; align-items: baseline; gap: 4px }
.hm-stat .val { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700 }
.hm-stat .unit { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted) }
.hm-vs { font-size: 11px; color: var(--muted) }
.hero-streak { display: flex; align-items: center; gap: 8px; margin-top: 4px }
.hero-right { text-align: right }
.next-game-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px }
.next-game-opp { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: var(--text) }
.next-game-detail { font-size: 12px; color: var(--muted); margin-top: 2px }
.next-game-countdown { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--blue); margin-top: 4px }

/* ==========================================================================
   Momentum Meter (Dashboard)
   ========================================================================== */
.momentum { display: flex; align-items: center; gap: 16px; margin-bottom: 16px }
.momentum-bar {
  flex: 1;
  height: 8px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.momentum-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--loss), var(--orange), var(--gold), var(--green));
  transition: width 1s ease;
}
.momentum-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.momentum-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--green);
  line-height: 1;
}

/* ==========================================================================
   Coach's Brief (Dashboard)
   ========================================================================== */
.brief {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.brief::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
  border-radius: 10px 10px 0 0;
}
.brief-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px }
.brief-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.brief-sub { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase }
.brief-text { font-size: 13px; color: var(--text); line-height: 1.8 }
.brief-text strong { color: var(--gold) }
.brief-text .neg { color: var(--loss); font-weight: 600 }

/* ==========================================================================
   Leader Cards (Dashboard)
   ========================================================================== */
.leader-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px }
.leader-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  transition: border-color .2s, transform .2s;
  cursor: default;
}
.leader-card:hover { border-color: rgba(245,197,24,0.3); transform: translateY(-2px) }
.lc-cat {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.lc-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(245,197,24,0.15);
  margin-bottom: 4px;
}
.lc-name {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.5px;
}
.lc-bar { height: 3px; background: var(--surface); border-radius: 2px; margin-top: 8px; overflow: hidden }
.lc-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--blue-dim), var(--gold)) }

/* Game Leaders (Game Stats) */
.leader-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(91,164,212,0.06) }
.leader-row:last-child { border-bottom: none }
.leader-cat { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); width: 65px; flex-shrink: 0 }
.leader-name { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); flex: 1 }
.leader-val { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--gold) }

/* ==========================================================================
   Recent Games (Dashboard)
   ========================================================================== */
.rg {
  display: grid;
  grid-template-columns: 90px 1fr 70px 50px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91,164,212,0.06);
}
.rg:last-child { border-bottom: none }
.rg-date { font-size: 11px; color: var(--muted) }
.rg-opp { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; color: var(--text) }
.rg-score { font-family: 'Bebas Neue', sans-serif; font-size: 18px; text-align: right }
.rg-diff { display: flex; align-items: center; gap: 4px }
.rg-diff-bar { height: 4px; border-radius: 2px; min-width: 4px }
.rg-diff-val { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 700 }

/* ==========================================================================
   Team Pulse (Dashboard)
   ========================================================================== */
.pulse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.pulse-item {
  background: var(--surface2);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--border);
}
.pulse-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.pulse-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px }
.pulse-category { font-size: 12px; color: var(--text) }
.pulse-indicator { width: 10px; height: 10px; border-radius: 50% }
.pulse-good { background: var(--green); box-shadow: 0 0 6px rgba(77,201,138,0.4) }
.pulse-warn { background: var(--orange); box-shadow: 0 0 6px rgba(232,145,58,0.4) }
.pulse-bad  { background: var(--loss);   box-shadow: 0 0 6px rgba(224,90,58,0.4) }
.pulse-val { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600 }

/* ==========================================================================
   Quarter Heatmap (Dashboard)
   ========================================================================== */
.qtr-grid {
  display: grid;
  grid-template-columns: 60px repeat(4, 1fr);
  gap: 4px;
}
.qtr-header {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  padding: 4px;
}
.qtr-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.qtr-cell {
  border-radius: 5px;
  padding: 10px 6px;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

/* Quarter heatmap alternate (analytics) */
.qheat-grid { display: grid; grid-template-columns: 70px repeat(4, 1fr); gap: 4px }
.qh-header {
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue);
  text-align: center; padding: 4px;
}
.qh-cell {
  border-radius: 6px; padding: 10px 6px; text-align: center;
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700;
  transition: transform .15s;
}
.qh-cell:hover { transform: scale(1.04); z-index: 2 }
.qh-label { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; color: var(--text); display: flex; align-items: center; padding: 4px 0 }
.qh-sub { font-size: 9px; font-weight: 400; color: var(--muted); display: block; margin-top: 2px }

/* Quarter bar in game banner */
.qtr-bar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border) }
.qtr-bar .qtr-grid {
  grid-template-columns: minmax(100px, 1.5fr) repeat(4, 1fr) 1fr;
}
.qtr-head {
  color: var(--blue); font-weight: 600; letter-spacing: 1px;
  font-size: 11px; text-transform: uppercase;
  border-bottom: 2px solid var(--border);
}
.qtr-cape { color: var(--gold); font-weight: 600 }
.qtr-opp  { color: var(--muted) }
.qtr-final { color: var(--gold); font-weight: 700 }

/* ==========================================================================
   Chart Placeholder
   ========================================================================== */
.chart-area {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 1px;
  background: var(--gold);
}
.ph-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 24px rgba(245,197,24,0.2);
}
.ph-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ==========================================================================
   Player Card Header (Roster)
   ========================================================================== */
.card-header {
  background: linear-gradient(135deg, var(--surface) 0%, #0D1628 50%, rgba(91,164,212,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.card-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
  border-radius: 12px 12px 0 0;
}
.card-header::after {
  content: '#1';
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 100px;
  color: rgba(245,197,24,0.04);
  line-height: 1;
  pointer-events: none;
}
.ch-top { display: flex; align-items: center; gap: 20px }
.ch-number {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,197,24,0.15), rgba(245,197,24,0.05));
  border: 2px solid rgba(245,197,24,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,197,24,0.3);
  flex-shrink: 0;
}
.ch-info { flex: 1 }
.ch-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(245,197,24,0.15);
}
.ch-meta { display: flex; gap: 16px; margin-top: 6px }
.ch-meta span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px }
.ch-meta strong { color: var(--blue); font-weight: 600 }

/* ==========================================================================
   Stat Cards (Roster)
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 20px }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 8px 8px 0 0;
}
.stat-card:hover { border-color: rgba(245,197,24,0.3); transform: translateY(-2px) }
.sc-gold::before { background: linear-gradient(90deg, var(--gold-dim), transparent) }
.sc-blue::before { background: linear-gradient(90deg, var(--blue-dim), transparent) }
.sc-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.sc-val { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1 }
.sc-val-gold { color: var(--gold); text-shadow: 0 0 10px rgba(245,197,24,0.15) }
.sc-val-blue { color: var(--blue) }
.sc-sub { font-size: 10px; color: var(--muted); margin-top: 4px }

/* ==========================================================================
   Sparklines (Roster)
   ========================================================================== */
.spark-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.spark-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.spark-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.spark-current {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.spark-chart { height: 40px; display: flex; align-items: flex-end; gap: 3px }
.spark-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  transition: opacity .15s;
}
.spark-bar:hover { opacity: 1 !important }

/* ==========================================================================
   Game Banner (Game Stats)
   ========================================================================== */
.game-banner {
  background: linear-gradient(135deg, var(--surface) 0%, #0D1628 50%, rgba(91,164,212,0.04) 100%);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.game-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
  border-radius: 12px 12px 0 0;
}
.game-banner::after {
  content: var(--banner-letter, 'W');
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  color: rgba(245,197,24,0.03);
  line-height: 1;
  pointer-events: none;
}
.banner-top { display: flex; align-items: center; justify-content: space-between }
.matchup { display: flex; align-items: center; gap: 20px }
.team-block { text-align: center }
.team-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.score-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 2px;
}
.score-win { color: var(--gold); text-shadow: 0 0 24px rgba(245,197,24,0.3) }
.score-lose { color: var(--muted) }
.vs-div { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--muted2); padding-top: 20px }
.game-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end }
.meta-line { font-size: 11px; color: var(--muted) }
.meta-line strong { color: var(--text) }

/* Quarter scoring bars (Game Stats) */
.qbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px }
.qbar-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  width: 24px;
  flex-shrink: 0;
}
.qbar-track {
  flex: 1;
  height: 20px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.qbar-cape {
  height: 100%;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
}
.qbar-opp {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   Four Factors (Analytics)
   ========================================================================== */
.ff-row {
  display: grid;
  grid-template-columns: 110px 1fr 65px 1fr 65px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91,164,212,0.07);
}
.ff-row:last-child { border-bottom: none }
.ff-label { font-size: 12px; color: var(--text); font-weight: 600 }
.ff-track { height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden }
.ff-fill  { height: 100%; border-radius: 4px }
.ff-val   { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; text-align: center }

/* ==========================================================================
   Scatter Legend (Analytics)
   ========================================================================== */
.scatter-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px }
.scatter-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px }
.scatter-legend-dot { width: 10px; height: 10px; border-radius: 50% }

/* ==========================================================================
   Cape vs Opp Comparison (Season Stats)
   ========================================================================== */
.comp-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px 60px 1fr 100px;
  gap: 6px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91,164,212,0.06);
}
.comp-row:last-child { border-bottom: none }
.comp-cape-label { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700; color: var(--gold); text-align: right }
.comp-opp-label  { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: var(--blue); text-align: left }
.comp-cat {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: center;
}
.comp-bar { height: 8px; border-radius: 4px; overflow: hidden }
.comp-bar-cape { background: var(--surface2); display: flex; justify-content: flex-end }
.comp-bar-opp  { background: var(--surface2) }
.comp-fill-gold { height: 100%; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--gold)) }
.comp-fill-blue { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), transparent) }
.comp-avg { font-family: 'Oswald', sans-serif; font-size: 11px; color: var(--muted); text-align: center }

/* ==========================================================================
   Split Cards (Season Stats)
   ========================================================================== */
.split-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px }
.split-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.split-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px }
.split-val { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1 }
.split-sub { font-size: 10px; color: var(--muted); margin-top: 4px }

/* ==========================================================================
   Record Display & Badges
   ========================================================================== */
.record-pill {
  border-radius: 20px;
  padding: 4px 13px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}
.record-pill .w { color: var(--green) }
.record-pill .l { color: var(--loss) }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.badge-w {
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.35);
  color: var(--gold);
}
.badge-l {
  background: rgba(224,90,58,0.12);
  border: 1px solid rgba(224,90,58,0.35);
  color: var(--loss);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(77,201,138,0.15);
  border: 1px solid rgba(77,201,138,0.35);
  color: var(--green);
}

/* ==========================================================================
   Form Inputs (Data Entry)
   ========================================================================== */
.form-section { margin-bottom: 20px }
.form-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.form-group { display: flex; flex-direction: column; gap: 4px }
.form-label {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  transition: border-color .15s;
  outline: none;
}
.form-input:focus {
  border-color: rgba(245,197,24,0.4);
  box-shadow: 0 0 0 2px rgba(245,197,24,0.08);
}
.form-input::placeholder { color: var(--muted2) }
.form-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  transition: border-color .15s;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: rgba(245,197,24,0.4) }
.game-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px }

/* ==========================================================================
   Data Entry Table
   ========================================================================== */
.stat-entry-wrap { overflow-x: auto }
table.stat-entry { width: 100%; border-collapse: collapse; font-size: 13px }
table.stat-entry thead th {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 6px;
  text-align: center;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
table.stat-entry thead th:first-child { text-align: left; padding-left: 12px; min-width: 140px }
table.stat-entry tbody tr { border-bottom: 1px solid rgba(91,164,212,0.06) }
table.stat-entry tbody tr:nth-child(even) { background: rgba(91,164,212,0.02) }
table.stat-entry tbody td { padding: 4px 4px; text-align: center }
table.stat-entry tbody td:first-child { text-align: left; padding-left: 12px }
.entry-player { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; color: var(--text) }
.entry-input {
  width: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 4px;
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  text-align: center;
  outline: none;
  transition: border-color .15s;
  font-variant-numeric: tabular-nums;
}
.entry-input:focus {
  border-color: rgba(245,197,24,0.4);
  background: rgba(245,197,24,0.04);
}
.entry-input::placeholder { color: var(--muted2); font-size: 11px }
.entry-computed { font-family: 'Oswald', sans-serif; font-size: 12px; color: var(--gold); font-weight: 600 }

/* ==========================================================================
   Quarter Entry (Data Entry)
   ========================================================================== */
.qtr-entry {
  display: grid;
  grid-template-columns: 100px repeat(4, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.qtr-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 8px;
  color: var(--text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  text-align: center;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.qtr-input:focus {
  border-color: rgba(245,197,24,0.4);
  background: rgba(245,197,24,0.04);
}
.qtr-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
  text-align: center;
  min-width: 50px;
}

/* ==========================================================================
   Column Mapping (Data Entry)
   ========================================================================== */
.mapping-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.mapping-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.mapping-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.map-col {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
.map-col-name { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--text) }
.map-col-sample { font-size: 10px; color: var(--muted); margin-top: 2px }
.map-arrow { color: var(--gold); font-size: 16px; text-align: center }
.map-field {
  background: rgba(245,197,24,0.04);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 6px;
  padding: 8px 12px;
}
.map-field-name { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: 0.5px }
.map-field-desc { font-size: 10px; color: var(--muted); margin-top: 2px }

/* ==========================================================================
   Validation (Data Entry)
   ========================================================================== */
.validation {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
}
.val-title {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.val-row { display: flex; align-items: center; gap: 8px; padding: 4px 0 }
.val-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.val-pass { background: var(--green); box-shadow: 0 0 4px rgba(77,201,138,0.4) }
.val-warn { background: var(--orange); box-shadow: 0 0 4px rgba(232,145,58,0.4) }
.val-fail { background: var(--loss);   box-shadow: 0 0 4px rgba(224,90,58,0.4) }
.val-msg  { font-size: 12px; color: var(--text) }

/* ==========================================================================
   Help Box (Data Entry)
   ========================================================================== */
.help-box {
  background: rgba(91,164,212,0.04);
  border: 1px solid rgba(91,164,212,0.15);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.help-title {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.help-text { font-size: 12px; color: var(--muted); line-height: 1.7 }
.help-text strong { color: var(--text) }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-note {
  text-align: center;
  padding: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* ==========================================================================
   Actions Bar (Data Entry)
   ========================================================================== */
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Radar Mock (Analytics)
   ========================================================================== */
.radar-wrap { display: flex; align-items: center; justify-content: center; padding: 10px 0 }
.radar-mock { width: 200px; height: 200px; position: relative }
.radar-ring { position: absolute; border: 1px solid rgba(91,164,212,0.08); border-radius: 50% }
.radar-ring:nth-child(1) { inset: 0 }
.radar-ring:nth-child(2) { inset: 25% }
.radar-ring:nth-child(3) { inset: 50% }
.radar-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 10px; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
}
.radar-label {
  position: absolute;
  font-family: 'Oswald', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.rl-top    { top: -14px; left: 50%; transform: translateX(-50%); color: var(--gold) }
.rl-right  { right: -30px; top: 50%; transform: translateY(-50%) }
.rl-bottom { bottom: -14px; left: 50%; transform: translateX(-50%) }
.rl-left   { left: -24px; top: 50%; transform: translateY(-50%) }
.rl-tr     { top: 10%; right: -20px }
.rl-bl     { bottom: 10%; left: -20px }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px) }
  to   { opacity: 1; transform: translateX(0) }
}

/* ==========================================================================
   Data Entry — Upload Zone
   ========================================================================== */
.upload-zone {
  border: 2px dashed var(--border-bright);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(91,164,212,0.03) 100%);
}
.upload-zone:hover {
  border-color: rgba(245,197,24,0.4);
  background: linear-gradient(135deg, rgba(245,197,24,0.03) 0%, rgba(91,164,212,0.03) 100%);
}
.uz-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(91,164,212,0.08); border: 1px solid rgba(91,164,212,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--blue);
  transition: all .25s;
}
.upload-zone:hover .uz-icon {
  background: rgba(245,197,24,0.1); border-color: rgba(245,197,24,0.3); color: var(--gold);
}
.uz-title {
  font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); margin-bottom: 6px;
}
.uz-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6 }
.uz-formats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.uz-format {
  padding: 4px 12px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--blue);
}
.uz-or { font-size: 12px; color: var(--muted2); margin: 12px 0 }
.uz-browse {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 6px;
  border: 1px solid rgba(245,197,24,0.35); background: rgba(245,197,24,0.08);
  color: var(--gold); font-family: 'Oswald', sans-serif; font-size: 13px;
  font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer; transition: all .15s;
}
.uz-browse:hover { background: rgba(245,197,24,0.15); border-color: var(--gold) }

/* ==========================================================================
   Data Entry — Column Mapping Preview
   ========================================================================== */
.mapping-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border) }
.mapping-title {
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.mapping-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center }
.map-col {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; font-size: 12px;
}
.map-col-name { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--text) }
.map-col-sample { font-size: 10px; color: var(--muted); margin-top: 2px }
.map-arrow { color: var(--gold); font-size: 16px; text-align: center }
.map-field {
  background: rgba(245,197,24,0.04); border: 1px solid rgba(245,197,24,0.2);
  border-radius: 6px; padding: 8px 12px;
}
.map-field-name {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.5px;
}
.map-field-desc { font-size: 10px; color: var(--muted); margin-top: 2px }

/* ==========================================================================
   Data Entry — Help Box
   ========================================================================== */
.help-box {
  background: rgba(91,164,212,0.04); border: 1px solid rgba(91,164,212,0.15);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px;
}
.help-title {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.help-text { font-size: 12px; color: var(--muted); line-height: 1.7 }
.help-text strong { color: var(--text) }

/* ==========================================================================
   Data Entry — Validation
   ========================================================================== */
.validation {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; margin-top: 16px;
}
.val-title {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.val-row { display: flex; align-items: center; gap: 8px; padding: 4px 0 }
.val-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.val-pass { background: var(--green); box-shadow: 0 0 4px rgba(77,201,138,0.4) }
.val-warn { background: var(--orange); box-shadow: 0 0 4px rgba(232,145,58,0.4) }
.val-fail { background: var(--loss); box-shadow: 0 0 4px rgba(224,90,58,0.4) }
.val-msg { font-size: 12px; color: var(--text) }

/* ==========================================================================
   Data Entry — Game Info Grid (new class only)
   ========================================================================== */
.game-info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px }

/* ==========================================================================
   Data Entry — Stat Entry Table
   ========================================================================== */
.stat-entry-wrap { overflow-x: auto }
table.stat-entry { width: 100%; border-collapse: collapse; font-size: 13px }
table.stat-entry thead th {
  font-family: 'Oswald', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue);
  padding: 6px 6px; text-align: center; border-bottom: 2px solid var(--border); white-space: nowrap;
}
table.stat-entry thead th:first-child { text-align: left; padding-left: 12px; min-width: 140px }
table.stat-entry tbody tr { border-bottom: 1px solid rgba(91,164,212,0.06) }
table.stat-entry tbody tr:nth-child(even) { background: rgba(91,164,212,0.02) }
table.stat-entry tbody td { padding: 4px 4px; text-align: center }
table.stat-entry tbody td:first-child { text-align: left; padding-left: 12px }
.entry-player {
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; color: var(--text);
}
.entry-input {
  width: 44px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; padding: 6px 4px; color: var(--text);
  font-family: 'Source Sans 3', sans-serif; font-size: 13px; text-align: center;
  outline: none; transition: border-color .15s; font-variant-numeric: tabular-nums;
}
.entry-input:focus { border-color: rgba(245,197,24,0.4); background: rgba(245,197,24,0.04) }
.entry-input::placeholder { color: var(--muted2); font-size: 11px }
.entry-computed {
  font-family: 'Oswald', sans-serif; font-size: 12px; color: var(--gold); font-weight: 600;
}

/* ==========================================================================
   Data Entry — Quarter Scores
   ========================================================================== */
.qtr-entry {
  display: grid; grid-template-columns: 100px repeat(4, 1fr) auto;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.qtr-label {
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text); letter-spacing: 0.5px;
}
.qtr-input {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 8px; color: var(--text); font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; text-align: center; outline: none; transition: border-color .15s; width: 100%;
}
.qtr-input:focus { border-color: rgba(245,197,24,0.4); background: rgba(245,197,24,0.04) }
.qtr-total {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--gold);
  text-align: center; min-width: 50px;
}

/* ==========================================================================
   Data Entry — Recent Uploads (sidebar)
   ========================================================================== */
.recent-upload {
  padding: 8px 12px; margin: 0 8px 2px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface2);
}
.ru-name { font-size: 11px; color: var(--text); font-weight: 600 }
.ru-meta { font-size: 10px; color: var(--muted); margin-top: 2px }
.ru-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Oswald', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; padding: 2px 6px;
  border-radius: 3px; margin-top: 4px;
}
.ru-success { background: rgba(77,201,138,0.12); border: 1px solid rgba(77,201,138,0.3); color: var(--green) }
