:root {
  --navy: #14306e;
  --navy-deep: #0d2152;
  --blue: #2a52b5;
  --gold: #c9a227;
  --gold-soft: #f3e7bf;
  --bg: #f5f6f9;
  --card: #ffffff;
  --ink: #1a2233;
  --muted: #66708a;
  --line: #e3e6ee;
  --win: #1e7d46;
  --loss: #b4362f;
  --draw: #8a8f9d;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(13, 33, 82, 0.08), 0 4px 14px rgba(13, 33, 82, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 56px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #1d3d8a 100%);
  color: #fff;
  padding: 26px 0 22px;
}
.site-header .wrap { padding-bottom: 0; display: flex; align-items: center; gap: 14px; }
.crest-logo { width: 56px; height: 56px; flex: none; object-fit: contain; }
.site-title { font-size: 21px; font-weight: 800; margin: 0; letter-spacing: 0.2px; }
.site-sub { margin: 2px 0 0; font-size: 13px; color: #c7d2ef; font-weight: 500; }
.site-header.hero {
  background:
    linear-gradient(180deg, rgba(13, 33, 82, 0.45) 0%, rgba(13, 33, 82, 0.62) 55%, rgba(13, 33, 82, 0.85) 100%),
    url("../img/stadium.jpg") center 30% / cover no-repeat;
  padding: 110px 0 60px;
}
.site-header.hero .crest-logo { width: 74px; height: 74px; }
.site-header.hero .site-title { font-size: 28px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.site-header.hero .site-sub { font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

/* ---------- nav ---------- */
.site-nav { background: var(--navy-deep); border-bottom: 3px solid var(--gold); }
.nav-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; display: flex; gap: 2px; overflow-x: auto; }
.site-nav a { color: #c7d2ef; font-weight: 600; font-size: 13.5px; padding: 12px 15px; white-space: nowrap; }
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }

/* ---------- sortable table ---------- */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--navy); }
th.sorted { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- team page ---------- */
.form-badges { display: flex; gap: 6px; align-items: center; }
.form-badges .res { width: 28px; height: 28px; font-size: 12px; }
.link-more { display: block; text-align: center; padding: 11px; font-size: 13px; font-weight: 700; color: var(--blue); border-top: 1px solid var(--line); }
.link-more:hover { background: #f2f4fa; }

.back-link { display: inline-block; margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.back-link:hover { text-decoration: underline; }

/* ---------- cards & sections ---------- */
.section { margin-top: 26px; }
.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); margin: 0 0 10px 2px;
}
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 18px; }

.empty {
  padding: 28px 18px; text-align: center; color: var(--muted); font-size: 14px;
}
.empty strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }

