/* ── Season banner (persistent, below the app header) ── */
.season-banner {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 6px 12px;
}

/* ── School option cards (team setup) ── */
.school-option {
  background: var(--card);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.school-option:active { transform: scale(0.98); }
.school-option.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(74,111,165,0.12);
}
.school-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.school-option-icon svg { width: 24px; height: 24px; stroke: var(--white); stroke-width: 1.8; fill: none; }
.school-option-icon.muted { background: #f0f2f5; }
.school-option-icon.muted svg { stroke: var(--muted); }
.school-option-body { flex: 1; min-width: 0; }
.school-option-name { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.school-option-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.school-option-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.school-option-end svg { width: 18px; height: 18px; stroke: var(--border); stroke-width: 2; fill: none; }

/* ── Setup screen: "or" divider between search flow and advanced search ── */
.setup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.setup-divider::before,
.setup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Favorites (setup screen) ── */
.favorites-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 2px 2px 6px;
}
.favorite-card {
  position: relative;
  background: var(--card);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 14px 40px 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.favorite-card:active { transform: scale(0.98); }
.favorite-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.favorite-meta { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.favorite-class { font-size: 0.72rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.favorite-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #f0f2f5;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.favorite-remove:active { background: #e2e5ea; }

/* ── Featured team (setup screen, above Favorites) ── */
.featured-card {
  padding: 14px 16px;
  border-color: #dde3ec;
  background: #fafbfc;
}
.featured-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(74,111,165,0.1);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* ── Add to Favorites button (My Team summary) ── */
.favorite-toggle-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.favorite-toggle-btn:active { background: rgba(74,111,165,0.1); }
.favorite-toggle-btn.is-fav {
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
  background: #f5f5f5;
}

/* ── Classification team count note ── */
.classification-count {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ── URL search panel ── */
.search-panel {
  background: var(--card);
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 16px;
  margin-bottom: 10px;
}
.search-panel label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.search-panel input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
  margin-bottom: 10px;
}
.search-panel input[type="url"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,111,165,0.1); }
.search-panel-note { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

/* ── State/school search (team setup) ── */
.search-panel select,
.search-panel input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.search-panel select { margin-bottom: 0; }
.search-panel select:focus,
.search-panel input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,111,165,0.1); }

.school-results {
  margin-top: 10px;
  max-height: 280px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 8px;
}
.school-results:empty { display: none; border: none; }
.school-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.school-result-row:last-child { border-bottom: none; }
.school-result-row:active { background: #f5f7fa; }
.school-result-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.school-result-city { font-size: 0.75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.school-results-empty { padding: 14px 12px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ── Section header inside page ── */
.section-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  padding: 0 0 10px 0;
}

/* ── Team summary card ── */
.summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.summary-school-name { font-size: 1.05rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.summary-school-meta { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.summary-change { font-size: 0.72rem; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; margin-top: 2px; -webkit-tap-highlight-color: transparent; }
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.summary-stat {
  text-align: center;
  padding: 12px 4px;
  border-right: 1px solid var(--border);
}
.summary-stat:last-child { border-right: none; }
.summary-stat-val { font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1; }
.summary-stat-lbl { font-size: 0.62rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.summary-lastyear { font-size: 0.78rem; color: var(--muted); padding-top: 10px; border-top: 1px solid #f0f0f0; }
.summary-lastyear strong { color: var(--text); }

/* ── Roster card ── */
.coach-line { font-size: 0.82rem; color: var(--text); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.coach-line span { font-weight: 600; color: var(--navy); }
.roster-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.roster-table th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 6px;
  text-align: left;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
  white-space: nowrap;
}
.roster-table td { padding: 8px 6px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.roster-table tbody tr:last-child td { border-bottom: none; }
.roster-table .num { font-weight: 700; color: var(--accent); width: 28px; }
.roster-table .pos { color: var(--muted); white-space: nowrap; }
.roster-table .yr { white-space: nowrap; }
.badge-returning { display: inline-block; font-size: 0.6rem; padding: 1px 6px; border-radius: 8px; font-weight: 600; background: #eafaf1; color: #1e8449; white-space: nowrap; vertical-align: middle; margin-left: 4px; }
.badge-graduated { display: inline-block; font-size: 0.6rem; padding: 1px 6px; border-radius: 8px; font-weight: 600; background: #f5f5f5; color: #999; white-space: nowrap; vertical-align: middle; margin-left: 4px; }

/* ── Stat leaders card ── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-cat-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
}
.stat-player {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.78rem;
  border-bottom: 1px solid #f5f5f5;
}
.stat-player:last-child { border-bottom: none; }
.stat-rank { font-size: 0.68rem; font-weight: 700; color: var(--muted); width: 14px; flex-shrink: 0; }
.stat-name { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-grade { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.stat-val { font-size: 0.8rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ── Best wins card ── */
.best-win {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.best-win:last-child { border-bottom: none; }
.best-win-rank { font-size: 1.1rem; font-weight: 800; color: var(--orange); width: 28px; flex-shrink: 0; }
.best-win-body { flex: 1; min-width: 0; }
.best-win-opp { font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-win-meta { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.best-win-right { text-align: right; flex-shrink: 0; }
.best-win-state-rank { font-size: 0.72rem; color: var(--navy); font-weight: 600; }
.best-win-score { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ── Team ribbon ── */
.team-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
}
.team-ribbon-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.team-ribbon-name {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-ribbon-change {
  font-size: 0.75rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Data credit ── */
.data-credit { font-size: 0.78rem; color: var(--muted); text-align: center; padding: 8px 0 4px; }

/* ── Loading pulse ── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.loading { animation: pulse 1.5s ease-in-out infinite; font-size: 0.82rem; color: var(--muted); padding: 16px 0; text-align: center; }

/* ── Schedule tab ── */
.sched-strip {
  padding: 12px 0 10px;
  margin-bottom: 4px;
}
.sched-strip-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 3px;
}
.sched-strip-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.sched-strip-dot    { color: var(--border); }
.sched-strip-record { font-weight: 700; color: var(--text); }
.sched-strip-rank   { font-weight: 700; color: var(--accent); }

.sched-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: var(--white);
}
.sched-row:last-child { border-bottom: none; }

.sched-row.next-up {
  background: #eef3fb;
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}
.sched-row.future { opacity: 0.55; }

.sched-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  width: 38px;
  flex-shrink: 0;
  line-height: 1.3;
}
.sched-row.next-up .sched-date { color: var(--accent); font-weight: 700; }

.sched-opp { flex: 1; min-width: 0; }
.sched-opp-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sched-loc {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.sched-right { flex-shrink: 0; text-align: right; }

.sched-result {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sched-result.win  { color: #1e8449; }
.sched-result.loss { color: #c0392b; }

.sched-scout-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.sched-row.next-up .sched-scout-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sched-playoff-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff3cd;
  color: #856404;
  vertical-align: middle;
  flex-shrink: 0;
}

.sched-empty, .sched-no-team {
  padding: 32px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ── Full-screen detail overlay (used by the Rankings "view all" modal) ── */
.mu-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 100%;
  z-index: 250;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── Scouting-report nav bar (shared by the Match-up page and the overlay above) ── */
.mu-nav {
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* Inside the full-screen overlay, the nav bar IS the top bar. */
.mu-overlay .mu-nav {
  position: sticky;
  top: 0;
}
/* Inside the Match-up page, the real app header stays put above it, so the
   nav bar sticks just below it and bleeds edge-to-edge past the page's own padding. */
#page-matchup .mu-nav {
  position: sticky;
  top: var(--header-h);
  margin: -16px -16px 16px;
}
.mu-back-btn {
  background: none;
  border: none;
  color: #ffd166;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mu-back-arrow { text-decoration: none; }
.mu-back-label { text-decoration: underline; text-underline-offset: 2px; }
.mu-nav-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.mu-nav-eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.mu-nav-opp {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  line-height: 1.3;
}

.mu-body {
  padding: 0 16px calc(var(--tab-h) + var(--safe-bottom) + 32px);
}
.mu-loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

/* Verdict card */
.mu-verdict {
  border-radius: 14px;
  border: 2px solid;
  padding: 22px 20px;
  text-align: center;
  margin: 16px 0 12px;
}
.mu-verdict-header {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 8px;
}
.mu-verdict-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mu-verdict-sub {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.85;
}

/* Team comparison */
.mu-compare {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mu-compare-side { flex: 1; min-width: 0; }
.mu-compare-them { text-align: right; }
.mu-compare-mid {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 22px;
  flex-shrink: 0;
}
.mu-compare-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-compare-record {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 3px;
}
.mu-compare-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}
.mu-compare-prev { font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.mu-compare-sos  { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

/* Momentum badges */
.mu-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.mu-badge-win  { background: #eafaf1; color: #27ae60; }
.mu-badge-hot  { background: #d5f5e3; color: #1e8449; }
.mu-badge-fire { background: #1e8449; color: #fff; }
.mu-badge-loss { background: #f0f0f0; color: #888; }

/* Factor breakdown */
.mu-fac-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; table-layout: fixed; }
.mu-fac-table th {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
}
.mu-fac-table th:first-child { padding-left: 0; }
.mu-fac-table th:last-child  { text-align: right; padding-right: 0; }
.mu-fac-row td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.mu-fac-row td:first-child { padding-left: 0; }
.mu-fac-row td:last-child  { padding-right: 0; }
.mu-fac-row:last-child td { border-bottom: none; }
.mu-fac-label { font-weight: 600; color: var(--text); width: 42%; line-height: 1.35; }
.mu-fac-val   { color: var(--muted); line-height: 1.35; }
.mu-fac-pts   { font-weight: 700; text-align: right; white-space: nowrap; font-size: 0.72rem; width: 46px; }

/* Common opponents */
.mu-common-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.mu-common-row:last-child { border-bottom: none; }
.mu-common-opp {
  font-size: 0.8rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-common-results {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.mu-common-res        { font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.mu-common-res--win   { color: #1e8449; }
.mu-common-res--loss  { color: #c0392b; }
.mu-common-lbl        { font-weight: 600; }
.mu-common-lbl--me    { color: var(--navy); }
.mu-common-lbl--opp   { color: var(--muted); }

/* Section subtitle / footnote (reused across match-up cards) */
.mu-section-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.mu-section-footnote {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

/* Reload factor table */
.mu-rl-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mu-rl-table th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 6px;
  text-align: right;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
}
.mu-rl-table th:first-child { text-align: left; }
.mu-rl-table td { padding: 8px 6px; border-bottom: 1px solid #f5f5f5; }
.mu-rl-table tr:last-child td { border-bottom: none; }
.mu-rl-stat   { font-weight: 500; }
.mu-rl-val    { text-align: right; font-variant-numeric: tabular-nums; }
.mu-rl-cur    { font-weight: 700; }
.mu-rl-delta  { font-size: 0.68rem; margin-top: 1px; }
.mu-dir-up    { color: #27ae60; }
.mu-dir-dn    { color: #c0392b; }
.mu-dir-fl    { color: var(--muted); }

/* Returning production */
.mu-ret-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mu-ret-table th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 6px;
  text-align: right;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
}
.mu-ret-table th:first-child { text-align: left; }
.mu-ret-table td { padding: 8px 6px; border-bottom: 1px solid #f5f5f5; }
.mu-ret-table tr:last-child td { border-bottom: none; }
.mu-ret-stat { font-weight: 500; }
.mu-ret-val  { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Empty-state note (reused across match-up cards) */
.mu-empty-note {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.4;
}

/* This Season's Leaders */
.mu-lead-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; table-layout: fixed; }
.mu-lead-table th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 6px;
  text-align: left;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
}
.mu-lead-table th:nth-child(2) { width: 22%; }
.mu-lead-table th:last-child   { text-align: right; }
.mu-lead-table td { padding: 9px 6px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.mu-lead-table tr:last-child td { border-bottom: none; }
.mu-lead-side          { min-width: 0; }
.mu-lead-side--opp     { text-align: right; }
.mu-lead-cat           { text-align: center; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.mu-lead-name          { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-lead-meta          { font-size: 0.68rem; color: var(--muted); margin-top: 1px; }
.mu-lead-empty         { color: var(--muted); }

/* Top Returning Players */
.mu-prev-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mu-prev-table > thead th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 6px;
  text-align: left;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
}
.mu-prev-table > thead th:last-child { text-align: right; }
.mu-prev-cat-header {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 6px 4px;
  border-bottom: 1px solid #e8edf5;
}
.mu-prev-cell     { padding: 6px; border-bottom: 1px solid #f5f5f5; vertical-align: top; width: 50%; }
.mu-prev-cell--opp{ text-align: right; }
.mu-prev-player   { display: flex; flex-direction: column; gap: 1px; }
.mu-prev-cell--opp .mu-prev-player { align-items: flex-end; }
.mu-prev-name     { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-prev-meta     { font-size: 0.68rem; color: var(--muted); }
.mu-prev-empty    { color: var(--muted); }
.mu-prev-status        { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 8px; margin-left: 2px; }
.mu-prev-status--ret   { background: #eafaf1; color: #27ae60; }
.mu-prev-status--grad  { background: #f5f0f0; color: #a56b6b; }

/* ── Rankings tab ── */
.rk-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.rk-table th {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid #e8edf5;
  background: #f8f9fa;
}
.rk-table th:last-child, .rk-table td:last-child { text-align: right; }
.rk-row { cursor: pointer; transition: background-color 0.1s; -webkit-tap-highlight-color: transparent; }
.rk-row:active { background: #f5f7fa; }
.rk-row td { padding: 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.rk-row:last-child td { border-bottom: none; }
.rk-sys-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rk-rank   { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Rankings modal: top-25 list */
.rk-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.rk-list-row:last-child { border-bottom: none; }
.rk-list-row--me { background: rgba(26, 26, 46, 0.12); }
.rk-list-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rk-list-body { flex: 1; min-width: 0; }
.rk-list-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rk-list-row--me .rk-list-name { color: var(--navy); }
.rk-list-record {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rk-list-footer {
  margin-top: 4px;
  padding: 10px 0 4px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.82rem;
  color: var(--text);
  text-align: center;
}

/* ── Coming soon stubs ── */
.stub-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 32px 24px;
}
.stub-page svg { width: 48px; height: 48px; stroke: var(--border); stroke-width: 1.5; fill: none; }
.stub-page h3 { font-size: 1rem; color: var(--text); font-weight: 600; }
.stub-page p { font-size: 0.82rem; line-height: 1.6; max-width: 240px; }
