/* NFL Scores Today — dark dashboard theme */
:root {
  --bg: #070c16;
  --app: #16181d;
  --panel: #1d1f25;
  --panel-2: #25282f;
  --panel-3: #2e3139;
  --line: #2b2e35;
  --text: #eef0f4;
  --text-2: #c7cbd3;
  --muted: #8b919d;
  --accent: #3d6bff;
  --accent-2: #5b82ff;
  --away: #4169ff;
  --home: #a9b6ff;
  --home-ink: #111a3d;
  --live: #ef4444;
  --green: #22c55e;
  --orange: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(37, 99, 235, .38), transparent 70%),
    radial-gradient(800px 600px at 100% 10%, rgba(14, 116, 144, .30), transparent 70%),
    radial-gradient(700px 500px at 40% 110%, rgba(30, 64, 175, .30), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; border-radius: 6px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ App shell */
.app {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  max-width: 1480px;
  margin: 24px auto;
  background: var(--app);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  min-height: calc(100vh - 48px);
}
.main-col { min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; padding: 20px 24px 32px; min-width: 0; }

/* Sidebar */
.sidebar {
  position: sticky; top: 24px;
  height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { color: #ff6363; font-weight: 700; }
.brand-ic { color: #d39350; }
.sidebar .sb-close { display: none; }
.sb-scroll { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.sb-label { margin: 18px 10px 6px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--panel-3); color: var(--text); }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item img { width: 20px; height: 20px; object-fit: contain; }
.nav-item span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.more { color: var(--text-2); justify-content: space-between; }
.nav-count { flex: none !important; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.badge-live { flex: none !important; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--live); color: #fff; font-size: .78rem; font-weight: 600; display: inline-grid; place-items: center; }
.sb-foot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.site-card { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--panel); }
.site-card-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; flex: none; }
.site-card b { display: block; font-size: .88rem; }
.site-card span { font-size: .78rem; color: var(--muted); }

/* Top bar (mobile) */
.topbar { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.topbar-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(239, 68, 68, .14); color: #ff7b7b; font-weight: 600; font-size: .85rem; }
.scrim { display: none; }

@media (max-width: 1023px) {
  .app { display: block; margin: 0; border-radius: 0; border: 0; min-height: 100vh; box-shadow: none; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 10px 16px; background: rgba(22, 24, 29, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .sidebar { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: auto; width: 284px; max-width: 86vw; background: var(--app); transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar .sb-close { display: inline-grid; }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); }
  .nav-item[aria-current="page"]::before { left: -12px; }
  .main { padding: 14px 16px 28px; }
}

/* ------------------------------------------------------------ Page bar */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.page-bar { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 16px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); background: transparent; }
.round-btn:hover { background: var(--panel-2); text-decoration: none; }
.round-btn.ghost { visibility: hidden; }
.pb-center { text-align: center; min-width: 0; }
.pb-title { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 1.3rem; font-weight: 600; }
.pb-title .ic { color: var(--text-2); }
.pb-sub { color: var(--muted); font-size: .9rem; font-weight: 500; }
.pb-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin-top: 6px; font-size: .84rem; color: var(--text-2); }
.pb-meta .ic { color: var(--muted); }
.sep { display: inline-block; width: 1px; height: 14px; background: var(--line); margin: 0 6px; }
.mi { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .pb-meta .sep { display: none; }
  .pb-meta { gap: 2px 12px; }
  .pb-meta .mi.venue { display: none; }
}
.pb-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-primary:hover { background: var(--accent-2); text-decoration: none; }
@media (max-width: 640px) {
  .page-bar { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .round-btn { width: 36px; height: 36px; }
  .btn-primary span { display: none; }
  .btn-primary { padding: 9px; }
  .pb-title { font-size: 1.1rem; }
  .pb-sub { display: block; width: 100%; font-size: .8rem; }
}

/* ------------------------------------------------------------ Panels */
.panel { background: var(--panel); border: 1px solid rgba(255, 255, 255, .04); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head .panel-title { margin: 0; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.tip { color: var(--muted); display: inline-flex; cursor: help; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 4px 0 10px; }
.seo-text { margin-top: 28px; color: var(--muted); font-size: .88rem; max-width: 860px; }
.seo-text h2 { color: var(--text-2); font-size: 1rem; }
.empty { padding: 28px; background: var(--panel); border-radius: var(--radius); text-align: center; color: var(--muted); }
.lede { color: var(--text-2); margin: 0 0 14px; }

/* Live */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: middle; animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } html { scroll-behavior: auto; } }
.live-indicator { display: inline-flex; align-items: center; color: #ff7b7b; font-weight: 600; }

/* ------------------------------------------------------------ Week nav */
.week-nav { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.wk-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-weight: 500; white-space: nowrap; }
.wk-btn:hover { text-decoration: none; color: var(--text); background: var(--panel-2); }
.wk-btn.disabled { opacity: .35; }
.wk-btn span { display: none; }
.wk-select { flex: 1; display: flex; justify-content: center; }
.wk-select select { width: 100%; max-width: 300px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; text-align: center; cursor: pointer; }
@media (min-width: 640px) { .wk-btn span { display: inline; } }

/* ------------------------------------------------------------ Score cards */
.day-group { margin-bottom: 22px; }
.day-group h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.day-group h2 small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .75; }
.live-group h2 { color: #ff7b7b; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid > * { min-width: 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.game { background: var(--panel); border: 1px solid rgba(255, 255, 255, .04); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.game:hover { border-color: rgba(61, 107, 255, .6); }
.game.state-in { border-color: rgba(239, 68, 68, .45); box-shadow: 0 0 0 1px rgba(239, 68, 68, .15), 0 8px 30px rgba(239, 68, 68, .08); }
.game.red-zone { background: linear-gradient(0deg, rgba(239, 68, 68, .12), var(--panel) 55%); }
.game-link { display: block; padding: 12px 14px; color: inherit; }
.game-link:hover { text-decoration: none; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 26px; }
.game-top .status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--text-2); font-size: .78rem; font-weight: 600; }
.game.state-in .status { background: rgba(239, 68, 68, .15); color: #ff7b7b; }
.tv { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 12px 40px; align-items: center; gap: 10px; padding: 5px 0; }
.team-row .logo { width: 32px; height: 32px; object-fit: contain; }
.team-name { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-name .full { color: var(--muted); }
.team-name b { font-weight: 600; }
.record { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.score { font-size: 1.35rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ball { width: 10px; height: 10px; }
.has-ball .ball { background: #d39350; border-radius: 50% / 35%; transform: rotate(-30deg); }
.is-loser .score, .is-loser .team-name b { color: var(--muted); font-weight: 500; }
.game-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-foot:empty { display: none; }
.game.state-in .game-foot { color: var(--text-2); font-weight: 500; }
.game.flash .score { animation: flash 1.2s; }
@keyframes flash { 0%, 100% { background: transparent; } 30% { background: rgba(250, 204, 21, .35); border-radius: 6px; } }
.byes { color: var(--muted); font-size: .86rem; }
.feature .grid { grid-template-columns: 1fr; max-width: 440px; }
@media (max-width: 420px) { .team-name .full { display: none; } }

/* ------------------------------------------------------------ Game page */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 16px; padding: 22px 24px; }
.hero-team { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-team.away { align-items: flex-end; text-align: right; }
.hero-team.home { align-items: flex-start; text-align: left; }
.hero-name { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.hero-name:hover { text-decoration: none; }
.hero-name img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.hero-name b { display: block; font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.hero-name small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.hero-team.dim .hero-name b { color: var(--text-2); }
.scorers { margin: 0; font-size: .8rem; color: var(--text-2); white-space: pre-wrap; word-spacing: 2px; }
.hero-center { text-align: center; min-width: 120px; padding-top: 2px; }
.hero-score { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-score i { font-style: normal; color: var(--muted); font-weight: 500; }
.hero-status { margin-top: 8px; color: var(--text-2); font-size: .9rem; display: inline-flex; align-items: center; }
.hero-status.is-live { color: #ff7b7b; font-weight: 600; }
.hero-kick { font-size: 1.6rem; font-weight: 700; }
.hero-sit { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--panel-2); font-size: .8rem; }
.hero-sit .ic { color: #d39350; }
.hero-sit.red-zone { background: rgba(239, 68, 68, .2); }
@media (max-width: 720px) {
  .hero { padding: 16px 12px; gap: 8px; }
  .hero-name { flex-direction: column; gap: 6px; }
  .hero-team.away .hero-name { flex-direction: column; }
  .hero-team.home .hero-name { flex-direction: column-reverse; }
  .hero-team, .hero-team.away, .hero-team.home { align-items: center; text-align: center; }
  .hero-name img { width: 48px; height: 48px; }
  .hero-name b { font-size: 1.05rem; }
  .hero-score { font-size: 2rem; gap: 6px; }
  .hero-center { min-width: 0; }
  .hero-kick { font-size: 1.05rem; }
  .hero-name small .loc { display: none; }
  .scorers { font-size: .72rem; }
}

.tabs { display: flex; gap: 26px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 4px 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 2px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }

.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.gp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gp-row > .panel:only-child { grid-column: 1 / -1; }
@media (max-width: 1279px) { .gp-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .gp-row { grid-template-columns: 1fr; } }

.last-play { display: flex; align-items: center; gap: 14px; border-left: 3px solid var(--live); }
.last-play p { margin: 0; color: var(--text-2); }
.lp-tag { display: inline-flex; align-items: center; flex: none; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #ff7b7b; }

/* Win probability (momentum) chart */
.wp { position: relative; }
.wp svg { display: block; width: 100%; height: 150px; }
.wp-away { fill: var(--away); }
.wp-home { fill: var(--home); }
.wp-mid { stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.wp-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; stroke-dasharray: 3 4; }
.wp-markers { position: relative; height: 30px; margin-top: 6px; }
.mk { position: absolute; top: 2px; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .58rem; font-weight: 700; border: 2px solid; background: var(--panel); cursor: default; }
.mk.away { border-color: var(--away); color: #c7d2ff; }
.mk.home { border-color: var(--home); color: var(--home); }
.wp-axis { position: relative; height: 18px; font-size: .75rem; color: var(--muted); }
.wp-axis span { position: absolute; transform: translateX(-50%); }
.wp-axis span:first-child { transform: none; }
.wp-axis span:last-child { transform: translateX(-100%); }
.legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin-top: 10px; font-size: .82rem; color: var(--text-2); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.away { background: var(--away); }
.dot.home { background: var(--home); }
.legend .dot + * { margin-right: 8px; }

/* Split bar + stat rows */
.bar-label { text-align: center; color: var(--text-2); margin: 0 0 8px; font-size: .88rem; }
.split-bar { display: flex; gap: 4px; height: 40px; margin-bottom: 14px; }
.split-bar span { min-width: 58px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.split-bar .away { background: var(--away); color: #fff; }
.split-bar .home { background: var(--home); color: var(--home-ink); justify-content: flex-end; }
.stat-rows { display: flex; flex-direction: column; gap: 8px; }
.stat-rows.two-col { display: grid; grid-template-columns: 1fr; gap: 8px 32px; }
@media (min-width: 900px) { .stat-rows.two-col { grid-template-columns: 1fr 1fr; } }
.stat-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 999px; background: var(--panel-2); }
.stat-label { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-size: .86rem; text-align: center; }
.stat-label .ic { color: var(--muted); }
.pill { min-width: 52px; padding: 4px 10px; border-radius: 999px; text-align: center; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.pill.lead.away { background: var(--away); color: #fff; }
.pill.lead.home { background: var(--home); color: var(--home-ink); }
.odds-line { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); margin: 6px 0 0; }

/* Recent form */
.form-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); margin-bottom: 8px; }
.form-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.form-chips { display: flex; gap: 6px; }
.chip { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--panel-3); }
.chip.res-w { background: rgba(34, 197, 94, .18); color: #4ade80; }
.chip.res-l { background: rgba(239, 68, 68, .18); color: #f87171; }

/* Scoring timeline (events) */
.ev-chip { width: max-content; margin: -4px auto 12px; padding: 4px 12px; border-radius: 8px; background: var(--panel-2); font-size: .8rem; color: var(--text-2); display: flex; align-items: center; }
.timeline { background: var(--panel-2); border-radius: 12px; overflow: hidden; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ev-away { text-align: right; }
.ev-mid { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ev-clock { min-width: 50px; padding: 3px 8px; border-radius: 6px; background: var(--panel-3); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ev-type { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; border: 2px solid var(--muted); }
.ev-type.away { border-color: var(--away); color: #c7d2ff; }
.ev-type.home { border-color: var(--home); color: var(--home); }
.ev-text b { font-weight: 500; }
.ev-text small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.ev-score { font-weight: 600; white-space: nowrap; }
.ev-score.away { color: #8fa5ff; }
.ev-score.home { color: var(--home); }
.ev-marker { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); font-size: .8rem; }
.ev-marker span { display: inline-flex; flex-direction: column; line-height: 1.2; }
.ev-marker b { font-size: .78rem; }
.timeline > :last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .ev-row { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "mid text"; }
  .ev-mid { grid-area: mid; flex-direction: column; gap: 4px; }
  .ev-side { grid-area: text; text-align: left; }
  .ev-side:empty { display: none; }
}

/* Leaders (line-up style) */
.team-chips { display: flex; gap: 6px; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: .8rem; font-weight: 600; }
.ld-team { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.ld-team:last-child { margin-bottom: 0; }
.ld-team-name { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: .9rem; }
.ld-list { list-style: none; margin: 0; padding: 0; }
.ld-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ld-photo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--panel-3); }
.ld-photo img { width: 100%; height: 100%; object-fit: cover; }
.ld-info { min-width: 0; }
.ld-info b { display: block; font-weight: 500; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-info small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating { min-width: 34px; padding: 2px 6px; border-radius: 6px; text-align: center; font-size: .78rem; font-weight: 700; color: #08130b; background: var(--green); }
.r-rushingYards { background: var(--orange); color: #1f1300; }
.r-receivingYards { background: #60a5fa; color: #06162b; }
.r-sacks { background: #f87171; color: #2a0707; }
.r-totalTackles { background: #c084fc; color: #1d0730; }

/* Info list */
.info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; font-size: .88rem; }
.info dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.info dd { margin: 0; color: var(--text-2); }

/* Box score */
.box-radio { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel-2); margin-bottom: 12px; }
.seg label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--text-2); font-weight: 600; }
#box-0:checked ~ .seg label[for="box-0"], #box-1:checked ~ .seg label[for="box-1"] { background: var(--accent); color: #fff; }
#box-0:focus-visible ~ .seg label[for="box-0"], #box-1:focus-visible ~ .seg label[for="box-1"] { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.box-team { display: none; }
#box-0:checked ~ .box-team-0, #box-1:checked ~ .box-team-1 { display: block; }
.box-grid { display: grid; grid-template-columns: 1fr; gap: 6px 20px; }
@media (min-width: 1100px) { .box-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
tbody th { font-weight: 500; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
caption { text-align: left; font-weight: 600; padding: 10px 0 4px; color: var(--text-2); }
.box-table th[scope="row"] { text-align: left; }
.linescore th:first-child { text-align: left; }
.linescore img { vertical-align: middle; }
.linescore .total { font-weight: 700; color: var(--text); }
.team-col { text-align: left; }
.team-col a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.team-col img { flex: none; }
.standings .abbr, .schedule .abbr { display: none; }
@media (max-width: 640px) {
  .standings .full, .schedule .full { display: none; }
  .standings .abbr, .schedule .abbr { display: inline; }
  .hide-sm { display: none; }
}
.standings tr.me { background: var(--panel-2); }
.standings tr.me th, .standings tr.me td { font-weight: 600; }
.neg { color: #f87171; }
.pos { color: #4ade80; }
.clinch { color: var(--muted); font-size: .7rem; }
.schedule td, .schedule th { text-align: left; }
.schedule .vs { color: var(--muted); display: inline-block; width: 18px; }
.schedule td a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.schedule tr.bye td { color: var(--muted); font-style: italic; }
.res { display: inline-block; width: 20px; font-weight: 700; }
.res-w { color: #4ade80; }
.res-l { color: #f87171; }

/* ------------------------------------------------------------ Standings / teams */
.conf { margin-bottom: 18px; }
.div-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.div-grid > .panel { margin-bottom: 0; }
@media (min-width: 760px) { .div-grid:not(.wide) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .div-grid:not(.wide) { grid-template-columns: repeat(4, 1fr); } }
.team-list { list-style: none; padding: 0; margin: 0; }
.team-list li a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 8px; }
.team-list li a:hover { background: var(--panel-2); text-decoration: none; }
.team-list li:last-child a { border-bottom: 0; }
.team-list li a span:nth-child(2) { flex: 1; font-weight: 500; }
.team-list.flat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }

/* Team page */
.team-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; border-left: 4px solid var(--team, var(--accent)); }
.team-hero img { width: 72px; height: 72px; }
.th-name b { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.th-name small { color: var(--muted); }
.th-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 0 auto; }
.th-stats div { background: var(--panel-2); border-radius: 12px; padding: 8px 16px; min-width: 84px; text-align: center; }
.th-stats dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.th-stats dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; }
@media (max-width: 640px) { .th-stats { margin-left: 0; width: 100%; } .th-stats div { flex: 1; } }
.feature { margin-bottom: 16px; }

/* Related links */
.related { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.related a { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-size: .86rem; }
.related a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }

/* Prose / 404 */
.prose { max-width: 820px; padding: 22px 26px; }
.prose p { margin: 0 0 1em; color: var(--text-2); }
.prose h2 { margin-top: 1.2em; }
.not-found { text-align: center; padding: 48px 20px; }
.not-found .related { justify-content: center; }

/* Footer */
.site-footer { padding: 18px 24px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.site-footer nav a { color: var(--text-2); }
.site-footer p { margin: 0; max-width: 900px; }
