/* ==========================================
   BoxScores - Styles
   ========================================== */

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

:root {
  --bg-primary: #06060b;
  --bg-secondary: #0c0c14;
  --bg-card: #11111a;
  --bg-card-hover: #16162a;
  --border: #1a1a2e;
  --border-light: #252540;
  --text-primary: #eee;
  --text-secondary: #888;
  --text-muted: #555;
  --cyan: #00f0ff;
  --cyan-dim: #00f0ff33;
  --red: #ff3e3e;
  --red-dim: #ff3e3e33;
  --green: #00e676;
  --green-dim: #00e67633;
  --yellow: #ffab00;
  --purple: #b388ff;
  --glass: rgba(17, 17, 26, 0.8);
  --glass-border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow-cyan: 0 0 20px rgba(0,240,255,0.15);
  --shadow-glow-red: 0 0 20px rgba(255,62,62,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font); }
input, select { font-family: var(--font); }

/* === AMBIENT BACKGROUND === */
.ambient-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}
.ambient-orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--cyan);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.ambient-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: var(--red);
  bottom: -200px; right: -100px;
  animation-delay: -7s;
}
.ambient-orb:nth-child(3) {
  width: 400px; height: 400px;
  background: var(--purple);
  top: 40%; left: 50%;
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav-logo .red { color: var(--red); }
.nav-logo .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 4px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--cyan); background: var(--cyan-dim); }
.nav-link.betting { color: var(--red); }
.nav-link.betting.active { background: var(--red-dim); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  width: 220px;
  transition: all 0.3s;
  outline: none;
}
.nav-search:focus { border-color: var(--cyan); box-shadow: var(--shadow-glow-cyan); width: 280px; }
.nav-search::placeholder { color: var(--text-muted); }
.btn-signup {
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-signup:hover { background: #33f5ff; box-shadow: var(--shadow-glow-cyan); transform: translateY(-1px); }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* === PAGE CONTAINER === */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === HERO === */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-badge .live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #ccc 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0088ff);
  color: #000;
  box-shadow: 0 4px 20px rgba(0,240,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,240,255,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

/* === TICKER === */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin: 0 0 40px;
}
.ticker {
  display: flex;
  gap: 24px;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}
.ticker:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  min-width: max-content;
  cursor: pointer;
  transition: all 0.2s;
}
.ticker-item:hover { border-color: var(--cyan); transform: scale(1.02); }
.ticker-status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.ticker-status.live { background: var(--red-dim); color: var(--red); animation: pulse 2s infinite; }
.ticker-status.final { background: var(--green-dim); color: var(--green); }
.ticker-status.upcoming { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.ticker-score {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.ticker-teams { font-size: 12px; color: var(--text-secondary); }
.ticker-time { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* === STATS COUNTER === */
.stats-counter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 24px;
}
.stat-number {
  font-size: 48px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* === FEATURE CARDS === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 20px;
  align-items: center;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: var(--radius-sm);
  color: var(--cyan);
}
.feature-card-text { flex: 1; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-top: 40px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header h2 .accent { color: var(--cyan); }

/* === SPORT TABS === */
.sport-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.sport-tab:hover { color: var(--text-secondary); }
.sport-tab.active { background: var(--cyan); color: #000; }

/* === SCORE CARDS === */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.score-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.score-card.live { border-left: 3px solid var(--red); }
.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.score-card-sport {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.score-card-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
}
.score-card-status.live { background: var(--red-dim); color: var(--red); animation: pulse 2s infinite; }
.score-card-status.final { background: var(--green-dim); color: var(--green); }
.score-card-status.upcoming { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.score-card-teams {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.score-team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.score-team-name { font-size: 15px; font-weight: 600; }
.score-team-score {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.score-team-score.winning { color: var(--green); }
.score-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* === DATA TOOLS === */
.tool-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.tool-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.tool-section .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.compare-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.compare-player {
  text-align: center;
}
.compare-select {
  width: 100%;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.compare-select:focus { border-color: var(--cyan); }
.compare-vs {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-muted);
  padding-top: 12px;
}
.compare-stats {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.compare-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.compare-bar-container {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.compare-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}
.compare-bar.left { background: var(--cyan); float: right; }
.compare-bar.right { background: var(--red); float: left; }
.compare-stat-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  min-width: 40px;
}
.compare-stat-value {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.compare-stat-value.left { text-align: right; color: var(--cyan); }
.compare-stat-value.right { text-align: left; color: var(--red); }

/* === DATA TABLE === */
.table-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.table-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.table-search:focus { border-color: var(--cyan); }
.table-search::placeholder { color: var(--text-muted); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.data-table th:hover { color: var(--cyan); }
.data-table th.sorted { color: var(--cyan); }
.data-table th .sort-arrow { margin-left: 4px; font-size: 10px; }
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
}
.data-table tr { transition: background 0.15s; }
.data-table tr:hover { background: rgba(255,255,255,0.02); }
.data-table .player-name {
  font-family: var(--font);
  font-weight: 600;
  color: var(--text-primary);
}
.data-table .team-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}
.table-overflow { overflow-x: auto; }

/* === QUERY BUILDER === */
.query-builder {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 20px;
}
.query-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.query-field label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.query-field select, .query-field input {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  min-width: 140px;
}
.query-field select:focus, .query-field input:focus { border-color: var(--cyan); }
.btn-run {
  padding: 10px 24px;
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-run:hover { box-shadow: var(--shadow-glow-cyan); transform: translateY(-1px); }
.query-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  min-height: 60px;
  white-space: pre-wrap;
}

/* === BETTING === */
.betting-warning {
  background: linear-gradient(90deg, var(--red-dim), rgba(255,62,62,0.05));
  border: 1px solid rgba(255,62,62,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}
.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.odds-table th {
  text-align: center;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.odds-table th:first-child { text-align: left; }
.odds-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.odds-table td:first-child {
  text-align: left;
  font-family: var(--font);
  font-weight: 600;
}
.odds-table tr:hover { background: rgba(255,255,255,0.02); }
.odds-value {
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.odds-value:hover { background: var(--cyan-dim); color: var(--cyan); }
.odds-value.selected { background: var(--cyan); color: #000; }

/* === INJURY LIST === */
.injury-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.injury-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 100px 80px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  font-size: 13px;
  border-left: 3px solid transparent;
}
.injury-item.out { border-left-color: var(--red); }
.injury-item.doubtful { border-left-color: var(--yellow); }
.injury-item.questionable { border-left-color: var(--yellow); }
.injury-item.day-to-day { border-left-color: var(--green); }
.injury-player { font-weight: 600; }
.injury-team { color: var(--text-muted); font-size: 12px; }
.injury-detail { color: var(--text-secondary); }
.injury-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  text-align: center;
}
.injury-status.out { background: var(--red-dim); color: var(--red); }
.injury-status.doubtful { background: rgba(255,171,0,0.15); color: var(--yellow); }
.injury-status.questionable { background: rgba(255,171,0,0.15); color: var(--yellow); }
.injury-status.day-to-day { background: var(--green-dim); color: var(--green); }
.injury-date { color: var(--text-muted); font-size: 12px; text-align: right; }

/* === PREDICTIONS === */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prediction-matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.prediction-team { font-weight: 700; font-size: 15px; }
.prediction-vs { color: var(--text-muted); font-size: 12px; }
.prediction-bar-bg {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}
.prediction-bar-fill {
  height: 100%;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.prediction-bar-fill.away { background: var(--cyan); }
.prediction-bar-fill.home { background: var(--red); }
.prediction-percentages {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.prediction-pick {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.prediction-pick strong {
  color: var(--green);
}

/* === TRENDS === */
.trend-item {
  display: grid;
  grid-template-columns: 140px 80px 1fr 60px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.trend-game { font-weight: 600; font-size: 13px; }
.trend-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trend-bars {
  display: flex;
  gap: 8px;
  align-items: center;
}
.trend-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trend-bar-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.trend-bar-bg {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.trend-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}
.trend-bar-fill.public { background: var(--cyan); }
.trend-bar-fill.sharp { background: var(--yellow); }
.trend-side {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

/* === ARTICLES === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-light); }
.article-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}
.article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.article-category.breaking { color: var(--red); }
.article-category.analysis { color: var(--cyan); }
.article-category.humor { color: var(--green); }
.article-category.hot-take { color: var(--yellow); }
.article-category.highlight { color: var(--purple); }
.article-body {
  padding: 20px;
}
.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.category-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.category-filter {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.category-filter:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.category-filter.active { background: var(--cyan); color: #000; border-color: var(--cyan); }

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.popular {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #000;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 48px;
  font-weight: 900;
  font-family: var(--font-mono);
  margin: 16px 0;
}
.pricing-price .period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
}
.btn-pricing {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.pricing-card.popular .btn-pricing {
  background: var(--cyan);
  color: #000;
}
.pricing-card:not(.popular) .btn-pricing {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.pricing-card .btn-pricing:hover { transform: translateY(-1px); border-color: var(--cyan); color: var(--cyan); }
.pricing-card.popular .btn-pricing:hover { background: #33f5ff; color: #000; border-color: #33f5ff; box-shadow: var(--shadow-glow-cyan); }

/* === MODALS === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }
.modal h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}
.modal-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
}
.modal-input:focus { border-color: var(--cyan); }
.modal-input::placeholder { color: var(--text-muted); }
.modal .btn { width: 100%; margin-top: 8px; }

/* === FOOTER === */
.footer {
  margin-top: 60px;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
}
.footer-brand .red { color: var(--red); }
.footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === ARTICLE IMAGES === */
.article-thumb {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === VIDEO SECTION === */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-light); }
.video-thumb {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
}
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.3);
}
.video-play-btn::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-card:hover .video-play-btn { background: var(--cyan); border-color: var(--cyan); transform: translate(-50%, -50%) scale(1.1); }
.video-card:hover .video-play-btn::after { border-color: transparent transparent transparent #000; }
.video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.8);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #fff;
}
.video-body { padding: 16px; }
.video-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.video-body .sport-tag { font-size: 11px; color: var(--cyan); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

/* === VIDEO CAROUSEL === */
.carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 40px 0 60px;
  overflow: hidden;
}
.carousel-scene {
  perspective: 1200px;
  width: 100%;
  max-width: 600px;
  height: 380px;
  margin: 0 auto;
  position: relative;
}
.carousel-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center center;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.carousel-card.active {
  pointer-events: auto;
  z-index: 5;
  transform: translateX(-50%) rotateY(0deg) translateZ(0px) scale(1);
  opacity: 1;
  filter: brightness(1);
}
.carousel-card.active:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}
.carousel-card.pos-left-1 {
  pointer-events: none;
  z-index: 4;
  transform: translateX(-50%) translateX(-60%) rotateY(35deg) translateZ(-100px) scale(0.85);
  opacity: 0.7;
  filter: brightness(0.7);
}
.carousel-card.pos-right-1 {
  pointer-events: none;
  z-index: 4;
  transform: translateX(-50%) translateX(60%) rotateY(-35deg) translateZ(-100px) scale(0.85);
  opacity: 0.7;
  filter: brightness(0.7);
}
.carousel-card.pos-left-2 {
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%) translateX(-110%) rotateY(55deg) translateZ(-200px) scale(0.7);
  opacity: 0.4;
  filter: brightness(0.5);
}
.carousel-card.pos-right-2 {
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%) translateX(110%) rotateY(-55deg) translateZ(-200px) scale(0.7);
  opacity: 0.4;
  filter: brightness(0.5);
}
.carousel-card .carousel-poster {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-size: cover;
  background-position: center;
}
.carousel-card .carousel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}
.carousel-card .carousel-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.carousel-card.active:hover .carousel-play-btn {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translate(-50%, -50%) scale(1.1);
}
.carousel-card.active:hover .carousel-play-btn::after {
  border-color: transparent transparent transparent #000;
}
.carousel-card .carousel-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
}
.carousel-card .carousel-info {
  padding: 14px 16px;
}
.carousel-card .carousel-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.carousel-card .carousel-info .sport-tag {
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 700;
}
.carousel-arrow:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}
.carousel-arrow.arrow-left {
  left: 8px;
}
.carousel-arrow.arrow-right {
  right: 8px;
}
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
}

/* === VIDEO MODAL === */
.video-player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.video-player-container video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === BET SLIP === */
.bet-slip {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1500;
  display: none;
  animation: slideUp 0.3s ease;
}
.bet-slip.active { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.bet-slip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.bet-slip-header h4 {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bet-slip-count {
  background: var(--cyan);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bet-slip-body { padding: 12px 16px; max-height: 200px; overflow-y: auto; }
.bet-slip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.bet-slip-item:last-child { border-bottom: none; }
.bet-slip-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}
.bet-slip-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.bet-slip-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.btn-place-bet {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-place-bet:hover { opacity: 0.9; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 14px; }

/* === STANDINGS === */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.standings-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.standings-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.standings-table tr:hover { background: rgba(255,255,255,0.02); }
.standings-rank {
  color: var(--text-muted);
  font-weight: 700;
  width: 30px;
}
.standings-team {
  font-family: var(--font);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.standings-streak {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.standings-streak.win { background: var(--green-dim); color: var(--green); }
.standings-streak.loss { background: var(--red-dim); color: var(--red); }

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1400;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 18px;
}
.scroll-top:hover { border-color: var(--cyan); color: var(--cyan); }
.scroll-top.visible { display: flex; }

/* === SIGNUP SUCCESS === */
.signup-success {
  text-align: center;
  padding: 20px 0;
}
.signup-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

/* === WIN PROBABILITY CHART === */
.win-prob-controls {
  margin-bottom: 16px;
}
.win-prob-chart-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
}
.win-prob-chart-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === RADAR CHART === */
.radar-controls {
  margin-bottom: 16px;
}
.radar-chart-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  justify-content: center;
}
.radar-chart-wrap svg {
  max-width: 500px;
  width: 100%;
  height: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .hamburger { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .compare-container { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .injury-item { grid-template-columns: 1fr 1fr; gap: 4px; font-size: 12px; }
  .trend-item { grid-template-columns: 1fr; gap: 8px; }
  .stats-counter { grid-template-columns: repeat(2, 1fr); }
}
