/* Postseason Sports. Phone first; light and dark themes. */
:root {
  --sponsor-h: 36px;
  --bg: #f4f5f9;
  --card: #ffffff;
  --ink: #161827;
  --muted: #5b5f73;
  --line: #dcdfe8;
  --accent: #3730a3;
  --accent-ink: #ffffff;
  --chip: #eceef5;
  --broadcast: #1d4ed8;
  --cable: #334155;
  --streaming: #7c3aed;
  --new: #c2410c;
  --live: #dc2626;
  --rank: #a16207;
  --gold: #b45309;
  --big: #c2410c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f17;
    --card: #171927;
    --ink: #e7e8f0;
    --muted: #9a9db3;
    --line: #2a2d42;
    --accent: #a5b4fc;
    --accent-ink: #14133a;
    --chip: #22253a;
    --broadcast: #60a5fa;
    --cable: #cbd5e1;
    --streaming: #c4b5fd;
    --new: #fb923c;
    --live: #f87171;
    --rank: #facc15;
    --gold: #d97706;
    --big: #fb923c;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
button, select, input { font: inherit; color: inherit; }
main { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }

.devbar { background: #b91c1c; color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 4px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 980px; margin: 0 auto; padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 17px; }
.brand b { color: var(--accent); }
.brand .logo { font-size: 22px; }
header.site nav { display: flex; gap: 14px; font-size: 14px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

/* Controls */
.controls {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: 8px 0 4px; border-bottom: 1px solid var(--line);
}
.controls .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.seg { display: inline-flex; align-items: center; background: var(--chip); border-radius: 10px; padding: 3px; }
.seg button {
  border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted);
}
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.seglabel { font-size: 12px; color: var(--muted); padding: 0 6px 0 8px; }
.filters select, .filters input[type=search] {
  height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 0 8px; max-width: 100%;
}
.filters input[type=search] { width: 150px; }
.check { display: inline-flex; gap: 5px; align-items: center; font-size: 14px; color: var(--muted); }
.linkish { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.count { margin: 0; font-size: 12px; color: var(--muted); }

/* Groups and cards */
.group h2 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  margin: 20px 0 8px; display: flex; justify-content: space-between; align-items: baseline;
}
.gcount { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; }
.game {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.game.live { border-color: var(--live); }
.g-time { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.g-time .t { font-weight: 700; font-size: 15px; white-space: nowrap; }
.g-time .tz, .g-time .dayabbr, .g-time .clock { font-size: 11px; color: var(--muted); }
.g-time .dayabbr { text-transform: uppercase; font-weight: 600; }
.g-time .final { font-size: 13px; color: var(--muted); font-weight: 600; }
.livetag { color: var(--live); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.team { display: flex; align-items: center; gap: 6px; min-height: 26px; min-width: 0; }
.team img, .team .nologo { width: 24px; height: 24px; flex: none; object-fit: contain; }
.team .at { color: var(--muted); font-size: 12px; }
.team .tname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .rank { font-size: 11px; font-weight: 700; color: var(--rank); }
.team .conf { font-size: 11px; color: var(--muted); background: var(--chip); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.team .score { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 8px; }
.team.won .tname, .team.won .score { color: var(--accent); }
.g-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
.g-meta .note { color: var(--ink); font-weight: 600; }
.g-tv { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.net {
  border: 1px solid currentColor; background: transparent; border-radius: 7px; padding: 3px 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.net-broadcast { color: var(--broadcast); }
.net-cable { color: var(--cable); }
.net-streaming { color: var(--streaming); }
.net.tba { color: var(--muted); border-style: dashed; font-weight: 500; cursor: default; }
.net.hit { background: var(--chip); }
.new {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #fff; background: var(--new); border-radius: 4px; padding: 0 4px; vertical-align: 1px;
}
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

footer.site { max-width: 980px; margin: 0 auto; padding: 20px 16px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* Prose pages */
.prose { max-width: 680px; }
.prose h1 { font-size: 26px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .game { grid-template-columns: 70px 1fr; gap: 4px 10px; }
  .g-tv { grid-column: 2; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .team .conf { display: none; }
  .filters select { flex: 1 1 45%; min-width: 0; }
  .filters input[type=search] { flex: 1 1 45%; width: auto; }
  .weektitle h1 { font-size: 22px; }
  .brand { font-size: 15px; }
  header.site nav a[href="/"] { display: none; }
  /* The full filter bar is too tall to pin on a phone. */
  .controls { position: static; }
}

/* Feedback panel (templates/partials/feedback.php, assets/js/feedback.js) and the /feedback board.
   Floating pill bottom-right; icon only on phones. Colors come from the tokens above, so dark mode follows. */
.g-fix {
  border: 0; background: none; padding: 2px 0; margin: 0; cursor: pointer;
  font-size: 11px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 2px; white-space: nowrap;
}
.g-fix:hover, .g-fix:focus-visible { color: var(--ink); }
.fb-launch {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); -webkit-tap-highlight-color: transparent;
}
.fb-launch:hover { border-color: var(--accent); }
.fb-launch svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
footer.site { padding-bottom: 80px; }
@media (max-width: 640px) {
  .fb-launch { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 44px; height: 44px; padding: 0; justify-content: center; opacity: .94; }
  .fb-launch .fb-lbl { display: none; }
}
html.fb-open { overflow: hidden; }
html.fb-open .fb-launch { visibility: hidden; }
.fb-overlay[hidden], .fb-overlay [hidden] { display: none !important; }
.fb-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.fb-sheet {
  width: 100%; max-width: 460px; max-height: min(92vh, 720px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.fb-top { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; position: sticky; top: -12px; background: var(--card); padding: 6px 0; z-index: 1; }
.fb-top h2 { font-size: 19px; margin: 0; flex: 1; min-width: 0; }
.fb-back, .fb-x {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); color: var(--muted);
  font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none;
}
.fb-back:hover, .fb-x:hover { color: var(--ink); }
.fb-lead { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.fb-muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.fb-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin: 0 0 8px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.fb-choice:hover, .fb-choice:focus-visible { border-color: var(--accent); }
.fb-choice strong { display: block; font-size: 15px; }
.fb-choice small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.fb-cic { width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--accent); }
.fb-cic svg { width: 20px; height: 20px; }
.fb-foot { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.fb-foot a { font-weight: 600; }
.fb-step .fb-l { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 5px; }
.fb-step .fb-l:first-child { margin-top: 0; }
.fb-step input:not([type=hidden]), .fb-step textarea {
  display: block; width: 100%; font-family: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
}
.fb-step textarea { resize: vertical; }
.fb-step input:focus, .fb-step textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip { border: 1px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 13px; cursor: pointer; }
.fb-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fb-game { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--chip); font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.fb-game strong { color: var(--ink); font-size: 15px; }
.fb-ctx { margin: 12px 0; font-size: 12px; color: var(--muted); }
.fb-ctx summary { cursor: pointer; }
.fb-ctx pre {
  white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); max-height: 160px; overflow: auto; margin: 6px 0 0;
}
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-send, .fb-btn {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center;
}
.fb-send { width: 100%; margin-top: 16px; }
.fb-send:disabled { opacity: .6; cursor: default; }
.fb-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.fb-done { text-align: center; padding: 8px 0 2px; }
.fb-done h3 { font-size: 21px; margin: 0 0 8px; }
.fb-done-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fb-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 110;
  max-width: min(92vw, 420px); padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.fb-toast.on { opacity: 1; transform: translate(-50%, 0); }
.fb-toast.err { background: var(--live); color: #fff; }
@media (max-width: 640px) {
  .fb-overlay { align-items: flex-end; padding: 0; }
  .fb-sheet { max-width: none; max-height: 94vh; border-radius: 16px 16px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-bottom: 0; }
}
@media print { .fb-launch, .fb-overlay, .fb-toast, .g-fix { display: none !important; } }
/* The /feedback board */
.fb-board .fb-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 14px 0 8px; }
.fb-board .fb-cta .fb-choice { margin: 0; background: var(--card); }
.fb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 10px; }
.fb-bar h2 { margin: 0; font-size: 19px; }
.fb-sort { padding: 6px 11px; border-radius: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.fb-sort.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.fb-list { display: flex; flex-direction: column; gap: 8px; }
.fb-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fb-item-main { flex: 1; min-width: 0; }
.fb-item h3 { font-size: 16px; margin: 0 0 4px; overflow-wrap: anywhere; }
.fb-item p { margin: 0 0 6px; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.fb-meta { font-size: 12px; color: var(--muted); }
.fb-votebtn {
  display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 6px 4px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--chip); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; flex: none;
}
.fb-votebtn [data-votes] { font-size: 17px; color: var(--ink); }
.fb-votebtn:hover:not(:disabled) { border-color: var(--accent); }
.fb-votebtn:disabled { cursor: default; }
.fb-votebtn.voted { border-color: var(--accent); color: var(--accent); }

/* Sponsor banner (top and bottom of every page) */
.sponsor {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  padding: 8px 16px; background: #0b2e1a; color: #e7f5ec; text-decoration: none; font-size: 13px; text-align: center;
}
.sponsor b { color: #fff; font-size: 14px; }
/* The top banner stays in view while scrolling; the sticky filter bar sits just under it. */
.sponsor-top { position: sticky; top: 0; z-index: 30; height: var(--sponsor-h); flex-wrap: nowrap; overflow: hidden; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
@media (max-width: 900px) { .sponsor-top .sponsor-pitch { display: none; } }
.controls { top: var(--sponsor-h) !important; }
.sponsor-label { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; opacity: .75; }
.sponsor-pitch { opacity: .9; }
.sponsor-go { font-weight: 700; color: #86efac; }
.sponsor:hover .sponsor-go { text-decoration: underline; }
@media (max-width: 640px) { .sponsor-pitch { display: none; } }


/* ------------------------------------------------------------------ Postseason Sports additions */
.brand small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.chip {
  height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 0 12px;
  cursor: pointer; font-size: 14px; white-space: nowrap; flex: none;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.lgchip[aria-pressed="true"] { background: var(--lg); border-color: var(--lg); color: #fff; }
.controls .sports { gap: 6px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.switch input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Hero */
.hero { text-align: center; margin: 6px 0 12px; }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.hero .sub { margin: 6px auto 4px; color: var(--muted); max-width: 640px; }
.hero .stats { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.hero .stats .livetag { font-size: 13px; }
.nowon { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 13px; color: var(--muted); }
.nowon a {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--lg); color: var(--ink); text-decoration: none; font-weight: 600;
}
.nowon a:hover { border-color: var(--lg); }

/* Game card */
.game { border-left: 4px solid var(--lg, var(--line)); }
.game.big { box-shadow: 0 0 0 1px var(--big), var(--shadow); }
.g-main { min-width: 0; }
.g-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; margin-bottom: 4px; }
.lg {
  font-weight: 800; font-size: 11px; letter-spacing: .03em; color: #fff; background: var(--lg); border-radius: 5px;
  padding: 1px 6px; text-decoration: none; white-space: nowrap;
}
.comp { color: var(--muted); font-weight: 600; }
.round { font-weight: 700; color: var(--ink); }
.tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 5px; }
.title-tag { background: var(--gold); color: #fff; }
.team .seed { font-size: 11px; font-weight: 700; color: var(--rank); min-width: 12px; text-align: right; }
.team .rec { font-size: 11px; color: var(--muted); white-space: nowrap; }
.team .swins {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px;
  padding: 0 5px; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.team .swins + .score { margin-left: 0; }
.team .swins::before { content: "W "; font-weight: 500; opacity: .7; }
.g-series { margin: 5px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.slabel { color: var(--muted); }
.sline { font-weight: 700; }
.stakes { margin: 3px 0 0; font-size: 13px; font-weight: 700; color: var(--big); }
.stakes::before { content: "🔥 "; }
.g-tv .net-local { opacity: .75; border-style: dashed; }
.net small { font-size: 10px; font-weight: 600; opacity: .8; }
.g-acts { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.g-cal { color: var(--muted); display: inline-flex; padding: 2px; }
.g-cal:hover { color: var(--ink); }
.game.focus { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Hide scores (spoiler-free) */
html.noscores .spoil { display: none !important; }
html.noscores .team.won .tname { color: inherit; }
html.noscores .g-series .slabel::after { content: " · standing hidden"; }

/* Series view */
.sgroup h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 0 8px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.series {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--lg); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow);
}
.series.live { border-color: var(--live); border-left-color: var(--lg); }
.series.done { opacity: .8; }
.series .bestof { margin-left: auto; color: var(--muted); }
.steam { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.steam img, .steam .nologo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.steam .tname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.steam.ahead .tname { color: var(--accent); }
.steam .seed { font-size: 11px; font-weight: 700; color: var(--rank); }
.pips { display: inline-flex; gap: 3px; margin-left: auto; }
.pips i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line); }
.pips i.on { background: var(--lg); border-color: var(--lg); }
.steam .swins { font-size: 20px; font-weight: 800; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.series .sline { margin: 6px 0 0; font-size: 14px; }
.series .stakes { font-size: 12px; }
.snext { margin: 6px 0 0; font-size: 13px; }
.snext .livetag { font-size: 12px; margin-right: 4px; }
html.noscores .series .snext::before { content: ""; }

/* Postseason calendar */
.calendar { margin: 34px 0 10px; }
.calendar h2 { font-size: 19px; margin: 0 0 4px; }
.calendar ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 14px; }
.calendar li {
  display: grid; grid-template-columns: 26px 1fr auto; grid-template-areas: "ic name sub" "ic when sub"; align-items: center; column-gap: 8px;
  padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--lg); border-radius: 10px;
}
.calendar li .ic { grid-area: ic; font-size: 18px; }
.calendar .cal-name { grid-area: name; font-weight: 600; }
.calendar .cal-name a { color: var(--ink); text-decoration: none; }
.calendar .cal-when { grid-area: when; font-size: 12px; color: var(--muted); }
.calendar .cal-sub { grid-area: sub; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.calendar li.on { border-color: var(--lg); }
.nowtag { color: var(--live); }

.prose h2 { font-size: 19px; margin-top: 26px; }

@media (max-width: 640px) {
  .game { grid-template-columns: 64px minmax(0, 1fr); }
  .g-tv { grid-column: 1 / -1; }
  .g-acts { margin-left: auto; }
  .team .rec { display: none; }
  .hero h1 { font-size: 21px; }
  .brand small { display: none; }
  .controls .sports { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; }
  .controls .sports::-webkit-scrollbar { display: none; }
  .sgrid, .calendar ul { grid-template-columns: 1fr; }
}

/* Bracket slot with neither team known yet */
.game.tbd { opacity: .72; padding-top: 6px; padding-bottom: 6px; }

/* Bracket view (templates/partials/bracket.php): sides stacked, each a row of round columns that scrolls sideways
   on narrow screens; matchups spread evenly down a column so a later round sits between the ones feeding it. */
.bracket { margin: 18px 0 26px; }
.bracket h2 { font-size: 18px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bracket h2 .lg { font-size: 11px; }
.bracket h2 .livetag { font-size: 12px; }
.bblock { margin: 10px 0 16px; }
.bblock h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.bcols {
  display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.bcol { flex: 0 0 214px; display: flex; flex-direction: column; scroll-snap-align: start; }
.bcol h4 { font-size: 12px; margin: 0 0 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmatches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.bm {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--lg); border-radius: 9px;
  padding: 5px 8px; font-size: 13px; box-shadow: var(--shadow); position: relative;
}
.bm.live { border-color: var(--live); border-left-color: var(--lg); }
.bm.big { box-shadow: 0 0 0 1px var(--big), var(--shadow); }
.bm.dim { opacity: .35; }
.bm-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.bt { display: flex; align-items: center; gap: 5px; min-height: 22px; min-width: 0; }
.bt img, .bt .nologo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.bt .seed { font-size: 10px; font-weight: 700; color: var(--rank); min-width: 10px; text-align: right; }
.bt .tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bt.tbd .tname { color: var(--muted); }
.bt.won .tname, .bt.won .bv { font-weight: 800; color: var(--accent); }
.bm.done .bt:not(.won) { opacity: .6; }
.bt .bv { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 6px; }
.bm-foot { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 11px; color: var(--muted); margin-top: 2px; border-top: 1px dashed var(--line); padding-top: 3px; }
.bm-foot a { color: var(--muted); text-decoration: none; }
.bm-foot a:hover { color: var(--accent); text-decoration: underline; }
.bm-foot .bof { font-weight: 700; }
.bm-foot .livetag { font-size: 11px; }
html.noscores .bt.won .tname { color: inherit; font-weight: inherit; }
html.noscores .bm.done .bt:not(.won) { opacity: 1; }
@media (max-width: 640px) {
  .bcols { margin: 0 -16px; padding: 2px 16px 8px; }
  .bcol { flex-basis: 196px; }
}

/* Game pages, breadcrumbs, footer league links */
.crumbs { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.crumbs a { color: var(--muted); }
.gamepage h1 { font-size: 26px; margin: 0; line-height: 1.2; }
.gp-what { margin: 4px 0 12px; font-weight: 700; color: var(--muted); }
.gamepage .group h2 { display: none; }
.gp-facts { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 16px 0; max-width: 720px; }
.gp-facts dt { font-weight: 700; color: var(--muted); }
.gp-facts dd { margin: 0; }
.gp-zone { display: inline-block; margin-right: 12px; font-variant-numeric: tabular-nums; }
.gp-series { padding-left: 18px; }
.gp-series li { margin-bottom: 6px; }
.gp-series li.cur { font-weight: 700; }
a.round { color: var(--ink); text-decoration: none; }
a.round:hover { text-decoration: underline; }
.footleagues { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footleagues a { color: var(--muted); }
@media (max-width: 640px) { .gp-facts { grid-template-columns: 1fr; gap: 2px; } .gp-facts dd { margin-bottom: 8px; } .gamepage h1 { font-size: 21px; } }
