:root {
  --bg: #0b0f14;
  --bg-elevated: #121821;
  --bg-panel: #161d27;
  --border: #243041;
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --brand-gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
  --brand-gradient-hover: linear-gradient(135deg, #0284c7, #4f46e5);
  --brand-gradient-active: linear-gradient(135deg, #0369a1, #4338ca);
  --away: #60a5fa;
  --away-soft: rgba(96, 165, 250, 0.2);
  --home: #a78bfa;
  --home-soft: rgba(167, 139, 250, 0.2);
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111827 0%, var(--bg) 45%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-gradient);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border);
  text-decoration: none;
}

.hero {
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.hero-date {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
}

.hero-copy {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.venue-line {
  text-align: center;
  margin-top: 12px !important;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-elevated));
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  text-decoration: none;
}

.game-card-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.matchup {
  display: grid;
  gap: 10px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.team-row-name {
  flex: 1;
  min-width: 0;
}

.card-runs {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--success);
}

.team-logo,
.team-logo-lg,
.team-logo-xl,
.team-logo-sm {
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}

.team-logo {
  width: 34px;
  height: 34px;
}

.team-logo-lg {
  width: 52px;
  height: 52px;
}

.team-logo-xl {
  width: 72px;
  height: 72px;
}

.team-logo-sm {
  width: 22px;
  height: 22px;
}

.card-link {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
}

/* Game page matchup board */
.matchup-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 50%, var(--away-soft), transparent 45%),
    radial-gradient(circle at 85% 50%, var(--home-soft), transparent 45%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-elevated));
  box-shadow: var(--shadow);
}

.matchup-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.matchup-side.away {
  justify-self: start;
}

.matchup-side.home {
  justify-self: end;
}

.matchup-team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.matchup-team-name {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.team-runs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.team-runs.pending {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--bg-elevated);
}

