/* ==========================================================================
   NBA Betting Analytics - Ultra Premium Dashboard
   Next-Gen Trading Terminal with Glass Morphism & Micro-Interactions
   ========================================================================== */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Deep Dark Backgrounds with blue undertones */
  --bg-darkest: #050608;
  --bg-dark: #0a0e14;
  --bg-card: #0d1117;
  --bg-elevated: #161b22;
  --bg-hover: #1c2128;
  --bg-glass: rgba(13, 17, 23, 0.7);

  /* Borders with glow potential */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(16, 185, 129, 0.3);

  /* Text with better contrast */
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  /* Primary Accent - Vibrant Emerald */
  --accent-primary: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);

  /* Secondary Accent - Electric Blue */
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-blue-glow: rgba(59, 130, 246, 0.4);

  /* Status Colors - More vibrant */
  --positive: #10b981;
  --positive-light: #34d399;
  --positive-glow: rgba(16, 185, 129, 0.3);
  --negative: #f43f5e;
  --negative-light: #fb7185;
  --negative-glow: rgba(244, 63, 94, 0.3);
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-glow: rgba(245, 158, 11, 0.3);

  /* Injury Betting Impact Tiers */
  --tier-critical: #ef4444;
  --tier-critical-glow: rgba(239, 68, 68, 0.3);
  --tier-high: #f97316;
  --tier-high-glow: rgba(249, 115, 22, 0.3);
  --tier-moderate: #eab308;
  --tier-moderate-glow: rgba(234, 179, 8, 0.3);
  --tier-low: #6b7280;

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows - Layered for depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.3), 0 0 60px rgba(16, 185, 129, 0.1);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-darkest);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Gradient Orbs */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 20s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-5%, 5%) scale(1.1); }
  66% { transform: translate(5%, -5%) scale(0.95); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-primary) 50%, var(--accent-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: var(--space-8);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  letter-spacing: -0.03em;
}

.page-title svg {
  width: 36px;
  height: 36px;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ==========================================================================
   Navbar - Glass Morphism
   ========================================================================== */

.navbar {
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-8);
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.navbar-brand-text {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.navbar-brand-text .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  background: var(--bg-card);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--accent-gradient);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Status Indicator - Pulsing */
.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 10px var(--positive), 0 0 20px var(--positive-glow);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 10px var(--warning), 0 0 20px var(--warning-glow);
}

