/* =========================================================================
   JESUIT 24 FANTASY — DESIGN TOKENS
   ========================================================================= */
:root {
  --bg: #0a0f1c;
  --bg-elevated: #0f172b;
  --surface: #141f38;
  --surface-hover: #1a2947;
  --border: #223255;
  --border-soft: #1a2540;

  --text: #f2f5fb;
  --text-muted: #8b97b3;
  --text-faint: #5c688a;

  --blue: #2f6fed;
  --blue-bright: #5b9bff;
  --gold: #f2a71e;
  --win: #34d399;
  --loss: #f16063;
  --tie: #8b97b3;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1120px;
}

:root[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #eef1f7;
  --border: #dde2ec;
  --border-soft: #e8ecf3;

  --text: #12151c;
  --text-muted: #525c6b;
  --text-faint: #8a93a3;

  --blue: #2f6fed;
  --blue-bright: #1c54d1;
  --gold: #ad7508;
  --win: #15803d;
  --loss: #dc2626;
  --tie: #64748b;
}
:root[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(47, 111, 237, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(242, 167, 30, 0.05), transparent 55%);
}
:root[data-theme="light"] .site-header {
  background: rgba(245, 247, 251, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(47, 111, 237, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(242, 167, 30, 0.08), transparent 55%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Yard-line divider — the site's recurring field motif */
.yardline {
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg, var(--border) 0, var(--border) 10px, transparent 10px, transparent 20px
  );
  margin: 48px 0;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1;
}
.avatar-photo {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  transition: border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--blue); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand > span:not(.brand-mark) {
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--blue) 0%, #1b4fc9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 4px 14px rgba(47,111,237,0.35);
  flex-shrink: 0;
}

.brand-sub {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

nav.primary-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
nav.primary-nav::-webkit-scrollbar { display: none; }

nav.primary-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

nav.primary-nav a:hover { color: var(--text); background: var(--surface); }
nav.primary-nav a.active { color: #fff; background: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  font-size: 16px;
}

@media (max-width: 760px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 8px;
  }
  nav.primary-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding: 64px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 167, 30, 0.1);
  border: 1px solid rgba(242, 167, 30, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242,167,30,0.2);
}

h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 18px 0 10px;
}

.hero p.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}

.countdown-card {
  margin-top: 24px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}
.countdown-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.countdown-digits {
  display: flex;
  gap: 18px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-unit .cd-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text);
  line-height: 1;
}
.countdown-unit .cd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.countdown-hype {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(242, 167, 30, 0.3), 0 8px 24px rgba(242, 167, 30, 0.15);
}

.belt-card {
  margin-top: 24px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 60%, #B8860B 260%);
  border: 2px solid #D4AF37;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.15) inset, 0 8px 24px rgba(212,175,55,0.12);
}
.belt-card .bc-icon { font-size: 30px; flex-shrink: 0; }
.belt-card .bc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
}
.belt-card .bc-name {
  font-family: var(--font-display);
  font-size: 19px;
  margin-top: 2px;
}
.belt-card .bc-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* =========================================================================
   SCOREBOARD (signature element)
   ========================================================================= */
.scoreboard {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.scoreboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(242,167,30,0.06) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.scoreboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
}

.scoreboard-head .label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.scoreboard-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  position: relative;
}

.scoreboard-empty .big {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.matchup-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.matchup-row:first-of-type { border-top: none; }

.matchup-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.matchup-row .matchup-team:last-child { flex-direction: row-reverse; text-align: right; }

.matchup-team .name-block { display: flex; flex-direction: column; min-width: 0; }

.matchup-team .name {
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matchup-team .owner {
  font-size: 12px;
  color: var(--text-faint);
}

.matchup-score {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
}
.matchup-score .dash { color: var(--text-faint); font-size: 14px; }
.matchup-score .win { color: var(--win); }

/* =========================================================================
   SECTIONS / CARDS
   ========================================================================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.01em;
  margin: 0;
}

.section-head a.see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-bright);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
}
.stat-card .stat-value.accent { color: var(--gold); }
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   TABLE
   ========================================================================= */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.standings th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  white-space: nowrap;
}

table.standings th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}
table.standings th.sortable:hover { color: var(--text-muted); }
table.standings th.sortable::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  opacity: 0;
}
table.standings th.sortable.sort-desc::after { content: "\25BC"; opacity: 1; color: var(--gold); font-size: 8px; }
table.standings th.sortable.sort-asc::after { content: "\25B2"; opacity: 1; color: var(--gold); font-size: 8px; }

table.standings td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

table.standings tbody tr:last-child td { border-bottom: none; }
table.standings tbody tr:hover { background: var(--surface-hover); }

table.standings td.rank {
  font-family: var(--font-mono);
  color: var(--text-faint);
  width: 36px;
}
table.standings tr:nth-child(1) td.rank { color: var(--gold); font-weight: 700; }

