/* ==========================================================================
   Brewers Hub — styles
   Palette: Brewers navy (#12284B) + gold (#FFC52F) on a deep-navy dark ground.
   The layout, cards, tables and nav come from Packers Hub's stylesheet (same class names), recolored; the baseball-only
   pieces (bases diamond, linescore, bracket, highlights, pennant banner…) are at the bottom.
   ========================================================================== */
:root {
  --navy: #12284b;
  --navy-700: #0f2140;
  --navy-900: #0a1428;
  --gold: #ffc52f;
  --gold-600: #e6ab14;
  --bg: #0a1428;
  --surface: #101e38;
  --surface-2: #162849;
  --surface-3: #1f3560;
  --border: #253d68;
  --text: #edf1f8;
  --text-2: #b9c5da;
  --muted: #8090b0;
  --win: #4ade80;
  --loss: #f87171;
  --tie: #fbbf24;
  --danger: #ef4444;
  --warn: #f59e0b;
  --info: #60a5fa;
  --opp: #94a3c0;           /* neutral for opponent series in comparisons */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; }
h2 { font-size: clamp(20px, 2.6vw, 26px); text-transform: uppercase; }
h3 { font-size: 18px; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Top bar & nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--gold); font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .nav-btn {
  color: #d9e2dd; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; font-family: var(--font-head); line-height: 1.2;
}
.nav a:hover, .nav-btn:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav > a.active { background: var(--gold); color: var(--navy-900); }
.nav-group { position: relative; }
.nav-group.current > .nav-btn { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.nav-group.open > .nav-btn { background: rgba(255,255,255,.1); color: #fff; }
.caret { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 5px; vertical-align: 2px; opacity: .8; }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; z-index: 60;
  background: var(--navy-700); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gold); border-radius: 10px; padding: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5); flex-direction: column; gap: 2px;
}
.nav-group:hover > .nav-menu, .nav-group.open > .nav-menu, .nav-group:focus-within > .nav-menu { display: flex; }
.nav-group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }  /* keeps hover alive across the gap */
.nav-menu a { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 7px; }
.nav-menu a.active { background: var(--gold); color: var(--navy-900); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 6px 4px 6px 10px; align-items: center; gap: 10px; color: #fff; cursor: pointer; }
.nav-toggle .bars span { display: block; width: 24px; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle-label { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; text-align: right; }
.nav-toggle-label b { font-family: var(--font-head); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.nav-toggle-label small { font-size: 10px; color: var(--muted); letter-spacing: .02em; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; gap: 2px; padding-top: 6px; }
  /* The open menu is several screens tall inside a sticky header: give it its own scroll area (to the bottom of the screen) and
     lock the page behind it, or a swipe scrolls the hidden page instead of the menu */
  .nav.open { display: flex; max-height: calc(100vh - var(--nav-top, 64px)); max-height: calc(100dvh - var(--nav-top, 64px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .nav.open > * { flex-shrink: 0; }
  body.menu-open { overflow: hidden; }
  .topbar { flex-wrap: wrap; }
  .nav > a { padding: 10px 12px; }
  .nav-btn { width: 100%; text-align: left; padding: 10px 12px 4px; color: var(--gold); font-size: 12px; letter-spacing: .1em; cursor: default; pointer-events: none; }
  .nav-group.current > .nav-btn { box-shadow: none; }
  .caret { display: none; }
  .nav-menu { display: grid !important; position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px; min-width: 0; padding: 0 0 6px; background: none; border: 0; box-shadow: none; }
  .nav-menu a { padding: 9px 12px; background: rgba(255,255,255,.04); }
}

/* ---------- Live bar ---------- */
.live-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; background: #3b0f12; border-bottom: 1px solid #7f1d1d; color: #fff; font-weight: 600;
}
.live-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1.2s infinite; }
.live-bar img { width: 24px; height: 24px; }
.live-bar .score { font-family: var(--font-head); font-size: 20px; }
.live-bar .lb-fact { flex-basis: 100%; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.4; color: #fde2e2; margin-top: -4px; }
.live-bar .lb-fact:empty { display: none; }
.live-bar .lb-fact b { color: var(--gold); font-weight: 700; margin-right: 4px; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- Layout ---------- */
.app { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 5px; height: 22px; background: var(--gold); border-radius: 2px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 8px; }
.footer { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.footer-meta { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 24px; border-radius: var(--radius);
  background: radial-gradient(1200px 300px at 0% 0%, rgba(255,197,47,.12), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--surface) 70%);
  border: 1px solid var(--border);
}
.hero img { width: 96px; height: 96px; }
.hero .eyebrow { color: var(--gold); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.hero .record { font-family: var(--font-head); font-size: 20px; color: var(--text-2); margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .record b { color: #fff; font-size: 26px; }
.hero-right { margin-left: auto; text-align: right; color: var(--text-2); font-size: 14px; }
@media (max-width: 700px) { .hero-right { margin-left: 0; text-align: left; } }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.tile .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile .value { font-family: var(--font-head); font-size: 30px; font-weight: 600; margin-top: 2px; line-height: 1.1; }
.tile .sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.tile .rank { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); margin-left: 6px; vertical-align: middle; font-family: var(--font-body); }
.tile .rank.top { background: rgba(255,197,47,.18); color: var(--gold); }

/* ---------- Game cards ---------- */
.game-card { display: flex; flex-direction: column; gap: 12px; }
.game-card .kicker { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.matchup .team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.matchup .team img { width: 64px; height: 64px; }
.matchup .team .name { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; }
.matchup .team .rec { color: var(--muted); font-size: 12px; }
.matchup .vs { font-family: var(--font-head); font-size: 34px; color: var(--text-2); text-align: center; }
.matchup .vs .score { color: #fff; font-size: 40px; }
.matchup .vs small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.countdown { display: flex; gap: 10px; justify-content: center; }
.countdown div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; min-width: 64px; text-align: center; }
.countdown b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--gold); }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.game-meta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--text-2); font-size: 13px; }
.game-meta span { display: inline-flex; align-items: center; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  background: var(--gold); color: var(--navy-900); font-weight: 700; border: 0; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-head); font-size: 14px;
}
.btn:hover { background: var(--gold-600); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 10px; font-size: 13px; }

/* ---------- Schedule list ---------- */
.sched { display: flex; flex-direction: column; gap: 8px; }
.sched-row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px;
  color: inherit; transition: background .15s, border-color .15s;
}
.sched-row:hover { background: var(--surface-2); border-color: var(--surface-3); text-decoration: none; }
.sched-row.bye { grid-template-columns: 64px 1fr; color: var(--muted); background: transparent; border-style: dashed; }
.sched-row .week { font-family: var(--font-head); color: var(--muted); font-size: 13px; text-transform: uppercase; }
.sched-row .week b { display: block; font-size: 22px; color: var(--text); }
.sched-row .opp { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sched-row .opp img { width: 40px; height: 40px; flex: none; }
.sched-row .opp > div { min-width: 0; flex: 1; }
.sched-row .name-short { display: none; }
@media (max-width: 600px) { .sched-row .name-full { display: none; } .sched-row .name-short { display: inline; } }
.sched-row .opp .n { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-row .opp .n small { color: var(--muted); font-size: 13px; margin-right: 6px; }
.sched-row .opp .d { color: var(--text-2); font-size: 13px; }
.sched-row .res { text-align: right; min-width: 110px; }
.sched-row .res .s { font-family: var(--font-head); font-size: 22px; }
.sched-row .res .t { color: var(--muted); font-size: 12px; }
.sched-row.live { border-color: #7f1d1d; box-shadow: inset 4px 0 0 var(--danger); }
.res-w { color: var(--win); } .res-l { color: var(--loss); } .res-t { color: var(--tie); }
@media (max-width: 600px) {
  .sched-row { grid-template-columns: 48px 1fr auto; padding: 10px 12px; gap: 10px; }
  .sched-row .opp img { width: 32px; height: 32px; }
  .sched-row .opp .n { font-size: 16px; }
  .sched-row .opp .d { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sched-row .res { min-width: 78px; }
  .sched-row .res .s { font-size: 18px; }
}

/* ---------- Controls ---------- */
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.controls select, .controls input {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-height: 38px;
}
.controls input { min-width: 220px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600;
}
.chip:hover { background: var(--surface-3); }
.chip.active { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tab { background: none; border: 0; color: var(--text-2); padding: 10px 14px; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.active { color: #fff; border-bottom-color: var(--gold); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--surface); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr.hl td { background: rgba(255,197,47,.08); }
.tbl tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.tbl tr.clickable { cursor: pointer; }
.tbl .team-cell { display: flex; align-items: center; gap: 8px; }
.tbl .team-cell img { width: 24px; height: 24px; }
.player-cell { display: flex; align-items: center; gap: 10px; }
.player-cell img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.player-cell .nm { font-weight: 600; }
.player-cell .sub { font-size: 12px; color: var(--muted); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.badge.out, .badge.ir { background: rgba(239,68,68,.18); color: #fca5a5; }
.badge.doubtful { background: rgba(249,115,22,.18); color: #fdba74; }
.badge.questionable { background: rgba(245,158,11,.18); color: #fcd34d; }
.badge.probable, .badge.active { background: rgba(74,222,128,.15); color: #86efac; }
.badge.neutral { background: var(--surface-3); color: var(--text-2); }
.badge.live { background: var(--danger); color: #fff; }
.badge.final { background: var(--surface-3); color: var(--text-2); }
.badge.gold { background: rgba(255,197,47,.18); color: var(--gold); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; }
.news-card:hover { text-decoration: none; border-color: var(--surface-3); }
.news-card .img { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.news-card .type { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.news-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.3; }
.news-card p { margin: 0; color: var(--text-2); font-size: 13px; }
.news-card .meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 12px; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { display: flex; gap: 12px; color: inherit; padding: 10px; border-radius: var(--radius-sm); }
.news-item:hover { background: var(--surface-2); text-decoration: none; }
.news-item img { width: 88px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-2); }
.news-item .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.news-item .m { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* ---------- Game detail ---------- */
.game-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 24px; }
.game-head .team { display: flex; align-items: center; gap: 14px; }
.game-head .team.home { flex-direction: row-reverse; text-align: right; }
.game-head .team img { width: 72px; height: 72px; }
.game-head .team .name { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.game-head .team .rec { color: var(--muted); font-size: 13px; }
.game-head .score { font-family: var(--font-head); font-size: 56px; font-weight: 700; line-height: 1; }
.game-head .score.loser { color: var(--muted); }
.game-head .status { text-align: center; }
.game-head .status .st { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; color: var(--gold); }
.game-head .status .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 700px) {
  .game-head { grid-template-columns: 1fr; }
  .game-head .team, .game-head .team.home { flex-direction: row; text-align: left; justify-content: space-between; }
  .game-head .score { font-size: 40px; }
}
.linescore td:first-child, .linescore th:first-child { text-align: left; }
.plays { display: flex; flex-direction: column; }
.play { display: grid; grid-template-columns: 56px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.play:last-child { border-bottom: 0; }
.play .q { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.play .q b { display: block; color: var(--text); font-size: 13px; }
.play img { width: 30px; height: 30px; }
.play .txt { font-size: 14px; }
.play .txt .type { color: var(--gold); font-weight: 700; font-size: 12px; text-transform: uppercase; margin-right: 6px; }
.play .sc { font-family: var(--font-head); font-size: 18px; white-space: nowrap; }

/* Paired comparison bars (GB vs opponent) */
.cmp { display: flex; flex-direction: column; gap: 12px; }
.cmp-row .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.cmp-row .lbl .k { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.cmp-row .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 10px; }
.cmp-row .bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.cmp-row .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.cmp-row .bar.l i { right: 0; background: var(--opp); }
.cmp-row .bar.r i { left: 0; background: var(--gold); }
.cmp-row .bar.l.gb i { background: var(--gold); }
.cmp-row .bar.r.opp i { background: var(--opp); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--sw); }

/* ---------- Leaders ---------- */
.leader-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.leader-card .cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.leader { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.leader:last-child { border-bottom: 0; }
.leader img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.leader.first img { width: 52px; height: 52px; }
.leader .nm { font-weight: 600; font-size: 14px; }
.leader .pos { color: var(--muted); font-size: 12px; }
.leader .val { margin-left: auto; font-family: var(--font-head); font-size: 22px; }
.leader.first .val { font-size: 28px; color: var(--gold); }

/* ---------- Standings ---------- */
.standings-group { margin-bottom: 20px; }
.standings-group h3 { padding: 12px 16px 8px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

/* ---------- Player modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.modal-panel { position: relative; width: min(760px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-3); color: #fff; font-size: 22px; line-height: 1; z-index: 1; }
.modal-body { padding: 22px; }
.player-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.player-head img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 3px solid var(--gold); }
.player-head .num { font-family: var(--font-head); font-size: 44px; color: var(--gold); line-height: 1; }
.player-head h2 { font-size: 30px; }
.player-head .bio { color: var(--text-2); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.kv div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.kv .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv .v { font-weight: 600; margin-top: 2px; }

/* ---------- Skeleton / empty / error ---------- */
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.skeleton .sk { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk.lg { height: 120px; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.error { padding: 16px; border-radius: var(--radius); background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fecaca; }
.note { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,197,47,.08); border: 1px solid rgba(255,197,47,.25); color: var(--text-2); font-size: 14px; }
details.collapsible { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
details.collapsible summary { cursor: pointer; padding: 12px 16px; font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; list-style: none; display: flex; justify-content: space-between; }
details.collapsible summary::after { content: "+"; color: var(--gold); }
details.collapsible[open] summary::after { content: "–"; }
details.collapsible .table-wrap { padding: 0 8px 8px; }

/* ---------- Page banners (photo + gradient) ---------- */
.banner {
  position: relative; display: flex; align-items: flex-end; min-height: 200px; padding: 24px; margin-bottom: 20px;
  border-radius: var(--radius); overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--border);
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,.15) 0%, rgba(10,20,40,.55) 55%, rgba(10,20,40,.95) 100%); }
.banner > * { position: relative; }
.banner .eyebrow { color: var(--gold); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.banner p { margin: 6px 0 0; }
.hero.hero { background-size: cover; background-position: center; }
@media (max-width: 600px) { .banner { min-height: 150px; padding: 16px; } }

/* ---------- Multi-source news additions ---------- */
.news-card .img.noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--surface-2) 100%); }
.news-card .img.noimg::before { content: "M"; font-family: var(--font-head); font-size: 56px; color: rgba(255,197,47,.25); font-weight: 700; }
.news-card .img { position: relative; }
.news-card .play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid rgba(255,255,255,.7); }
.news-card .type .src { display: inline-flex; align-items: center; gap: 6px; }
.news-card .type .src img { width: 14px; height: 14px; border-radius: 3px; }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.src-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.src-list li img { width: 16px; height: 16px; border-radius: 3px; }
.src-list li .small { margin-left: auto; }

/* ---------- NFL scoreboard (home) ---------- */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.sb-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px 9px; color: inherit; font-size: 13px; }
.sb-card:hover { background: var(--surface-2); text-decoration: none; border-color: var(--surface-3); }
.sb-card.gb { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.sb-card.in { border-color: #7f1d1d; }
.sb-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-card.in .sb-status { color: #fca5a5; }
.sb-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.2s infinite; flex: none; }
.sb-status .rz { color: var(--gold); font-weight: 700; }
.sb-team { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 6px; padding: 2px 0; }
.sb-team img { width: 22px; height: 22px; }
.sb-abbr { font-family: var(--font-head); font-size: 15px; letter-spacing: .02em; }
.sb-score { font-family: var(--font-head); font-size: 18px; min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.sb-score small { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 400; }
.sb-team.win .sb-abbr, .sb-team.win .sb-score { color: #fff; }
.sb-team.lose { opacity: .55; }
.sb-poss { font-size: 11px; }
.sb-dd { font-size: 11px; color: var(--text-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .sb-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ▶ Watch buttons: a game's TV networks on YouTube TV, streaming services in their own app (js/watch.js) ---------- */
.watch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn.watch { white-space: normal; text-align: left; }
.game-head .watch-row { margin-top: 10px; }
.next-card .watch-row, #sc-watch .watch-row, .fz-list .watch-row { justify-content: flex-start; }
.fz-list .watch-row { margin: 6px 0 10px; }
#sc-watch .watch-row { margin-top: 10px; }
.live-bar .btn.watch { border-color: rgba(255,255,255,.35); }
/* inside a link (a schedule row, a scoreboard card): buttons rather than links, so a tap opens the app rather than the game */
.sb-watch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sb-watch-b { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--border)); border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 14px/1.25 var(--font-body); text-align: center; cursor: pointer; }
.sb-watch-b:hover { background: var(--surface-3); }
.sched-row .sb-watch { grid-column: 2 / -1; margin-top: -4px; }
.sb-card .sb-watch { margin-top: 8px; }
.sb-card .sb-watch-b { flex: 1 1 auto; padding: 4px 8px; font-size: 13px; text-wrap: balance; }   /* fills the card; a narrow card's label wraps into even lines */

/* ---------- League leaders ---------- */
.leader .lrank { width: 16px; text-align: right; font-size: 12px; flex: none; }
.leader .tlogo { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; border-radius: 0; }
.leader.gb { background: rgba(255,197,47,.1); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.leader.gb .nm { color: var(--gold); }
.sb-grid-lg { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sb-grid-lg .sb-card { font-size: 14px; padding: 10px 12px; }
@media (max-width: 600px) { .sb-grid-lg { grid-template-columns: repeat(2, 1fr); } }   /* two to a row on phones, like the home page's */
#week-sel { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-height: 38px; }

/* ---------- Transactions ---------- */
.tx-list { display: flex; flex-direction: column; }
.tx-row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: start; }
.tx-row:last-child { border-bottom: 0; }
.tx-row.gb { background: rgba(255,197,47,.07); box-shadow: inset 3px 0 0 var(--gold); }
.tx-row img { width: 36px; height: 36px; }
.tx-team { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tx-desc { font-size: 14px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }

/* ---------- NFL team stats ---------- */
.ts-tbl th.sortable { cursor: pointer; }
.ts-tbl th.sortable.on { color: var(--gold); }
.ts-rank { display: inline-block; min-width: 18px; font-size: 10px; color: var(--muted); text-align: right; margin-left: 3px; }
.ts-rank.top { color: var(--win); } .ts-rank.low { color: var(--loss); }
#cat-sel { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
/* ---------- Fan Zone ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.card-title { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 8px; }
.card-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: 12px 0 4px; }
.fz-list { margin: 0; padding-left: 18px; line-height: 1.55; font-size: 14px; }
.fz-list li { margin: 4px 0; }
.fz-tips li { margin: 8px 0; }
.timeline li b { display: inline-block; min-width: 64px; color: var(--gold); }
.bar-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bar-map { width: 100%; min-height: 420px; height: 60vh; max-height: 640px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); position: sticky; top: 70px; }
.bar-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.bar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.bar-card:hover { background: var(--surface-2); }
.bar-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar-dist { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 13px; }
.bar-desc { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.bar-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.leaflet-container { font: inherit; background: #16264a; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.leaflet-popup-content a { color: var(--gold); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
.next-card { display: flex; flex-direction: column; gap: 12px; }
.next-teams { display: flex; align-items: center; gap: 14px; }
.next-teams img { width: 64px; height: 64px; }
.next-teams h3 { font-family: var(--font-head); font-size: 26px; text-transform: uppercase; margin: 2px 0; }
.next-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.next-meta > div { display: flex; flex-direction: column; gap: 2px; }
.next-meta b { font-size: 16px; }
.wx-kick { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.wx-big { font-family: var(--font-head); font-size: 34px; margin: 4px 0; }
.wx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.wx-day { text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.wx-ico { font-size: 22px; margin: 2px 0; }
.fz-details { margin-top: 10px; }
.fz-details summary { cursor: pointer; font-family: var(--font-head); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; color: var(--gold); }
.fz-details p { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 6px 0; }
.near-grid, .link-grid, .club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.near-card, .link-card, .club-card { color: inherit; text-decoration: none; padding: 12px 14px; display: block; }
.near-card:hover, .link-card:hover, .club-card:hover { background: var(--surface-2); }
.near-card p, .link-card p, .club-card p { margin: 6px 0 4px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.trad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.trad-card h3 { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; margin: 0 0 6px; }
.trad-card p { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0 0 8px; }
@media (max-width: 800px) { .bar-layout { grid-template-columns: minmax(0, 1fr); } .bar-map { position: static; min-height: 300px; height: 45vh; } .bar-list { max-height: none; } }
.controls label.chip input[type=checkbox] { min-height: 0; min-width: 0; width: 16px; height: 16px; padding: 0; margin: 0 6px 0 0; accent-color: var(--gold); }

/* ---------- Series records ---------- */
.sr-tbl td b { font-weight: 600; }
.sr-w { color: #86efac; } .sr-l { color: #fca5a5; }
.sr-head { display: flex; gap: 18px; align-items: center; }
.sr-head img { width: 84px; height: 84px; flex: none; }
.sr-head h2 { font-family: var(--font-head); font-size: 26px; text-transform: uppercase; margin: 2px 0 4px; }
.sr-big b { font-family: var(--font-head); font-size: 30px; color: var(--gold); }
.sr-log tr.sr-post td { background: rgba(255,197,47,.06); }
@media (max-width: 600px) { .sr-head { flex-direction: column; align-items: flex-start; } .sr-head img { width: 64px; height: 64px; } }
.nav-group:last-of-type > .nav-menu { left: auto; right: 0; }

/* ---------- Results by season ---------- */
.ss-season { padding: 14px 16px; margin-bottom: 14px; }
.ss-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.ss-year { font-family: var(--font-head); font-size: 26px; color: var(--gold); }
.ss-rec { font-family: var(--font-head); font-size: 22px; margin-right: 6px; }
.ss-foot { margin-top: 8px; }
.ss-tbl tr.ss-exh td { opacity: .6; }
.ss-tbl tr.ss-up td { color: var(--text-2); }
/* ---------- Update banner & toast ---------- */
.update-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--navy-700); border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; }
.update-bar button { background: var(--gold); color: var(--navy-900); border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.update-bar .update-later { background: none; color: var(--text-2); font-size: 18px; padding: 4px 8px; margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .3s; z-index: 96; background: var(--surface-3); color: var(--text); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .update-bar { flex-wrap: wrap; } }

/* ---------- Honors ---------- */
.hn-year { padding: 12px 16px; margin-bottom: 10px; }
.hn-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.hn-yr { font-family: var(--font-head); font-size: 22px; color: var(--gold); }
.hn-names { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hn-name { font-size: 14px; }
.hn-tbl td { padding: 6px 8px; }
/* Home: week mood banner + GO PACK GO! */
.mood { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 20px; border-radius: var(--radius); color: inherit; text-decoration: none; }
.mood img { width: 52px; height: 52px; flex: none; }
.mood > div { flex: 1; min-width: 0; }
.mood-title { font-family: var(--font-head); font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.mood-next { font-family: var(--font-head); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.mood-go { flex: none; font-size: 30px; }
.mood img.mood-opp { width: 1.6em; height: 1.6em; display: inline-block; vertical-align: -0.45em; margin-left: .2em; }
.mood-cheese { font-size: 26px; letter-spacing: 2px; max-width: 45%; text-align: right; line-height: 1.2; }
.mood-win { background: linear-gradient(100deg, var(--gold) 0%, #ffd65c 60%, var(--gold) 100%); color: var(--navy-900); box-shadow: 0 6px 24px rgba(255,197,47,.25); }
.mood-win .mood-next { color: rgba(10,20,40,.8); }
.mood-loss { background: var(--surface-2); border: 1px solid var(--border); }
.mood-loss .mood-go { font-size: 14px; font-weight: 600; color: var(--gold); }
.gpg { position: relative; overflow: hidden; margin-top: 14px; padding: 14px 10px; border-radius: var(--radius-sm); background: radial-gradient(ellipse at center, rgba(255,197,47,.16), transparent 70%); display: flex; align-items: center; justify-content: center; gap: 12px; }
.gpg img { width: 40px; height: 40px; position: relative; z-index: 1; }
.gpg span { position: relative; z-index: 1; font-family: var(--font-head); font-weight: 700; font-size: 38px; letter-spacing: .04em; color: var(--gold); text-shadow: 0 2px 0 var(--navy-900), 0 0 18px rgba(255,197,47,.35); animation: gpg-pop 1.6s ease-in-out infinite alternate; }
.gpg-confetti { position: absolute; inset: 0; pointer-events: none; }
.gpg-confetti i { position: absolute; top: -10px; width: 6px; height: 10px; border-radius: 2px; opacity: .9; animation: gpg-fall linear infinite; }
@keyframes gpg-fall { to { transform: translateY(110px) rotate(540deg); opacity: 0; } }
@keyframes gpg-pop { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .gpg span, .gpg-confetti i { animation: none; } .gpg-confetti { display: none; } }
@media (max-width: 600px) { .mood { padding: 12px 14px; gap: 12px; } .mood img { width: 40px; height: 40px; } .mood-title { font-size: 22px; } .mood-next { font-size: 16px; } .mood-go:not(.mood-cheese) { display: none; } .mood-cheese { font-size: 18px; } .gpg span { font-size: 28px; } }

/* A grid cell may not grow past its track: wide tables inside a cell scroll in their .table-wrap instead of widening the page */
.grid > * { min-width: 0; }

/* Player links (playerLink in ui.js): a quiet dotted underline says "tap for the player card" without shouting in dense tables */
.plink { color: inherit; text-decoration: underline dotted rgba(255,197,47,.55); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.plink:hover, .plink:focus-visible { color: var(--gold); text-decoration-style: solid; }
.player-head .pl-team { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; margin-top: 4px; }
.player-head .pl-team img { width: 22px; height: 22px; border: 0; border-radius: 0; background: none; }
.pl-note { margin: 0 0 14px; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; }
.pl-awards { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }

/* Home game cards: records, the pre/post-game blurb and the leaders grid */
.matchup .team .rec { min-height: 34px; line-height: 1.35; }
.matchup .team .rec b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.matchup .team .rec span { display: block; }
.g-notes:empty { display: none; }
.blurb { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.blurb b { color: var(--text); }
.gl-title { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; }
.gl { display: grid; gap: 6px; }
.gl-row { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.gl-row:first-child { border-top: 0; }
.gl-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.gl-p { min-width: 0; font-size: 14px; font-weight: 600; }
.gl-p.l { text-align: right; }
.gl-p small { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); }
.g-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .gl-row { grid-template-columns: 1fr 58px 1fr; gap: 6px; } .gl-cat { font-size: 10px; letter-spacing: .03em; } }

/* Game center: ESPN's recap story */
.recap p { margin: 0 0 12px; line-height: 1.6; color: var(--text-2); }
.recap p:first-of-type { color: var(--text); }
.recap details summary { cursor: pointer; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.blurb > b:first-child { display: block; margin-bottom: 2px; }
.gl-head { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 8px; align-items: center; margin-bottom: 4px; font-family: var(--font-head); font-size: 15px; letter-spacing: .04em; }
.gl-head span { display: flex; align-items: center; gap: 6px; }
.gl-head span:first-child { flex-direction: row-reverse; justify-content: flex-start; }   /* reversed: start is the right edge, so the away team sits next to the middle column */
.gl-head img { width: 24px; height: 24px; }

/* ---------- Install page (from Packers Hub) ---------- */
.nav a.nav-install { color: var(--gold); }
.nav a.nav-install.active { color: var(--navy-900); }
.install-mine { border-color: var(--gold); }
.install-mine h3 { font-size: 19px; }
.install-steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.install-steps li::marker { color: var(--gold); font-weight: 700; }
.install-note { margin: 10px 0 0; }
.key { display: inline-block; min-width: 22px; padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); font-family: var(--font-body); font-size: 13px; text-align: center; line-height: 20px; }
.install-qr { text-align: center; }
.install-qr img { display: inline-block; width: 180px; height: 180px; border-radius: 10px; background: #fff; padding: 6px; margin-top: 6px; }
.install-qr h3 { margin-bottom: 4px; }
details.collapsible .install-steps { font-size: 14px; }

/* ==========================================================================
   Baseball pieces (Brewers Hub only)
   ========================================================================== */
.gold { color: var(--gold); }
.eyebrow { color: var(--gold); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.tlogo { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* Bases diamond + outs (ui.js diamond()) */
.diamond { position: relative; display: inline-block; width: 30px; height: 22px; vertical-align: middle; flex: none; }
.diamond i { position: absolute; width: 9px; height: 9px; border: 1.5px solid var(--text-2); transform: rotate(45deg); background: transparent; }
.diamond i.on { background: var(--gold); border-color: var(--gold); }
.diamond .b2 { left: 10.5px; top: 1px; } .diamond .b3 { left: 2px; top: 9.5px; } .diamond .b1 { left: 19px; top: 9.5px; }
.outs { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.outs i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--text-2); }
.outs i.on { background: var(--danger); border-color: var(--danger); }
.live-sit { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; }
.live-sit .diamond { transform: scale(1.5); margin: 0 10px; }
.live-sit.big { justify-content: flex-start; }
.live-sit.big .diamond { transform: scale(2.1); margin: 14px 26px 14px 18px; }
.live-sit .st { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; color: var(--gold); }
.live-card { border-color: #7f1d1d; }
.sb-dd .diamond { transform: scale(.8); margin: -4px -2px; }
.sb-team { grid-template-columns: 22px 1fr auto auto; }
.sb-rec { font-size: 11px; }
.live-bar .diamond i { border-color: #fff; }

/* Pennant / World Series banner on the home page */
.pennant { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, #0d1d3b 60%, #172f5c 100%); border: 2px solid var(--gold); box-shadow: 0 10px 34px rgba(255,197,47,.18); }
.pennant-photo { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.pennant-body { padding: 22px 104px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .pennant-body { padding: 18px 16px; } .pennant-title { padding-right: 64px; } }
.pennant-title { font-size: clamp(30px, 4vw, 46px); color: var(--gold); text-transform: uppercase; line-height: 1; }
.pennant-next { margin: 0; font-size: 15px; color: var(--text); }
.pennant-road { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.pennant .countdown { justify-content: flex-start; }
.pennant-pin { position: absolute; right: 14px; top: 14px; width: 74px; height: 74px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
@media (max-width: 760px) { .pennant { grid-template-columns: 1fr; } .pennant-photo { min-height: 0; aspect-ratio: 3/2; } .pennant-pin { width: 56px; height: 56px; } }

/* Highlights (game.js highlightCards) */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hl-card { display: flex; flex-direction: column; gap: 6px; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; color: inherit; text-align: left; }
.hl-card:hover { border-color: var(--surface-3); background: var(--surface-2); }
.hl-img { position: relative; display: block; aspect-ratio: 16/9; background: #000; }
.hl-img img, .hl-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-img .play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid rgba(255,255,255,.7); }
.hl-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.hl-t { padding: 0 10px 10px; font-size: 13px; font-weight: 600; line-height: 1.35; }

/* Game center */
.linescore th, .linescore td { padding: 8px 7px; }
.linescore .ls-r { font-weight: 700; color: var(--gold); }
.box-team { margin-bottom: 12px; }
.box-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; }
.box-head img { width: 28px; height: 28px; }
.tbl.box td, .tbl.box th { padding: 7px 9px; }
.tbl.box td.sub-in { padding-left: 22px; }
.tbl.box tr.tot td { border-top: 1px solid var(--border); }
.box-notes { padding: 8px 16px 12px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.box-notes b { display: block; color: var(--text); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 4px 0 2px; }
.pbp-wrap { padding: 0 16px 12px; }
.pbp-h { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 700; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.pbp-h img { width: 20px; height: 20px; }
.pbp { font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.pbp b { color: var(--text); margin-right: 4px; }
.pbp.scoring { color: var(--text); }
.pbp-sc { font-family: var(--font-head); color: var(--gold); margin-left: 6px; }
.probs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.prob { display: flex; gap: 12px; align-items: center; }
.prob img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.prob .nm { font-weight: 700; font-size: 16px; }
@media (max-width: 520px) { .probs { grid-template-columns: 1fr; } }
.lu-h { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 6px 0; }
.lineup { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.8; }
.recap h3 { font-size: 20px; margin-bottom: 6px; }
.gl-p small { display: block; }

/* Postseason bracket */
.bracket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.br-col { display: flex; flex-direction: column; gap: 10px; }
.br-h { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.br-series { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.br-series.mine { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.br-team { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 3px 0; font-weight: 600; }
.br-team img { width: 22px; height: 22px; }
.br-team b { font-family: var(--font-head); font-size: 18px; }
.br-team.won { color: #fff; } .br-team.won b { color: var(--gold); }
.br-team.lost { opacity: .5; }
.br-status { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.br-games { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; }
.br-feature .br-series { border: 0; padding: 0; background: none; box-shadow: none; }
.br-feature .br-team { font-size: 20px; } .br-feature .br-team img { width: 34px; height: 34px; } .br-feature .br-team { grid-template-columns: 34px 1fr auto; }
.br-feature .br-team b { font-size: 30px; }
.br-ws { max-width: 420px; margin: 16px auto 0; }
.ws-banner { min-height: 240px; }
@media (max-width: 760px) { .bracket { grid-template-columns: 1fr; } }

/* Postseason history */
.ps-year { padding: 16px; }
.ps-year.pennant-year { border-color: var(--gold); }
.ps-round { margin-top: 12px; }
.ps-rh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.ps-rh img { width: 26px; height: 26px; }
.ps-games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ps-g { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: inherit; font-size: 12px; min-width: 112px; }
.ps-g:hover { text-decoration: none; border-color: var(--surface-3); }
.ps-g b { font-family: var(--font-head); font-size: 17px; }
.ps-g.w b { color: var(--win); } .ps-g.l b { color: var(--loss); }

/* Depth chart on a ballfield */
.field { position: relative; display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border);
  grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: "lf lf cf cf rf rf" ". ss ss 2b 2b ." "3b 3b . . 1b 1b" ". dh c c . .";
  background: radial-gradient(ellipse at 50% 100%, #8b5a2b 0 16%, transparent 16.5%), radial-gradient(ellipse at 50% 110%, #2f7a3a 0 70%, #1f5a2a 70.5% 100%); }
.dc-pos { background: rgba(10,20,40,.88); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.dc-pos ol { margin: 4px 0 0; padding-left: 18px; }
.dc-pos li { margin: 2px 0; color: var(--text-2); } .dc-pos li.starter { color: #fff; font-weight: 700; }
.dc-lbl { font-family: var(--font-head); color: var(--gold); font-size: 18px; } .dc-lbl small { font-family: var(--font-body); color: var(--muted); font-size: 11px; margin-left: 6px; }
.dc-LF { grid-area: lf; } .dc-CF { grid-area: cf; } .dc-RF { grid-area: rf; } .dc-SS { grid-area: ss; } .dc-2B { grid-area: 2b; } .dc-3B { grid-area: 3b; } .dc-1B { grid-area: 1b; } .dc-C { grid-area: c; } .dc-DH { grid-area: dh; }
.dc-pitchers { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .field { grid-template-columns: 1fr 1fr; grid-template-areas: "lf rf" "cf cf" "ss 2b" "3b 1b" "c dh"; } }

/* Standings */
.clinch { display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(255,197,47,.12); border-radius: 4px; padding: 0 5px; }
.tbl tr.wc-line td { border-bottom: 2px dashed var(--gold); }

/* Leaderboards (all-time) */
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lb-list li:last-child { border-bottom: 0; }
.lb-list li.first b { color: var(--gold); font-size: 18px; }
.lb-list .lrank { color: var(--muted); font-size: 12px; text-align: right; }
.lb-list b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.leader-card details summary { cursor: pointer; color: var(--gold); margin-top: 6px; }

/* Retired numbers */
.ret-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ret-card { display: flex; gap: 14px; align-items: flex-start; }
.ret-num { flex: none; width: 74px; height: 86px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 44px; font-weight: 700;
  color: var(--navy-900); background: var(--gold); border-radius: 10px 10px 30px 30px; box-shadow: inset 0 0 0 3px var(--navy-900), 0 0 0 2px var(--gold); }
.ret-card .nm { font-weight: 700; font-size: 17px; }

/* Trivia */
.tv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.tv-o { text-align: left; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.tv-right { background: rgba(74,222,128,.2) !important; border-color: var(--win) !important; color: #fff !important; }
.tv-wrong { background: rgba(239,68,68,.2) !important; border-color: var(--danger) !important; }

/* Misc */
.farm-card .player-cell img { width: 44px; height: 44px; }
.inj-card .player-cell img { width: 48px; height: 48px; }
.tx-date { font-size: 12px; color: var(--muted); padding-top: 2px; }
.tx-row { grid-template-columns: 72px 1fr; }
.tx-row img { width: 32px; height: 32px; }
.pl-h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 16px 0 6px; }
.pl-tiles .tile { padding: 10px 12px; } .pl-tiles .tile .value { font-size: 24px; }
.wx-day.wx-game { outline: 2px solid var(--gold); }
.next-meta > div { min-width: 120px; }
.coach-card .player-cell img { width: 52px; height: 52px; }
.sched-row.post-row { border-left: 3px solid var(--gold); }
.mood-opp { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: -0.35em; }
.hero > img { width: 96px; height: auto; max-height: 104px; object-fit: contain; }
.brand img { object-fit: contain; }
.matchup .team img { object-fit: contain; }

.banner { background-position: center 30%; }
.poster-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.poster-row img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
@media (max-width: 600px) { .poster-row { grid-template-columns: 1fr 1fr; } .poster-row img:last-child { display: none; } }

/* ---------- Alerts (#/alerts) ---------- */
.alert-types { display: grid; gap: 10px; margin: 16px 0; }
.alert-type { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.alert-type input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.alert-type b { display: block; margin-bottom: 2px; }
.alert-type .muted { display: block; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.alert-steps { margin: 10px 0 16px; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2, inherit); }
.alert-steps li { padding-left: 4px; line-height: 1.5; }

/* Home: nudge to #/alerts under the game cards */
.alerts-strip { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.alerts-strip:hover { background: var(--surface-2); text-decoration: none; }
.alerts-strip .ic { font-size: 22px; line-height: 1; }
.alerts-strip .txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.alerts-strip .go { color: var(--gold); font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .alerts-strip { align-items: flex-start; } .alerts-strip .go { display: none; } }
.alerts-tabs { margin: 0 0 16px; }
.alert-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; border-left: 4px solid var(--gold); }
.alert-day { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.alert-list .alert-item { display: block; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.alert-list .alert-item:first-child { border-top: 0; }
.alert-list .alert-item:hover { background: var(--surface-2); text-decoration: none; }
.alert-item .t { font-weight: 600; }
.alert-item .b { color: var(--text-2); font-size: 14px; margin-top: 2px; line-height: 1.45; }
.alert-item .m { margin-top: 4px; }
