:root {
  --navy: #14306e;
  --navy-deep: #0d2152;
  --blue: #2a52b5;
  --gold: #4fa3e0;
  --gold-soft: #e1effa;
  --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; }
.injury-note.past { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-weight: 600; }
.injury-note.past .injured-badge { position: static; flex: none; }
.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; }
.credit-link { color: var(--blue); font-weight: 600; text-decoration: underline; }
.roster-body .photo-grid { margin-top: 8px; }
.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 .veo-link .text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.highlight .veo-link .sublabel { font-size: 13px; font-weight: 600; color: #e6ebf7; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.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; }
}

/* ---------- match page: game stats ---------- */
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cmp-head .side { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); font-size: 14px; }
.cmp-head .side.opp { justify-content: flex-end; }
.cmp-head .side img { width: 28px; height: 28px; object-fit: contain; }
.cmp-head .mid { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.cmp-row { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: none; }
.cmp-row .us, .cmp-row .opp { font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.cmp-row .lead { color: var(--navy); font-weight: 800; }
.cmp-mid .lbl { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.bars { display: flex; gap: 4px; height: 8px; }
.bars .half { flex: 1; display: flex; background: #f2f4fa; border-radius: 4px; overflow: hidden; }
.bars .half.left { justify-content: flex-end; }
.bar { height: 8px; border-radius: 4px; }
.bar.us { background: var(--navy); }
.bar.opp { background: #b8c0d6; }
.cmp-sub { margin-top: 18px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.game-totals { margin-top: 10px; flex-wrap: wrap; }
.game-totals .stat { flex: 1 1 120px; }
.game-totals .stat .sub { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* ---------- stat tables: colored column groups ---------- */
.g-passing    { --g: #2a52b5; --g-soft: rgba(42, 82, 181, 0.10);  --g-faint: rgba(42, 82, 181, 0.045); }
.g-dribbling  { --g: #1e7d46; --g-soft: rgba(30, 125, 70, 0.10);  --g-faint: rgba(30, 125, 70, 0.045); }
.g-shooting   { --g: #d97706; --g-soft: rgba(217, 119, 6, 0.12);  --g-faint: rgba(217, 119, 6, 0.05); }
.g-scoring    { --g: #b8860b; --g-soft: rgba(201, 162, 39, 0.16); --g-faint: rgba(201, 162, 39, 0.07); }
.g-possession { --g: #6b7280; --g-soft: rgba(107, 114, 128, 0.10); --g-faint: rgba(107, 114, 128, 0.045); }
.g-other      { --g: #78716c; --g-soft: rgba(120, 113, 108, 0.10); --g-faint: rgba(120, 113, 108, 0.045); }
.g-ballwinning{ --g: #6d28d9; --g-soft: rgba(109, 40, 217, 0.10); --g-faint: rgba(109, 40, 217, 0.045); }
.g-clearing   { --g: #0e7490; --g-soft: rgba(14, 116, 144, 0.10); --g-faint: rgba(14, 116, 144, 0.045); }
.g-discipline { --g: #b4362f; --g-soft: rgba(180, 54, 47, 0.10);  --g-faint: rgba(180, 54, 47, 0.045); }
.g-shotstopping { --g: #14306e; --g-soft: rgba(20, 48, 110, 0.10);  --g-faint: rgba(20, 48, 110, 0.045); }
.g-handling   { --g: #0e7490; --g-soft: rgba(14, 116, 144, 0.10); --g-faint: rgba(14, 116, 144, 0.045); }
.g-crosses    { --g: #6d28d9; --g-soft: rgba(109, 40, 217, 0.10); --g-faint: rgba(109, 40, 217, 0.045); }
.g-distribution { --g: #2a52b5; --g-soft: rgba(42, 82, 181, 0.10); --g-faint: rgba(42, 82, 181, 0.045); }
.g-per80      { --g: #0f766e; --g-soft: rgba(15, 118, 110, 0.10); --g-faint: rgba(15, 118, 110, 0.045); }
.g-footwork   { --g: #1e7d46; --g-soft: rgba(30, 125, 70, 0.10);  --g-faint: rgba(30, 125, 70, 0.045); }
.g-physical   { --g: #be185d; --g-soft: rgba(190, 24, 93, 0.10);  --g-faint: rgba(190, 24, 93, 0.045); }
.g-setpieces  { --g: #4d7c0f; --g-soft: rgba(77, 124, 15, 0.10);  --g-faint: rgba(77, 124, 15, 0.045); }
thead .grp-row th.grp { text-align: center; padding: 5px 10px; font-size: 10px; letter-spacing: 0.1em; color: #fff; background: var(--g); border-bottom: 0; border-left: 2px solid #fff; }
thead .grp-row th.g-none { background: transparent; border-left: 0; }
thead th.sortable[class*="g-"] { background: var(--g-soft); color: var(--g); border-left: 2px solid #fff; }
thead th.sortable.sorted[class*="g-"] { box-shadow: inset 0 -2px 0 var(--g); }
tbody td[class*="g-"] { background: var(--g-faint); border-left: 2px solid #fff; }
tbody tr:hover td[class*="g-"] { background: var(--g-soft); }
.stat-table th, table th { white-space: nowrap; }

/* ---------- stat tables: team totals row ---------- */
tfoot .total-row td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--line); background: #f7f8fb; }
tfoot .total-row td:first-child { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
tfoot .total-row td[class*="g-"] { background: var(--g-soft); border-left: 2px solid #fff; }

/* ---------- stat tables: keep the Player column pinned while scrolling sideways ---------- */
.stat-table th:first-child, .stat-table td:first-child { position: sticky; left: 0; z-index: 2; background: #fff; }
.stat-table thead th:first-child { z-index: 3; background: #fff; }
.stat-table tbody tr:hover td:first-child { background: #f2f4fa; }
.stat-table tfoot td:first-child { background: #f7f8fb; }
.stat-table th:first-child::after, .stat-table td:first-child::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 8px; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 33, 82, 0.10), rgba(13, 33, 82, 0));
}

/* ---------- player page: season row labels ---------- */
.stat-table td.rowlbl { font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }

/* ---------- match page: comparison groups + maps ---------- */
.cmp-group { margin-top: 14px; padding: 6px 0 2px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 10px; }
.map-grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.map-grid.line { gap: 12px; }
.map-grid.line .map-half { grid-column: auto; text-align: center; margin: 6px 0 -2px; }
.map-grid.line .zone-labels, .map-grid.line .map-team { font-size: 10px; }
.map-grid.line .map-team { font-size: 12.5px; }
@media (max-width: 640px) { .map-grid.line { grid-template-columns: 1fr 1fr !important; } .map-grid.line .map-half { grid-column: span 2 !important; } }
.map { margin: 0; }
.map .map-img { display: block; border-radius: 12px; overflow: hidden; background: #101210; }
.map .map-img img { display: block; width: 100%; height: auto; }
.map figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.map figcaption strong { color: var(--navy); }
.thirds { display: flex; gap: 3px; margin-top: 8px; height: 26px; border-radius: 7px; overflow: hidden; }
.thirds .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 800; min-width: 34px; }
.thirds .defensive { background: #8a8f9d; }
.thirds .middle { background: #2a52b5; }
.thirds .attacking { background: var(--win); }
.zone-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.zone-labels.two { grid-template-columns: 1fr 1fr; }
.zone-labels .defensive { text-align: left; color: #6b7280; }
.zone-labels .middle { text-align: center; color: #2a52b5; }
.zone-labels .attacking { text-align: right; color: var(--win); }
.zone-labels .on-left { text-align: left; }
.zone-labels .on-right { text-align: right; }
.map .thirds { margin-top: 6px; }
.map .map-team { margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--navy); }
.map .map-team .ha { font-weight: 600; font-size: 13px; }

.map-grid .map-half { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 0 -4px; }

/* ---------- stat tables on phones: narrow pinned Player column so more stats fit ---------- */
@media (max-width: 640px) {
  .stat-table th:first-child, .stat-table td:first-child { width: 112px; min-width: 112px; max-width: 112px; padding-left: 10px; padding-right: 8px; }
  .stat-table td:first-child a { display: inline-block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .stat-table td:first-child .ha { display: none; }
  .stat-table th, .stat-table td { padding-left: 9px; padding-right: 9px; }
}


/* ---------- match page: top bar with team switcher ---------- */
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.match-top .back-link { margin: 0; }
.match-top .filter-controls { margin-left: auto; }
.match-top 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; }
.match-top label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- match hero: small yellow notice (directions, reminders) ---------- */
.score-hero .notice { display: inline-block; margin: 12px auto 0; max-width: 560px; text-align: left; background: var(--gold-soft); border: 1px solid #e3cf7f; color: #5a4a10; border-radius: 10px; padding: 9px 13px; font-size: 13px; line-height: 1.45; font-weight: 500; }

/* team stats table: the Season row is styled like a totals row but sits on top */
tbody tr.total-row td { font-weight: 800; color: var(--navy); background: #f7f8fb; border-bottom: 2px solid var(--line); }
tbody tr.total-row td[class*="g-"] { background: var(--g-soft); }
tbody tr.total-row td.rowlbl .ha { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; }

.filter-bar .filter-controls.filter-left { margin-left: 0; }

.roster-note { margin: -4px 0 12px 2px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- match page: goal clips ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.goal-tile { display: block; }
.goal-thumb { position: relative; border-radius: 10px; overflow: hidden; background: #0f1a33; aspect-ratio: 16 / 9; }
.goal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goal-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px; box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: transform 0.1s ease; }
.goal-tile:hover .goal-thumb .play { transform: translate(-50%, -50%) scale(1.08); }
.goal-cap { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.goal-cap .res { width: auto; padding: 0 6px; height: 20px; font-size: 10px; border-radius: 5px; }
.lightbox .lb-video { max-width: min(94vw, 1100px); max-height: 82vh; border-radius: 10px; background: #000; display: block; }

.fixture .fscore .corrected { margin-left: 5px; font-size: 11px; font-weight: 700; color: var(--win); vertical-align: 2px; }

.footnote.veo-access { text-align: left; margin-top: 8px; }
.footnote.veo-access a { text-decoration: underline; }

.notice-box { margin: 0 0 12px; background: var(--gold-soft); border: 1px solid #e3cf7f; color: #5a4a10; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; font-weight: 500; }

/* Match awards line (e.g. Gatorade Player of the Match) under the hero notes */
.score-hero .sub.award { color: var(--gold, #d4a017); font-weight: 600; }
.score-hero .sub.award a { color: inherit; text-decoration: underline; }

/* Featured award photo card at the bottom of a match page */
.award-card { max-width: 520px; margin: 0 auto; }
.award-card .photo { display: block; }
.award-card .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.award-cap { padding: 12px 16px; font-weight: 700; color: var(--ink); }
.award-cap a { color: var(--navy); text-decoration: underline; }

/* Season board: divider + muted rows for players under the minutes threshold */
.stat-table tr.stat-sep td { background: #f7f8fb; border-top: 2px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); padding-top: 9px; padding-bottom: 9px; text-align: left; white-space: nowrap; }
.stat-table tr.stat-sep td:first-child { font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; background: #f7f8fb; }
.stat-table tr.low-min td { color: #6b7280; }
.stat-table tr.low-min td:first-child a { color: #4b5563; }

/* Player page: a little extra air before the 2nd-team block */
.section.team-block-2 { margin-top: 34px; padding-top: 18px; border-top: 2px solid var(--line); }

/* Nighthawk FotMob rating column: styled like any other stat group (band colour only) */
.g-rating     { --g: #7c3aed; --g-soft: rgba(124, 58, 237, 0.10); --g-faint: rgba(124, 58, 237, 0.045); }
.potm { color: #b8860b; font-size: 13px; cursor: help; }

/* Rating band wraps onto two lines; rating cells are tap targets */
.stat-table th.grp.g-rating { white-space: normal; line-height: 1.15; }
/* Column labels may run to two lines ("Through balls" / "completed"); bottom-align so one-line labels sit on the same baseline. */
.stat-table thead tr:not(.grp-row) th { vertical-align: bottom; line-height: 1.2; }
.nh-click { cursor: pointer; }
td.nh-click { text-decoration: underline dotted; text-underline-offset: 3px; }
td.nh-click:hover, td.nh-click:focus { background: var(--g-soft) !important; outline: none; }
.stat.nh-click:hover { box-shadow: 0 0 0 2px var(--navy); }
/* Rating breakdown popup */
.nh-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(8, 14, 32, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nh-box { background: #fff; border-radius: 12px; max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.nh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.nh-head h3 { margin: 0; font-size: 18px; color: var(--navy); }
.nh-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.nh-close { border: 0; background: #f2f4fa; color: var(--navy); font-size: 22px; line-height: 1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex: 0 0 auto; }
.nh-body { padding: 12px 18px 18px; }
.nh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nh-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.nh-table th:not(:first-child), .nh-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nh-table td { padding: 6px 8px; border-bottom: 1px solid #eef0f5; }
.nh-table tr.nh-grp td { background: #f7f8fb; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); padding-top: 9px; }
.nh-table tr.nh-sub td { font-weight: 700; color: var(--navy); }
.nh-table tr.nh-base td { color: var(--muted); }
.nh-table tr.nh-total td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--line); border-bottom: 0; font-size: 15px; }
.nh-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; line-height: 1.45; }

/* Rating rules page + popup footer link */
.nh-foot { margin: 0; padding: 10px 18px 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.rules .page-title { margin: 6px 0 8px; font-size: 26px; color: var(--navy); }
.rules .lead { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.rules .back { font-size: 13px; font-weight: 600; }
.rules-list { margin: 0; padding-left: 22px; line-height: 1.55; }
.rules-list li { margin: 0 0 10px; }
.rules .formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rules-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rules-table th.num, .rules-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rules-table td { padding: 8px 10px; border-bottom: 1px solid #eef0f5; vertical-align: top; line-height: 1.4; }
.rules-table td.range { font-weight: 800; color: var(--navy); white-space: nowrap; }
.rules-table td.ev { font-weight: 600; white-space: nowrap; }
.rules-table td.how, .rules-table td.why { color: var(--muted); font-size: 13px; min-width: 160px; }
.rules-table td.num.pos { color: #166534; }
.rules-table td.num.neg { color: #991b1b; }
.rules-table tr.grp td { background: #f7f8fb; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); padding-top: 10px; }

/* Rating disclaimer */
.notice-box.disclaimer { text-align: left; line-height: 1.5; }
.disclaimer-list { margin: 10px 0 0; padding-left: 20px; }
.disclaimer-list li { margin: 0 0 8px; }
.nh-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nh-disclaimer { display: inline-block; background: var(--gold-soft); border: 1px solid #e3cf7f; color: #5a4a10; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.nh-disclaimer:hover { background: #f5e6a6; text-decoration: none; }
.nh-table tr.nh-scale td { color: #5b21b6; }

/* Goal timeline under the match score */
.goal-timeline { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; margin-top: 8px; }
.goal-timeline .gt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f2f4fa; color: var(--navy); border: 1px solid var(--line); }
.goal-timeline .gt.us { background: #e7f5ec; border-color: #bfe3cc; color: #14532d; }
.goal-timeline .gt.opp { background: #fbeaea; border-color: #f0c4c4; color: #7f1d1d; }
.goal-timeline .gt b { font-variant-numeric: tabular-nums; }
.g-team { --g: #0f766e; --g-soft: rgba(15, 118, 110, 0.10); --g-faint: rgba(15, 118, 110, 0.045); }
.nh-table tr.nh-off td { color: var(--muted); }

/* Home page goals slider */
.goal-slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.goal-slider .goal-tile.slide { flex: 0 0 280px; scroll-snap-align: start; text-decoration: none; }
.goal-slider .goal-cap .who { font-weight: 700; color: var(--ink); }
.goal-slider .goal-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.slider-arrows { display: flex; gap: 6px; }
.slider-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.slider-btn:hover { background: #f2f4fa; }
@media (max-width: 640px) { .goal-slider .goal-tile.slide { flex-basis: 78vw; } .slider-arrows { display: none; } }

/* Home page leaders slider */
.boards.board-slider { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.board-slider .board { flex: 0 0 270px; scroll-snap-align: start; }
@media (max-width: 640px) { .board-slider .board { flex-basis: 82vw; } }
/* Leader boards: keep values like "86% (43/50)" on one line; slightly wider cards in the slider */
.board .val { white-space: nowrap; flex: 0 0 auto; }
.board .val .val-note { margin-left: 5px; font-size: 10.5px; }
.board-slider .board { flex-basis: 300px; }

/* Per-80 switch on the match stat table */
.per80-toggle { margin-left: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d7dbe6); background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.per80-toggle.on { background: var(--navy, #0d2152); color: #fff; border-color: var(--navy, #0d2152); }

/* ---------- AC Connecticut overrides ---------- */
/* No stadium photo yet: the hero header is the plain navy gradient. */
/* Header background: the new ACC facility (rendering by Claris Design·Build). The rendering is ~1.84:1 and the header is a
 * wide strip, so on desktop the whole image sits on the right at full header height and fades into the navy behind the
 * title (no heavy crop). On phones it fills the header behind a dark overlay. Credited bottom-right. */
.site-header.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a1a3f 0%, #14306e 70%, #173a80 100%);
  padding: 112px 0 104px;   /* ~320px tall on desktop */
}
.site-header.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: max(60%, 590px); max-width: 100%;   /* 590px = full image at header height; wider screens crop a little */
  background: url("../img/facility.jpg") center 55% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 45%);
}
.site-header.hero > .wrap { position: relative; z-index: 1; }
.site-header.hero::after {
  content: "Rendering: Claris Design\00B7 Build";
  position: absolute; right: 12px; bottom: 8px; z-index: 1;
  font-size: 10.5px; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.02em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
@media (max-width: 760px) {
  .site-header.hero { padding: 64px 0 44px; }
  .site-header.hero::before {
    left: 0; width: auto; max-width: none;
    background: linear-gradient(180deg, rgba(10, 26, 63, 0.35) 0%, rgba(10, 26, 63, 0.55) 55%, rgba(10, 26, 63, 0.85) 100%),
                url("../img/facility.jpg") center 45% / cover no-repeat;
    -webkit-mask-image: none; mask-image: none;
  }
}
.site-header.hero .crest-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
table.standings td.school a { display: inline-flex; align-items: center; gap: 8px; }
table.standings .st-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; flex: none; }
table.standings td.gd.pos-gd { color: var(--win); font-weight: 700; }
table.standings td.gd.neg-gd { color: var(--loss); font-weight: 700; }
table.standings th, table.standings td { text-align: center; }
table.standings td.school, table.standings th:nth-child(2) { text-align: left; }

/* ---------- past seasons (Veo recordings) ---------- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rec-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; color: inherit; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; }
.rec-card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(13, 33, 82, 0.12), 0 8px 22px rgba(13, 33, 82, 0.1); }
.rec-top { display: flex; align-items: center; gap: 12px; }
.rec-top .opp-logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.rec-play { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; }
.rec-text { flex: 1; min-width: 0; }
.rec-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.rec-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rec-score { font-weight: 800; font-size: 14px; padding: 3px 8px; border-radius: 8px; color: #fff; flex: none; }
.rec-score.res-w { background: var(--win); } .rec-score.res-l { background: var(--loss); } .rec-score.res-d { background: var(--draw); }
.rec-note { font-size: 13px; color: var(--muted); }
.rec-cta { font-size: 13px; font-weight: 700; color: var(--blue); }
.rec-card { padding-top: 0; }
.rec-card > .rec-top:first-child { padding-top: 14px; }
.rec-thumb { position: relative; margin: 0 -16px; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-thumb-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(10, 26, 63, 0.72); color: #fff; display: grid; place-items: center; font-size: 16px; }
.rec-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.rec-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.rec-card:hover { transform: none; }
.rec-link:hover .rec-title { text-decoration: underline; }
.rec-cta, .rec-part { text-decoration: none; }
.rec-cta:hover, .rec-part:hover { text-decoration: underline; }
.rec-parts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.rec-part { color: var(--blue); }
.rec-clips { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
.rec-clips summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.rec-clips ul { margin: 8px 0 6px; padding-left: 18px; }
.rec-clips li { margin: 3px 0; }
.rec-clips li a, .rec-folder { color: var(--blue); }
.rec-folder { display: inline-block; margin-top: 2px; font-weight: 600; }
