:root { --bg:#0f172a; --card:#111827; --text:#e5e7eb; --muted:#9ca3af; --accent:#60a5fa; }
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial}
header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#0b1222;border-bottom:1px solid #111}
header .brand{color:white;text-decoration:none;font-weight:700;font-size:18px}
header nav a{color:var(--muted);text-decoration:none;margin-left:28px} /* was 14px */
header nav a:hover{color:var(--accent)}
.container{max-width:980px;margin:24px auto;padding:0 16px}
h1{margin:0 0 14px;font-size:1.6rem}
p.nav{margin-top:10px}
.table,.box{width:100%;border-collapse:separate;border-spacing:0;background:var(--card);border:1px solid #1f2937;border-radius:10px;overflow:hidden}
.table th,.table td,.box th,.box td{padding:10px 12px;border-bottom:1px solid #1f2937}
.table tr:last-child td,.box tr:last-child td{border-bottom:0}
.table th{background:#121826;color:#9fb5ff;text-align:left}
.box th{background:#121826;color:#9fb5ff;text-align:center}
.box td{ text-align:center }                 /* center inning cells */
.box .sum{background:#0f1424;font-weight:700;text-align:center}
.box .abbr{font-weight:700}
a{color:#a5b4fc}
button,input,select{padding:8px 10px;border-radius:8px;border:1px solid #334155;background:#0b1222;color:#e5e7eb}
form label{display:block;margin:8px 0}

/* 3x spacing between consecutive inline links in content */
.container p a + a,
.nav a + a { margin-left:28px }


.table.stat td.num{ text-align:center }

/* --- STAT TABLE ALIGNMENT FIXES --- */
.table.stat th,
.table.stat td { vertical-align: middle; }

.table.stat th,
.table.stat td.num { text-align: center; }

/* box header row + inning cells */
.box th,
.box td.num { text-align: center; }

/* make digits line up nicely (tabular numbers) */
.table.stat td,
.table.stat th,
.box td,
.box th { font-variant-numeric: tabular-nums; }
/* Center certain text columns */
.table.stat th.player, .table.stat td.player,
.table.stat th.pitcher, .table.stat td.pitcher,
.table.stat th.pos, .table.stat td.pos { text-align: center; }