.matchup-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.matchup-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.matchup-vs {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Team comparison bar charts */
.game-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.chart-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.chart-panel {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.chart-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
}

.bar-chart {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.bar-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  padding-bottom: 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

.bar-chart-main {
  min-width: 0;
}

.bar-chart-plot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 220px;
  padding: 0 8px 28px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bar-chart-gridlines {
  position: absolute;
  inset: 0 8px 28px 0;
  pointer-events: none;
}

.bar-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.bar-chart-category {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar-category-label {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.bar-columns {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 56px;
  height: 100%;
  min-height: 0;
}

.bar-value {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  min-height: 2.4em;
}

.bar-column.winner .bar-value {
  color: var(--success);
}

.bar-track {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.03);
}

.bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  min-height: 2px;
  opacity: 0.82;
  transition: height 0.4s ease, opacity 0.4s ease;
}

.bar-column.winner .bar-fill {
  opacity: 1;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.bar-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Side-by-side stat sections */
.dual-section {
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dual-col {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  min-width: 0;
}

.dual-col-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: 0.88rem;
}

.stat-table th,
.stat-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.stat-table th {
  background: #0f172a;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.stat-table td:nth-child(n + 2) {
  font-family: var(--mono);
}

.score-colored {
  font-family: var(--mono);
}

.player-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.empty-state,
.panel {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* About page */
.about-page .hero {
  margin-bottom: 22px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.about-card.wide {
  grid-column: 1 / -1;
}

.about-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.about-card p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.about-icon.batting {
  background: var(--away-soft);
  color: var(--away);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.about-icon.impact {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.about-list {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.about-list li {
  margin-bottom: 8px;
}

.about-note {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  font-style: italic;
}

/* Player of the Game / Day */
.potd-section {
  margin-bottom: 28px;
}

.game-awards-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

.game-awards-column .award-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.game-awards-column .award-card-body {
  flex: 1;
  align-items: center;
}

.game-awards-column .award-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.award-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.award-card-link:hover {
  transform: translateY(-2px);
}

.award-card-link:hover .award-card {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.award-card {
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-panel) 0%, var(--bg-elevated) 100%);
  box-shadow: var(--shadow);
}

.award-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.award-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.award-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.award-card-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.award-headshot-wrap {
  position: relative;
  flex-shrink: 0;
}

.player-headshot {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.award-team-logo {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: var(--bg-panel);
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--border);
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}

.award-info {
  flex: 1;
  min-width: 0;
}

.award-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.award-team {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.award-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  align-items: stretch;
}

.award-metric {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.award-metric-label {
  display: block;
  min-height: 2.6em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.3;
}

.award-metric-value {
  display: block;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.award-metric-value .score-colored {
  display: inline-block;
  line-height: 1.2;
  vertical-align: top;
}

.award-metric-value.impact {
  color: var(--success);
}

.award-statline {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.award-game-label {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--accent);
}

.page:has(.leaders-page) {
  max-width: 1440px;
}

/* Daily leaders page */
.leaders-page .hero {
  margin-bottom: 22px;
}

.leaders-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.leaders-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.leaders-panel {
  min-width: 0;
  width: 100%;
}

.leaders-page .table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.leaders-page .stat-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 0.76rem;
}

.leaders-page .stat-table th,
.leaders-page .stat-table td {
  padding: 7px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaders-page .stat-table th:first-child,
.leaders-page .stat-table td:first-child {
  width: 34%;
}

.leaders-page .stat-table th {
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.leaders-page .stat-table td:first-child {
  font-family: var(--body);
}

.leaders-page .player-cell {
  gap: 4px;
  align-items: center;
}

.leaders-page .player-cell > span:last-child {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.leaders-page .team-logo-sm {
  width: 18px;
  height: 18px;
}

.potd-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0 6px 0 2px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--brand-gradient);
  border: none;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.leaders-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.leaders-panel .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.leaders-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leaders-sort-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.leaders-page .leaders-sort-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff !important;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none !important;
  background: var(--brand-gradient) !important;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.leaders-page .leaders-sort-btn:hover {
  color: #ffffff !important;
  background: var(--brand-gradient-hover) !important;
}

.leaders-page .leaders-sort-btn.is-active {
  color: #ffffff !important;
  background: var(--brand-gradient-active) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.player-game-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 6px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.player-game-link:hover {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.player-game-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.leaders-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.table-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--body);
  font-size: 0.82rem;
  white-space: normal;
  line-height: 1.35;
}

.table-link:hover {
  text-decoration: underline;
}

.stat-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.stat-table th.sortable:hover {
  color: var(--text);
  background: #162032;
}

.stat-table th.sortable.sort-asc,
.stat-table th.sortable.sort-desc {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.stat-table th.sortable .sort-indicator::after {
  content: "↕";
  margin-left: 4px;
  opacity: 0.35;
  font-size: 0.7rem;
}

.stat-table th.sortable.sort-asc .sort-indicator::after {
  content: "↑";
  opacity: 1;
  color: var(--accent);
}

.stat-table th.sortable.sort-desc .sort-indicator::after {
  content: "↓";
  opacity: 1;
  color: var(--accent);
}

.leaders-page .stat-table tbody tr.potd-row > td {
  background-color: rgba(56, 189, 248, 0.35) !important;
  border-top: 1px solid #38bdf8 !important;
  border-bottom: 1px solid #38bdf8 !important;
}

.leaders-page .stat-table tbody tr.potd-row > td:first-child {
  box-shadow: inset 4px 0 0 #38bdf8 !important;
}

.leaders-page .stat-table tbody tr.potd-row:hover > td {
  background-color: rgba(56, 189, 248, 0.48) !important;
}

.stat-table tbody tr.potd-row > td {
  background-color: rgba(56, 189, 248, 0.35) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.55) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.55) !important;
}

.stat-table tbody tr.potd-row:hover > td {
  background-color: rgba(56, 189, 248, 0.48) !important;
}

.site-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}

.date-nav-btn {
  appearance: none;
  -webkit-appearance: none;
  min-width: 40px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: none !important;
  background: var(--brand-gradient) !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.date-nav-btn:hover:not(:disabled) {
  background: var(--brand-gradient-hover) !important;
  color: #ffffff !important;
}

.date-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.date-nav-picker {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.date-nav-label,
.hub-date-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.date-nav-input,
.hub-date-input {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
}

.date-nav-input:focus,
.hub-date-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.hub-page .hero,
.hub-page .archive-section {
  margin-bottom: 24px;
}

.hub-date-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
}

.hub-date-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hub-date-submit {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 16px;
  height: 38px;
  border-radius: 999px;
  border: none !important;
  background: var(--brand-gradient) !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.hub-date-submit:hover {
  background: var(--brand-gradient-hover) !important;
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-day-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.archive-day-link:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
}

.archive-day-label {
  font-weight: 600;
}

.archive-day-action {
  color: var(--accent);
  font-size: 0.88rem;
}

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

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

  .matchup-board {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .matchup-side.away,
  .matchup-side.home {
    justify-self: center;
  }

  .matchup-center {
    order: -1;
  }

  .game-summary-row {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .bar-column {
    width: 44px;
  }
}

@media (max-width: 720px) {
  .leaders-dual-grid {
    grid-template-columns: 1fr !important;
  }

  .leaders-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
