/* OverCount NFL section (pages under /nfl/). Loaded after style.css. */
body.nfl .tag{max-width:36rem}
.nfl-search{position:relative;max-width:560px;margin:12px 0 4px}
.nfl-search input{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);color:var(--txt)}
.nfl-search input:focus{outline:2px solid var(--acc);outline-offset:1px}
.nfl-res{position:absolute;z-index:5;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:#141a22;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 30px -12px #000}
.nfl-res a{display:block;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--txt);font-weight:700}
.nfl-res a:hover,.nfl-res a:focus{background:var(--panel2)}.nfl-res small{color:var(--mut);font-weight:600;margin-left:6px}.nfl-res li.muted{padding:8px 10px}
/* Try a stat: 15 chips. Mobile: 2 columns so long labels ("Pass + Rush Yds") are never clipped. */
.nfl-qs .qs-pass_td{--q:#22d3ee;--qb:rgba(34,211,238,.12)}.nfl-qs .qs-pass_cmp{--q:#a3e635;--qb:rgba(163,230,53,.12)}.nfl-qs .qs-pass_att{--q:#94a3b8;--qb:rgba(148,163,184,.16)}
.nfl-qs .qs-pass_int{--q:#f87171;--qb:rgba(248,113,113,.12)}.nfl-qs .qs-pass_rush_yds{--q:#e879f9;--qb:rgba(232,121,249,.12)}.nfl-qs .qs-rush_yds{--q:#fb923c;--qb:rgba(251,146,60,.12)}
.nfl-qs .qs-rush_att{--q:#f59e0b;--qb:rgba(245,158,11,.12)}.nfl-qs .qs-rush_rec_yds{--q:#2dd4bf;--qb:rgba(45,212,191,.12)}.nfl-qs .qs-rec{--q:#f472b6;--qb:rgba(244,114,182,.12)}
.nfl-qs .qs-rec_yds{--q:#60a5fa;--qb:rgba(96,165,250,.12)}.nfl-qs .qs-tgt{--q:#818cf8;--qb:rgba(129,140,248,.12)}.nfl-qs .qs-td{--q:#4ade80;--qb:rgba(74,222,128,.12)}.nfl-qs .qs-anytime_td{--q:#fbbf24;--qb:rgba(251,191,36,.16)}.nfl-qs .qs-long_rec{--q:#38bdf8;--qb:rgba(56,189,248,.12)}
@media (max-width:640px){
  .quickstats.nfl-qs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nfl-qs .qs{white-space:normal;line-height:1.2;padding:7px 6px;overflow-wrap:anywhere}
}
/* Game chips: wrap instead of scrolling off-screen; team colors are contrast-checked (>= 4.5:1) */
.nfl-games{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.nfl-mchip{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 10px;font-size:14px;color:var(--txt);background:#161d26}
.nfl-mchip .tmark{margin:0;width:1.9em;height:1.9em}
.nfl-mchip small{flex:1 1 100%;color:#b8c2cd;font-size:12px}
.nfl-mchip.tnf{border-color:#fbbf24;box-shadow:0 0 0 1px #fbbf2455}
.nfl-tnf .tc-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.nfl-tnf .tc-title .tmark{margin:0;width:1.6em;height:1.6em}
.nfl-tnf-props{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.nfl-block{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:14px 0}
.nfl-block h2{font-size:18px;margin:0 0 8px}
.nfl-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.nfl-two .nfl-block{margin:0}
@media (max-width:720px){.nfl-two{grid-template-columns:1fr}}
.nfl-mini{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;counter-reset:m}
.nfl-mini li{display:flex;align-items:center;gap:6px;font-size:14px;counter-increment:m}
.nfl-mini li:before{content:counter(m);width:1.4em;color:var(--mut);font-weight:700}
.nfl-mini span{color:#b8c2cd;font-size:13px}
.at{color:var(--mut);font-weight:600}
/* Player pages */
.tool .tabs a.tab{background:var(--panel2);color:var(--txt);border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-weight:600;font-size:13px;white-space:nowrap;text-decoration:none;display:inline-block}
.tool .tabs a.tab.on{background:var(--acc);border-color:var(--acc);color:var(--acc-on)}
.tool .tabs a.tab:hover{border-color:var(--acc)}
.nfl .tool .tabs{display:flex;flex-wrap:wrap;gap:6px}
.nfl-matchup{font-size:14px;background:var(--panel2);border-left:3px solid var(--acc);border-radius:8px;padding:7px 10px;margin:6px 0}
.nfl-injnote{font-size:13px;background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.35);border-radius:8px;padding:7px 10px;margin:6px 0}
.rates.nfl-rates{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
@media (max-width:640px){.rates.nfl-rates{grid-template-columns:repeat(2,1fr)}}
.inj{display:inline-block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:1px 6px;border-radius:999px;margin-left:5px;vertical-align:middle;background:#3a2a10;color:#fcd34d;border:1px solid #a16207}
.inj-out,.inj-ir,.inj-ir-r,.inj-doubtful,.inj-pup-r,.inj-nfi-r{background:#3b1414;color:#fca5a5;border-color:#b91c1c}
.nfl-mates{flex-wrap:wrap!important;overflow:visible!important}
/* Game pages / tables */
.nfl-side h3{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.nfl-side h3 .tmark{margin:0}
.nfl-gt th[scope=row]{text-align:left;white-space:nowrap}.nfl-gt th[scope=row] a{color:var(--txt);font-weight:700}
.hrpct{display:inline-block;min-width:3.2em;text-align:center;border-radius:6px;padding:1px 4px;font-weight:700}
.nfl-inj{margin:0;padding-left:18px;font-size:13px;display:flex;flex-direction:column;gap:4px}
.nfl-rank th[scope=row]{white-space:nowrap;text-align:left}
.nfl-rank td small{font-size:10px}
.nfl .games .sides{grid-template-columns:1fr}
@media (min-width:1100px){.nfl .games .sides{grid-template-columns:1fr 1fr}}
/* --- screenshot review fixes --- */
/* Many NFL logos are navy/black (NYG, NE, DAL, TEN, LV): light disc so they read on the dark theme */
.nfl .tmark.has-logo,.nfl-mchip .tmark.has-logo{background:#eef2f7;border-width:1.5px}
/* Mobile header: NBA|NFL next to the logo, site nav on one scrollable row */
@media (max-width:720px){
  body.nfl .topbar{flex-wrap:wrap;row-gap:8px}
  body.nfl .topbar > div{flex:1 1 0;min-width:0}
  body.nfl .topbar .sportswitch{order:2;margin:0}
  body.nfl .topnav{order:3;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  body.nfl .topnav a[href="/"]{display:inline-block}
}
@media (max-width:640px){
  .nfl-games{grid-template-columns:1fr 1fr;gap:6px}
  .nfl-mchip{font-size:13px;padding:6px 8px;gap:4px}
  .nfl-mchip .tmark{width:1.6em;height:1.6em}
  body.nfl .gc-scroll svg{min-width:0}
  .rates.nfl-rates .hr:last-child:nth-child(odd){grid-column:1/-1}
  .nfl-gt .gt-avg{display:none}
  .nfl-gt{font-size:13px}
  .nfl-gt th,.nfl-gt td{padding-left:4px;padding-right:4px}
}
/* Game page tables: never wider than the card */
.nfl .games .game,.nfl .games .sides,.nfl-side{min-width:0}
.nfl-gt th[scope=row]{white-space:normal;text-transform:none;letter-spacing:0;font-size:inherit}
.nfl-gt th[scope=row] a{text-transform:none}
.gt-stat{display:block;color:var(--mut);font-weight:600;font-size:11px}
/* Rank tables: team column stays visible while scrolling sideways */
.nfl-rank th[scope=row],.nfl-rank thead th:first-child{position:sticky;left:0;z-index:1;background:#151b23}
@media (max-width:640px){ body.nfl .nav-long{display:none} body.nfl .topnav a{padding:5px 10px;font-size:13px} }
/* Player headshots next to names (round, face-centred crop of the ESPN headshot) */
.pmini{width:28px;height:28px;border-radius:50%;object-fit:cover;object-position:50% 12%;background:#2a3340;border:1.5px solid var(--c,var(--line));flex:none;display:inline-block;vertical-align:middle;margin-right:6px}
.pmini-wrap{display:inline-flex;flex:none;vertical-align:middle}
.pmini-wrap .tmark{margin-right:6px}
.chip.tchip .pmini{width:24px;height:24px;margin-right:6px}
.gt-who{display:inline-flex;align-items:center}
.nfl-gt .pmini{width:30px;height:30px}
.nfl-res a{display:flex;align-items:center;gap:0}.nfl-res .pmini{margin-right:8px}
.team-block .chip.tchip{padding:3px 10px 3px 4px}
@media (max-width:640px){.nfl-gt .pmini{width:26px;height:26px;margin-right:5px}}
.gt-p{display:flex;align-items:center;gap:7px;min-width:0}.gt-p .pmini,.gt-p .pmini-wrap .tmark{margin:0}
.gt-p > div{min-width:0;line-height:1.25}
@media (max-width:640px){.nfl-gt th[scope=row] a{font-size:13px}}
/* TNF card: every player of both teams with his face, grouped by team */
.nfl-tnf-props{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
.tnf-team{min-width:0}
.tnf-th{display:flex;align-items:center;gap:6px;font-size:14px;margin:0 0 6px;color:var(--ct,var(--txt))}
.tnf-th .tmark{margin:0}.tnf-th small{color:var(--mut);font-weight:600}
.tnf-grid{display:flex;flex-direction:column;gap:5px}
.chip.tnf-p{display:flex;align-items:center;white-space:normal;padding:4px 10px 4px 4px;border-radius:12px;min-width:0}
.chip.tnf-p .pmini,.chip.tnf-p .pmini-wrap .tmark{width:34px;height:34px;margin-right:8px}
.tnf-pt{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.tnf-pn{font-weight:700;font-size:13px}
.tnf-p small{margin:0!important;font-size:11px}
@media (max-width:640px){
  .nfl-tnf-props{grid-template-columns:1fr}
  .tnf-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
  .chip.tnf-p .pmini,.chip.tnf-p .pmini-wrap .tmark{width:30px;height:30px;margin-right:6px}
  .tnf-pn{font-size:12px}.tnf-p small{font-size:10px}
  .nfl-gt .gt-l5{display:none}
}
.hero .nfl-search,.nfl-search{z-index:20}
.nfl-res{background:#141a22!important;z-index:21}
.team-block .popular{flex-wrap:wrap!important;overflow:visible!important}

/* Anytime TD listing: no fake line; L5/L10/season as games scored */
.atd-toolbar{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 8px}
.atd-toolbar h2{margin:0}
.atd-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.atd-filters .chip.atd-f{cursor:pointer;font:inherit;font-weight:700;font-size:13px;background:var(--panel2);color:var(--txt);border:1px solid var(--line);border-radius:999px;padding:6px 12px}
.atd-filters .chip.atd-f:hover{border-color:var(--acc)}
.atd-filters .chip.atd-f.on{background:var(--acc);border-color:var(--acc);color:var(--acc-on)}
.atd-filters .chip.atd-f.tnf{border-color:#fbbf24}
.atd-filters .chip.atd-f.tnf.on{background:#fbbf24;border-color:#fbbf24;color:#1a1408}
.atd-cols,.atd-card{grid-template-columns:2.1rem minmax(12rem,1.3fr) minmax(7rem,.8fr) minmax(19rem,2.2fr)}
@media (max-width:800px){
  .atd-cols{display:none}
  .atd-card{grid-template-columns:2rem minmax(0,1fr);grid-template-areas:"rank who" "game game" "rates rates"}
  .atd-card .bh-rank{grid-area:rank}
  .atd-card .bh-who{grid-area:who}
  .atd-card .bh-game{grid-area:game;padding-left:2rem}
  .atd-card .bh-rates{grid-area:rates}
}
.nfl .linebar[hidden]{display:none}
.qs-anytime_td{font-weight:800}

/* --- compact lists + no horizontal overflow (preview/nfl-compact-charts) --- */
/* Keep every NFL list and table inside the page frame at 320–1440px. */
body.nfl{overflow-x:hidden}
body.nfl .wrap,
body.nfl .bh-block,
body.nfl .bh-list,
body.nfl .bh-card,
body.nfl .bh-cols,
body.nfl .bh-who,
body.nfl .bh-id,
body.nfl .bh-game,
body.nfl .bh-rates,
body.nfl .games,
body.nfl .games .game,
body.nfl .games .sides,
body.nfl .nfl-side,
body.nfl .tblwrap,
body.nfl .gc-card,
body.nfl .gc-scroll,
body.nfl .seo-head,
body.nfl .tool,
body.nfl .nfl-block,
body.nfl .tnf-team,
body.nfl .tnf-pt{min-width:0;max-width:100%}
body.nfl .tblwrap,
body.nfl .gc-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* Shorter, tighter hit-rate rows (home, best-hit-rates, anytime-td). */
body.nfl .bh-block{padding:10px 10px 8px;margin:12px 0}
body.nfl .bh-block h2{font-size:17px;margin:0 0 6px}
body.nfl .bh-list{gap:5px}
body.nfl .bh-cols,
body.nfl .bh-card{
  grid-template-columns:1.7rem minmax(0,1.2fr) minmax(0,.7fr) 3.3rem minmax(0,2fr) 3.4rem;
  gap:4px 8px;
  padding:6px 8px;
}
body.nfl .bh-cols{padding:0 8px 4px;font-size:10px}
body.nfl .atd-cols,
body.nfl .atd-card{grid-template-columns:1.7rem minmax(0,1.25fr) minmax(0,.75fr) minmax(0,2.1fr)}
body.nfl .bh-rank{font-size:13px}
body.nfl .bh-who{gap:6px}
body.nfl .bh-shot,
body.nfl .bh-shot-empty{width:40px;height:30px;border-radius:8px}
body.nfl .bh-shot-empty .tmark{width:22px;height:22px}
body.nfl .bh-name{font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.nfl .bh-meta{font-size:11px;gap:.3em;min-width:0}
body.nfl .bh-meta>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.nfl .bh-meta .tmark{width:1.4em;height:1.4em}
body.nfl .bh-game{font-size:12px;gap:5px}
body.nfl .bh-game .tmark{width:1.4em;height:1.4em}
body.nfl .bh-game small{font-size:10px}
body.nfl .bh-line b,
body.nfl .bh-avg b{font-size:13px}
body.nfl .bh-line small,
body.nfl .bh-avg small{font-size:9px}
body.nfl .bh-rates{gap:4px}
body.nfl .bh-rates .hr{padding:3px 2px 4px;border-radius:8px}
body.nfl .bh-rates .hr .lbl{font-size:8px}
body.nfl .bh-rates .hr .pct{font-size:13px;line-height:1.1}
body.nfl .bh-rates .hr small{font-size:9px}
body.nfl .bh-rates .hr.bh-no-h2h .pct{font-size:12px}

/* Stack the 6-column table before its min content width (~850px) overflows the frame. */
@media (max-width:960px){
  body.nfl .bh-cols,
  body.nfl .atd-cols{display:none}
  body.nfl .bh-card{grid-template-columns:1.8rem minmax(0,1fr) auto;grid-template-areas:"rank who line" "rank who avg" "game game game" "rates rates rates";gap:6px 8px;padding:8px}
  body.nfl .bh-rank{grid-area:rank;align-self:start;padding-top:4px}
  body.nfl .bh-who{grid-area:who}
  body.nfl .bh-line{grid-area:line;text-align:right}
  body.nfl .bh-avg{grid-area:avg;text-align:right}
  body.nfl .bh-game{grid-area:game;padding-left:1.8rem}
  body.nfl .bh-rates{grid-area:rates}
  body.nfl .atd-card{grid-template-columns:1.8rem minmax(0,1fr);grid-template-areas:"rank who" "game game" "rates rates"}
  body.nfl .atd-card .bh-rank{grid-area:rank}
  body.nfl .atd-card .bh-who{grid-area:who}
  body.nfl .atd-card .bh-game{grid-area:game;padding-left:1.8rem}
  body.nfl .atd-card .bh-rates{grid-area:rates}
}
@media (max-width:640px){
  body.nfl .bh-block{padding:8px 8px 6px}
  body.nfl .bh-rates{gap:3px}
  body.nfl .bh-rates .hr{padding:3px 2px}
  body.nfl .bh-rates .hr .pct{font-size:12px}
  body.nfl .bh-card{padding:7px 8px;gap:5px 6px}
  body.nfl .bh-shot,
  body.nfl .bh-shot-empty{width:36px;height:28px}
  body.nfl .tnf-pn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.nfl .chip.tnf-p{padding:3px 8px 3px 3px}
  body.nfl .chip.tnf-p .pmini,
  body.nfl .chip.tnf-p .pmini-wrap .tmark{width:26px;height:26px;margin-right:5px}
  body.nfl .tnf-grid{gap:4px}
  body.nfl .nfl-block{padding:8px 10px;margin:10px 0}
}

/* Game / rank tables: tighter rows, contained scroll rather than page overflow. */
body.nfl .log th,
body.nfl .log td{padding:4px 6px}
body.nfl .nfl-gt{font-size:13px}
body.nfl .nfl-gt .gt-p a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.nfl .nfl-rank{font-size:13px}
body.nfl .nfl-rank th,
body.nfl .nfl-rank td{padding:4px 6px}
@media (max-width:900px){
  body.nfl .nfl-gt .gt-avg{display:none}
}
@media (max-width:640px){
  body.nfl .log th,
  body.nfl .log td{padding:4px 3px}
}

/* TNF / home chips a bit shorter */
body.nfl .nfl-mini{gap:4px}
body.nfl .nfl-mini li{font-size:13px}
body.nfl .chip.tnf-p{padding:3px 8px 3px 3px}
body.nfl .tnf-pn{overflow:hidden;text-overflow:ellipsis}
