:root {
  --bg: #070b14;
  --panel: rgba(18, 25, 39, 0.78);
  --panel-solid: #131c2e;
  --panel-alt: rgba(26, 36, 56, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(56, 189, 248, 0.45);
  --text: #eef4fc;
  --muted: #8fa3bf;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(129, 140, 248, 0.11), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(52, 211, 153, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(10, 15, 26, 0.6); }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.5); }

header {
  background: rgba(11, 17, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.logo-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f;
  font-weight: 900;
  padding: 7px 12px;
  border-radius: 10px;
  letter-spacing: 0.6px;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
  white-space: nowrap;
}
.brand h1 { margin: 0; font-size: 1.3rem; letter-spacing: -0.4px; font-weight: 800; }
.brand span { color: var(--muted); font-size: 0.84rem; }

.status-pill {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.12);
}

/* CATEGORIZED PILL NAVIGATION */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 28px;
  background: rgba(15, 22, 36, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-groups { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nav-dropdown { position: relative; }

.nav-group-btn,
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.87rem;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-group-btn:hover,
.tab-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-group-btn.active,
.tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.14);
}
.nav-caret { font-size: 0.68rem; opacity: 0.75; transition: transform 0.2s var(--ease); }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 248px;
  max-width: calc(100vw - 24px);
  background: rgba(14, 21, 35, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 300;
}
.nav-dropdown.open .nav-menu {
  display: flex;
  animation: menuPop 0.16s var(--ease);
}
@keyframes menuPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 9px 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s var(--ease);
}
.nav-menu-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--accent); transform: translateX(2px); }
.nav-menu-item.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent);
}
.nav-active-crumb { font-size: 0.79rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nav-active-crumb strong { color: var(--text); font-weight: 700; }

/* MAIN LAYOUT & FLUID ANIMATIONS */
main { max-width: 1460px; margin: 0 auto; padding: 26px 28px 48px 28px; width: 100%; }
.tab-panel { display: none; width: 100%; }
.tab-panel.active { display: block; animation: panelFade 0.25s var(--ease); }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid-2 { display: grid; grid-template-columns: 345px minmax(0, 1fr); gap: 22px; align-items: start; width: 100%; }
.grid-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: 100%; }
.grid-2 > *, .grid-equal > * { min-width: 0; max-width: 100%; }
@media (max-width: 1040px) { .grid-2, .grid-equal { grid-template-columns: minmax(0, 1fr); } }

/* GLASSMORPHIC CARDS */
.card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s var(--ease);
}
.js-plotly-plot, .plot-container, .svg-container { max-width: 100% !important; }
.card h2, .card h3 { margin: 0 0 10px 0; font-size: 1.04rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; letter-spacing: -0.2px; }
.subtext { color: var(--muted); font-size: 0.84rem; margin-bottom: 14px; }