/* ---------- preseason banner ---------- */
.banner {
  margin-top: 26px;
  background: linear-gradient(120deg, var(--navy) 0%, #1d3d8a 100%);
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 20px; display: flex; align-items: center; gap: 16px;
}
.banner h2 { margin: 0 0 3px; font-size: 17px; }
.banner p { margin: 0; font-size: 13.5px; color: #c7d2ef; }

/* ---------- record strip ---------- */
.record { display: flex; gap: 10px; }
.record .stat {
  flex: 1; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; padding: 14px 6px;
}
.record .num { font-size: 22px; font-weight: 800; color: var(--navy); }
.record .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

/* ---------- leaderboards ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.board .board-head {
  padding: 12px 16px; font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--line); color: var(--navy);
}
.board ol { list-style: none; margin: 0; padding: 4px 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.board li:hover { background: #f2f4fa; }
.board .rank { width: 16px; text-align: right; color: var(--muted); font-size: 12px; font-weight: 600; }
.board .val { margin-left: auto; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.board .bname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .val .val-note { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.board .board-empty { padding: 14px 16px 16px; color: var(--muted); font-size: 13px; font-weight: 600; }
.board .board-legend { padding: 8px 16px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.boards-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.filter-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.filter-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section-head .section-title { margin-bottom: 0; }
.section-head .filter-controls { margin-left: auto; }
.filter-bar label, .section-head label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.filter-bar select, .section-head select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--navy);
  background: var(--card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2314306e' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 9px 36px 9px 14px; cursor: pointer;
}
.filter-bar select:focus, .section-head select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---------- roster ---------- */
.pos-group { margin-top: 18px; }
.pos-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin: 0 0 8px 2px; }
.pos-label .count { color: var(--muted); font-weight: 600; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.player-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; transition: transform 0.08s ease;
}
.player-card .avatar { width: 64px; height: 64px; font-size: 20px; }
.player-card { position: relative; }
.injured-badge {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid #e0e3ea; box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  color: transparent; font-size: 0;
  background-image: linear-gradient(#d92d20, #d92d20), linear-gradient(#d92d20, #d92d20);
  background-repeat: no-repeat;
  background-size: 10px 3px, 3px 10px;
  background-position: center, center;
}
.injured-inline {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: 3px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #d92d20;
}
.injury-note { margin-top: 6px; font-size: 13px; font-weight: 600; color: #d92d20; }
.injured-inline::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 1px solid #e0e3ea; box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  background-image: linear-gradient(#d92d20, #d92d20), linear-gradient(#d92d20, #d92d20);
  background-repeat: no-repeat; background-size: 8px 2px, 2px 8px; background-position: center, center;
}
.toggle.subtabs { margin-top: 22px; margin-bottom: 0; }
.player-card:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(13,33,82,0.12), 0 8px 20px rgba(13,33,82,0.08); }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; background: var(--navy);
}
.avatar.pos-GK { background: #6a41a1; }
.avatar.pos-DF { background: var(--navy); }
.avatar.pos-MF { background: #1e6f5c; }
.avatar.pos-FW { background: #a3402f; }
.avatar.pos-COACH { background: var(--gold); color: var(--navy-deep); }
.avatar.photo-avatar { overflow: hidden; background: #e9ecf3; }
.avatar.photo-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.player-hero .avatar.photo-avatar.big { width: 96px; height: 96px; }
.player-card.static { cursor: default; }
.player-card.static:hover { transform: none; box-shadow: var(--shadow); }
.player-card .pname { font-weight: 700; font-size: 16px; line-height: 1.25; }
.player-card .pmeta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cap-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px; margin-left: 5px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 10px; font-weight: 800; vertical-align: 1px;
}

.featured-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.featured-grid .player-card { flex-direction: column; align-items: flex-start; }
.featured-grid .player-card .avatar { width: 72px; height: 72px; font-size: 22px; }
.featured-grid .player-card .pname { font-size: 16px; }
.featured-grid .player-card .avatar { width: 72px; height: 72px; font-size: 22px; }
.honor { margin-top: 5px; font-size: 12.5px; font-weight: 700; color: #a3800f; }
.player-hero .honor { font-size: 13.5px; }
.btn-mini {
  display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
}
.player-card:hover .honor { margin-top: 5px; font-size: 12.5px; font-weight: 700; color: #a3800f; }
.player-hero .honor { font-size: 13.5px; }
.btn-mini { background: var(--blue); }

/* ---------- current record card ---------- */
.record-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 20px; }
.rc-logo { width: 84px; height: 84px; object-fit: contain; }
.rc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.rc-record { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.rc-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rc-stats { display: grid; grid-auto-flow: column; gap: 8px; }
.rc-stats .stat { background: #f2f4fa; border-radius: 10px; text-align: center; padding: 10px 12px; min-width: 76px; }
.rc-stats .num { font-size: 20px; font-weight: 800; color: var(--navy); }
.rc-stats .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) {
  .record-card { grid-template-columns: auto 1fr; }
  .rc-stats { grid-column: 1 / -1; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
  .rc-stats .stat { min-width: 0; padding: 8px 4px; }
  .rc-logo { width: 64px; height: 64px; }
  .rc-record { font-size: 32px; }
}

.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.album-link { font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ---------- player photo folders ---------- */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.folder { display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.08s ease; }
.folder:hover { transform: translateY(-2px); }
.folder-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e9ecf3; }
.folder-info { padding: 10px 14px 12px; }
.folder-name { font-weight: 700; font-size: 15px; }
.folder-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-align: center; }
.site-footer .wrap { padding-bottom: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 14, 32, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lightbox .lb-stage { max-width: min(96vw, 1200px); max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox .lb-cap { color: #fff; font-weight: 600; margin-top: 12px; text-align: center; }
.lightbox .lb-count { color: #c7d2ef; font-size: 12px; font-weight: 600; margin-top: 4px; }
.lightbox .lb-btn, .lightbox .lb-close {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,0.12);
  width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-btn:hover, .lightbox .lb-close:hover { background: rgba(255,255,255,0.24); }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close { top: 14px; right: 14px; font-size: 26px; }

.roster-toggle {
  width: 100%; text-align: left; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; color: var(--navy);
  background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px;
}
.roster-toggle:hover { background: #f2f4fa; }
.roster-body { margin-top: 4px; }
.roster-grid.compact { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.roster-grid.compact .player-card { padding: 10px 12px; }
.roster-grid.compact .player-card .avatar { width: 44px; height: 44px; font-size: 15px; }
.roster-grid.compact .player-card .pname { font-size: 14px; }

/* ---------- abbreviation legend ---------- */
.legend { margin-top: 8px; }
.legend-toggle { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 6px 2px; cursor: pointer; }
.legend-toggle:hover { text-decoration: underline; }
.legend-list { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 4px 0 0; padding: 12px 16px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; }
.legend-list[hidden] { display: none; }
.rules-box { margin-top: 6px; padding: 16px 18px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.55; }
.rules-box[hidden] { display: none; }
.rules-box h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy); }
.rules-box p { margin: 0 0 10px; }
.rules-box ol { margin: 0 0 10px; padding-left: 22px; }
.rules-box li { margin: 2px 0; }
.rules-box .rules-note { color: var(--muted); font-size: 12.5px; margin-bottom: 0; }
.legend-list dt { font-weight: 800; color: var(--navy); }
.legend-list dd { margin: 0; color: var(--ink); }
th[title] { cursor: help; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 700; }
th:first-child, td:first-child { text-align: left; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f2f4fa; }

/* ---------- match rows ---------- */
.match-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: #f2f4fa; }
.match-row .date { width: 58px; flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.match-row .opp { font-weight: 700; }
.match-row .ha { color: var(--muted); font-size: 12.5px; }
.match-row .score { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.res { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.res-w { background: var(--win); }
.res-l { background: var(--loss); }
.res-d { background: var(--draw); }
.res-p { background: var(--blue); }
.match-row .time { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.match-row .opp-logo { width: 28px; height: 28px; object-fit: contain; flex: none; }

/* Home page "Recent results": doubled-up row with opponent crest. */
.match-row-lg { gap: 20px; padding: 24px 28px; }
.match-row-lg .res { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.match-row-lg .date { width: 100px; font-size: 20px; }
.match-row-lg .opp-logo { width: 56px; height: 56px; }
.match-row-lg .opp { font-size: 30px; }
.match-row-lg .ha { font-size: 20px; }
.match-row-lg .kit { width: 20px; height: 20px; border-radius: 5px; }
.match-row-lg .score, .match-row-lg .time { font-size: 32px; }
.match-row-lg .time { font-size: 22px; }

.kit { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.18); vertical-align: -1px; }
.kit-blue { background: var(--navy); }
.kit-white { background: #fff; }
.kit-black { background: #16161a; }

/* ---------- fixture calendar tiles ---------- */
.fixture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fixture {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px 16px; min-height: 160px;
  border: 2px solid transparent; transition: transform 0.08s ease;
}
.fixture:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(13,33,82,0.12), 0 8px 20px rgba(13,33,82,0.08); }
.fixture.next { border-color: var(--gold); background: linear-gradient(180deg, #fffdf5 0%, #fff 60%); }
/* Played games: gray tint + a result-colored left edge, so the grid reads past → next (gold) → upcoming (white). */
.fixture.played { background: var(--bg); box-shadow: none; border-color: var(--line); border-left-width: 5px; }
.fixture.played:hover { box-shadow: 0 3px 8px rgba(13,33,82,0.10); }
.fixture.played.won { border-left-color: var(--win); }
.fixture.played.lost { border-left-color: var(--loss); }
.fixture.played.drew { border-left-color: var(--draw); }
.fixture.played .daynum { color: var(--muted); }
/* On the gray played tile, sit the crest on a white chip so logos with baked-in white look intentional. */
.fixture.played .opp-logo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px; width: 58px; height: 58px; right: 12px; top: 40px; }
.fixture { position: relative; }
.fixture .opp-logo { position: absolute; right: 14px; top: 40px; width: 52px; height: 52px; object-fit: contain; }
.fixture.played .opp-logo { top: 44px; }
.fixture .dow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.fixture .dow .res { width: 22px; height: 22px; font-size: 11px; }
.fixture .daynum { font-size: 36px; font-weight: 800; line-height: 1; color: var(--navy); margin-top: 2px; }
.fixture .daynum small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.fixture .fopp { font-weight: 700; font-size: 15px; line-height: 1.25; margin-top: auto; padding-top: 10px; }
.fixture .fopp .pre { color: var(--muted); font-weight: 600; margin-right: 4px; }
.fixture .fscore { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.fixture .fmeta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.month-title { font-size: 15px; font-weight: 800; color: var(--navy); margin: 22px 0 10px 2px; }
.month-title:first-child { margin-top: 0; }

/* ---------- SWC standings ---------- */
table.standings td.school { font-weight: 700; }
table.standings td.school a { color: var(--navy); }
table.standings td.school a:hover { text-decoration: underline; }
.fixture .opp-logo.remote { background: #fff; border-radius: 8px; }
.team-hero { display: flex; align-items: center; gap: 18px; }
.team-hero .team-logo { width: 96px; height: 96px; object-fit: contain; }
.team-hero h1 { margin: 0; font-size: 26px; }
.team-hero .pmeta { color: var(--muted); font-weight: 600; margin-top: 2px; }
.team-hero .rc-record { font-size: 30px; }
table.standings td.pos { color: var(--muted); font-weight: 600; width: 34px; }
table.standings td.pos[data-playoff] { width: auto; }
table.standings td.pts { font-weight: 800; color: var(--navy); }
table.standings td.gd.pos { color: var(--win); font-weight: 700; }
table.standings td.gd.neg { color: var(--loss); font-weight: 700; }
table.standings .playoff-tag { margin-left: 10px; font-size: 10.5px; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; white-space: nowrap; vertical-align: 1px; }

/* ---------- SWC tournament bracket ---------- */
.bracket-scroll { overflow-x: auto; }
.bracket { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr 0.8fr; gap: 18px; min-width: 760px; }
.round { display: flex; flex-direction: column; }
.round-head { margin-bottom: 10px; }
.round-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.round-venue { font-size: 12px; color: var(--muted); font-weight: 600; }
.round-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.matchup { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.matchup .mu-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg); padding: 4px 10px; border-bottom: 1px solid var(--line); }
.matchup .slot { display: flex; align-items: center; gap: 9px; padding: 9px 10px; min-height: 40px; }
.matchup .slot + .slot { border-top: 1px dashed var(--line); }
.matchup .seed { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.matchup .team { font-weight: 700; color: var(--navy); }
.matchup .tbd { color: var(--muted); font-weight: 600; font-size: 13px; }
.matchup.champion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 10px; border-color: var(--gold); background: linear-gradient(180deg, #fffdf5 0%, #fff 70%); }
.matchup.champion .trophy { font-size: 28px; line-height: 1; }
.bracket-note { margin-top: 14px; }
table.standings tr.us td { background: var(--gold-soft); }

.toggle { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.toggle button { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; }
.toggle button.on { background: var(--navy); color: #fff; }
.toggle button:not(.on):hover { color: var(--navy); }

/* ---------- pasta parties ---------- */
.party { padding: 16px 18px; margin-bottom: 12px; }
.party-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.party-title { font-size: 17px; font-weight: 800; color: var(--navy); }
.party-notes { margin: 10px 0 0; font-size: 14px; }
.party-notes.muted { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.photo { display: block; position: relative; border-radius: 10px; overflow: hidden; background: #e9ecf3; aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.15s ease; }
.photo:hover img { transform: scale(1.03); }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.65)); }
.memories { list-style: none; margin: 14px 0 0; padding: 0; }
.memories li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.memories .quote { font-style: italic; }
.memories .by { color: var(--muted); font-weight: 600; font-size: 13px; }
.memories li:first-child { border-top: none; padding-top: 0; }
.photo-grid.large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.photo-grid.large .photo { aspect-ratio: 4 / 3; }
.score-hero .party-big { font-size: 30px; }

/* ---------- highlights ---------- */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.highlight iframe, .highlight video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.highlight .veo-link {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-deep), #1d3d8a);
  color: #fff; font-weight: 700; font-size: 15px;
}
.highlight .veo-link.poster { background-size: cover; background-position: center; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.highlight .veo-link.poster .label { font-size: 17px; }
.highlight.film .veo-link.poster { aspect-ratio: 21 / 9; padding: 0; }
.highlight .veo-link.poster:hover .play { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.highlight .veo-link .play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-size: 16px; padding-left: 3px;
}
.highlight .veo-link:hover .play { transform: scale(1.06); }
.highlight-title { padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
.highlight.film .veo-link { aspect-ratio: auto; padding: 28px 16px; font-size: 17px; }

/* ---------- player page ---------- */
.player-hero { display: flex; align-items: center; gap: 16px; }
.player-hero .avatar { width: 64px; height: 64px; font-size: 22px; }
.player-hero h1 { margin: 0; font-size: 24px; }
.player-hero .pmeta { color: var(--muted); font-weight: 600; margin-top: 2px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.summary-grid .stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 14px 6px; }
.summary-grid .num { font-size: 22px; font-weight: 800; color: var(--navy); }
.summary-grid .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }

/* ---------- coach page ---------- */
.bio p { margin: 0 0 12px; line-height: 1.6; }
.bio p:last-child { margin-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 6px 0; }
.timeline li { display: flex; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li:last-child { border-bottom: none; }
.timeline .years { flex: none; width: 118px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline .what { color: var(--ink); }
.plain-list { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 14px; }

/* ---------- match faceoff ---------- */
.faceoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.faceoff .side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.faceoff .team-logo { width: 96px; height: 96px; object-fit: contain; }
.faceoff .team-logo.placeholder { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 28px; }
.faceoff .team-name { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.15; text-align: center; }
.faceoff .team-mascot { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.faceoff .mid .big { margin: 0; padding: 0 6px; }
@media (max-width: 560px) {
  .faceoff .team-logo { width: 64px; height: 64px; }
  .faceoff .team-name { font-size: 15px; }
  .score-hero .big { font-size: 30px; }
}

/* ---------- match page header ---------- */
.score-hero { text-align: center; padding: 26px 16px 22px; }
.score-hero .teams { font-size: 17px; font-weight: 700; color: var(--muted); }
.score-hero .big { font-size: 40px; font-weight: 800; color: var(--navy); margin: 4px 0; font-variant-numeric: tabular-nums; }
.score-hero .sub { font-size: 13px; color: var(--muted); }

.footnote { margin-top: 30px; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 560px) {
  .site-title { font-size: 17px; }
  .site-header.hero { padding: 64px 0 40px; }
  .site-header.hero .site-title { font-size: 21px; }
  .site-header.hero .crest-logo { width: 56px; height: 56px; }
  .fixture-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fixture { padding: 12px 13px 14px; min-height: 148px; }
  .fixture .daynum { font-size: 30px; }
  .fixture .opp-logo { width: 40px; height: 40px; right: 12px; top: 38px; }
  .fixture.played .opp-logo { width: 46px; height: 46px; padding: 4px; right: 10px; top: 36px; }
  /* Standings on a phone: collapse the playoff tag to a gold asterisk so the points columns stay in view. */
  table.standings .playoff-tag { display: none; }
  table.standings td.pos[data-playoff]::after { content: "*"; color: var(--gold); font-weight: 800; margin-left: 2px; }
  .match-row-lg { gap: 10px; padding: 16px 14px; }
  .match-row-lg .res { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
  .match-row-lg .date { width: 50px; font-size: 14px; }
  .match-row-lg .opp-logo { width: 36px; height: 36px; }
  .match-row-lg .opp { font-size: 18px; }
  .match-row-lg .ha { font-size: 13px; }
  .match-row-lg .score { font-size: 22px; }
  .match-row-lg .time { font-size: 15px; }
  .boards, .boards-3 { grid-template-columns: 1fr; }
}
