:root {
  --bg: #f3f2ee;
  --panel: #ffffff;
  --ink: #15171a;
  --muted: #5d636b;
  --faint: #8a9099;
  --line: #e4e2db;
  --line-strong: #cfccc3;
  --hover: #f5f4f0;
  --accent: #1a4fd6;
  --accent-soft: #e6edfd;
  --injury: #b3261e;
  --injury-soft: #fbe9e7;
  --transaction: #1259c3;
  --transaction-soft: #e5effc;
  --usage: #6a3fc4;
  --usage-soft: #efe9fc;
  --star: #c98a00;
  --warn: #9a5b00;
  --warn-soft: #fdf1d8;
  --win: #18794e;
  --loss: #b3261e;
  --badge-ring: transparent;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05);
  --radius: 10px;
  --header: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --panel: #171a1d;
    --ink: #e9ebee;
    --muted: #a0a7b0;
    --faint: #737b85;
    --line: #262a2f;
    --line-strong: #363b42;
    --hover: #1d2125;
    --accent: #8fb0ff;
    --accent-soft: #1b2743;
    --injury: #ff8f85;
    --injury-soft: #3a1b18;
    --transaction: #8ab8ff;
    --transaction-soft: #172a45;
    --usage: #c0a4ff;
    --usage-soft: #2a1f47;
    --star: #f0b429;
    --warn: #f2bd5c;
    --warn-soft: #3a2c10;
    --win: #5fd39b;
    --loss: #ff8f85;
    --badge-ring: rgba(255, 255, 255, .22);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* beats any display rule on the same element */

html {
  overflow-x: clip; scroll-padding-top: calc(var(--header) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
code, kbd { font: 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; }
code { background: var(--hover); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Top bar */

.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--header);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand { font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.brand span { color: var(--faint); margin-left: 5px; font-weight: 600; }
.brand:hover { color: inherit; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--hover); }

.search { position: relative; margin-left: auto; width: 280px; }
.search input {
  width: 100%; height: 32px; padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; background: var(--panel); }
.search kbd { position: absolute; right: 7px; top: 7px; pointer-events: none; }
.search input:focus + kbd { display: none; }
.search-results {
  position: absolute; top: 38px; left: 0; right: 0;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 4px; max-height: 60vh; overflow: auto;
}
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 5px; }
.search-results a span { color: var(--faint); font-size: 12px; white-space: nowrap; }
.search-results a:hover, .search-results a.is-active { background: var(--accent-soft); color: var(--ink); }
.search-results .search-none { padding: 7px 9px; color: var(--faint); }

.fresh { font-size: 12px; color: var(--faint); white-space: nowrap; }
.fresh::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--win); margin-right: 6px; }
.fresh.is-stale { color: var(--warn); }
.fresh.is-stale::before { background: var(--warn); }

/* Who is signed in, and the way to leave feedback (a word on desktop, a speech-bubble icon on phones) */

.who-feedback, .who-name { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.who-feedback:hover, .who-name:hover { background: var(--hover); color: var(--ink); }
.who-feedback[aria-current] { color: var(--accent); }
.who-feedback svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.who-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; color: var(--faint); }
@media (max-width: 760px) {
  .who-name { display: none; }
  .who-feedback { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; }
  .who-feedback svg { display: block; }
  .who-feedback span { display: none; }
}

/* Sign-in and feedback forms */

.signin { max-width: 440px; margin: 40px auto; padding: 26px 26px 22px; }
.signin h1 { font-size: 22px; margin-bottom: 4px; }
.signin .sub { color: var(--muted); margin-bottom: 18px; }
.signin-form, .feedback-form { display: grid; gap: 12px; }
.feedback-form { padding: 14px 16px 16px; }
.signin-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.signin-form input, .feedback-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 9px 11px; width: 100%;
}
.feedback-form textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.signin-form input:focus, .feedback-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; background: var(--panel); }
.chip-primary { justify-self: start; background: var(--accent); border-color: var(--accent); color: #fff; padding: 8px 18px; }
.chip-primary:hover { color: #fff; filter: brightness(1.08); }
.form-error { color: var(--loss); font-weight: 600; font-size: 13px; }
.form-ok { color: var(--win); font-weight: 600; font-size: 13px; }
.signin-notes { margin: 20px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.feedback-list li { padding: 10px 16px 12px; }
.feedback-list li + li { border-top: 1px solid var(--line); }
.feedback-list p { margin: 4px 0 0; color: var(--ink); white-space: pre-wrap; line-height: 1.45; }

/* Page scaffolding */

.page { max-width: 1180px; margin: 0 auto; padding: 22px 20px 80px; }

.dayhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; font-weight: 750; }
.sub { color: var(--muted); margin-top: 3px; }
.sub a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }

.jump { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.jump input {
  height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--panel); color: var(--ink); font: inherit;
}

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-label {
  display: flex; align-items: baseline; gap: 8px;
  padding: 11px 16px 10px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.card-label span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.none { padding: 12px 16px; color: var(--faint); }

/* Day strip */

.days { display: flex; align-items: stretch; gap: 6px; margin-bottom: 12px; }
.day {
  flex: 1; min-width: 0; padding: 7px 6px 6px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  display: grid; gap: 1px;
}
.day:hover { border-color: var(--line-strong); color: inherit; }
.day-name { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.day-num { font-size: 17px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day-count { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.day.is-current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day.is-current .day-name, .day.is-current .day-count { color: inherit; opacity: .7; }
.days-arrow {
  width: 34px; display: grid; place-items: center; font-size: 20px; line-height: 1;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--muted);
}
.days-arrow:hover { border-color: var(--line-strong); }
.days-arrow.is-off { opacity: .35; }

/* Filters */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px; }
.seg a { padding: 4px 11px; border-radius: 6px; font-weight: 600; color: var(--muted); }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--ink); color: var(--bg); }
.chip {
  padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--panel); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-right { margin-left: auto; }

/* Feed layout */

.layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 20px; align-items: start; }
.rail {
  position: sticky; top: calc(var(--header) + 12px);
  max-height: calc(100vh - var(--header) - 24px); overflow: auto;
  display: grid; gap: 9px;
}
.rail-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.rail-teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rail-team {
  position: relative; display: grid; justify-items: center; padding: 3px 0 2px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel);
}
.rail-helmet { width: 36px; height: auto; margin: 0 0 -2px; }
.rail-team span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail-team:hover { border-color: var(--faint); color: inherit; }
.rail-team.is-empty { background: transparent; color: var(--faint); }
.rail-team.is-empty .rail-helmet { opacity: .4; filter: grayscale(.6); }
.rail-team.is-fav::after { content: "★"; position: absolute; top: 1px; right: 3px; color: var(--star); font-size: 9px; line-height: 1; }
.rail-team.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rail-hint { margin-top: 6px; font-size: 12px; color: var(--faint); }

/* Team sections and stories */