/* TEAM LOGOS & PLAYER HEADSHOTS */
.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.team-logo-sm {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}
.team-logo-hero {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  flex-shrink: 0;
}
.team-inline { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

.player-headshot-hero {
  width: 96px;
  height: 76px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: rgba(8, 13, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.player-headshot-fallback {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pp-search-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(14, 21, 35, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 400;
}
.pp-search-thumb {
  width: 28px;
  height: 22px;
  object-fit: cover;
  object-position: top center;
  border-radius: 5px;
  background: rgba(8, 13, 24, 0.6);
}

/* FORM CONTROLS */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-group-full { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; min-width: 0; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
label { font-size: 0.74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; display: flex; align-items: center; gap: 4px; }
.live-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
input, select {
  background: rgba(8, 13, 24, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.89rem;
  width: 100%;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="range"] { padding: 0; accent-color: var(--accent); cursor: pointer; background: transparent; border: none; }
.clock-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.btn-primary {
  margin-top: 14px;
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(56, 189, 248, 0.38); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }

.btn-mini {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.btn-mini:hover { background: var(--accent); color: #06101f; }

.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.76rem;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.preset-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(56, 189, 248, 0.1); }

/* WEEKLY SLATE CARDS */
.slate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.game-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  min-width: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.game-card:hover {
  border-color: var(--border-glow);
  background: rgba(26, 36, 56, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.game-card.selected {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.15), 0 0 0 1px rgba(52, 211, 153, 0.5);
  background: rgba(21, 36, 52, 0.92);
}
.gc-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--muted); margin-bottom: 12px; }
.gc-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.95rem; }
.gc-team { font-weight: 800; font-size: 1rem; letter-spacing: 0.2px; display: inline-flex; align-items: center; gap: 8px; }
.gc-scores { display: flex; gap: 10px; align-items: baseline; }
.gc-pred { color: var(--accent); font-weight: 700; font-size: 0.86rem; }
.gc-actual { color: var(--text); font-weight: 800; font-size: 1.08rem; }
.wp-bar-wrap { height: 7px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; display: flex; margin: 10px 0 8px 0; }
.wp-bar-away { background: linear-gradient(90deg, #6366f1, #818cf8); height: 100%; }
.wp-bar-home { background: linear-gradient(90deg, #10b981, #34d399); height: 100%; }
.gc-foot { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }

/* VERDICT & FIELD VISUALIZER */
.verdict-banner {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.verdict-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.9px; color: var(--green); margin-bottom: 4px; }
.verdict-headline { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.verdict-sub { font-size: 0.86rem; color: var(--muted); }

.field-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  min-width: 0;
  overflow: hidden;
}
.field-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 0.84rem; }
.field-wrapper { display: flex; align-items: stretch; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid #2d4c3b; position: relative; width: 100%; }
.endzone { width: 7%; background: #142b23; color: #6ee7b7; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; writing-mode: vertical-rl; border-right: 2px solid rgba(255,255,255,0.4); }
.endzone-opp { border-right: none; border-left: 2px solid rgba(255,255,255,0.4); background: #1b2838; color: #7dd3fc; }
.turf { flex: 1; position: relative; background: repeating-linear-gradient(90deg, #163829 0%, #163829 10%, #1a4230 10%, #1a4230 20%); }
.fg-zone { position: absolute; top: 0; bottom: 0; right: 0; width: 38%; background: rgba(56, 189, 248, 0.12); border-left: 1px dashed rgba(56, 189, 248, 0.5); pointer-events: none; }
.fg-zone-lbl { position: absolute; top: 3px; right: 6px; font-size: 0.64rem; font-weight: 700; color: rgba(125, 211, 252, 0.85); text-transform: uppercase; }
.yard-nums { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 9%; font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.42); pointer-events: none; }
.los-line, .fd-line { position: absolute; top: 0; bottom: 0; width: 3px; transition: left 0.2s var(--ease); }
.los-line { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.fd-line { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.ball-dot { position: absolute; top: 50%; width: 12px; height: 8px; background: #c26d2d; border: 1.5px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); transition: left 0.2s var(--ease); z-index: 3; }

/* KPI STRIPS & BOXES */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; width: 100%; }
.kpi-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row-3 { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
}
.kpi {
  background: var(--panel-alt);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.kpi:hover { transform: translateY(-2px); border-color: rgba(148, 163, 184, 0.28); }
.kpi .k-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.kpi .k-val { font-size: 1.24rem; font-weight: 800; margin-top: 5px; overflow-wrap: break-word; }

.hypo-box {
  background: rgba(15, 22, 36, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.hypo-box h4 { margin: 0 0 10px 0; font-size: 0.88rem; color: var(--accent); font-weight: 700; }
.roster-list { display: flex; flex-direction: column; gap: 6px; max-height: 185px; overflow-y: auto; }
.roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  background: rgba(8, 13, 24, 0.72);
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: border-color 0.15s;
}
.roster-item:hover { border-color: rgba(56, 189, 248, 0.3); }
.roster-item label { text-transform: none; font-size: 0.81rem; color: var(--text); cursor: pointer; letter-spacing: 0; }
.check-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 0.84rem; }
.check-row label { text-transform: none; color: var(--text); cursor: pointer; letter-spacing: 0; }

/* STAT HELP "?" ICON & FLOATING TOOLTIP */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s var(--ease);
}
.help-icon:hover,
.help-icon.active { background: var(--accent); border-color: var(--accent); color: #06101f; }

.stat-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(285px, calc(100vw - 24px));
  background: rgba(9, 14, 26, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
}
.stat-tooltip.visible { opacity: 1; transform: translateY(0); }
.stat-tooltip-title { font-weight: 800; color: var(--accent); margin-bottom: 3px; font-size: 0.8rem; }

/* TABLES & PILLS */
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 10px 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); text-align: left; }
th { color: var(--muted); font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
tbody tr { transition: background 0.12s; }
tbody tr:hover td { background: rgba(56, 189, 248, 0.045); }
.pill { padding: 3px 8px; border-radius: 999px; font-size: 0.73rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.pill-win { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.pill-loss { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.pill-play { background: rgba(56, 189, 248, 0.15); color: var(--accent); }

/* STANDINGS COMPACT TABLES & STICKY SEED + TEAM COLUMNS */
#standingsContainer .card {
  padding: 16px 16px;
  background: var(--panel-solid);
  overflow: clip;
}
#standingsContainer table {
  font-size: 0.81rem;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
#standingsContainer th { font-size: 0.69rem; padding: 8px 6px; letter-spacing: 0.25px; }
#standingsContainer td { padding: 8px 6px; white-space: nowrap; }

/* Pin col 1 (TEAM in division tables, SEED in conference playoff picture tables) */
#standingsContainer th:first-child,
#standingsContainer td:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  background: var(--panel-solid);
  z-index: 3;
}

/* Division tables (5-6 cols): col 1 is TEAM */
#standingsContainer table:not(:has(th:nth-child(7))) th:first-child,
#standingsContainer table:not(:has(th:nth-child(7))) td:first-child {
  padding-right: 10px;
}

/* Conference Playoff Picture tables (7+ cols): lock col 1 (SEED) to 72px and pin col 2 (TEAM) at 72px */
#standingsContainer table:has(th:nth-child(7)) th:first-child,
#standingsContainer table:has(th:nth-child(7)) td:first-child {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding-right: 4px;
}

#standingsContainer table:has(th:nth-child(7)) th:nth-child(2),
#standingsContainer table:has(th:nth-child(7)) td:nth-child(2) {
  position: -webkit-sticky;
  position: sticky;
  left: 72px;
  background: var(--panel-solid);
  z-index: 3;
  padding-left: 4px;
  padding-right: 10px;
  box-shadow: -1px 0 0 0 var(--panel-solid);
}

#standingsContainer tbody tr:hover td {
  background: #19243b;
}

#standingsContainer table:has(th:nth-child(7)) tbody tr:hover td:nth-child(2) {
  box-shadow: -1px 0 0 0 #19243b;
}

/* MOBILE RESPONSIVE POLISH */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
  header { padding: 12px 16px; gap: 10px; }
  .brand { gap: 10px; }
  .brand h1 { font-size: 1.12rem; }
  .brand span { font-size: 0.76rem; }
  .status-pill { font-size: 0.72rem; padding: 5px 10px; }

  nav { padding: 8px 12px; gap: 6px; }
  .nav-groups { gap: 4px; width: 100%; }
  .nav-group-btn,
  .tab-btn { padding: 7px 11px; font-size: 0.8rem; }
  .nav-active-crumb { display: none; }
  .nav-menu { min-width: 200px; }

  main { padding: 14px 12px 36px 12px; }
  .card { padding: 14px 14px; border-radius: 14px; }
  .hypo-box { padding: 12px; }
  .grid-2, .grid-equal { gap: 14px; }

  /* Override inline min-widths on search & selector controls */
  #homeSearchWrap,
  #ppSearchWrap,
  .form-group {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #homeSearchWrap,
  #ppSearchWrap { width: 100% !important; }

  /* Prevent iOS Safari zoom on input focus */
  input, select { font-size: 16px; padding: 10px 12px; }

  /* Compact tables & KPIs */
  table { font-size: 0.79rem; }
  th, td { padding: 8px 7px; }
  .kpi { padding: 11px 12px; }
  .kpi .k-val { font-size: 1.05rem; }

  /* Stack 3-col consistency box on Player Profiles */
  #ppConsistencyBox .kpi-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Compact 4th-Down field visualizer */
  .field-card { padding: 12px; }
  .field-wrapper { height: 54px; }
  .endzone { width: 9%; font-size: 0.56rem; letter-spacing: 0.5px; }
  .yard-nums { font-size: 0.58rem; padding: 0 7%; }
  .fg-zone-lbl { font-size: 0.56rem; }
}

@media (max-width: 480px) {
  .slate-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-row { gap: 10px; }
  .player-headshot-hero { width: 76px; height: 62px; }
  .team-logo-hero { width: 44px; height: 44px; }
}