/* NFL Conference Wall — live games prefer a single viewport */

button.nfl-game {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border-top: 1px solid var(--line, #e4e8e2);
  cursor: pointer;
}
button.nfl-game:hover {
  background: #f4f7fb;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  width: calc(100% + 16px);
  border-radius: 8px;
}

.nfl-page.conference {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.nfl-conference-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 2px 0 8px;
}

.nfl-toolbar-row {
  display: contents;
}

.nfl-filters-scroll {
  min-width: 0;
}

.nfl-view-trigger,
.nfl-view-prefs-head,
.nfl-view-backdrop {
  display: none;
}

.nfl-view-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-left: auto;
}
.nfl-filters.seg-track {
  flex-wrap: wrap;
}

.nfl-conference-section { min-width: 0; }

.nfl-conference-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  flex-shrink: 0;
}
.nfl-conference-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 13px/1.2 Manrope, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #173556;
}
.nfl-conference-head span {
  font: 600 11px/1.2 Manrope, sans-serif;
  color: #718297;
}

.nfl-conference-grid {
  display: grid;
  gap: 10px;
  /* ~4 across on typical desktop instead of ~5 — fields stay a bit wider. */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  min-width: 0;
}

/* Live grid: content-sized short fields — no nested scroll, no forced clip */
.nfl-conference-grid.live {
  grid-template-columns: repeat(var(--nfl-live-cols, 2), minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.nfl-conference-section.live {
  overflow: visible;
}
.nfl-conference-section.live .nfl-conference-head h2 { color: #b11635; }

/*
 * TV overlay cell:
 * picture (field) fills the frame; scorebug + lower-third sit ON TOP like broadcast HUD.
 */
.nfl-ov {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 2px 7px #0b172b06;
  width: 100%;
}

.nfl-ov-hit {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  padding: 0;
  text-align: left;
  color: #fff;
  overflow: hidden;
  border-radius: 0;
  background: #0a1a10;
  isolation: isolate;
}
.nfl-ov.is-field .nfl-ov-hit {
  /* Same strip height for live + upcoming + final */
  height: 86px;
  min-height: 86px;
  max-height: 86px;
}
.nfl-ov-hit:focus-visible {
  outline: 2px solid #122640;
  outline-offset: 2px;
}
.nfl-ov.is-field .nfl-ov-hit:hover .nfl-sb { filter: brightness(1.06); }

.nfl-ov-pic {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a1a10;
}
.nfl-ov-pic-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Yard labels outside the stretched SVG so digits stay upright on narrow tiles. */
.nfl-yard-nums {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.nfl-yard-nums span {
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  font: 700 9px/1 Manrope, sans-serif;
  letter-spacing: .02em;
  color: #e8f5e9;
  opacity: .52;
  text-shadow: 0 1px 2px #0a1a10cc;
  font-variant-numeric: tabular-nums;
}
.nfl-tile-field .nfl-yard-nums span {
  top: 3px;
  font-size: 7.5px;
  letter-spacing: .03em;
  opacity: .48;
}

/* Classic horizontal scorebug — opaque bar centered over the picture */
.nfl-sb {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: stretch;
  max-width: calc(100% - 12px);
  background: #0b1524f2;
  box-shadow: 0 2px 10px #0008, 0 0 0 1px #0006;
  font-variant-numeric: tabular-nums;
}
.nfl-sb.static {
  position: static;
  max-width: none;
  width: 100%;
  left: auto;
  bottom: auto;
  transform: none;
  border-radius: 2px;
}
.nfl-sb-scores {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
}
.nfl-sb-team {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: color-mix(in srgb, var(--team-1, #334) 82%, #0b1524);
  min-width: 4.2rem;
}
.nfl-sb-team + .nfl-sb-team {
  border-left: 1px solid #0006;
}
.nfl-sb-team.has-ball {
  background: color-mix(in srgb, var(--team-1, #334) 92%, #000);
}
.nfl-sb-team.has-ball::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: #f4e27a;
}
.nfl-sb-abbr {
  font: 800 13px/1 Barlow, Manrope, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 #0009;
}
.nfl-sb-score {
  font: 700 17px/1 Barlow, Manrope, sans-serif;
  letter-spacing: -.3px;
  color: #fff;
  text-shadow: 0 1px 0 #0009;
}
.nfl-sb-ball {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: linear-gradient(145deg, #e08945, #8b3a12);
  box-shadow: 0 0 0 1px #f4e8d8cc;
  transform: rotate(-25deg);
}
.nfl-sb-sep {
  width: 1px;
  background: #ffffff22;
  flex-shrink: 0;
}
.nfl-sb-clock,
.nfl-sb-down {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  white-space: nowrap;
  font: 800 12px/1 Barlow, Manrope, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #f2f6fb;
  background: #0b1524;
}
.nfl-sb-clock { color: var(--live, #ff5a75); }
.nfl-sb-down {
  font-weight: 700;
  color: #e8eef6;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nfl-sb-down span {
  margin-left: 6px;
  font-weight: 600;
  color: #a8b8cc;
  text-transform: none;
  letter-spacing: 0;
}
.nfl-sb-down em {
  margin-left: 6px;
  padding: 2px 4px;
  font: 800 9px/1 Manrope, sans-serif;
  font-style: normal;
  letter-spacing: .3px;
  background: #c62828;
  color: #fff;
}

/* Last-play text row — sits above fantasy chips, not on the field */
.nfl-tile-play {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 6px 10px 2px;
  width: 100%;
  min-width: 0;
  min-height: 22px;
  background: #fff;
  font: 600 11px/1.3 Manrope, sans-serif;
  color: #405774;
}
.nfl-tile-play.is-empty {
  min-height: 22px;
  pointer-events: none;
}
.nfl-tile-play-tag {
  flex: 0 0 auto;
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .4px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #122640;
  color: #fff;
  white-space: nowrap;
}
.nfl-tile-play.gain .nfl-tile-play-tag { background: #1b6b3a; }
.nfl-tile-play.loss .nfl-tile-play-tag { background: #8a2a12; }
.nfl-tile-play.score .nfl-tile-play-tag { background: #8a2a12; }
.nfl-tile-play.result .nfl-tile-play-tag { background: #3a4a5c; }
.nfl-tile-play-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nfl-play-name {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border-radius: 2px;
}
.nfl-play-name.own { color: #d61b3e; font-weight: 800; }
.nfl-play-name.opp { color: #2f6fd4; font-weight: 800; }
.nfl-play-name.other { color: #4a5d75; font-weight: 750; }
button.nfl-play-name:hover { text-decoration: underline; text-underline-offset: 2px; }
span.nfl-play-name { cursor: inherit; }
.nfl-last-play p .nfl-play-name.own { color: #c41836; }
.nfl-last-play p .nfl-play-name.opp { color: #245bb5; }
.nfl-tv-meta-play .nfl-play-name.own { color: #d61b3e; }
.nfl-tv-meta-play .nfl-play-name.opp { color: #2f6fd4; }
.nfl-tile-play-result {
  flex: 0 0 auto;
  margin-left: auto;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .2px;
  color: #5c7088;
  white-space: nowrap;
}
.nfl-tile-play.fresh .nfl-tile-play-tag,
.nfl-tile-play.fresh .nfl-tile-play-text,
.nfl-tile-play.fresh .nfl-tile-play-result {
  animation: nfl-play-in .42s cubic-bezier(.2,.8,.2,1) both;
}
.nfl-tile-play.fresh .nfl-tile-play-tag { animation-delay: 0ms; }
.nfl-tile-play.fresh .nfl-tile-play-text { animation-delay: 75ms; }
.nfl-tile-play.fresh .nfl-tile-play-result { animation-delay: 150ms; }
.nfl-tile-play.score { background: #fff8f2; }

.nfl-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: nfl-pulse 1.6s ease-in-out infinite;
}

.nfl-fantasy-count {
  align-self: center;
  margin-left: auto;
  margin-right: 8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 3px;
  display: inline-grid; place-items: center;
  font: 800 9px/1 Manrope, sans-serif;
  background: #f4f7fb; color: #122640;
}

.nfl-tile-field {
  flex: 0 1 auto;
  min-height: 34px;
  max-height: 48px;
  border-radius: 0;
  overflow: hidden;
  background: #0a1a10;
}
.nfl-tile-field svg,
.nfl-mini-svg { display: block; width: 100%; height: 100%; min-height: 36px; }
.nfl-endzone.away,
.nfl-endzone.home { opacity: 1; }
/* Possession = endzone itself as the “box”, not a nested chip around the logo */
.nfl-endzone.has-ball {
  filter: brightness(1.12) saturate(1.08);
}

/* Endzone logo + score — HTML overlays, never stretched with the field SVG */
.nfl-tile-field,
.nfl-field-surface { position: relative; }
.nfl-field-surface { width: 100%; }
.nfl-ez-mark {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-sizing: border-box;
  width: 40px;
  max-width: 12%;
  max-height: calc(100% - 6px);
  overflow: hidden;
}
.nfl-ez-mark.away { left: var(--ez-away, 5%); }
.nfl-ez-mark.home { left: var(--ez-home, 95%); }
.nfl-ez-logo {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 1px 3px #0009);
}
/* Light endzone marks (mono brands on primary color) */
.nfl-ez-logo.is-light {
  filter: drop-shadow(0 1px 2px #000c);
}
.nfl-ez-abbr {
  font: 800 11px/1 Barlow, Manrope, sans-serif;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 1px 2px #000a;
}
.nfl-ez-score {
  font: 800 clamp(13px, 2.4vw, 20px)/1 Barlow, Manrope, sans-serif;
  letter-spacing: -.3px;
  color: #fff;
  text-shadow: 0 1px 0 #000c, 0 0 8px #0006;
  font-variant-numeric: tabular-nums;
}
.nfl-ez-mark.idle {
  opacity: 1;
}
.nfl-ez-mark.has-ball {
  opacity: 1;
}
.nfl-ez-mark.is-winner .nfl-ez-score {
  font-size: clamp(15px, 2.6vw, 22px);
  text-shadow: 0 1px 0 #000c, 0 0 10px #fffc;
}
.nfl-ez-poss {
  margin-top: 5px;
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid #00000033;
  box-shadow: 0 0 0 1px #ffffff55;
  font: 800 8px/1.1 Manrope, sans-serif;
  letter-spacing: .55px;
  background: #ffe566;
  color: #1a1208;
}
.nfl-drive-arrow {
  fill: #ffe566;
  opacity: .95;
  filter: drop-shadow(0 1px 2px #0008);
}
.nfl-tile-field .nfl-ez-mark {
  width: 34px;
  max-width: 14%;
}
.nfl-tile-field .nfl-ez-logo {
  width: 18px;
  height: 18px;
}
.nfl-tile-field .nfl-ez-score {
  font-size: 12px;
}
.nfl-ov-pic .nfl-ez-mark {
  width: 44px;
  max-width: 15%;
}
.nfl-ov-pic .nfl-ez-logo {
  width: 24px;
  height: 24px;
}
.nfl-ov-pic .nfl-ez-score {
  font-size: clamp(14px, 2.1vw, 18px);
}
.nfl-ov-pic .nfl-ez-poss {
  font-size: 7px;
  padding: 1px 3px;
}

.nfl-sb-slim {
  padding: 0;
}
.nfl-sb-slim .nfl-sb-clock,
.nfl-sb-slim .nfl-sb-down {
  padding: 5px 9px;
}
.nfl-drive-path {
  stroke: #f4e27a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}
.nfl-drive-path.pass { stroke: #ffe566; stroke-width: 2.6; }
.nfl-drive-path.rush { stroke: #9fd0ff; stroke-width: 2.4; }
.nfl-drive-path.kick { stroke: #e8eef6; stroke-width: 2.2; stroke-dasharray: 0.05 0.04; }
.nfl-drive-path.return { stroke: #ffb070; stroke-width: 2.5; }
.nfl-drive-path-glow {
  stroke: #ffe566;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .35;
}
.nfl-drive-path-glow.rush { stroke: #5eb8ff; opacity: .28; }
.nfl-drive-path-glow.kick { stroke: #dce6f2; opacity: .3; }
.nfl-drive-path-glow.return { stroke: #ffb070; opacity: .32; }
.nfl-drive-path.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: nfl-path-draw .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.nfl-drive-path.kick.draw {
  stroke-dasharray: 0.05 0.04;
  animation: none;
  stroke-dashoffset: 0;
}
.nfl-los {
  stroke: #5eb8ff;
  stroke-width: 2.8;
  opacity: 1;
  filter: drop-shadow(0 0 3px #5eb8ffcc);
}
.nfl-fd {
  stroke: #ffe566;
  stroke-width: 2.4;
  opacity: .95;
  stroke-dasharray: 5 3;
  filter: drop-shadow(0 0 2px #ffe56699);
}
.nfl-mark-label {
  font: 800 8px Manrope, sans-serif;
  letter-spacing: .4px;
  paint-order: stroke fill;
  stroke: #0a1a10;
  stroke-width: 3px;
}
.nfl-mark-label.los { fill: #9fd0ff; }
.nfl-mark-label.fd { fill: #ffe566; }
.nfl-ez-label {
  fill: #ffffffee;
  font: 800 12px Barlow, Manrope, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: #00000066;
  stroke-width: 2px;
}
.nfl-ball-g {
  transform: translate(var(--ball-x), var(--ball-y));
}
.nfl-ball-g.run { animation: nfl-ball-g-run .75s cubic-bezier(.2,.8,.2,1) forwards; }
.nfl-ball-halo {
  fill: #ffe56688;
  stroke: #fff8;
  stroke-width: .6;
}
.nfl-ball-core {
  stroke: #2a1408;
  stroke-width: .8;
}
.nfl-ball-lace {
  fill: none;
  stroke: #f4e8d8;
  stroke-width: 1;
  stroke-linecap: round;
}
.nfl-ball-shine {
  fill: #ffffff55;
}

.nfl-tile-fantasy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 4px;
  padding: 8px 8px 8px;
  flex: 1 1 auto;
  margin-top: auto;
  overflow: visible;
  width: 100%;
  min-width: 0;
  /* Keep row height even when a game has no fantasy players */
  min-height: 26px;
  background: #fff;
}
.nfl-tile-fantasy.is-empty {
  pointer-events: none;
}
.nfl-fantasy-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 7px 5px;
  border-radius: 999px;
  border: 1px solid #d5deea;
  background: #fff;
  font: 700 10.5px/1.3 Manrope, sans-serif;
  color: #243e61;
  max-width: 100%;
}
.nfl-fantasy-chip .name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  padding-bottom: .05em;
}
.nfl-fantasy-chip.compact {
  padding: 3px 6px 4px;
  font-size: 10px;
  gap: 3px;
}
.nfl-fantasy-chip.own {
  border-color: #ff9aab;
  background: #fff0f3;
  color: #b51535;
}
.nfl-fantasy-chip.opp {
  border-color: #8fb9ff;
  background: #e8f1ff;
  color: #1a4f9c;
}
.nfl-fantasy-chip.other {
  border-color: #d5deea;
  background: #f5f7fb;
  color: #4a5d75;
}
.nfl-fantasy-chip.bench {
  border-width: 2px;
  border-style: dashed;
  opacity: 1;
}
.nfl-fantasy-chip.own.bench { border-color: #d61b3e; }
.nfl-fantasy-chip.opp.bench { border-color: #2f6fd4; }
.nfl-fantasy-chip.other.bench { border-color: #5c7088; }

/* Compact = stacked TV scorebug lines on a strict column grid */
.nfl-page[data-nfl-density="compact"] .nfl-conference-grid,
.nfl-page[data-nfl-density="compact"] .nfl-conference-grid.live,
.nfl-page[data-nfl-density="compact"] .nfl-conference-grid.mixed {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 7px;
}

.nfl-ov.nfl-row.is-compact {
  width: 100%;
  height: auto;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.nfl-tv-line {
  --tv-team: 9.25rem;
  --tv-clock: 5.4rem;
  display: grid;
  grid-template-columns: calc(var(--tv-team) * 2) var(--tv-clock) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 10px 0 0;
  overflow: hidden;
  text-align: left;
  color: var(--ink, #17211d);
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line, #e4e8e2);
  font-variant-numeric: tabular-nums;
}
.nfl-tv-line:hover .nfl-tv-match {
  box-shadow: 0 0 0 1px #0005, 0 2px 10px #0b1d3220;
}
.nfl-tv-line:hover .nfl-tv-team {
  background: color-mix(in srgb, var(--team-1, #334) 90%, #0b1524);
}
.nfl-tv-line:focus-visible {
  outline: 2px solid var(--accent, #ef743b);
  outline-offset: 3px;
  border-radius: 4px;
}

.nfl-tv-match,
.nfl-tv-clock,
.nfl-tv-meta {
  min-width: 0;
}

/* Only the match chip is colored — clock + meta sit on the white row */
.nfl-tv-match {
  display: grid;
  grid-template-columns: var(--tv-team) var(--tv-team);
  align-items: stretch;
  width: calc(var(--tv-team) * 2);
  overflow: hidden;
  border-radius: 4px 0 0 4px;
  background: #071018;
  box-shadow: none;
  color: #fff;
}

.nfl-tv-clock {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  gap: 5px;
  width: var(--tv-clock);
  padding: 0;
  font: 800 12px/1 Barlow, Manrope, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted, #7c8680);
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nfl-ov.live .nfl-tv-clock { color: var(--live, #ff5a75); }
.nfl-ov.final .nfl-tv-clock { color: var(--final, #929a95); }

.nfl-tv-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  width: var(--tv-team);
  min-width: var(--tv-team);
  max-width: var(--tv-team);
  /* Vertical padding keeps logo + shadow inside overflow:hidden row */
  padding: 6px 8px;
  background: color-mix(in srgb, var(--team-1, #334) 86%, #0b1524);
}
.nfl-tv-team.has-ball {
  background: color-mix(in srgb, var(--team-1, #334) 94%, #000);
}
/* Possession = triangle only; score stays white */
.nfl-tv-team.has-ball .nfl-tv-score {
  color: #fff;
}
.nfl-tv-team.is-winner {
  background: color-mix(in srgb, var(--team-1, #334) 96%, #fff);
  box-shadow: inset 0 0 0 1px #ffffff55;
}
.nfl-tv-team.is-winner .nfl-tv-score {
  font-size: 24px;
  text-shadow: 0 1px 0 #000c, 0 0 10px #fffc;
}
.nfl-tv-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.nfl-tv-logo {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* 1px hard shadow — soft blur drop-shadow softens the glyph */
  filter: drop-shadow(0 1px 0 #000a);
}
.nfl-tv-logo.is-light {
  filter: drop-shadow(0 1px 0 #000c);
}
.nfl-tv-logo.is-empty {
  display: block;
  background: #ffffff14;
  border-radius: 2px;
}
.nfl-tv-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 3.75ch;
}
.nfl-tv-team.home .nfl-tv-name { align-items: flex-end; }
.nfl-tv-abbr {
  /* 3.1ch + letter-spacing clipped wide glyphs (G in NYG); keep room for 3 letters */
  overflow: visible;
  white-space: nowrap;
  font: 800 15px/1.15 Barlow, Manrope, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 #0009;
}
.nfl-tv-record {
  white-space: nowrap;
  font: 600 9px/1 Manrope, sans-serif;
  letter-spacing: .15px;
  color: #ffffffa8;
  text-shadow: 0 1px 0 #0006;
}
.nfl-tv-team.home .nfl-tv-abbr { text-align: right; }
.nfl-tv-score {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  font: 700 22px/1 Barlow, Manrope, sans-serif;
  letter-spacing: -.35px;
  color: #fff;
  text-shadow: 0 1px 0 #0009;
  font-variant-numeric: tabular-nums;
}
.nfl-tv-team.away .nfl-tv-score { text-align: right; }
.nfl-tv-team.home .nfl-tv-score { text-align: left; }

/* Between score and name, pointing at the name — fixed slot so width never shifts */
.nfl-tv-poss {
  flex: 0 0 8px;
  width: 8px;
  height: 10px;
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  pointer-events: none;
}
.nfl-tv-poss.is-empty {
  visibility: hidden;
}
.nfl-tv-poss.point-left {
  border-width: 5px 8px 5px 0;
  border-right-color: #ffe566;
}
.nfl-tv-poss.point-right {
  border-width: 5px 0 5px 8px;
  border-left-color: #ffe566;
}

/* Meta + fantasy sit on the white TV-line (match chip stays colored) */
.nfl-tv-meta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  background: transparent;
  font: 700 12px/1.15 Manrope, sans-serif;
  color: var(--ink, #17211d);
  white-space: nowrap;
  overflow: hidden;
  container-type: inline-size;
  container-name: nfl-tv-meta;
}
.nfl-tv-meta.is-empty { display: none; }

/* Mini linescore: 3 rows × periods, fits in the compact row */
.nfl-tv-linescore {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 1px 0;
  font: 700 9px/1.05 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #405774;
  letter-spacing: .02em;
}
.nfl-tv-ls-head,
.nfl-tv-ls-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1.25rem;
  gap: 1px;
  justify-content: start;
}
.nfl-tv-ls-head {
  font-size: 8px;
  font-weight: 700;
  color: #8a9588;
}
.nfl-tv-ls-head span,
.nfl-tv-ls-row span {
  text-align: center;
  overflow: hidden;
}
.nfl-tv-ls-row.away { color: #5c7088; }
.nfl-tv-ls-row.home { color: #243e61; }
.nfl-tv-meta.is-crowded .nfl-tv-linescore { display: none; }
@container nfl-tv-meta (max-width: 220px) {
  .nfl-tv-linescore { display: none; }
}
/* Live situation columns: down | yard | RZ | play — same tracks every row */
.nfl-tv-sit {
  display: grid;
  grid-template-columns: 4.6rem 3.35rem 1.55rem minmax(0, 9.5rem);
  align-items: center;
  column-gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
}
.nfl-tv-meta-down {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 800 12px/1 Barlow, Manrope, sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--ink, #17211d);
}
.nfl-tv-meta-yard {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted, #7c8680);
  font-weight: 600;
}
.nfl-tv-meta-play {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted, #7c8680);
  font-weight: 600;
  padding-left: 7px;
  border-left: 1px solid var(--line, #e4e8e2);
}
.nfl-tv-meta-play.is-empty {
  border-left-color: transparent;
  padding-left: 0;
}
.nfl-tv-meta-rz {
  box-sizing: border-box;
  width: 1.55rem;
  min-height: 1.05rem;
  padding: 1px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 9px/1 Manrope, sans-serif;
  font-style: normal;
  letter-spacing: .3px;
  background: #c62828;
  color: #fff;
  border-radius: 2px;
}
.nfl-tv-meta-rz.is-empty {
  visibility: hidden;
  background: transparent;
  color: transparent;
}
.nfl-tv-fans {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-left: auto;
  padding-left: 6px;
}
.nfl-tv-fan {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  max-width: 7.5rem;
  padding: 3px 6px 4px;
  border-radius: 999px;
  border: 1px solid var(--line, #e4e8e2);
  background: #fff;
  font: 700 10px/1.3 Manrope, sans-serif;
  color: var(--ink, #17211d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nfl-tv-fan small {
  font: 800 10px/1.3 Barlow, Manrope, sans-serif;
  color: var(--muted, #7c8680);
}
.nfl-tv-fan.own {
  border-color: #ff9aab;
  background: #fff0f3;
  color: #b51535;
}
.nfl-tv-fan.opp {
  border-color: #8fb9ff;
  background: #e8f1ff;
  color: #1a4f9c;
}
.nfl-tv-fan.other {
  border-color: #d5deea;
  background: #f5f7fb;
  color: #4a5d75;
}
.nfl-tv-fan.bench {
  border-width: 2px;
  border-style: dashed;
  opacity: 1;
}
.nfl-tv-fan.own.bench { border-color: #d61b3e; }
.nfl-tv-fan.opp.bench { border-color: #2f6fd4; }
.nfl-tv-fan.other.bench { border-color: #5c7088; }
.nfl-tv-fan.more {
  flex-shrink: 0;
  padding: 4px 7px;
  color: var(--muted, #7c8680);
  background: transparent;
  border-style: dashed;
}

@media (max-width: 900px) {
  .nfl-tv-line {
    --tv-team: 8.85rem;
    --tv-clock: 5.25rem;
  }
  .nfl-tv-sit {
    grid-template-columns: 4.4rem 3.15rem 1.5rem minmax(0, 8.5rem);
    column-gap: 4px;
  }
}
@media (max-width: 650px) {
  .nfl-tv-line {
    --tv-team: 8.35rem;
    --tv-clock: 5rem;
    min-height: 48px;
    grid-template-columns: calc(var(--tv-team) * 2) var(--tv-clock) minmax(0, 1fr);
  }
  .nfl-tv-logo { flex-basis: 24px; width: 24px; height: 24px; }
  .nfl-tv-team { padding: 5px 7px; }
  .nfl-tv-abbr { font-size: 13px; }
  .nfl-tv-record { font-size: 8px; }
  .nfl-tv-score { font-size: 19px; flex-basis: 2rem; width: 2rem; }
  .nfl-tv-clock { font-size: 11px; }
  .nfl-tv-meta { font-size: 11px; padding: 0; gap: 6px; }
  .nfl-tv-sit {
    grid-template-columns: 4.2rem 3rem 1.4rem minmax(0, 7rem);
  }
}
@media (max-width: 420px) {
  .nfl-tv-line {
    --tv-team: 7.75rem;
    --tv-clock: 4.5rem;
    min-height: 40px;
    grid-template-columns: calc(var(--tv-team) * 2) var(--tv-clock);
  }
  .nfl-tv-meta { display: none; }
  .nfl-tv-logo { flex-basis: 22px; width: 22px; height: 22px; }
  .nfl-tv-team { padding: 5px 7px; gap: 5px; }
}
.nfl-fantasy-chip .pos {
  flex-shrink: 0;
  font: 800 8px/1.3 Manrope, sans-serif;
  letter-spacing: .25px;
  color: #718297;
}
.nfl-fantasy-chip strong {
  flex-shrink: 0;
  font: 700 11px/1.3 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}
/* Dense live wall: keep tag, hide long play text when packed */
.nfl-conference-grid.live[data-live-count="7"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="8"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="9"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="10"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="11"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="12"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="13"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="14"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="15"] .nfl-tile-play-text,
.nfl-conference-grid.live[data-live-count="16"] .nfl-tile-play-text {
  display: none;
}
.nfl-conference-grid.live[data-live-count="5"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="6"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="7"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="8"] .nfl-ov.is-field .nfl-ov-hit {
  height: 76px;
  min-height: 76px;
  max-height: 76px;
}
.nfl-conference-grid.live[data-live-count="5"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="6"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="7"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="8"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="9"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="10"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="11"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="12"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="13"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="14"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="15"] .nfl-tile-fantasy,
.nfl-conference-grid.live[data-live-count="16"] .nfl-tile-fantasy {
  display: none;
}
.nfl-conference-grid.live[data-live-count="9"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="10"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="11"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="12"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="13"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="14"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="15"] .nfl-ov.is-field .nfl-ov-hit,
.nfl-conference-grid.live[data-live-count="16"] .nfl-ov.is-field .nfl-ov-hit {
  height: 68px;
  min-height: 68px;
  max-height: 68px;
}
/* ——— Modal / full stage ——— */
dialog.nfl-dialog {
  width: min(980px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 1px solid #d5deea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 100px #0b1d3250;
  overflow: hidden;
  /* Never set display here — author display overrides UA dialog:not([open]){display:none}
     and the empty shell shows as a full-page white sheet on the overview. */
}
dialog.nfl-dialog[open] {
  display: flex;
  flex-direction: column;
}
.nfl-dialog::backdrop {
  background: #0e1b23a6;
  backdrop-filter: blur(6px);
}
#nfl-dialog-body.nfl-dialog-body,
.nfl-dialog-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.nfl-dialog-top {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #122640;
  color: #c5d3e6;
  font: 700 11px/1 Manrope, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.nfl-dialog-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.nfl-dialog-top .icon-button { color: #e8eef6; }
.nfl-dialog-top .icon-button:hover { background: #294563; }

.nfl-stage {
  min-width: 0;
  background: #f4f6f9;
  overflow: visible;
}
.nfl-modal-stage { border: 0; border-radius: 0; box-shadow: none; }

.nfl-hero {
  position: relative;
  padding: 16px 18px 14px;
  color: #f4f7fb;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--away-1) 82%, #0a1524) 0%, #122640 48%, color-mix(in srgb, var(--home-1) 82%, #0a1524) 100%);
  overflow: hidden;
}
.nfl-hero:before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, #ffffff18, transparent 45%),
    radial-gradient(ellipse at 80% 100%, #ffffff12, transparent 40%);
  pointer-events: none;
}
.nfl-hero > * { position: relative; z-index: 1; }
.nfl-hero-status {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 12px;
}
.nfl-hero .nfl-pill { background: #ffffff22; color: #fff; }
.nfl-hero .nfl-pill.live { background: #ef3655; color: #fff; }
.nfl-demo-tag {
  font: 700 10px/1 Manrope, sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #ffd27a;
}
.nfl-hero-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.nfl-hero-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nfl-hero-team.home { justify-content: flex-end; text-align: right; }
.nfl-hero-team strong {
  display: block;
  font: 800 20px/1.1 Barlow, Manrope, sans-serif;
  letter-spacing: .4px;
}
.nfl-hero-team span {
  display: block;
  font: 600 10px/1 Manrope, sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #b7c7dc;
  margin-top: 3px;
}
.nfl-hero-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px #0006);
}
.nfl-hero-points {
  font: 700 42px/.9 Barlow, Manrope, sans-serif;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.nfl-hero-sub {
  margin: 10px 0 0;
  font: 600 12px/1.4 Manrope, sans-serif;
  color: #c4d2e4;
}

.nfl-field {
  position: relative;
  margin: 0;
  padding: 0;
  background: #0c2c19;
  overflow: hidden;
}
.nfl-field.play-fresh .nfl-field-svg { animation: nfl-play-in .35s cubic-bezier(.2,.8,.2,1); }
.nfl-field-svg { display: block; width: 100%; height: clamp(148px, 24vw, 220px); }
/* Modal: compact broadcast strip — leave room to scroll stats below */
.nfl-modal-stage .nfl-field-svg {
  height: clamp(84px, 14vw, 120px);
}
.nfl-modal-stage .nfl-field .nfl-sb {
  bottom: 6px;
  transform: translateX(-50%) scale(0.92);
  transform-origin: bottom center;
}
.nfl-modal-stage .nfl-hero {
  padding: 12px 14px 10px;
}
.nfl-modal-stage .nfl-hero-points {
  font-size: clamp(28px, 5vw, 36px);
}
.nfl-field-marks {
  /* Paint above grain; no filters on this group */
  pointer-events: none;
}
.nfl-yardline { stroke: #ffffff42; stroke-width: 1; }
.nfl-yardline.mid { stroke: #ffffff62; stroke-width: 1.4; }
.nfl-yardline.goal { stroke: #ffffffd0; stroke-width: 2.2; }
.nfl-yard-tick {
  stroke: #ffffff3a;
  stroke-width: 1;
  stroke-linecap: butt;
}
.nfl-yard-tick.five {
  stroke: #ffffff52;
  stroke-width: 1.15;
}
.nfl-yard-num {
  fill: #e8f5e9;
  font: 700 12px Manrope, sans-serif;
  opacity: .42;
  paint-order: stroke;
  stroke: #0a1a1088;
  stroke-width: 2px;
}
.nfl-field .nfl-drive-path { stroke-width: 3.6; }
.nfl-field .nfl-drive-path-glow { stroke-width: 7; opacity: .4; }
.nfl-field .nfl-los { stroke-width: 3.2; }
.nfl-field .nfl-fd { stroke-width: 2.8; }
.nfl-field .nfl-mark-label { font-size: 10px; }
/* Game-card field: same TV scorebug as conference overview tiles */
.nfl-field .nfl-sb {
  bottom: 10px;
}
.nfl-field .nfl-sb-slim .nfl-sb-clock,
.nfl-field .nfl-sb-slim .nfl-sb-down {
  padding: 7px 12px;
  font-size: 13px;
}
.nfl-field .nfl-sb-down {
  max-width: 16rem;
  gap: 8px;
}
.nfl-field .nfl-sb-down b {
  font-weight: 800;
  color: #fff;
}

.nfl-stage-grid {
  display: grid;
  gap: 12px;
  padding: 14px 16px 8px;
}
.nfl-stage-stack {
  display: grid;
  gap: 14px;
  padding: 14px 16px 20px;
  background: #f4f6f9;
}
.nfl-stage-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .9fr);
  align-items: start;
  gap: 14px 16px;
}
.nfl-stage-main,
.nfl-stage-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.nfl-panel {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4ebf3;
  box-shadow: 0 1px 0 #ffffffa8 inset;
}

/* Fantasy matchup — dual roster confrontation */
.nfl-fx-matchup {
  padding: 14px 16px 16px;
}
.nfl-fx-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.nfl-fx-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.4rem;
  font: 800 11px/1 Barlow, Manrope, sans-serif;
  letter-spacing: .8px;
  color: #9aabbc;
}
.nfl-fx-col-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eef5;
}
.nfl-fx-col-head strong {
  display: block;
  font: 800 14px/1.1 Barlow, Manrope, sans-serif;
  color: #122640;
}
.nfl-fx-col-head span {
  display: block;
  font: 600 10px/1.2 Manrope, sans-serif;
  color: #7a8ba0;
}
.nfl-fx-sum {
  font: 800 20px/1 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #122640;
}
.nfl-fx-col.away .nfl-fx-sum { color: #8a2a12; }
.nfl-fx-col.home .nfl-fx-sum { color: #1a4f9c; }
.nfl-fx-list {
  display: grid;
  gap: 7px;
}
.nfl-fx-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fbfcfe;
  cursor: pointer;
}
.nfl-fx-card:hover {
  border-color: #c5d3e4;
  background: #fff;
  box-shadow: 0 2px 10px #0b1d3212;
}
.nfl-fx-card.own {
  border-color: #ff9aab;
  background: #fff3f5;
}
.nfl-fx-card.opp {
  border-color: #8fb9ff;
  background: #eef4ff;
}
.nfl-fx-card.other {
  border-color: #d5deea;
  background: #f7f9fc;
}
.nfl-fx-card.bench { opacity: .88; }
.nfl-fx-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.nfl-fx-top .pos {
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .35px;
  color: #7a8ba0;
  min-width: 1.6rem;
}
.nfl-fx-top .nm {
  font: 800 13px/1.15 Manrope, sans-serif;
  color: #173556;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nfl-fx-top .pts {
  font: 800 16px/1 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #122640;
}
.nfl-fx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.nfl-fx-meta .proj {
  font: 600 10px/1 Manrope, sans-serif;
  color: #8fa0b5;
}
.nfl-fx-meta .tag {
  padding: 2px 5px;
  border-radius: 3px;
  font: 800 8px/1 Manrope, sans-serif;
  letter-spacing: .35px;
  text-transform: uppercase;
  background: #e8eef5;
  color: #5c7088;
}
.nfl-fx-meta .tag.own { background: #ffe0e6; color: #b51535; }
.nfl-fx-meta .tag.opp { background: #d9e7ff; color: #1a4f9c; }
.nfl-fx-meta .tag.other { background: #e8eef5; color: #4a5d75; }
.nfl-fx-meta .tag.bench { background: transparent; border: 1px dashed #c5d0de; }
.nfl-fx-meta .tag.cat { background: #122640; color: #e8eef6; }
.nfl-fx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nfl-fx-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef3f9;
  font: 700 11px/1 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #243e61;
}
.nfl-fx-stat em {
  font: 700 8px/1 Manrope, sans-serif;
  font-style: normal;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #8fa0b5;
}
.nfl-fx-stat.is-empty {
  background: transparent;
  color: #a8b8cc;
  font: 600 10px/1 Manrope, sans-serif;
  padding: 0;
}
.nfl-fx-empty {
  margin: 0;
  padding: 14px 8px;
  text-align: center;
  font: 600 12px/1.3 Manrope, sans-serif;
  color: #8fa0b5;
}
.nfl-fx-other {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8eef5;
}
.nfl-fx-other > header {
  margin-bottom: 8px;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .45px;
  text-transform: uppercase;
  color: #7a8ba0;
}
.nfl-fx-other .nfl-fx-list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Win probability */
.nfl-wp-chart {
  display: grid;
  gap: 8px;
}
.nfl-wp-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 700 11px/1 Manrope, sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.nfl-wp-legend .away { color: #5c7088; }
.nfl-wp-legend .home { color: #173556; }
.nfl-wp-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
  background: currentColor;
}
.nfl-wp-legend .home i { background: var(--wp-home, #245bb5); }
.nfl-wp-legend .away i { background: var(--wp-away, #8a2a12); }
.nfl-wp-chart svg {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(#f4f7fb, #eef3f9);
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.nfl-wp-mid {
  stroke: #c5d0de;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.nfl-wp-line {
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Team compare dual bars */
.nfl-compare-heads {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px/1 Manrope, sans-serif;
  color: #5c7088;
}
.nfl-compare-heads .sep { opacity: .5; }
.nfl-compare-rows {
  display: grid;
  gap: 9px;
}
.nfl-compare-row {
  display: grid;
  grid-template-columns: 3.6rem 1fr 3.6rem;
  grid-template-areas:
    "away bars home"
    ". label .";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
}
.nfl-compare-row .away { grid-area: away; text-align: right; }
.nfl-compare-row .home { grid-area: home; text-align: left; }
.nfl-compare-row .label {
  grid-area: label;
  text-align: center;
  font: 700 10px/1 Manrope, sans-serif;
  letter-spacing: .35px;
  text-transform: uppercase;
  color: #7a8ba0;
}
.nfl-compare-row strong {
  font: 800 13px/1 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #314a66;
}
.nfl-compare-row strong.lead { color: #122640; }
.nfl-compare-bars {
  grid-area: bars;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  align-items: center;
  height: 10px;
}
.nfl-compare-bars .bar {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--c, #5a6570) 82%, #fff);
  width: var(--p, 0%);
  max-width: 100%;
  min-width: 2px;
}
.nfl-compare-bars .bar.away {
  justify-self: end;
  border-radius: 3px 0 0 3px;
}
.nfl-compare-bars .bar.home {
  justify-self: start;
  border-radius: 0 3px 3px 0;
}

/* Player boxscore tables */
.nfl-box-scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.nfl-box-table table {
  width: 100%;
  border-collapse: collapse;
  font: 600 12px/1.2 Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}
.nfl-box-table th,
.nfl-box-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: right;
  white-space: nowrap;
}
.nfl-box-table thead th {
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .45px;
  text-transform: uppercase;
  color: #7a8ba0;
}
.nfl-box-table tbody th {
  text-align: left;
  font-weight: 700;
  color: #173556;
}
.nfl-box-table tbody th .nm { margin-right: 4px; }
.nfl-box-table tbody th .ab {
  font: 700 9px/1 Manrope, sans-serif;
  letter-spacing: .3px;
  color: #8fa0b5;
  text-transform: uppercase;
}
.nfl-box-table td.pri {
  font-weight: 800;
  color: #122640;
}
.nfl-box-table tr.away th { box-shadow: inset 2px 0 0 #8aa0b855; }
.nfl-box-table tr.home th { box-shadow: inset 2px 0 0 #245bb555; }

/* Odds */
.nfl-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.nfl-odds-card {
  display: grid;
  gap: 4px;
  padding: 10px 10px 9px;
  border-radius: 10px;
  background: #f4f7fb;
  border: 1px solid #e4ebf3;
  min-width: 0;
}
.nfl-odds-card span {
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .45px;
  text-transform: uppercase;
  color: #7a8ba0;
}
.nfl-odds-card strong {
  font: 800 14px/1.15 Barlow, Manrope, sans-serif;
  color: #173556;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nfl-odds-card small {
  font: 600 11px/1.2 Manrope, sans-serif;
  color: #5c7088;
}

/* Injuries */
.nfl-inj-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nfl-inj-col header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font: 800 12px/1 Manrope, sans-serif;
  color: #173556;
}
.nfl-inj-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.nfl-inj-col li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f7f9fc;
  font: 600 12px/1.25 Manrope, sans-serif;
  color: #314a66;
}
.nfl-inj-col li em {
  font: 800 10px/1 Manrope, sans-serif;
  font-style: normal;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #a05a12;
}
.nfl-inj-col li small {
  grid-column: 1 / -1;
  color: #7a8ba0;
  font-size: 11px;
}

/* Previous drives */
.nfl-prev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.nfl-prev-list li {
  display: grid;
  grid-template-columns: 4.2rem minmax(5rem, 8rem) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f7f9fc;
  border-left: 3px solid #c5d3e4;
  font: 600 12px/1.25 Manrope, sans-serif;
  color: #314a66;
}
.nfl-prev-list li.home { border-left-color: #245bb5; }
.nfl-prev-list li.away { border-left-color: #8a2a12; }
.nfl-prev-list li.score { background: #fff6ee; }
.nfl-prev-list .team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}
.nfl-prev-list .res { font-weight: 800; color: #173556; }
.nfl-prev-list .meta {
  color: #7a8ba0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .nfl-stage-split {
    grid-template-columns: 1fr;
  }
  .nfl-fx-board {
    grid-template-columns: 1fr;
  }
  .nfl-fx-vs { display: none; }
  .nfl-odds-grid { grid-template-columns: 1fr; }
  .nfl-inj-cols { grid-template-columns: 1fr; }
  .nfl-leaders-row { grid-template-columns: 1fr; }
  dialog.nfl-dialog {
    width: calc(100vw - 8px);
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
    border-radius: 12px;
  }
}

.nfl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.nfl-section-head h3 {
  margin: 0;
  font: 800 12px/1.2 Manrope, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #243e61;
}
.nfl-section-head span {
  font: 600 11px/1.2 Manrope, sans-serif;
  color: #718297;
}

.nfl-panel.nfl-last-play {
  background: #f4f7fb;
}
.nfl-last-play.fresh .nfl-play-badge,
.nfl-last-play.fresh p,
.nfl-last-play.fresh .nfl-play-result {
  animation: nfl-play-in .42s cubic-bezier(.2,.8,.2,1) both;
}
.nfl-last-play.fresh .nfl-play-badge { animation-delay: 0ms; }
.nfl-last-play.fresh p { animation-delay: 75ms; }
.nfl-last-play.fresh .nfl-play-result { animation-delay: 150ms; }
.nfl-last-play.is-score,
.nfl-last-play.score {
  background: #fff4e8;
  border-color: #f0d2b0;
}
.nfl-last-play.gain { border-color: #c5e0cf; background: #f2faf5; }
.nfl-last-play.loss { border-color: #f0d2b0; background: #fff8f2; }
.nfl-last-play header {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 6px;
}
.nfl-play-badge {
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .5px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #122640;
  color: #fff;
}
.nfl-play-badge.gain { background: #1b6b3a; }
.nfl-play-badge.loss { background: #8a2a12; }
.nfl-play-badge.score { background: #8a2a12; }
.nfl-play-badge.result { background: #3a4a5c; }
.nfl-play-yards, .nfl-play-clock, .nfl-play-result {
  font: 700 11px/1 Manrope, sans-serif;
  color: #5c7088;
}
.nfl-play-result {
  font-weight: 800;
  letter-spacing: .2px;
  color: #3a4a5c;
}
.nfl-last-play strong {
  display: block;
  font: 800 16px/1.25 Manrope, sans-serif;
  color: #173556;
  margin-bottom: 4px;
}
.nfl-last-play p {
  margin: 0;
  font: 500 13px/1.45 Manrope, sans-serif;
  color: #405774;
}

.nfl-drive-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-bottom: 10px;
}
.nfl-drive-seg {
  display: block;
  min-width: 6px;
  border-radius: 3px;
  background: #c5d3e4;
}
.nfl-drive-seg.score { background: #ef743b; }
.nfl-drive-plays {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.nfl-drive-plays li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font: 600 12px/1.3 Manrope, sans-serif;
  color: #314a66;
  background: #f7f9fc;
}
.nfl-drive-plays li.score { background: #fff1e8; }
.nfl-drive-plays small { color: #718297; font-variant-numeric: tabular-nums; }

.nfl-scoring-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.nfl-score-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 22px minmax(120px, 180px) auto;
  gap: 8px;
  align-items: center;
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.nfl-score-chip img { width: 22px; height: 22px; object-fit: contain; }
.nfl-score-chip strong {
  display: block;
  font: 800 11px/1.2 Manrope, sans-serif;
  letter-spacing: .4px;
  color: #173556;
}
.nfl-score-chip span {
  display: block;
  font: 500 11px/1.3 Manrope, sans-serif;
  color: #5c7088;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.nfl-score-chip b {
  font: 700 14px/1 Barlow, Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #243e61;
}

.nfl-linescore { overflow-x: auto; }
.nfl-linescore table {
  width: 100%;
  border-collapse: collapse;
  font: 600 12px/1.2 Manrope, sans-serif;
}
.nfl-linescore th, .nfl-linescore td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid #e8eef5;
  font-variant-numeric: tabular-nums;
}
.nfl-linescore th:first-child, .nfl-linescore td:first-child {
  text-align: left;
  white-space: nowrap;
}
.nfl-linescore thead th {
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .5px;
  color: #7a8ba0;
  text-transform: uppercase;
}
.nfl-mini-logo {
  width: 16px; height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  object-fit: contain;
}

.nfl-fantasy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nfl-leaders-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.nfl-leader {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f4f7fb;
  min-width: 0;
}
.nfl-leader span {
  display: block;
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #7a8ba0;
}
.nfl-leader strong {
  display: block;
  font: 800 13px/1.2 Manrope, sans-serif;
  color: #173556;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nfl-leader small {
  display: block;
  font: 600 11px/1.2 Manrope, sans-serif;
  color: #5c7088;
}

.nfl-footnote {
  margin: 0;
  padding: 4px 16px 14px;
  font: 500 11px/1.4 Manrope, sans-serif;
  color: #8091a5;
}
.nfl-empty { padding: 12px; }

@keyframes nfl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}
@keyframes nfl-ball-g-run {
  from { transform: translate(var(--ball-from-x, var(--ball-x)), var(--ball-y)); }
  to { transform: translate(var(--ball-x), var(--ball-y)); }
}
@keyframes nfl-path-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes nfl-play-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nfl-live-dot,
  .nfl-ball-g.run,
  .nfl-drive-path.draw,
  .nfl-last-play.fresh .nfl-play-badge,
  .nfl-last-play.fresh p,
  .nfl-last-play.fresh .nfl-play-result,
  .nfl-tile-play.fresh .nfl-tile-play-tag,
  .nfl-tile-play.fresh .nfl-tile-play-text,
  .nfl-tile-play.fresh .nfl-tile-play-result,
  .nfl-field.play-fresh .nfl-field-svg {
    animation: none !important;
  }
  .nfl-ball-g.run { transform: translate(var(--ball-x), var(--ball-y)); }
  .nfl-drive-path.draw { stroke-dashoffset: 0; }
}

/* Live columns: default 2; JS sets --nfl-live-cols. Soften on narrow screens. */
@media (max-width: 1100px) {
  .nfl-leaders-row { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .nfl-conference-grid.live {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }
  .nfl-hero-points { font-size: 34px; }
  .nfl-field-svg { height: 140px; }
}

@media (max-width: 650px) {
  .nfl-conference-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 6px;
  }
  .nfl-toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
  }
  .nfl-filters-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nfl-filters-scroll::-webkit-scrollbar { display: none; }
  .nfl-filters.seg-track {
    flex-wrap: nowrap;
    width: max-content;
  }
  .nfl-view-trigger {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
    max-width: 42%;
    padding-left: 9px;
    padding-right: 9px;
    background: var(--seg-track-bg);
    border: 1px solid var(--seg-track-border);
    border-radius: var(--seg-radius);
  }
  .nfl-view-trigger i { font-size: 14px; }
  .nfl-view-trigger small {
    overflow: hidden;
    text-overflow: ellipsis;
    font: 600 10px/1 Manrope, sans-serif;
    opacity: .72;
    max-width: 5.75rem;
  }
  .nfl-view-trigger.active {
    background: var(--seg-active-bg);
    color: var(--seg-active-color);
  }
  .nfl-view-trigger.active small { opacity: .85; color: inherit; }
  .nfl-view-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #0e1b23a6;
    cursor: pointer;
  }
  .nfl-view-backdrop.is-open { display: block; }
  .nfl-view-prefs {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(54px + env(safe-area-inset-bottom));
    z-index: 81;
    margin: 0;
    padding: 10px 14px 14px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    max-height: min(calc(78svh - 54px - env(safe-area-inset-bottom)), 520px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px #0b172b33;
  }
  .nfl-view-prefs.is-open { display: flex; }
  .nfl-view-prefs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 2px;
  }
  .nfl-view-prefs-head strong {
    font: 800 14px/1.2 Manrope, sans-serif;
    color: #173556;
  }
  .nfl-view-prefs .seg-stack { width: 100%; }
  .nfl-view-prefs .seg-track {
    display: flex;
    width: 100%;
  }
  .nfl-view-prefs .seg { flex: 1 1 0; min-width: 0; }
  .nfl-conference-grid.live {
    grid-template-columns: 1fr;
  }
  .nfl-ov.is-field .nfl-ov-hit {
    height: 80px;
    min-height: 80px;
    max-height: 80px;
  }
  .nfl-sb-down { max-width: 8.5rem; }
  .nfl-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100svh - 8px);
    border-radius: 12px 12px 0 0;
    margin: auto 0 0;
  }
}