.badge {
  display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 6px;
  border-radius: 5px; background: var(--team, #555b62); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 0 0 1px var(--badge-ring);
}
.helmet { position: relative; display: block; flex: none; width: 54px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.helmet img { display: block; width: 100%; height: auto; filter: contrast(1.14) saturate(1.2); }
/* A lighting pass shaped by the helmet itself: a hard specular on the crown, a
   softer reflection streak, a rim light along the back edge, and shade that
   deepens toward the jaw and facemask so the shell reads as a curved surface. */
.helmet-gloss {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: var(--src); mask-image: var(--src); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background:
    radial-gradient(28% 16% at 40% 17%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 100%),
    radial-gradient(60% 34% at 46% 24%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 75%),
    radial-gradient(40% 70% at 4% 55%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%),
    radial-gradient(75% 60% at 68% 88%, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .34) 100%);
  mix-blend-mode: normal;
}
.helmet::after {  /* floor shadow */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -5%; height: 9%; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); z-index: -1;
}
.conf-logo { height: 20px; width: auto; }
.division .card-label { display: flex; align-items: center; gap: 8px; }
.team-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; border-bottom: 1px solid var(--line); }
.team-head h2 { font-size: 16px; font-weight: 700; }
.team-count { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.team-head .star { margin-left: auto; }
.team-next { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.ribbon {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, #ffb703, #fb8500);
  color: #1a1200; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 1px 6px rgba(251, 133, 0, .4); line-height: 1.5;
}
.ribbon:hover { color: #1a1200; filter: brightness(1.08); }
.ribbon-mini { padding: 0 5px; font-size: 10px; vertical-align: 1px; }
.team-head .helmet { width: 84px; margin: -8px 0; }

.who { padding: 10px 16px 12px; }
.who + .who { border-top: 1px solid var(--line); }
.who-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.who-head .star { margin-left: -5px; }
.who-name { font-weight: 700; font-size: 14.5px; }
.who-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.who-count { margin-left: auto; color: var(--faint); font-size: 12px; }
.pos { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.who-count { white-space: nowrap; }

.des {
  display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px;
  border-radius: 4px; font-size: 11px; font-weight: 800; vertical-align: middle;
  background: var(--warn-soft); color: var(--warn);
}
.des-O, .des-D { background: var(--injury-soft); color: var(--injury); }
.des-IR { background: var(--hover); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
h1 .des { vertical-align: 4px; margin-left: 4px; }

.story { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 8px; padding: 5px 0; }
.story-time { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.story-title { font-weight: 550; line-height: 1.35; }
.story-title:visited { color: var(--muted); }
.story-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.story-summary {
  color: var(--muted); font-size: 13px; margin-top: 2px; max-width: 76ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.no-summaries .story-summary, .no-summaries .story-bullets { display: none; }
.story-bullets { margin: 4px 0 2px; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.story-bullets li::marker { color: var(--win); }
.advice-list { list-style: none; margin: 0; padding: 4px 16px 10px; }
.advice-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.advice-list li:last-child { border-bottom: 0; }
.advice-list time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 3px; }
.advice-body { display: grid; gap: 5px; min-width: 0; }
.advice-text { font-size: 15px; font-weight: 650; line-height: 1.35; }
.advice-text::before { content: "\2192  "; color: var(--win); }
.advice-story { font-size: 13px; color: var(--muted); }
.advice-source { font-size: 12px; color: var(--faint); }
.moves { margin-bottom: 14px; }
.moves-list { list-style: none; margin: 0; padding: 4px 16px 10px; }
.moves-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.moves-list li:last-child { border-bottom: 0; }
.moves-text { color: var(--muted); }
.moves-text s { color: var(--faint); }
.moves-link { margin-left: auto; font-size: 12px; color: var(--faint); }
.story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 2px; font-size: 12px; color: var(--faint); }

.tag {
  display: inline-block; margin-right: 7px; padding: 1px 6px; border-radius: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px;
}
.tag-injury { background: var(--injury-soft); color: var(--injury); }
.tag-transaction { background: var(--transaction-soft); color: var(--transaction); }
.tag-usage { background: var(--usage-soft); color: var(--usage); }

/* Matchup notes */

.notes { display: grid; gap: 5px; color: var(--muted); }
.notes li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0 8px; align-items: baseline; }
.notes .tag { justify-self: start; margin-right: 0; background: var(--hover); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.notes .tag-injury { background: var(--injury-soft); color: var(--injury); box-shadow: none; }
.notes .tag-usage, .notes .tag-role { background: var(--usage-soft); color: var(--usage); box-shadow: none; }
.notes .tag-pressure, .notes .tag-blitz, .notes .tag-run, .notes .tag-red-zone, .notes .tag-deep,
.notes .tag-position, .notes .tag-coverage { background: var(--transaction-soft); color: var(--transaction); box-shadow: none; }
.note-who { display: flex; align-items: baseline; gap: 7px; margin: 9px 0 3px; }
.note-who:first-child { margin-top: 0; }
.note-who .who-name { font-size: 13.5px; }

summary { cursor: pointer; }
.also { flex-basis: auto; }
.also[open] { flex-basis: 100%; }
.also summary { color: var(--accent); font-weight: 600; list-style: none; display: inline; }
.also summary::-webkit-details-marker { display: none; }
.also summary:hover { text-decoration: underline; }
.also ul { margin: 4px 0 2px; padding-left: 10px; border-left: 2px solid var(--line); display: grid; gap: 3px; }
.also li { color: var(--faint); }
.also li a { color: var(--muted); font-size: 13px; }
.also li a:hover { color: var(--accent); }

.mute summary { list-style: none; display: inline; color: var(--faint); opacity: 0; }
.mute summary::-webkit-details-marker { display: none; }
.mute summary:hover { color: var(--accent); text-decoration: underline; }
.story:hover .mute summary, .story:focus-within .mute summary, .mute[open] summary { opacity: 1; }
@media (hover: none) { .mute summary { opacity: 1; } }
.mute[open] { flex-basis: 100%; }
.mute-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 5px 0 3px; }
.mute-box form, .mute-add { display: flex; gap: 6px; }
.mute-box input, .mute-add input {
  height: 26px; padding: 0 8px; min-width: 0; width: 210px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 12px;
}
.mute-add { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mute-add input { flex: 1; height: 30px; font-size: 13px; }
.chip-small { padding: 3px 9px; font-size: 12px; }
.columns-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rows-sub { display: block; font-size: 12px; font-weight: 400; color: var(--faint); }
.rows li > .chip { margin-left: auto; align-self: center; flex: none; }
.rows li > .rows-meta + .chip { margin-left: 0; }

.overflow { margin-top: 2px; }
.overflow > summary { margin-left: 52px; font-size: 12px; font-weight: 600; color: var(--accent); }
.plain { display: grid; gap: 3px; color: var(--muted); padding-left: 52px; }

.star {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
  border: 0; border-radius: 6px; background: none; cursor: pointer; padding: 0;
}
.star svg { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linejoin: round; }
.star:hover { background: var(--hover); }
.star:hover svg { stroke: var(--star); }
.star[aria-pressed="true"] svg { fill: var(--star); stroke: var(--star); }

.empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty h2 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Latest stream (feed) */

.seg-view { margin-left: auto; }
.stream > .story { padding: 12px 14px; }
.stream > .story + .story { border-top: 1px solid var(--line); }
.story-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; }
.story-team img { display: block; width: 30px; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.story-player { padding: 2px 8px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--ink); text-decoration: none; }
.story-player span { color: var(--faint); font-weight: 500; }
.story-player:hover { border-color: var(--faint); }
.story-more { font-size: 12px; color: var(--faint); }
.stream-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.stream-filter .helmet { width: 44px; }

/* Teams index */

.divisions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.division { margin: 0; }
.teamlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 8px 8px 8px 16px; }
.teamlist li + li { border-top: 1px solid var(--line); }
.teamlist-name { font-weight: 650; }
.teamlist-meta { grid-column: 2; grid-row: 2; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.teamlist .badge, .teamlist .helmet { grid-row: 1 / span 2; }
.teamlist .helmet { width: 84px; margin: -4px 0; }
.teamlist .star { grid-row: 1 / span 2; grid-column: 3; }

/* Team and player pages */

.entity { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.entity > .badge { min-width: 52px; height: 32px; font-size: 14px; border-radius: 7px; }
.entity > .helmet { width: 104px; }
.entity-text { min-width: 0; }
.entity .star { width: 36px; height: 36px; margin-left: auto; }
.entity .star svg { width: 22px; height: 22px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.jump a {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: none;
}
.jump a:hover { border-color: var(--faint); }
.jump a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.jump a[aria-current] span { color: var(--bg); opacity: .7; }
.jump a span { color: var(--faint); font-weight: 500; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.columns-single { grid-template-columns: minmax(0, 1fr); }
.columns-single .col-side { display: none; }
.card-label a:hover { color: var(--accent); }
.more {
  display: block; text-align: center; padding: 9px; border: 1px solid var(--line-strong);
  border-radius: 8px; font-weight: 600; color: var(--muted); margin-bottom: 12px;
}
.more:hover { background: var(--panel); }

.rows li { display: flex; align-items: baseline; gap: 8px; padding: 7px 16px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li > a { font-weight: 600; }
.rows .des { align-self: center; }
.rows-meta { margin-left: auto; color: var(--faint); font-size: 12px; text-align: right; }
.depth { white-space: nowrap; }
.rows-meta .depth-top { color: var(--ink); font-weight: 650; }
.rows-stack li { display: block; color: var(--muted); }
.rows-stack li + li:not(:has(.rows-date)) { border-top: 0; padding-top: 0; }
.rows-date { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 6px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.table th:first-child, .table td:first-child { padding-left: 16px; }
.table th:last-child, .table td:last-child { padding-right: 16px; }
.table .num { text-align: right; }
.table .zero { color: var(--faint); }
.table a { font-weight: 600; }
.table-tight td { padding-top: 5px; padding-bottom: 5px; color: var(--muted); }
.table-tight td:first-child { color: var(--faint); width: 1%; }
.table-scroll { overflow-x: auto; }
.res { font-weight: 800; }
.res-W { color: var(--win); }
.res-L { color: var(--loss); }
.share { position: relative; min-width: 76px; }
.share i { position: absolute; left: 6px; bottom: 4px; height: 3px; max-width: calc(100% - 16px); border-radius: 2px; background: var(--accent); opacity: .55; }
.share span { position: relative; }

details.card > summary { border-bottom: 0; list-style-position: inside; }
details.card[open] > summary { border-bottom: 1px solid var(--line); }
.logs, .roster { margin-top: 8px; }

/* Bye week */

.team-bye { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.bye-body { display: flex; align-items: center; gap: 20px; padding: 18px 24px; }
.bye-body .helmet { width: 110px; }
.bye-title { font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.bye-text { color: var(--muted); margin-top: 4px; }

/* Next game (team page) */

.versus { overflow: hidden; }
.vs-banner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 22px 24px 20px; color: #fff;
  background:
    radial-gradient(90% 140% at 0% 50%, color-mix(in srgb, var(--us) 85%, #000) 0%, transparent 60%),
    radial-gradient(90% 140% at 100% 50%, color-mix(in srgb, var(--them) 85%, #000) 0%, transparent 60%),
    linear-gradient(90deg, var(--us) 0%, color-mix(in srgb, var(--us) 55%, #0b0d10) 42%, #0b0d10 50%, color-mix(in srgb, var(--them) 55%, #0b0d10) 58%, var(--them) 100%);
}
.vs-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)); pointer-events: none; }
.vs-club { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.vs-club .helmet { width: 160px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)) drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.vs-club-them { flex-direction: row-reverse; text-align: right; }
.vs-club-them .helmet { transform: scaleX(-1); }
.vs-club-text { min-width: 0; }
.vs-name { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.vs-name:hover { color: #fff; text-decoration: underline; }
.vs-pills { display: flex; gap: 6px; margin-top: 8px; }
.vs-club-them .vs-pills { justify-content: flex-end; }
.vs-pill { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0b0d10; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.vs-pill-soft { background: rgba(0,0,0,.35); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); text-transform: uppercase; }
.vs-centre { position: relative; z-index: 1; text-align: center; display: grid; gap: 2px; }
.vs-week { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.vs-vs { font-size: 40px; font-weight: 900; letter-spacing: .04em; line-height: 1; text-shadow: 0 3px 12px rgba(0,0,0,.6); }
.vs-rivalry {
  justify-self: center; margin: 6px 0 2px; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(90deg, #ffb703, #fb8500); color: #1a1200;
  font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(251, 133, 0, .45);
}
.vs-key-rivalry::before { background: #fb8500; }
.vs-when { font-size: 13px; font-weight: 700; margin-top: 4px; }
.vs-where { font-size: 12px; opacity: .8; }

.vs-keys { padding: 14px 24px 4px; border-bottom: 1px solid var(--line); }
.vs-keys h4, .vs-side h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.vs-key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.vs-key { position: relative; padding: 10px 12px 10px 14px; border-radius: 9px; background: var(--hover); border: 1px solid var(--line); overflow: hidden; }
.vs-key::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--faint); }
.vs-key-us::before { background: var(--us); }
.vs-key-them::before { background: var(--them); }
.vs-key-injury::before { background: var(--injury); }
.vs-key-weather::before, .vs-key-rest::before, .vs-key-travel::before { background: var(--warn); }
.vs-key-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.vs-key-team { padding: 1px 6px; border-radius: 4px; background: var(--ink); color: var(--panel); font-size: 10px; letter-spacing: .06em; }
.vs-key-text { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Both sides share one row grid (subgrid) so Strategy and Skill line up. */
.versus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0; }
.vs-side { min-width: 0; display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; padding: 0 24px; }
.vs-side + .vs-side { border-left: 1px solid var(--line); }
.vs-block { padding: 16px 0 4px; }
.vs-block + .vs-block { border-top: 1px solid var(--line); padding-bottom: 14px; }
.vs-side h4 { margin-top: 0; padding-left: 9px; border-left: 3px solid var(--team); }
.vs-side-team { display: none; }
.vs-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.vs-out li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.vs-out li a { font-weight: 700; }
.vs-out li span { color: var(--faint); font-size: 12px; }
.vs-none { font-size: 13.5px; color: var(--muted); }
.vs-lean { font-size: 15px; font-weight: 750; color: var(--ink); margin-bottom: 8px; }
.vs-factors { display: grid; gap: 8px; }
.vs-factor { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); border-left-width: 4px; }
.vs-factor.is-edge { border-left-color: var(--win); background: color-mix(in srgb, var(--win) 9%, var(--panel)); }
.vs-factor.is-weak { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--panel)); }
.vs-factor-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.vs-factor-head span { padding: 1px 7px; border-radius: 4px; font-size: 10px; letter-spacing: .08em; color: #fff; }
.is-edge .vs-factor-head span { background: var(--win); }
.is-weak .vs-factor-head span { background: var(--warn); }
.vs-factor-text { font-size: 13px; color: var(--muted); line-height: 1.4; }
.vs-skill { width: 100%; border-collapse: collapse; font-size: 13px; }
.vs-skill td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.vs-skill td:first-child { color: var(--muted); }
.vs-skill td.num { padding-left: 10px; white-space: nowrap; font-weight: 650; }
.vs-skill td.bar { width: 34%; padding: 6px 10px; }
.vs-skill td.bar i { display: block; height: 6px; border-radius: 3px; min-width: 6px; }
.bar-top { background: var(--win); } .bar-mid { background: var(--faint); } .bar-low { background: var(--loss); }
.vs-skill .rank { width: 46px; font-weight: 800; }
.rank-top { color: var(--win); } .rank-low { color: var(--loss); }
.vs-skill .rank small { color: var(--faint); font-weight: 500; }
.vs-players { border-top: 1px solid var(--line); padding: 14px 24px 18px; }
.vs-players h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.vs-player-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.vs-player { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--hover); border-left: 4px solid var(--team); }
.vs-player-photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--team) 35%, var(--panel)); box-shadow: inset 0 0 0 2px var(--team); }
.vs-player-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.vs-player-name { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.vs-player-name a { font-size: 15px; font-weight: 800; }
.vs-player .notes { gap: 4px; font-size: 13px; }
@media (max-width: 900px) {
  .vs-banner { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .vs-club, .vs-club-them { flex-direction: row; text-align: left; }
  .vs-club-them .helmet { transform: none; }
  .vs-club .helmet { width: 110px; }
  .vs-centre { order: -1; }
  .versus-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .vs-side { display: block; grid-row: auto; padding: 0 16px; }
  .vs-side + .vs-side { border-left: 0; border-top: 6px solid var(--line); }
  .vs-side-team { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; font-size: 16px; font-weight: 800; }
  .vs-side-team .helmet { width: 44px; }
  .vs-block { padding-top: 14px; }
  .vs-block + .vs-block { padding-bottom: 16px; }
  .vs-skill td.bar { width: 26%; padding: 6px 6px; }
  .vs-skill .rank { width: 40px; }
}

/* Strengths & weaknesses (team page side column) */

.sw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sw-col { padding: 10px 14px 12px; }
.sw-col + .sw-col { border-left: 1px solid var(--line); }
.sw-col h3 { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.sw-strong h3 { color: var(--win); }
.sw-weak h3 { color: var(--loss); }
.sw-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sw-col li { display: flex; align-items: flex-start; gap: 8px; }
.sw-col b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.sw-col small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.sw-rank { flex: none; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.sw-strong .sw-rank { background: var(--win); }
.sw-weak .sw-rank { background: var(--loss); }
.sw-none { font-size: 12.5px; color: var(--faint); }
@media (max-width: 560px) {
  .sw { grid-template-columns: minmax(0, 1fr); }
  .sw-col + .sw-col { border-left: 0; border-top: 1px solid var(--line); }
}

/* Players to watch (next game) */

.vs-watch { padding: 14px 24px 6px; border-bottom: 1px solid var(--line); }
.vs-watch h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.vs-watch h4 span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 6px; }
.vs-watch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 10px; }
.vs-watch-side { display: grid; gap: 6px; }
.watch { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--hover); color: var(--ink); text-decoration: none; }
.watch:hover { border-color: var(--faint); color: var(--ink); }
.watch-photo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 2px var(--team); background: color-mix(in srgb, var(--team) 30%, var(--panel)); }
.watch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.watch-text { min-width: 0; line-height: 1.25; }
.watch-text b { font-size: 13.5px; }
.watch-text i { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 3px; }
.watch-text small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .vs-watch-grid { grid-template-columns: minmax(0, 1fr); } }

/* Player stats (team page) */

.statwrap { overflow-x: auto; }
.stats { width: 100%; font-size: 13px; }
.stats th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.stats th.num, .stats td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stats td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.stats td.pos { color: var(--faint); font-size: 12px; }
.stats-toggle { margin: 10px 16px 14px; }
.stats-note { margin: 6px 16px 12px; font-size: 11px; color: var(--faint); }
.pos-inline { display: none; }
@media (max-width: 560px) {
  /* Phones: no games or snap% columns, position under the name, name pinned while scrolling. */
  .statwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats { font-size: 12.5px; }
  .stats th, .stats td { padding: 6px 7px; white-space: nowrap; }
  .stats th:nth-child(2), .stats td:nth-child(2), .stats th:nth-child(3), .stats td:nth-child(3), .stats th:nth-child(4), .stats td:nth-child(4) { display: none; }
  .stats .who-cell { position: sticky; left: 0; z-index: 1; background: var(--panel); padding-left: 12px; min-width: 128px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .5); }
  .stats th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); padding-left: 12px; }
  .pos-inline { display: block; font-size: 10.5px; color: var(--faint); font-weight: 500; margin-top: -1px; }
  .stats-toggle { margin: 8px 12px 12px; }
  .stats-note { margin: 4px 12px 10px; }
}

/* League leaders (feed) */

.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; }
.leader { padding: 10px 14px 12px; }
.leader + .leader { border-left: 1px solid var(--line); }
.leader h3 { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.leader ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: lead; }
.leader li { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.leader li::before { counter-increment: lead; content: counter(lead); width: 12px; font-size: 11px; font-weight: 700; color: var(--faint); }
.leader-helmet { width: 26px; height: auto; }
.leader li a { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-val { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .leader + .leader { border-left: 0; border-top: 1px solid var(--line); } }
/* Leaders tab: one category per card, stacked, with a bar against the leader. */
.leaders-stack + .leaders-stack { margin-top: 14px; }
.leaders-side { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 22px 0 10px; }
.leaders-side:first-child { margin-top: 0; }
.leaders-side + .leaders-stack { margin-top: 0; }
.leader-list { list-style: none; margin: 0; padding: 4px 16px 10px; }
.leader-list li { display: grid; grid-template-columns: 22px 30px minmax(140px, 220px) minmax(0, 1fr) minmax(120px, 2fr) 64px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.leader-list li:last-child { border-bottom: 0; }
.leader-rank { font-size: 12px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.leader-list .leader-helmet { width: 30px; }
.leader-list li > a { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-meta { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-meta a { color: inherit; }
.leader-bar { height: 8px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.leader-bar i { display: block; height: 100%; border-radius: 999px; background: var(--win); }
.leader-list .leader-val { font-size: 15px; text-align: right; }
@media (max-width: 760px) { .leader-list li { grid-template-columns: 18px 26px minmax(0, 1fr) 56px; } .leader-meta, .leader-bar { display: none; } }

/* Lines & markets (feed) */

.board { width: 100%; font-size: 13px; }
.board th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.board td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board th.num, .board td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-game { white-space: nowrap; }
.board-team { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--ink); }
.board-team img { width: 30px; height: auto; }
.board-at { color: var(--faint); margin: 0 6px; }
.board-game small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.board-open { color: var(--faint); font-weight: 500; }
.board-none { color: var(--faint); }
.board-final { color: var(--muted); }
.board-kalshi { width: 34%; min-width: 230px; }
.board-byes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 12px 12px; font-size: 13px; }
.board-byes .team-bye { font-size: 11px; margin-right: 2px; }
.kscale { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 6px; }
.kscale-helmet { width: var(--w); height: auto; justify-self: end; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.kscale-home { justify-self: start; transform: scaleX(-1); }
.kbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 3px 8px rgba(0,0,0,.2); font-size: 12px; font-weight: 900; color: #fff; }
.kbar span { display: grid; place-items: center; min-width: 0; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.kbar-away { background: linear-gradient(180deg, color-mix(in srgb, var(--us) 80%, #fff), var(--us) 55%, color-mix(in srgb, var(--us) 70%, #000)); }
.kbar-home { background: linear-gradient(180deg, color-mix(in srgb, var(--them) 80%, #fff), var(--them) 55%, color-mix(in srgb, var(--them) 70%, #000)); border-left: 2px solid rgba(255,255,255,.7); }
.vs-line { margin-top: 8px; font-size: 12px; display: grid; gap: 2px; }
.vs-line b { font-weight: 800; }
.vs-line-k { opacity: .85; }
@media (max-width: 760px) { .board-ml, .board th:nth-child(4) { display: none; } }

/* Market scale on the next-game card: the favourite looms larger */

.vs-market { padding: 14px 24px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--us) 10%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--them) 10%, transparent)); }
.vs-market-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.vs-market-head h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.vs-market-head span { font-size: 11px; color: var(--faint); }
.vs-scale { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; align-items: center; gap: 12px; min-height: 150px; }
.vs-scale-side { display: flex; align-items: center; }
.vs-scale-us { justify-content: flex-end; }
.vs-scale-them { justify-content: flex-start; }
.vs-scale-side .helmet { width: var(--w); transition: width .4s ease; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.vs-scale-them .helmet { transform: scaleX(-1); }
.vs-scale-bar { display: flex; height: 42px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px rgba(0,0,0,.25); font-size: 16px; font-weight: 900; color: #fff; }
.vs-scale-bar span { display: grid; place-items: center; min-width: 0; text-shadow: 0 1px 2px rgba(0,0,0,.6); transition: width .4s ease; }
.vs-scale-us-seg { background: linear-gradient(180deg, color-mix(in srgb, var(--us) 80%, #fff), var(--us) 55%, color-mix(in srgb, var(--us) 70%, #000)); }
.vs-scale-them-seg { background: linear-gradient(180deg, color-mix(in srgb, var(--them) 80%, #fff), var(--them) 55%, color-mix(in srgb, var(--them) 70%, #000)); border-left: 2px solid rgba(255,255,255,.7); }
.vs-pills-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.vs-mpill { display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.vs-mpill small { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.vs-mpill b { font-weight: 800; }
.vs-mpill i { font-style: normal; font-size: 11px; color: var(--faint); }
@media (max-width: 760px) {
  .vs-scale { grid-template-columns: 90px minmax(0, 1fr) 90px; gap: 8px; min-height: 0; }
  .vs-scale-side .helmet { width: calc(var(--w) * .6); }
  .vs-scale-bar { height: 32px; font-size: 13px; }
}

/* Best bets (advice tab) */

.bestbet { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; margin: 12px 16px 0; padding: 12px 16px; border-radius: 12px; color: #fff; background: linear-gradient(100deg, color-mix(in srgb, var(--team) 80%, #000) 0%, color-mix(in srgb, var(--team) 35%, #0b0d10) 55%, #0b0d10 100%); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid #ffb703; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.bestbet .hero-photo { grid-row: auto; }
.bestbet-text { display: grid; gap: 3px; min-width: 0; }
.bestbet-text .parlay-badge { justify-self: start; margin: 0; }
.bestbet-text b { font-size: 20px; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.bestbet-text b a { color: #fff; }
.bestbet-text small { font-size: 11px; color: rgba(255,255,255,.7); }
.bestbet-nums { display: flex; gap: 22px; }
.bestbet-nums span { display: grid; text-align: center; }
.bestbet-nums i { font-style: normal; font-size: 28px; font-weight: 900; line-height: 1; }
.bestbet-nums small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 3px; }
.bestbet-nums .edge-plus i { color: #7ee2a8; }
.bestbet-add { background: #ffb703; color: #1a1200; border-color: transparent; font-weight: 800; }
.bestbet-add:hover { background: #ffc94d; color: #1a1200; }
@media (max-width: 760px) { .bestbet { grid-template-columns: 64px minmax(0, 1fr); } .bestbet-nums, .bestbet-add { grid-column: 1 / -1; } }
.parlays { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; padding: 14px 16px 4px; }
.parlay { border: 1px solid var(--line); border-radius: 10px; background: var(--hover); overflow: hidden; }
.parlay-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.parlay-head b { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.parlay-head small { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
.parlay-badge { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(90deg, #ffb703, #fb8500); color: #1a1200; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.parlay-top { border-color: #fb8500; box-shadow: 0 0 0 1px rgba(251, 133, 0, .35), 0 6px 18px rgba(251, 133, 0, .15); }
/* Top pick hero */

.hero {
  position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px 24px; margin: 14px 16px 6px; padding: 20px 22px 16px;
  border-radius: 14px; color: #fff; overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--team) 75%, #000) 0%, transparent 60%),
    linear-gradient(120deg, color-mix(in srgb, var(--team) 60%, #0b0d10) 0%, #15181c 55%, #23170a 100%);
  box-shadow: 0 0 0 1px rgba(251, 133, 0, .45), 0 14px 34px rgba(0, 0, 0, .4);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.2)); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-side { display: grid; align-content: start; gap: 6px; }
.hero .parlay-badge { justify-self: start; margin: 0; font-size: 11px; }
.hero-name { font-size: 30px; font-weight: 900; letter-spacing: -.01em; line-height: 1.05; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-blurb { font-size: 12px; color: rgba(255,255,255,.7); }
.hero-hit { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hero-hit i { font-style: normal; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.03em; text-shadow: 0 4px 16px rgba(0,0,0,.6); }
.hero-hit span { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.75); }
.hero-hit b { font-size: 13px; color: #ffd166; letter-spacing: .06em; text-transform: uppercase; }
.hero-meter { background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.hero-legs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-content: start; }
.hero-legs li { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--team); }
.hero-photo { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--team) 40%, #000); box-shadow: inset 0 0 0 2px var(--team); display: grid; place-items: center; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hero-photo .hero-helmet { width: 54px; height: auto; object-fit: contain; }
.hero-leg-p { font-size: 22px; font-weight: 900; line-height: 1; }
.hero-leg-text { min-width: 0; line-height: 1.25; }
.hero-leg-text a { color: #fff; font-weight: 800; font-size: 14px; }
.hero-leg-text small { display: block; color: rgba(255,255,255,.65); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-foot span { display: grid; }
.hero-foot small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-foot b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.hero-foot em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.65); }
.hero .parlay-ev.is-plus b { color: #7ee2a8; }
.hero .parlay-ev.is-minus b { color: #ff9b94; }
@media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); margin: 12px; } .hero-hit i { font-size: 48px; } }

.toppick .hero { margin: 14px 16px 16px; }
.hero-add { justify-self: start; margin-top: 10px; background: #ffb703; color: #1a1200; border-color: transparent; font-weight: 800; }
.hero-add:hover { background: #ffc94d; color: #1a1200; }
.hero-note { font-size: 11px; color: rgba(255,255,255,.6); }
.hero-legs li:has(.hero-leg-add) { grid-template-columns: 64px minmax(0, 1fr) auto; }
.hero-leg-add { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.hero-leg-add.is-added { background: rgba(126, 226, 168, .2); color: #7ee2a8; border-color: rgba(126, 226, 168, .5); }

.hot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 12px; }
.hot-col { padding: 12px 16px 14px; min-width: 0; }
.hot-col + .hot-col { border-left: 1px solid var(--line); }
.hot-col h3 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hot-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-size: 13px; }
.hot-list .leg-label small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-pill { padding: 2px 8px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); font-size: 12px; font-weight: 800; white-space: nowrap; }
.hot-pill.is-plus { color: var(--win); }
.edges { margin: 10px 16px 0; }
.reco { border-top: 1px solid var(--line); margin-top: 12px; }
.reco-head { padding: 12px 16px 0; }
.reco-head h3 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.reco-head h3 span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 6px; }
.reco-table { margin-top: 8px; }
.reco-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: #fb8500; cursor: pointer; }
.reco-bar { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 12px 16px 6px; padding: 10px 16px; border-radius: 12px; background: #1a1200; color: #fff; box-shadow: 0 0 0 1px #fb8500, 0 10px 24px rgba(0,0,0,.45); }
.reco-bar span { display: grid; }
.reco-bar small { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.reco-bar b { font-size: 16px; font-weight: 900; }
.reco-count b { color: #ffb703; }
.reco-warn { font-size: 12px; color: #ffd166; }
.reco-bar .chip { margin-left: auto; }
@media (max-width: 900px) { .hot-grid { grid-template-columns: minmax(0, 1fr); } .hot-col + .hot-col { border-left: 0; border-top: 1px solid var(--line); } }
.parlay-hit { font-size: 12px; color: var(--muted); text-align: right; }
.parlay-hit small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.parlay-rank { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; margin-right: 8px; border-radius: 6px; background: var(--ink); color: var(--panel); font-size: 12px; font-weight: 900; vertical-align: 2px; }
.parlay-meter { height: 6px; background: var(--hover); }
.parlay-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--loss), #ffb703 50%, var(--win)); }
.parlay-hit i { font-style: normal; font-size: 22px; font-weight: 900; color: var(--ink); margin-right: 4px; }
.parlay-legs { list-style: none; margin: 0; padding: 6px 14px; }
.parlay-legs li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.parlay-legs li:last-child { border-bottom: 0; }
.leg-helmet { width: 30px; height: auto; }
.leg-label { min-width: 0; line-height: 1.25; }
.leg-label a { font-weight: 700; }
.leg-label small { display: block; color: var(--faint); font-size: 11px; }
.leg-p { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.parlay-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 14px 12px; background: var(--panel); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.parlay-foot small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.parlay-foot b { font-size: 14px; color: var(--ink); }
.parlay-ev.is-plus b { color: var(--win); }
.parlay-ev.is-minus b { color: var(--loss); }
.singles { width: 100%; font-size: 13px; margin-top: 10px; }
.singles th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 8px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.singles td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.singles th.num, .singles td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.singles .muted { color: var(--faint); font-size: 12px; }
.leg-cell { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.leg-star { color: var(--star); }
.edge-plus { color: var(--win); font-weight: 800; }

/* Depth chart lineup (team page) */

.lineup {
  --card-bg: rgba(0, 0, 0, .42);
  width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0;
  color: #fff; border-color: transparent; overflow: hidden;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(120deg, color-mix(in srgb, var(--team) 80%, #000) 0%, var(--team) 50%, color-mix(in srgb, var(--team) 45%, #000) 100%);
}
.lineup-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 12px 0; background: rgba(0, 0, 0, .35); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.lineup-tabs button {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
  padding: 10px 14px 9px; color: rgba(255, 255, 255, .65); font: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
}
.lineup-tabs button:hover { color: #fff; }
.lineup-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.lineup-source { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .6); }
.lineup-body { padding: 18px 24px 10px; }
.unit-formation { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 12px; }
.formation {
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); grid-auto-rows: auto;
  column-gap: 6px; row-gap: 12px; margin-bottom: 14px; padding: 12px 0 8px;
}
.formation-offense { border-bottom: 2px dashed rgba(255, 255, 255, .35); }
.formation-defense { border-top: 2px dashed rgba(255, 255, 255, .35); }
.pcard-wrap { width: 100%; max-width: 176px; margin: 0 auto; text-align: center; }
.pcard {
  display: block; overflow: hidden; border-radius: 10px; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%), var(--card-bg);
}
.pcard:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.pcard-photo { display: block; aspect-ratio: 240 / 174; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .28), rgba(0, 0, 0, .15) 70%); }
.pcard-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard-name { display: block; padding: 7px 8px 2px; font-size: 15px; font-weight: 800; line-height: 1.15; background: rgba(0, 0, 0, .5); }
.pcard-name .des { vertical-align: 1px; }
.pcard-backup { display: block; padding: 1px 8px 7px; font-size: 12px; line-height: 1.3; opacity: .8; background: rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-slot { margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.lineup-injured { align-self: start; max-width: 520px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; padding: 12px 14px; }
.lineup-injured h3 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.lineup-injured h3 span { font-weight: 500; opacity: .7; margin-left: 4px; }
.lineup-injured ul { list-style: none; margin: 0; padding: 0; }
.lineup-injured li { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.inj-line { display: flex; align-items: baseline; gap: 7px; font-size: 13px; font-weight: 700; }
.inj-line a { color: #fff; }
.inj-meta { font-size: 11px; opacity: .75; margin-top: 2px; }
.inj-meta b { color: #ffd166; font-weight: 700; }
.inj-none { font-size: 13px; opacity: .75; }
@media (max-width: 760px) {
  .lineup-body { grid-template-columns: minmax(0, 1fr); }
  .formation { column-gap: 3px; }
  .pcard-name { font-size: 11px; }
}
/* Phones: the field drawing becomes a list of slots, one row each. */
@media (max-width: 560px) {
  .lineup-body { padding: 14px 12px 8px; }
  .formation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0 0 6px; margin-bottom: 10px; }
  .formation-offense { border-bottom: 0; }
  .formation-defense { border-top: 0; }
  .pcard-wrap { grid-row: auto !important; grid-column: auto !important; max-width: none; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 8px; text-align: left; }
  .pcard-slot { order: -1; margin: 0; font-size: 12px; text-align: center; }
  .pcard { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0 10px; border-radius: 9px; padding-right: 10px; }
  .pcard:hover { transform: none; }
  .pcard-photo { aspect-ratio: 1; width: 44px; height: 44px; }
  .pcard-photo img { object-position: top; }
  .pcard-name { grid-column: 2; padding: 6px 0 0; font-size: 14px; background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pcard-backup { grid-column: 2; padding: 0 0 6px; font-size: 11.5px; background: none; }
  .pcard-photo { grid-row: 1 / span 2; }
  .unit-formation { margin-bottom: 8px; }
  .lineup-tabs button { padding: 10px 10px 9px; font-size: 11px; }
  .lineup-source { display: none; }
}
.roster-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 24px; padding: 12px 16px 16px; }
.roster-groups h3 { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.roster-groups li { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; }
.roster-groups .pos { width: 30px; flex: none; }

/* Phones: bottom tab bar replaces the top nav and the feed's page pills */

.tabbar { display: none; }
.filters-toggle { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: calc(56px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tabbar);
    display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--faint); text-decoration: none; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current] { color: var(--accent); }
  .page { padding-bottom: calc(var(--tabbar) + 20px); }
  .top .nav { display: none; }
  .top-in { gap: 10px; }
  .search { margin-left: auto; }
  .dayhead form.jump, .dayhead .sub { display: none; }
  /* Feed pages: the bottom bar holds News, Advice and Props; this row keeps Players, Leaders, Lines */
  body.has-feed nav.jump a.in-bar { display: none; }
  .dayhead { margin-bottom: 10px; }
  h1 { font-size: 21px; }
  /* Team page tabs: one scrolling row */
  nav.jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 2px 14px 6px; }
  nav.jump::-webkit-scrollbar { display: none; }
  nav.jump a { flex: none; }
  /* Day strip: tighter */
  .days { gap: 4px; margin-bottom: 10px; }
  .day { padding: 5px 2px 4px; }
  .day-count { display: none; }
  /* Filters: category switch and one button; the rest opens below */
  .filters { gap: 6px; }
  .filters .seg { flex: 1; }
  .filters .seg a { flex: 1; text-align: center; padding: 5px 4px; font-size: 13px; }
  .filters-toggle { display: inline-flex; flex: none; }
  .filters .chip:not(.filters-toggle), .filters .seg-view { display: none; }
  .filters.is-open .chip, .filters.is-open .seg-view { display: inline-flex; }
  .filters.is-open .filters-toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .filters.is-open .seg-view { margin-left: 0; }
  .filters.is-open .chip-right { margin-left: 0; }
  /* Helmet rail: one slim row, no division labels or counts */
  .rail { gap: 4px; margin-top: 4px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-div { width: auto; display: contents; }
  .rail-label { display: none; }
  .rail-teams { display: flex; gap: 4px; }
  .rail-team { padding: 2px 3px; border-color: transparent; background: transparent; }
  .rail-team span { display: none; }
  .rail-helmet { width: 32px; margin: 0; }
  .rail-team.is-active { border-color: var(--ink); background: var(--panel); }
  .rail-team.is-fav::after { font-size: 8px; top: -1px; right: 0; }
  /* Story rows */
  .stream > .story { padding: 10px 12px; grid-template-columns: 38px minmax(0, 1fr); }
  .story-title { font-size: 15px; }
  .story-team img { width: 26px; }
  .moves-list li { font-size: 13px; gap: 6px; }
  .moves-link { display: none; }
  .advice-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* Narrow screens */

@media (max-width: 900px) {
  .top-in { gap: 12px; padding: 0 14px; }
  .fresh { display: none; }
  .search { width: auto; flex: 1; }
  .page { padding: 16px 14px 60px; }
  .layout, .columns, .columns-even { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static; max-height: none; display: flex; gap: 12px; overflow-x: auto;
    margin: 0 -14px; padding: 0 14px 4px;
  }
  .rail-div { flex: none; width: 176px; }
  .rail-hint { display: none; }
  .divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump label { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: 20px; }
  .nav a { padding: 6px 7px; }
  .search kbd { display: none; }
  .dayhead { align-items: flex-start; flex-direction: column; gap: 8px; }
  .day { padding: 6px 2px 5px; }
  .day-count { display: none; }
  .days-arrow { width: 28px; }
  .chip-right { margin-left: 0; }
  .divisions { grid-template-columns: minmax(0, 1fr); }
  .who { padding-left: 12px; padding-right: 12px; }
  .team-head { padding-left: 12px; }
  .search { min-width: 96px; }
}

@media (max-width: 400px) {
  .brand span { display: none; }
  .days { gap: 3px; }
  .days-arrow { display: none; }
  .day-name { font-size: 10px; letter-spacing: 0; }
  .day-num { font-size: 15px; }
  .seg a { padding: 4px 7px; }
}

/* Player page: prop lines beside the game log. */
.props td:first-child { color: var(--ink); font-weight: 600; }
.props .hits { color: var(--ink); font-weight: 650; }
.props-foot { font-size: 12px; padding-top: 6px; }

/* Prop watch: one line per prop, best hit rate first. */
.propwatch { list-style: none; margin: 0; padding: 4px 0; }
.propwatch li { display: flex; align-items: center; gap: 12px; padding: 7px 16px; font-size: 14px; }
.propwatch li + li { border-top: 1px solid var(--line); }
.propwatch li[hidden] { display: none; }
.pw-team { flex: none; }
.propwatch .helmet { width: 40px; margin: -4px 0; }
.pw-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pw-text a { font-weight: 700; }
.pw-text small { color: var(--faint); font-weight: 500; margin-left: 4px; }
.pw-rate { margin-left: auto; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 480px) {
  .propwatch li { gap: 10px; padding: 7px 12px; font-size: 13px; }
  .propwatch .helmet { width: 34px; }
  .pw-text small { display: none; }
  .pw-rate { font-size: 12px; }
}
.watch-markets { display: inline-flex; flex-wrap: wrap; margin-bottom: 14px; }
.pw-perfect { color: var(--accent); }
.pw-star { color: var(--star); margin-right: 6px; cursor: help; }
.pw-des { color: var(--faint); font-weight: 700; font-size: 11px; margin-left: 4px; }

/* Player page: prop research. */
.research { margin-bottom: 20px; padding: 14px 16px 10px; }
.research .card-label { padding: 0; margin-bottom: 10px; }
.pr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.pr-defense { width: auto; }
.pr-defense th:first-child, .pr-defense td:first-child { padding-left: 0; color: var(--muted); }
.pr-defense td { padding-left: 14px; padding-right: 14px; }
.pr-defense small { color: var(--faint); font-size: 11px; }
.rank { font-weight: 800; }
.rank-soft { color: var(--win); }
.rank-tough { color: var(--loss); }
.rank-mid { color: var(--muted); }
.pr-note { font-size: 11px; color: var(--faint); margin-top: 6px; }
.pr-pick { display: grid; gap: 8px; min-width: 200px; }
.pr-pick label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.pr-pick select, .pr-line { font: inherit; }
.pr-pick select { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--ink); }
.pr-line { display: grid; grid-template-columns: 34px 1fr 34px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.pr-line button { font: inherit; font-size: 18px; border: 0; background: var(--hover); color: var(--ink); cursor: pointer; }
.pr-line button:hover { background: var(--line); }
.pr-line input { font: inherit; font-size: 18px; font-weight: 800; text-align: center; border: 0; background: var(--panel); color: var(--ink); width: 100%; min-width: 0; -moz-appearance: textfield; }
.pr-line input::-webkit-inner-spin-button, .pr-line input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pr-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; margin-top: 14px; }
.pr-spans, .pr-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-spans .chip, .pr-roles .chip { background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.pr-title { font-size: 15px; font-weight: 800; margin: 12px 0 6px; }
.pr-chart {
  position: relative; display: flex; align-items: flex-end; gap: 6px; height: 190px;
  padding: 18px 0 22px; border-bottom: 1px solid var(--line-strong);
}
.pr-chart::before {  /* the line */
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 40px) * var(--line-pct, 0) / 100%);
  border-top: 2px dashed var(--ink); opacity: .55; pointer-events: none;
}
.pr-chart.is-empty::after { content: "No games in this span"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.pr-bar { position: relative; flex: 1 1 0; max-width: 64px; min-width: 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pr-bar i { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--loss); opacity: .85; }
.pr-bar.is-hit i { background: var(--win); }
.pr-bar b { font-size: 11px; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.pr-bar span { position: absolute; bottom: -20px; font-size: 10px; font-weight: 700; color: var(--faint); letter-spacing: .03em; }
.pr-summary { margin-top: 10px; }
.pr-outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.pr-outcomes li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.pr-outcomes li span { font-weight: 700; color: var(--muted); }
.pr-outcomes li b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pr-outcomes li small { grid-column: 1 / -1; color: var(--faint); font-size: 11px; }
.pr-outcomes li.is-good b { color: var(--win); }
.pr-outcomes li.is-bad b { color: var(--loss); }
.pr-outcomes li.is-none b { color: var(--faint); }
.pr-versus-wrap { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.pr-versus-wrap .card-label { margin-bottom: 8px; }
.pr-versus { margin-top: 8px; }
.pr-versus th:first-child, .pr-versus td:first-child { padding-left: 0; }
.pr-versus th.is-stat { color: var(--ink); }
.pr-versus td.is-over { color: var(--win); font-weight: 800; }
.pr-versus td.is-under { color: var(--loss); font-weight: 800; }
.pr-versus.is-empty tbody::after { content: "No games against this defense yet."; display: block; padding: 8px 0; color: var(--faint); }
@media (max-width: 760px) {
  .pr-head, .pr-body { grid-template-columns: minmax(0, 1fr); }
  .pr-outcomes { grid-template-columns: repeat(3, 1fr); }
  .pr-chart { height: 160px; gap: 4px; }
  .pr-bar b { font-size: 10px; }
}

/* Bet slip. */
.pr-side { display: flex; gap: 6px; }
.pr-side .chip { background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; flex: 1; text-align: center; }
.pr-add { font: inherit; font-weight: 800; padding: 9px 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
.pr-add:hover { filter: brightness(1.1); }
.pr-add:disabled { opacity: .8; cursor: default; }
.pr-add.is-added { background: var(--win); }
.slip-count { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; text-align: center; vertical-align: 1px; }
.picks { list-style: none; margin: 0; padding: 4px 0; }
.pick { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; }
.pick + .pick { border-top: 1px solid var(--line); }
.pick .helmet { width: 40px; margin-top: 2px; }
.pick-body { min-width: 0; flex: 1; }
.pick-line { font-weight: 700; }
.pick-line a { font-weight: 800; }
.pick-line small { display: block; color: var(--faint); font-weight: 500; font-size: 12px; }
.pick-flags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.flag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.flag-green { color: var(--win); border-color: color-mix(in srgb, var(--win) 50%, transparent); }
.flag-red { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 50%, transparent); }
.flag-yellow { color: var(--star); border-color: color-mix(in srgb, var(--star) 60%, transparent); }
.pick-result { display: flex; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pick-result b { font-size: 14px; }
.pick .chip { flex: none; cursor: pointer; font: inherit; font-size: 12px; background: var(--panel); color: var(--muted); }
.pick-loss { opacity: .75; }

/* Feed: Players tab. */
.pl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pl-filters .seg { display: inline-flex; flex-wrap: wrap; }
.pl-team select { font: inherit; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--ink); max-width: 240px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.pl-team-card { margin: 0; }
.pl-head { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.pl-head .helmet { width: 32px; margin: -6px 0; }
.pl-list { list-style: none; margin: 0; padding: 0 0 4px; }
.pl-list li { display: flex; align-items: center; gap: 8px; padding: 5px 16px; font-size: 13px; }
.pl-list li + li { border-top: 1px solid var(--line); }
.pl-list .pos { width: 26px; }
.pl-list a { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-props { color: var(--accent); font-style: normal; font-size: 10px; }

/* Prop watch: track record of graded props by signal. */
.record { margin-bottom: 14px; }
.record-grid { list-style: none; margin: 0; padding: 4px 16px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.record-grid li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.record-grid li span { font-weight: 700; color: var(--muted); }
.record-grid li b { font-size: 15px; font-variant-numeric: tabular-nums; }
.record-grid li small { grid-column: 1 / -1; color: var(--faint); font-size: 11px; }
.record-grid li.is-good b { color: var(--win); }
.record-grid li.is-bad b { color: var(--loss); }

/* Next game: the History section (team vs team, coach vs coach, home field, crowd effect). */
.history .hx-body { padding: 4px 16px 10px; }
.hx-block { padding: 14px 0 12px; }
.hx-block + .hx-block { border-top: 1px solid var(--line); }
.hx-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.hx-head h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.hx-head span { font-size: 12px; color: var(--faint); }
.hx-records { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hx-rec { display: grid; gap: 1px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--hover); min-width: 96px; }
.hx-rec small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.hx-rec b { font-size: 16px; font-variant-numeric: tabular-nums; }
.hx-rec i { font-style: normal; font-size: 11px; color: var(--faint); }
.hx-line { margin: 4px 0; font-size: 13px; color: var(--muted); }
.hx-flag { margin: 4px 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--warn); background: var(--warn-soft); }
.hx-none { margin: 0; font-size: 13px; color: var(--faint); }
.hx-splits { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; margin: 6px 0 8px; }
.hx-splits th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.hx-splits td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.hx-splits .num { text-align: right; }
.hx-games { font-size: 13px; }
.hx-games > summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 4px 0; }
.hx-table { margin-top: 6px; font-size: 13px; }
.hx-table th:first-child, .hx-table td:first-child { padding-left: 6px; }
.hx-table th:last-child, .hx-table td:last-child { padding-right: 6px; }
.hx-table td small { display: block; color: var(--faint); font-size: 11px; }
.hx-when { font-weight: 600; }
.hx-qbs small { display: inline; color: var(--faint); }
.hx-tags { white-space: normal; min-width: 180px; font-size: 12px; color: var(--faint); }

/* Team page: game highlights, one YouTube thumbnail a game that opens the
   video on YouTube (the NFL channel blocks its player on other sites). */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; padding: 14px 16px 16px; }
.clip { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--hover); }
.clip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.clip-week { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.clip-head small { margin-left: auto; font-weight: 500; color: var(--faint); }
.clip-video { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; color: #fff; text-decoration: none; }
.clip-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .25s; }
.clip-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(0, 0, 0, .7); transition: background .2s; }
.clip-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.clip-cta { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.clip-video:hover img, .clip-video:focus-visible img { transform: scale(1.03); }
.clip-video:hover .clip-play, .clip-video:focus-visible .clip-play { background: #f00; }
.clip-video:hover .clip-cta, .clip-video:focus-visible .clip-cta { opacity: 1; }
.clip-meta, .clip-none { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--faint); }
@media (max-width: 560px) {
  .clips { grid-template-columns: minmax(0, 1fr); padding: 10px 10px 12px; }
  .history .hx-body { padding: 2px 10px 8px; }
}

/* Phones: less on each page. Long lists stop at a sensible count until asked
   for the rest, wide tables fold into rows, and the betting extras on the News
   tab (line moves, every player chip, every bullet) step back. */

.show-all, .stats-toggle-m { display: none; }
@media (max-width: 760px) {
  .show-all { display: inline-flex; margin: 10px 12px 12px; }
  .is-capped .stream > .story:nth-child(n + 21) { display: none; }
  .is-capped .pl-list li:nth-child(n + 6) { display: none; }
  .is-capped .advice-list li:nth-child(n + 11) { display: none; }
  .is-capped .parlays .parlay:nth-child(n + 2) { display: none; }
  .is-capped.col-main > .card:nth-child(n + 3) { display: none; }
  .col-main > .show-all { margin: 0 0 12px; }
  .statcard:not(.is-all) .stats-more-m { display: none; }
  .stats-toggle-m { display: inline-flex; }

  /* News tab */
  .moves-news { display: none; }
  .story-tags .story-player ~ .story-player ~ .story-player, .story-more { display: none; }
  .story-bullets li:nth-child(n + 3) { display: none; }
  .story-summary { -webkit-line-clamp: 2; }
  .story-meta { gap: 0 12px; }

  /* Advice tab: recommended legs as rows instead of a ten-column table */
  .reco-table thead { display: none; }
  .reco-table, .reco-table tbody { display: block; }
  .reco-table tr {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto auto; grid-template-rows: auto auto;
    align-items: center; column-gap: 8px; row-gap: 2px; padding: 9px 12px; border-bottom: 1px solid var(--line);
  }
  .reco-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .reco-table td.leg-cell { display: flex; }
  .reco-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .reco-table td:nth-child(3) { grid-column: 2 / span 3; grid-row: 1; font-size: 14px; }
  .reco-table td:nth-child(7) { grid-column: 5; grid-row: 1; font-size: 16px; }
  .reco-table td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .reco-table td:nth-child(5) { grid-column: 3; grid-row: 2; font-size: 12px; color: var(--faint); }
  .reco-table td:nth-child(9) { grid-column: 4; grid-row: 2; font-size: 12px; }
  .reco-table td:nth-child(10) { grid-column: 5; grid-row: 2; justify-self: end; }
  .reco-table td:nth-child(2), .reco-table td:nth-child(6), .reco-table td:nth-child(8) { display: none; }
  .reco-table td:nth-child(5) small { display: none; }
  .reco-head h3 span { display: block; margin: 2px 0 0; }
  .reco-bar { bottom: calc(var(--tabbar) + 10px); margin: 12px 12px 6px; gap: 8px 16px; }
  .reco-warn { flex-basis: 100%; }
  .stats-note { line-height: 1.4; }
  .hot-col { padding: 12px 12px 14px; }

  /* Lines tab: one game per row, the market bar underneath */
  .board thead { display: none; }
  .board, .board tbody { display: block; }
  .board tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; row-gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .board td { display: block; padding: 0; border: 0; }
  .board td.board-ml { display: none; }
  .board td.board-game { grid-column: 1; grid-row: 1; }
  .board td:nth-child(2):not(.board-final) { grid-column: 2; grid-row: 1; }
  .board td:nth-child(3):not(.board-kalshi) { grid-column: 3; grid-row: 1; }
  .board td.board-final { grid-column: 2 / span 2; grid-row: 1; font-size: 12px; text-align: right; }
  .board td:nth-child(2):not(.board-final)::before, .board td:nth-child(3):not(.board-kalshi)::before { content: "Spread"; display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  .board td:nth-child(3):not(.board-kalshi)::before { content: "Total"; }
  .board td:nth-child(2), .board td:nth-child(3):not(.board-kalshi) { text-align: right; font-weight: 700; }
  .board td.board-kalshi { grid-column: 1 / -1; grid-row: 2; width: auto; min-width: 0; }
  .board .kscale { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .board .kscale-helmet { width: calc(var(--w) * .75); }
  .board .kbar { height: 22px; font-size: 11px; }

  /* Prop watch: the market switch scrolls, the track record sits in two columns */
  .watch-markets { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px; border-radius: 0; border-left: 0; border-right: 0; }
  .watch-markets::-webkit-scrollbar { display: none; }
  .watch-markets a { flex: none; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 12px 10px; }

  /* Team page: fewer words in the tab strip's neighbours */
  .entity > .helmet { width: 72px; }
  .entity { gap: 10px; margin-bottom: 12px; }
}