table.standings td.team-cell {
  white-space: normal;
}
.team-cell-inner { display: flex; align-items: center; gap: 10px; }
td.team-cell .t-name { font-weight: 700; }
td.team-cell .t-owner { font-size: 12px; color: var(--text-faint); }

table.standings td.num {
  font-family: var(--font-mono);
  text-align: right;
}

.form-pips { display: flex; gap: 3px; }
.pip {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono);
}
.pip.W { background: rgba(52,211,153,0.15); color: var(--win); }
.pip.L { background: rgba(241,96,99,0.15); color: var(--loss); }
.pip.T { background: rgba(139,151,179,0.15); color: var(--tie); }

tr.cutoff-row td {
  padding: 6px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 167, 30, 0.06);
  border-top: 1px dashed rgba(242, 167, 30, 0.4);
  border-bottom: 1px dashed rgba(242, 167, 30, 0.4);
}

/* =========================================================================
   TEAMS GRID
   ========================================================================= */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.team-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.team-card .seed {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.team-card .t-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  margin: 6px 0 2px;
  line-height: 1.15;
}
.team-card .t-owner {
  font-size: 13px;
  color: var(--text-muted);
}
.team-card .t-bio {
  margin-top: 8px;
  font-size: 12px;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.4;
}
.team-card .t-record {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.team-card .seed { display: flex; justify-content: space-between; align-items: center; }
.trophy-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(242, 167, 30, 0.12);
  border: 1px solid rgba(242, 167, 30, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
}

.h2h-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.h2h-pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.h2h-pickers select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.h2h-vs {
  font-family: var(--font-display);
  color: var(--text-faint);
  font-size: 14px;
}
.h2h-result {
  margin-top: 20px;
  text-align: center;
}
.h2h-record {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
}
.h2h-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.h2h-games {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.h2h-game-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
}
.h2h-game-row:first-child { border-top: none; }

.trend-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.trend-chart-wrap svg { width: 100%; height: auto; display: block; }
.trend-line {
  fill: none;
  stroke-width: 2.5;
  transition: opacity 0.15s ease, stroke-width 0.15s ease;
}
.trend-dot {
  transition: opacity 0.15s ease;
}
.trend-axis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-faint);
}
.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.trend-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.trend-legend-item:hover { border-color: var(--border); color: var(--text); }
.trend-legend-item.active { border-color: currentColor; color: var(--text); }
.trend-legend-swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.season-select:focus { outline: 1px solid var(--blue); }

/* =========================================================================
   WEEK SELECTOR (scores page)
   ========================================================================= */
.week-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.week-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.week-pill.active { color: #fff; background: var(--blue); border-color: var(--blue); }

/* =========================================================================
   PLAYOFF BRACKET TREE (visual)
   ========================================================================= */
.bracket-tree-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}
.bracket-tree {
  position: relative;
}
.bracket-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.bracket-node {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-sizing: border-box;
}
.bracket-node.active-round { border-color: var(--gold); }
.bracket-node .g-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   PLAYOFF BRACKET
   ========================================================================= */
.bracket-section {
  margin-bottom: 28px;
}
.bracket-heading {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.bracket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.bracket-game {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.bracket-game .g-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.bracket-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}
.bracket-side .b-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.bracket-side .b-name.tbd { color: var(--text-faint); font-weight: 500; font-style: italic; }
.bracket-side .b-score { font-family: var(--font-mono); font-weight: 700; }
.bracket-side.winner .b-name, .bracket-side.winner .b-score { color: var(--win); }

.manager-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* =========================================================================
   HISTORY PAGE
   ========================================================================= */
.champ-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.champ-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.champ-card:hover { border-color: var(--gold); }
.champ-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.champ-card .cc-season {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.champ-card .cc-team {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 6px 0 2px;
  line-height: 1.15;
}
.champ-card .cc-owner { font-size: 12px; color: var(--text-muted); }
.champ-card .cc-record { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .leaderboard-grid { grid-template-columns: 1fr; } }

.leaderboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.leaderboard-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}
.leaderboard-row:first-of-type { border-top: none; }
.leaderboard-row .lb-name { font-weight: 600; }
.leaderboard-row .lb-value { font-family: var(--font-mono); color: var(--text-muted); }

.owner-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.owner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.owner-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.owner-card .oc-name {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 2px;
}
.owner-card .oc-summary { font-size: 12px; color: var(--text-faint); margin-bottom: 12px; }
.owner-card .oc-teams { display: flex; flex-direction: column; gap: 6px; }
.oc-team-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
}
.oc-team-row:first-child { border-top: none; padding-top: 0; }
.oc-team-row .ot-name { color: var(--text); }
.oc-team-row .ot-season { font-family: var(--font-mono); color: var(--text-faint); white-space: nowrap; }