.status-dot.error {
  background: var(--negative);
  box-shadow: 0 0 10px var(--negative), 0 0 20px var(--negative-glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* ==========================================================================
   Cards - Glass Morphism with Depth
   ========================================================================== */

.card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(22, 27, 34, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-elevated {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.card-elevated:hover {
  box-shadow: var(--shadow-xl), 0 0 40px rgba(16, 185, 129, 0.05);
}

.card-accent {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow-green);
}

.card-accent::before {
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

/* ==========================================================================
   Stat Cards - Premium Design
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}

.stat-card {
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.1);
}

.stat-card:hover::before {
  opacity: 1;
  width: 80%;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.stat-value.positive {
  color: var(--positive);
  text-shadow: 0 0 30px var(--positive-glow);
}
.stat-value.negative {
  color: var(--negative);
  text-shadow: 0 0 30px var(--negative-glow);
}
.stat-value.warning {
  color: var(--warning);
  text-shadow: 0 0 30px var(--warning-glow);
}
.stat-value.accent {
  color: var(--accent-primary);
  text-shadow: 0 0 30px var(--accent-glow);
}

/* ==========================================================================
   Buttons - Gradient with Glow
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Primary Button - Gradient with Glow */
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 25px var(--accent-glow), 0 0 40px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.1);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Loading State */
.btn-loading {
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ==========================================================================
   Form Controls - Modern Style
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
  background: var(--bg-elevated);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  appearance: none;
  position: relative;
  transition: all var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:hover {
  border-color: var(--accent-primary);
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.form-checkbox span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}

/* ==========================================================================
   Tables - Premium Data Display
   ========================================================================== */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th {
  padding: var(--space-4) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 10;
}

td {
  padding: var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

tbody tr {
  transition: all var(--transition-fast);
}

tbody tr:hover {
  background: linear-gradient(90deg, var(--bg-hover) 0%, transparent 100%);
}

tbody tr:hover td {
  color: var(--text-primary);
}

/* Row glow on hover */
tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* ==========================================================================
   Badges - Glowing Pills
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-game {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: var(--positive);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px var(--positive-glow);
}

.badge-prop {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px var(--warning-glow);
}

/* Value Colors with Glow */
.value-positive {
  color: var(--positive);
  font-weight: 700;
  text-shadow: 0 0 10px var(--positive-glow);
}

.value-negative {
  color: var(--negative);
  font-weight: 700;
  text-shadow: 0 0 10px var(--negative-glow);
}

.value-neutral {
  color: var(--text-secondary);
}

/* Confidence Badges */
.confidence-high {
  color: var(--positive);
  font-weight: 700;
  text-shadow: 0 0 15px var(--positive-glow);
}

.confidence-medium {
  color: var(--warning);
  font-weight: 700;
  text-shadow: 0 0 15px var(--warning-glow);
}

.confidence-low {
  color: var(--negative);
  font-weight: 700;
  text-shadow: 0 0 15px var(--negative-glow);
}

/* Side Badges */
.side-over {
  color: var(--positive);
  font-weight: 700;
}

.side-under {
  color: var(--accent-blue-light);
  font-weight: 700;
}

/* ==========================================================================
   Info Box - Elegant Callout
   ========================================================================== */

.info-box {
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  background: linear-gradient(90deg, var(--accent-glow) 0%, transparent 100%);
  opacity: 0.3;
}

.info-box-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.info-box-content {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}

.info-box-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.empty-state-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ==========================================================================
   Parlay Cards - Premium Display
   ========================================================================== */

.parlay-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.parlay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.parlay-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-green);
}

.parlay-card:hover::before {
  opacity: 1;
}

.parlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.parlay-rank {
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parlay-composition {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-hover);
  border-radius: var(--radius-full);
}

.parlay-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.parlay-stat {
  text-align: center;
  padding: var(--space-2);
}

.parlay-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.parlay-stat-value {
  font-size: var(--text-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: var(--space-1);
}

.parlay-picks {
  list-style: none;
}

.parlay-pick {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  margin: var(--space-2) 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.parlay-pick:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
}

.parlay-pick-number {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--accent-primary);
  min-width: 24px;
}

.parlay-pick-content {
  flex: 1;
}

.parlay-pick-main {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.parlay-pick-details {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Fade in with slide */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease-out;
}

/* Staggered children animation */
.fade-in > * {
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
}

.fade-in > *:nth-child(1) { animation-delay: 0.05s; }
.fade-in > *:nth-child(2) { animation-delay: 0.1s; }
.fade-in > *:nth-child(3) { animation-delay: 0.15s; }
.fade-in > *:nth-child(4) { animation-delay: 0.2s; }
.fade-in > *:nth-child(5) { animation-delay: 0.25s; }

/* Skeleton loader - Shimmer */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--bg-hover) 20%,
    var(--bg-elevated) 40%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-title {
  height: 2em;
  width: 60%;
  margin-bottom: var(--space-4);
}

/* Number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.hidden { display: none; }
.block { display: block; }

.w-full { width: 100%; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .navbar {
    padding: 0 var(--space-4);
    height: 64px;
  }

  .navbar-brand-text {
    display: none;
  }

  .nav-links {
    gap: 0;
    padding: var(--space-1);
  }

  .nav-link span {
    display: none;
  }

  .nav-link {
    padding: var(--space-2);
  }

  .container {
    padding: var(--space-4);
  }

  .page-title {
    font-size: var(--text-2xl);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parlay-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Injury Indicators & Tags
   ========================================================================== */

.injury-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  margin-left: 2px;
  cursor: help;
}

.injury-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.injury-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.injury-tag.injury-out {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.injury-tag.injury-q {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.injury-tag.injury-dtd {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.injury-tag.injury-p {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Injury Report Card */
.injury-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.injury-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.injury-card-title {
  font-weight: 600;
  color: var(--text-primary);
}

.injury-impact-badge {
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.injury-impact-high {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
}

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

.injury-impact-low {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.injury-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.injury-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.injury-player {
  font-weight: 500;
  color: var(--text-primary);
}

.injury-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Game Card Injury Section — Two-Column with Impact Chips
   ========================================================================== */

.game-injuries-section {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.game-injuries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.game-injuries-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.game-injuries-team-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.game-injuries-chips {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Injury Chip — compact flex row */
.injury-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: default;
}

.injury-chip:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
}

/* High-impact chip: red-tinted border/bg */
.injury-chip-high {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.06);
}

.injury-chip-high:hover {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
}

/* Medium-impact chip */
.injury-chip-medium {
  border-color: rgba(245, 158, 11, 0.15);
}

/* Low-impact chip: muted */
.injury-chip-low {
  opacity: 0.7;
}

/* 3px colored impact bar on left edge of chip */
.injury-chip-impact {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.injury-chip-impact-high {
  background: var(--negative);
  box-shadow: 0 0 6px var(--negative-glow);
}

.injury-chip-impact-medium {
  background: var(--warning);
  box-shadow: 0 0 4px var(--warning-glow);
}

.injury-chip-impact-low {
  background: var(--text-muted);
}

/* Position badge */
.injury-chip-pos {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 2px;
  flex-shrink: 0;
}

/* Player last name */
.injury-chip-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.injury-chip-name-high {
  color: var(--text-primary);
  text-shadow: 0 0 8px var(--negative-glow);
}

/* Hidden chips — revealed when parent has .injury-chips-expanded */
.injury-chip-hidden {
  display: none;
}

.injury-chips-expanded .injury-chip-hidden {
  display: flex;
}

/* Expand/collapse toggle button */
.injury-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.injury-expand-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   Injury Report — Grouped by Matchup
   ========================================================================== */

.injury-report-games {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
}

.injury-report-game {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.injury-report-matchup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.injury-report-matchup {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.injury-report-adj {
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.injury-report-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.injury-report-team-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.injury-report-team-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.injury-report-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

/* 8px colored impact dot */
.injury-impact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.injury-impact-dot-critical {
  width: 10px;
  height: 10px;
  background: var(--tier-critical);
  box-shadow: 0 0 6px var(--tier-critical-glow);
}

.injury-impact-dot-high {
  width: 10px;
  height: 10px;
  background: var(--tier-high);
  box-shadow: 0 0 4px var(--tier-high-glow);
}

.injury-impact-dot-moderate {
  background: var(--tier-moderate);
  box-shadow: 0 0 4px var(--tier-moderate-glow);
}

.injury-impact-dot-low {
  background: var(--tier-low);
}

.injury-report-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.injury-report-pos {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0 4px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.injury-report-part {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* 40px horizontal impact meter */
.injury-impact-bar {
  width: 40px;
  height: 4px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
}

.injury-impact-fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--transition-base);
}

.injury-impact-fill-high {
  background: var(--negative);
  box-shadow: 0 0 4px var(--negative-glow);
}

.injury-impact-fill-medium {
  background: var(--warning);
  box-shadow: 0 0 3px var(--warning-glow);
}

.injury-impact-fill-low {
  background: var(--text-muted);
}

/* ==========================================================================
   League Injury Report — Collapsible Teams
   ========================================================================== */

.injury-league-teams {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

.injury-team-collapsible {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.injury-team-collapsible:hover {
  border-color: var(--border-default);
}

.injury-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: background var(--transition-fast);
}

.injury-team-header:hover {
  background: var(--bg-hover);
}

.injury-team-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.injury-team-abbr {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  min-width: 40px;
}

.injury-team-name {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.injury-team-count {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  padding: 1px 8px;
}

.injury-team-chevron {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.injury-team-expanded .injury-team-chevron {
  transform: rotate(180deg);
}

.injury-team-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  padding: 0 var(--space-4);
}

.injury-team-expanded .injury-team-body {
  max-height: 2000px;
  padding: 0 var(--space-4) var(--space-3);
}

.injury-team-body .injury-report-row {
  margin-bottom: var(--space-1);
}

.injury-team-body .injury-timeline {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive — Injury Sections
   ========================================================================== */

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

  .injury-report-teams {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Date Navigation Bar
   ========================================================================== */

.date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(22, 27, 34, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
}

.date-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.date-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.date-nav-arrow svg {
  width: 20px;
  height: 20px;
}

.date-nav-arrow:hover:not(.disabled) {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
  color: white;
}

.date-nav-arrow.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.date-nav-center {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  justify-content: center;
}

.date-nav-label {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.date-nav-badge-today {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: 10px;
  font-weight: 800;
  color: white;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 10px var(--accent-glow);
}

.date-nav-today-btn {
  margin-left: var(--space-4);
}

/* Date Picker Input */
.date-nav-picker {
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color-scheme: dark;
}

.date-nav-picker:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}

.date-nav-picker:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.date-nav-picker::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) hue-rotate(100deg) brightness(1.2);
  cursor: pointer;
}

/* ==========================================================================
   Scoreboard Game Cards
   ========================================================================== */

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.game-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-default);
  border-radius: 3px 0 0 3px;
  transition: all var(--transition-base);
}

.game-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.game-card-final::before {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.game-card-high-conf::before {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.game-card-status {
  margin-bottom: var(--space-2);
}

.game-status-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
}

.game-status-final {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.game-status-scheduled {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Inline status badge in prediction line */
.game-status-inline {
  font-size: 9px;
  padding: 1px 6px;
  vertical-align: middle;
}

/* Scoreboard layout: away | score | home */
.game-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-2);
}

.game-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 70px;
}

.game-team-abbr {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.game-team-name {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.game-team-winner .game-team-abbr {
  color: var(--text-primary);
}

.game-team-winner .game-team-name {
  color: var(--text-secondary);
}

.game-team-loser .game-team-abbr {
  color: var(--text-muted);
  opacity: 0.6;
}

.game-team-loser .game-team-name {
  opacity: 0.5;
}

.game-score-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.game-score {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.game-score-winner {
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.game-score-loser {
  color: var(--text-muted);
  opacity: 0.6;
}

.game-score-divider {
  font-size: var(--text-xl);
  color: var(--text-muted);
  font-weight: 300;
}

.game-vs {
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Prediction line below scores */
.game-prediction {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.game-prediction-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.game-prediction-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.game-prediction-pick {
  font-size: var(--text-sm);
  font-weight: 700;
}

.game-prediction-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.game-prediction-detail {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Model result badges */
.model-result {
  font-weight: 800;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

.model-result-correct {
  color: var(--positive);
  text-shadow: 0 0 10px var(--positive-glow);
}

.model-result-wrong {
  color: var(--negative);
  text-shadow: 0 0 10px var(--negative-glow);
}

/* Injury tags in game card */
.game-injuries {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Responsive - Game Cards
   ========================================================================== */

@media (min-width: 1400px) {
  .game-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 768px) {
  .date-nav {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .date-nav-center {
    min-width: auto;
    flex-wrap: wrap;
  }

  .date-nav-label {
    font-size: var(--text-base);
  }

  .date-nav-picker {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }

  .date-nav-arrow {
    width: 36px;
    height: 36px;
  }

  .date-nav-arrow svg {
    width: 16px;
    height: 16px;
  }

  .game-team-abbr {
    font-size: var(--text-lg);
  }

  .game-score {
    font-size: var(--text-xl);
  }
}

/* ==========================================================================
   Injury Tab — Toolbar & Filters
   ========================================================================== */

.injury-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.injury-search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 300px;
}

.injury-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.injury-search-input::placeholder {
  color: var(--text-muted);
}

.injury-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.injury-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.injury-filter-group {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.injury-filter-btn {
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.injury-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
}

.injury-filter-btn.active {
  color: white;
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.injury-expand-all-btn {
  margin-left: auto;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.injury-expand-all-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   Injury Tab — Today-Team Highlight
   ========================================================================== */

.injury-team-today {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(16, 185, 129, 0.04) 100%);
}

.injury-team-today:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.injury-team-today-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 9px;
  font-weight: 800;
  color: white;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ==========================================================================
   Injury Tab — Team Header Enrichment
   ========================================================================== */

.injury-team-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Loss Badge — compact colored pill in team header */
.injury-team-loss-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.injury-team-loss-badge-high {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.injury-team-loss-badge-medium {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.injury-team-loss-badge-low {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.injury-team-loss-badge-pct {
  font-size: 12px;
  font-weight: 800;
}

.injury-team-loss-badge-high .injury-team-loss-badge-pct {
  color: var(--negative-light);
}

.injury-team-loss-badge-medium .injury-team-loss-badge-pct {
  color: var(--warning-light);
}

.injury-team-loss-badge-low .injury-team-loss-badge-pct {
  color: var(--text-secondary);
}

.injury-team-loss-badge-detail {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.injury-team-status-breakdown {
  display: flex;
  gap: var(--space-1);
}

.injury-mini-tag {
  display: inline-block;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.injury-mini-tag-out {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.injury-mini-tag-q {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.injury-mini-tag-dtd {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.injury-mini-tag-p {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Injury Tab — Player Row Enrichment
   ========================================================================== */

.injury-days-out {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  flex-shrink: 0;
}

.injury-days-out-long {
  color: var(--negative-light);
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(244, 63, 94, 0.06);
}

.injury-pos-mult {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.injury-desc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  line-height: 1;
}

.injury-desc-toggle:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-primary);
}

.injury-desc-expanded {
  display: none;
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  margin: 0 0 var(--space-1) 0;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.02) 100%);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-top: none;
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.injury-desc-expanded.show {
  display: block;
}

/* ==========================================================================
   Player Card — Two-Line Layout
   ========================================================================== */

.injury-player-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.injury-player-card:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
}

.injury-player-card-critical:hover {
  border-color: var(--tier-critical);
  background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(239, 68, 68, 0.08) 100%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.08);
}

.injury-player-card-high:hover {
  border-color: var(--tier-high);
  background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(249, 115, 22, 0.06) 100%);
}

.injury-player-card-critical {
  border-left: 3px solid var(--tier-critical);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.06) 100%);
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.03);
}

.injury-player-card-high {
  border-left: 3px solid var(--tier-high);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(249, 115, 22, 0.04) 100%);
}

.injury-player-card-moderate {
  border-left: 3px solid var(--tier-moderate);
}

.injury-player-card-low {
  border-left: 3px solid var(--tier-low);
  opacity: 0.75;
}

.injury-player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 26px;
}

.injury-player-card-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.injury-player-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.injury-player-card-active {
  border-color: rgba(16, 185, 129, 0.2);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  margin-bottom: 0;
}

.injury-player-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-1);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-1);
  min-height: 24px;
}

.injury-player-card-injury {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==========================================================================
   Return Estimate Visual (mini timeline bar on player card)
   ========================================================================== */

.injury-return-estimate {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-width: 140px;
}

.injury-return-bar-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: var(--bg-darkest);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

/* Elapsed time (already out) */
.injury-return-bar-elapsed {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px 0 0 3px;
}

/* Estimated return window (range) */
.injury-return-bar-range {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
}

.injury-return-bar-range-high {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.6), rgba(244, 63, 94, 0.3));
  box-shadow: 0 0 4px var(--negative-glow);
}

.injury-return-bar-range-medium {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.3));
  box-shadow: 0 0 3px var(--warning-glow);
}

.injury-return-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.injury-return-estimate-high .injury-return-label {
  color: var(--negative-light);
}

.injury-return-estimate-medium .injury-return-label {
  color: var(--warning-light);
}

/* ==========================================================================
   Stat Chips (bottom row of player card)
   ========================================================================== */

.injury-stat-chips {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.injury-stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 18px;
}

.injury-stat-chip small {
  font-size: 8px;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.injury-stat-chip-ppg {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.injury-stat-chip-rpg {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.injury-stat-chip-apg {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.injury-stat-chip-mpg {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Production Loss Dashboard (stat cards + ring)
   ========================================================================== */

.injury-loss-dashboard {
  margin-bottom: var(--space-3);
}

.injury-loss-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.injury-loss-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-1);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 60px;
}

.injury-loss-card-ppg {
  border-color: rgba(244, 63, 94, 0.25);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(244, 63, 94, 0.05) 100%);
}

.injury-loss-card-ppg .injury-loss-card-value {
  color: var(--negative-light);
  text-shadow: 0 0 12px var(--negative-glow);
}

.injury-loss-card-pct {
  flex-direction: column;
  gap: 2px;
}

.injury-loss-card-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.injury-loss-card-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* SVG Donut Ring for Loss % */
.injury-loss-pct-ring {
  position: relative;
  width: 48px;
  height: 48px;
}

.injury-loss-pct-svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.injury-loss-pct-bg {
  fill: none;
  stroke: var(--bg-darkest);
  stroke-width: 3;
}

.injury-loss-pct-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray var(--transition-slow);
}

.injury-loss-pct-fill-high {
  stroke: var(--negative);
  filter: drop-shadow(0 0 4px var(--negative-glow));
}

.injury-loss-pct-fill-medium {
  stroke: var(--warning);
  filter: drop-shadow(0 0 3px var(--warning-glow));
}

.injury-loss-pct-fill-low {
  stroke: var(--text-muted);
}

.injury-loss-pct-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   Enhanced Matchup Impact Cards
   ========================================================================== */

.injury-matchup-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--transition-fast);
}

.injury-matchup-card:hover {
  border-color: var(--border-default);
}

.injury-matchup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.injury-matchup-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.injury-matchup-advantage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--positive);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
}

.injury-matchup-advantage-large {
  box-shadow: 0 0 12px var(--positive-glow);
}

.injury-matchup-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
}

.injury-matchup-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.injury-matchup-side-worse {
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: rgba(244, 63, 94, 0.03);
}

.injury-matchup-team-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.injury-matchup-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
}

.injury-matchup-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.injury-matchup-stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.injury-matchup-stat-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.injury-matchup-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  padding-top: 20px;
}

.injury-matchup-players {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-1);
}

.injury-matchup-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  border-radius: 3px;
}

.injury-matchup-player-name {
  font-weight: 600;
  color: var(--text-secondary);
}

.injury-matchup-player-ppg {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--warning-light);
}

/* ==========================================================================
   Injury Timeline
   ========================================================================== */

.injury-timeline {
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 27, 34, 0.6) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.injury-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
}

.injury-timeline-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.injury-timeline-scale {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.injury-timeline-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.injury-timeline-row {
  display: grid;
  grid-template-columns: minmax(100px, 150px) 60px 1fr auto 30px auto 60px;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 3px;
  transition: background var(--transition-fast);
}

.injury-timeline-row:last-child {
  border-bottom: none;
}

.injury-timeline-row:hover {
  background: var(--bg-hover);
}

/* Tier-tinted row backgrounds */
.injury-timeline-row-critical {
  background: linear-gradient(135deg, transparent 0%, rgba(239, 68, 68, 0.05) 100%);
}

.injury-timeline-row-critical:hover {
  background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(239, 68, 68, 0.08) 100%);
}

.injury-timeline-row-high {
  background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.03) 100%);
}

.injury-timeline-row-high:hover {
  background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(249, 115, 22, 0.06) 100%);
}

.injury-timeline-row-low {
  opacity: 0.75;
}

/* Active row (description expanded) */
.injury-timeline-row-active {
  background: rgba(16, 185, 129, 0.04);
  border-bottom-color: transparent;
}

/* Identity cell (dot + tier + name + pos) */
.injury-timeline-identity {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.injury-timeline-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.injury-timeline-injury-type {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.injury-timeline-bar-track {
  height: 10px;
  background: var(--bg-darkest);
  border-radius: 5px;
  overflow: hidden;
}

.injury-timeline-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-base);
}

.injury-timeline-bar-fill-critical {
  background: linear-gradient(90deg, #dc2626, var(--tier-critical), #fb7185);
  box-shadow: 0 0 6px var(--tier-critical-glow);
}

.injury-timeline-bar-fill-high {
  background: linear-gradient(90deg, #c2410c, var(--tier-high), #fb923c);
  box-shadow: 0 0 4px var(--tier-high-glow);
}

.injury-timeline-bar-fill-moderate {
  background: linear-gradient(90deg, #a16207, var(--tier-moderate), #facc15);
  box-shadow: 0 0 4px var(--tier-moderate-glow);
}

.injury-timeline-bar-fill-low {
  background: linear-gradient(90deg, #374151, var(--tier-low));
}

/* Timeline tier-colored player names */
.injury-timeline-name-critical { color: var(--tier-critical); }
.injury-timeline-name-high { color: var(--tier-high); }

/* Tier Label Badges (CRIT / HIGH) */
.injury-tier-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0 4px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 16px;
}

.injury-tier-label-critical {
  color: var(--tier-critical);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.injury-tier-label-high {
  color: var(--tier-high);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.injury-timeline-days {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
}

.injury-timeline-return {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--warning-light);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.injury-timeline-return-unknown {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Compact stat chips inside timeline rows */
.injury-timeline-stats {
  display: flex;
  align-items: center;
  gap: 2px;
}

.injury-timeline-stats .injury-stat-chip {
  font-size: 10px;
  padding: 0 4px;
  line-height: 16px;
}

.injury-timeline-stats .injury-stat-chip small {
  font-size: 7px;
}

/* ==========================================================================
   Injury Tab — Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .injury-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .injury-search-wrap {
    max-width: 100%;
  }

  .injury-expand-all-btn {
    margin-left: 0;
  }

  .injury-team-status-breakdown {
    display: none;
  }

  .injury-team-loss-badge-detail {
    display: none;
  }

  .injury-stat-chips,
  .injury-loss-dashboard {
    display: none;
  }

  .injury-timeline-stats,
  .injury-timeline-bar-track,
  .injury-timeline-injury-type {
    display: none;
  }

  .injury-timeline-row {
    grid-template-columns: 1fr auto auto auto;
  }

  .injury-matchup-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .injury-matchup-vs {
    padding-top: 0;
    padding-bottom: var(--space-1);
  }

  .injury-loss-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
