:root {
  --bg: #0d0f14;
  --bg-panel: #15171f;
  --bg-panel-2: #1c1f29;
  --border: #262a36;
  --text: #e8eaef;
  --text-dim: #8b91a1;
  --accent: #ff6a3d;
  --win: #4fd18b;
  --loss: #ff5f5f;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-weight: 700; margin: 0 0 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 52px;
  overflow-x: auto;
}

.brand { font-weight: 800; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
.brand .accent { color: var(--accent); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { font-size: 13px; color: var(--text-dim); padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover { background: var(--bg-panel-2); color: var(--text); }

main { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
.section { margin-bottom: 28px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.section-title h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-dim); margin: 0; }
.section-title a { font-size: 13px; color: var(--accent); }

.card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
thead th { color: var(--text-dim); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-panel-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.match-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); gap: 12px; }
.match-row:last-child { border-bottom: none; }
.match-row .teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.match-row .teams span { overflow: hidden; text-overflow: ellipsis; }
.match-row .meta { color: var(--text-dim); font-size: 12px; flex-shrink: 0; }
.match-row .score { font-variant-numeric: tabular-nums; font-weight: 700; flex-shrink: 0; }

.hint { color: var(--text-dim); font-size: 13px; }

.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.badge.win { background: #14392a; color: var(--win); }
.badge.loss { background: #3a1a1a; color: var(--loss); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.team-tile { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: block; }
.team-tile .city { color: var(--text-dim); font-size: 12px; }

.score-box { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 24px 16px; text-align: center; }
.score-box .team { flex: 1; min-width: 0; }
.score-box .score { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-box .vs { color: var(--text-dim); font-size: 13px; }

.quarters-table td, .quarters-table th { text-align: center; }
.breadcrumbs { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--accent); }
