:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #14161d;
  --muted: #656f80;
  --line: #e5e8f0;
  --brand: #e11d5c;      /* Statline magenta */
  --brand-2: #7c3aed;    /* violet */
  --hockey: #0284c7;
  --basketball: #ea5a1c;
  --soccer: #10b981;
  --good: #16a34a;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }

.nav { background: #0b0e17; color: #fff; position: sticky; top: 0; z-index: 20; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.brand span { color: var(--brand); }
.links { display: flex; gap: 20px; font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .5px; }
.links a { color: #c3ccdb; padding: 4px 0; border-bottom: 2px solid transparent; }
.links a:hover { color: #fff; }
.links a.a-hockey:hover { border-color: var(--hockey); }
.links a.a-basketball:hover { border-color: var(--basketball); }
.links a.a-soccer:hover { border-color: var(--soccer); }

.hero { padding: 44px 0 26px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: 50px; line-height: 1; letter-spacing: .5px; text-wrap: balance; text-transform: uppercase; }
.hero h1 .grad { background: linear-gradient(92deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 660px; }

.lead-head { padding: 34px 0 4px; }
.lead-title { font-family: var(--display); font-weight: 800; font-size: 42px; text-transform: uppercase; letter-spacing: .5px; }
.lead-title.hockey { color: var(--hockey); } .lead-title.basketball { color: var(--basketball); } .lead-title.soccer { color: var(--soccer); }
.lead-head p { color: var(--muted); margin-top: 6px; max-width: 640px; }

.grid { display: grid; gap: 20px; margin-top: 8px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: #fff; }
.card-h.hockey { background: linear-gradient(100deg, #075985, var(--hockey)); }
.card-h.basketball { background: linear-gradient(100deg, #9a3412, var(--basketball)); }
.card-h.soccer { background: linear-gradient(100deg, #065f46, var(--soccer)); }
.card-h .lg { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: .5px; text-transform: uppercase; }
.card-h .sn { font-size: 12px; opacity: .92; }
.card-b { padding: 6px 4px; flex: 1; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 15px; }
.card-foot.hockey a { color: var(--hockey); } .card-foot.basketball a { color: var(--basketball); } .card-foot.soccer a { color: var(--soccer); }

.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; font-size: 12px; color: var(--muted); text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #f1f4fb; }
.tbl .rk { color: var(--muted); width: 24px; font-weight: 600; }
.tbl .team { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl .team .ab { font-family: var(--display); font-weight: 700; font-size: 11px; color: #fff; background: var(--muted); border-radius: 4px; padding: 2px 6px; letter-spacing: .5px; }
.hockey-ab .ab { background: var(--hockey); } .bball-ab .ab { background: var(--basketball); } .soccer-ab .ab { background: var(--soccer); }
.tbl .pts { font-weight: 700; }
.tbl .muted { color: var(--muted); }
.section-title { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .5px; margin: 32px 0 12px; }

.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.game .gd { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.game .st.final { color: var(--good); font-weight: 700; }
.game .side { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.game .side .nm { font-weight: 600; }
.game .side .sc { font-family: var(--display); font-weight: 800; font-size: 20px; }
.game .side.lose { color: var(--muted); }

.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 12px 16px; }
.updated { color: var(--muted); font-size: 12px; margin-top: 10px; }

.prose { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; max-width: 720px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; margin-bottom: 14px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; margin: 20px 0 8px; }
.prose p { margin-bottom: 10px; color: #333b47; }
.prose a { color: var(--brand); font-weight: 600; }

.foot { border-top: 1px solid var(--line); margin-top: 46px; padding: 24px 0; color: var(--muted); }
.foot .fine { font-size: 12px; margin-top: 6px; max-width: 760px; }

/* team crest + linked names in tables */
.tbl .team .crest { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
.tbl .team .tn { font-weight: 600; color: var(--ink); }
.tbl .team a.tn:hover { color: var(--brand); text-decoration: underline; }

/* team page */
.team-hero { --accent: var(--muted); display: flex; align-items: center; gap: 22px; margin-top: 26px; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; border-left: 6px solid var(--accent); }
.team-hero.hockey { --accent: var(--hockey); } .team-hero.basketball { --accent: var(--basketball); } .team-hero.soccer { --accent: var(--soccer); }
.th-crest img { display: block; }
.th-crest .ab.big { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; background: var(--accent); border-radius: 10px; padding: 14px 16px; letter-spacing: 1px; }
.th-league { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.th-league a { color: var(--accent); font-weight: 700; }
.th-main h1 { font-family: var(--display); font-weight: 800; font-size: 38px; text-transform: uppercase; line-height: 1; margin: 4px 0 6px; }
.th-rec { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: .3px; }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pcard { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pc-img { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #eef1f7; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pc-num { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--muted); }
.pc-num.big { font-size: 40px; }
.pc-name { font-weight: 600; }
.pc-name a:hover { color: var(--brand); text-decoration: underline; }
.pc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* player page */
.player-hero { display: flex; align-items: center; gap: 22px; margin-top: 26px; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.ph-img { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: #eef1f7; flex: 0 0 92px; display: flex; align-items: center; justify-content: center; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph-main h1 { font-family: var(--display); font-weight: 800; font-size: 36px; text-transform: uppercase; line-height: 1; margin: 4px 0 6px; }
.ph-meta { color: var(--muted); font-size: 14px; } .ph-meta a { color: var(--brand); font-weight: 600; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.statgrid .stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.statgrid .sv { font-family: var(--display); font-weight: 800; font-size: 26px; }
.statgrid .sl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.biogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.biogrid .bio { display: flex; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.biogrid .bl { color: var(--muted); } .biogrid .bv { font-weight: 600; }

/* roadmap coming-soon */
.roadmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rc { position: relative; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; opacity: .9; }
.rc-ico { font-size: 26px; }
.rc-n { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
.rc-d { font-size: 12px; color: var(--muted); }
.rc-badge { position: absolute; top: 10px; right: 12px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 2px 7px; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .hero h1 { font-size: 38px; } .links { gap: 13px; font-size: 15px; } .brand { font-size: 22px; } .team-hero, .player-hero { flex-direction: column; text-align: center; } }