/* =========================================================================
   WEEKLY AWARDS
   ========================================================================= */
.awards-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.award-card .a-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 6px;
}
.award-card .a-team { font-weight: 700; font-size: 14px; }
.award-card .a-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.pr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pr-rank {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  width: 34px;
  flex-shrink: 0;
  text-align: center;
}
.pr-info { flex: 1; min-width: 0; }
.pr-name {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}
.pr-owner {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.pr-blurb {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.pr-movement {
  flex-shrink: 0;
  text-align: center;
  min-width: 40px;
}
@media (max-width: 640px) {
  .pr-row { flex-wrap: wrap; }
  .pr-movement { order: 10; margin-left: auto; }
}

/* =========================================================================
   BIGGEST LOSERS
   ========================================================================= */
.loser-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loser-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--loss);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.loser-season-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  width: 76px;
  flex-shrink: 0;
}
.loser-info { flex: 1; min-width: 0; }
.loser-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}
.loser-owner {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.loser-punishment {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
.loser-stats {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
  text-align: right;
}
.loser-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--loss);
}
.loser-stat-label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
@media (max-width: 700px) {
  .loser-card { flex-wrap: wrap; }
  .loser-stats { width: 100%; justify-content: flex-start; margin-top: 8px; }
}

/* =========================================================================
   NEWS
   ========================================================================= */
.news-feature {
  display: block;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.news-feature:hover { border-color: var(--blue); }
.news-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.news-feature h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--text);
}
.news-dek {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 640px;
}
.news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-list-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.news-list-item:hover { border-color: var(--blue); }
.news-list-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  margin: 4px 0 6px;
  color: var(--text);
}

.article-body { max-width: 680px; }
.article-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.article-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 20px;
}

/* =========================================================================
   COMMISSIONER PAGE
   ========================================================================= */
.commish-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 8px;
}
.commish-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 2px;
}
.commish-header .commish-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rules-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.rules-section h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--gold);
  margin: 0 0 12px;
}
.rules-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.rules-section li.fill-in { color: var(--text-faint); font-style: italic; }

.bylaws-enforcement {
  background: rgba(241, 96, 99, 0.08);
  border: 1px solid rgba(241, 96, 99, 0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.bylaws-enforcement strong { color: var(--loss); }
.bylaws-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 12px;
}
.bylaws-section ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 2;
}
.bylaws-disclaimer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint);
  line-height: 1.7;
}

/* =========================================================================
   TRADE CALCULATOR
   ========================================================================= */
.trade-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .trade-columns { grid-template-columns: 1fr; }
}
.trade-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.trade-side h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  margin: 0 0 14px;
}
.trade-vs-badge {
  align-self: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-faint);
  padding-top: 40px;
}
.trade-player-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.trade-added-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  min-height: 20px;
}
.trade-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
}
.trade-chip .value { font-family: var(--font-mono); color: var(--gold); }
.trade-chip .remove {
  cursor: pointer;
  color: var(--text-faint);
  font-weight: 700;
  padding: 0 4px;
}
.trade-chip .remove:hover { color: var(--loss); }
.trade-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}
.trade-verdict {
  margin-top: 20px;
  text-align: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trade-verdict .v-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.trade-verdict .v-result {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 4px;
}

.rushmore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) {
  .rushmore-grid { grid-template-columns: 1fr; }
}
.rushmore-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.rushmore-card .rc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rushmore-card .rc-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
}
.rushmore-card .rc-title {
  font-size: 12px;
  font-style: italic;
  color: var(--gold);
  margin-top: 2px;
}
.rushmore-card .rc-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.trading-card-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.trading-card {
  --card-color: #2F6FED;
  width: 280px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-elevated) 60%, var(--card-color) 220%);
  border: 2px solid var(--card-color);
  border-radius: 20px;
  padding: 18px 20px 22px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.35);
}
.trading-card .tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.trading-card .tc-season {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--card-color);
}
.trading-card .tc-rings { font-size: 12px; }
.trading-card .avatar { width: 96px !important; height: 96px !important; margin: 0 auto; border: 3px solid var(--card-color); }
.trading-card .tc-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 12px;
  line-height: 1.1;
}
.trading-card .tc-team {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}
.trading-card .tc-rating {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trading-card .tc-rating-value {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--card-color);
  line-height: 1;
}
.trading-card .tc-rating-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.trading-card .tc-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.trading-card .tc-stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.trading-card .tc-stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.trading-card .tc-stat-label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* =========================================================================
   NEWSLETTER / FOOTER
   ========================================================================= */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 4px;
}
.newsletter p { margin: 0; color: var(--text-muted); font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-bright); }

footer.site-footer {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer.site-footer a { color: var(--text-muted); font-weight: 600; }

main { padding-bottom: 40px; }

.page-head { padding: 44px 0 28px; }
.page-head h1.display { font-size: clamp(32px, 5vw, 46px); }
