:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --gold: #f5a623;
  --gold-light: #ffd60a;
  --silver: #c0c0c8;
  --bronze: #cd7f32;
  --accent: #ff6b35;
  --accent-warm: #e85d04;
  --chowder: #f4a261;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(245, 166, 35, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-height: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}

.nav-inner {
  width: min(1200px, 100%);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: calc(var(--nav-height) + 16px) 24px 64px;
  position: relative;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/chowdah-hero.jpg') center 18% / cover no-repeat;
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 32%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse at center 28%, transparent 0%, rgba(0, 0, 0, 0.3) 72%);
}

.hero > :not(.hero-backdrop) {
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 20px auto 36px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  width: min(720px, 100%);
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

.hero-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-podium:hover {
  transform: translateY(-4px);
}

.hero-podium-champ {
  border-color: rgba(245, 166, 35, 0.25);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.hero-podium-champ:hover {
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.08);
}

.hero-podium-toilet {
  border-color: rgba(139, 0, 0, 0.25);
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.hero-podium-toilet:hover {
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: 0 16px 40px rgba(139, 0, 0, 0.12);
}

.hero-podium-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.hero-podium-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.hero-podium-manager {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.hero-podium-champ .hero-podium-manager {
  color: var(--gold-light);
}

.hero-podium-team {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.35;
}

.hero-podium-record {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.btn-secondary:hover {
  background: rgba(245, 166, 35, 0.1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ─── */
section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-playoffs,
.section-drama {
  background: linear-gradient(180deg, #0a0a0c 0%, #12121a 45%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.section-history,
.section-managers {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d0f 50%, var(--bg) 100%);
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.55s var(--ease-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-showcase,
  .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Trophy Case ─── */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trophy-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  --card-accent: var(--gold);
}

.trophy-column-champion { --card-accent: var(--gold-light); }
.trophy-column-runner-up { --card-accent: var(--silver); }
.trophy-column-third { --card-accent: var(--bronze); }
.trophy-column-regular-season { --card-accent: var(--gold); }

.trophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.trophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--gold)), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.trophy-column:hover .trophy-card {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.trophy-column:hover .trophy-card::before {
  opacity: 1;
}

.trophy-card.champion,
.trophy-lb-champion { --card-accent: var(--gold-light); }

.trophy-card.runner-up,
.trophy-lb-runner-up { --card-accent: var(--silver); }

.trophy-card.third,
.trophy-lb-third { --card-accent: var(--bronze); }

.trophy-card.regular-season,
.trophy-lb-regular-season { --card-accent: var(--gold); }

.trophy-card.last,
.trophy-lb-last { --card-accent: #8b0000; }

.trophy-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.trophy-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.trophy-leader {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.trophy-count {
  font-size: 15px;
  color: var(--text-secondary);
}

.trophy-years {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trophy-year {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 980px;
  color: var(--text-secondary);
}

.trophy-lb-board {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trophy-lb-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.trophy-lb-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.trophy-lb-row:first-child {
  border-color: color-mix(in srgb, var(--card-accent) 28%, transparent);
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
}

.trophy-lb-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding-top: 1px;
}

.trophy-lb-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.trophy-lb-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.trophy-lb-years {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trophy-lb-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--card-accent, var(--gold));
  padding-top: 1px;
}

/* ─── Playoff Drama ─── */
.drama-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.drama-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drama-stat-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-light);
  line-height: 1;
}

.drama-stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.drama-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.drama-filter-btn {
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}

.drama-filter-btn:hover,
.drama-filter-btn.active {
  border-color: var(--accent);
  color: var(--chowder);
  background: rgba(255, 107, 53, 0.08);
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.drama-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drama-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.drama-card.drama-dominance {
  border-color: rgba(245, 166, 35, 0.2);
}

.drama-card.drama-legendary {
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.04);
}

.drama-card.drama-heartbreak {
  border-color: rgba(192, 192, 200, 0.2);
}

.drama-card.drama-collapse {
  border-color: rgba(139, 0, 0, 0.25);
}

.drama-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drama-year {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.drama-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 980px;
  white-space: nowrap;
}

.drama-legendary .drama-tag {
  color: var(--chowder);
  background: rgba(255, 107, 53, 0.12);
}

.drama-narrative {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.drama-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.drama-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drama-team-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.drama-team-champ .drama-team-label {
  color: var(--gold);
}

.drama-team-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drama-team-record {
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.drama-rank-flow {
  margin-top: 6px;
}

.rank-arrow {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.rank-arrow em {
  font-style: normal;
  opacity: 0.8;
}

.rank-up {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.rank-down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.rank-same {
  color: var(--gold-light);
  background: rgba(255, 214, 10, 0.1);
}

.drama-final-rank {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.drama-vs {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.drama-link {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}

.drama-link:hover {
  color: var(--gold-light);
}

/* ─── Championship Grid ─── */
.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.champ-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
  color: inherit;
  width: 100%;
}

.champ-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.champ-card-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.champ-card-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.champ-card-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.champ-card-team {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.champ-card-rs {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ─── Season Explorer ─── */
.season-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.season-btn {
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.season-btn:hover,
.season-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.season-panel {
  display: none;
  animation: fadeIn 0.5s var(--ease-out);
}

.season-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.season-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.season-awards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.award-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.award-pill-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.award-pill-value {
  font-size: 17px;
  font-weight: 600;
}

.award-pill-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.award-champion {
  border-color: rgba(245, 166, 35, 0.25);
  background: rgba(245, 166, 35, 0.06);
}

.award-rs {
  border-color: rgba(255, 214, 10, 0.15);
}

.award-last {
  border-color: rgba(139, 0, 0, 0.2);
  background: rgba(139, 0, 0, 0.04);
}

.season-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.season-image-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.season-image-wrap:hover {
  transform: scale(1.02);
}

.season-image-wrap img {
  width: 100%;
  height: auto;
}

.season-image-label {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

/* ─── Standings Table ─── */
.standings-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

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

.standings-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.standings-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.standings-table .rank {
  font-weight: 600;
  color: var(--text-tertiary);
  width: 48px;
}

.standings-table .rank-1 { color: var(--gold-light); }
.standings-table .rank-2 { color: var(--silver); }
.standings-table .rank-3 { color: var(--bronze); }

.standings-table .manager {
  color: var(--text-secondary);
  font-size: 13px;
}

.standings-table .record {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.standings-table .pf {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

/* ─── Managers ─── */
.managers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.manager-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.manager-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.manager-card.expanded {
  grid-column: 1 / -1;
}

.manager-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.manager-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.manager-record {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
}

.manager-pct {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: right;
}

.manager-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.manager-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.manager-inactive-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-style: italic;
}

.manager-card-inactive {
  opacity: 0.82;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.manager-card-inactive:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.16);
}

.managers-inactive-divider {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.managers-inactive-divider-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.managers-inactive-divider-desc {
  font-size: 13px;
  color: var(--text-tertiary);
}

.manager-stats-block {
  text-align: right;
  flex-shrink: 0;
}

.manager-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.badge.gold { background: rgba(245, 166, 35, 0.15); color: var(--gold-light); }
.badge.silver { background: rgba(192, 192, 200, 0.12); color: var(--silver); }
.badge.bronze { background: rgba(205, 127, 50, 0.12); color: var(--bronze); }
.badge.shame { background: rgba(139, 0, 0, 0.15); color: #ff6b6b; }

.manager-history {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.manager-card.expanded .manager-history {
  display: block;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.history-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.history-year {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.history-team {
  color: var(--text);
  margin-bottom: 2px;
}

.history-record {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ─── Sort Controls ─── */
.sort-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.sort-btn {
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn:hover,
.sort-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(30px);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ─── Hall of Champions ─── */
.full-bleed-champions {
  background: linear-gradient(180deg, #0a0a0c 0%, #101018 40%, #0a0a0c 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.champions-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.champions-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.champion-section-head {
  margin-bottom: 18px;
}

.champion-section-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.champion-section-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.45;
  max-width: 62ch;
}

.champion-leaderboard-section {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.champion-dynasty-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 166, 35, 0.35);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16) 0%, rgba(255, 214, 10, 0.05) 45%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 24px 60px rgba(245, 166, 35, 0.1);
}

.champion-dynasty-glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 214, 10, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.champion-dynasty-main {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-bottom: 20px;
}

.champion-dynasty-crown {
  font-size: 42px;
  line-height: 1;
}

.champion-dynasty-copy {
  flex: 1 1 220px;
}

.champion-dynasty-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.champion-dynasty-name {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 4px;
}

.champion-dynasty-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.champion-dynasty-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.champion-rings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.champion-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.champion-ring-full {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.45);
}

.champion-ring-half {
  background: linear-gradient(90deg, var(--gold) 50%, rgba(255, 255, 255, 0.12) 50%);
  border: 1px solid rgba(245, 166, 35, 0.5);
}

.champion-ring-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.champion-ring-row {
  display: grid;
  grid-template-columns: 32px minmax(100px, 1.2fr) auto 48px minmax(120px, 1.4fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.champion-ring-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 166, 35, 0.28);
  background: rgba(245, 166, 35, 0.06);
}

.champion-ring-row:first-child {
  border-color: rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.08);
}

.champion-ring-rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.champion-ring-name {
  font-size: 16px;
  font-weight: 700;
}

.champion-ring-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
}

.champion-ring-years {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: right;
}

.champion-year-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.champion-year-pill-compact {
  flex: 1 1 140px;
  min-width: 120px;
}

.champion-year-pill:hover,
.champion-half-pill:hover {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.28);
}

.champion-year-pill-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.champion-year-pill-team {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.3;
}

.champion-year-pill-record {
  font-size: 11px;
  color: var(--text-tertiary);
}

.champion-half-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.05);
}

.champion-half-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.champion-half-icon {
  font-size: 28px;
  color: var(--chowder);
}

.champion-half-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chowder);
}

.champion-half-name {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.champion-half-pill {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 53, 0.25);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.champion-half-joke {
  font-size: 13px;
  font-style: italic;
  color: var(--chowder);
  margin-top: 12px;
  line-height: 1.45;
}

/* ─── Records Wall ─── */
.full-bleed-records {
  background: linear-gradient(180deg, #0a0a0c 0%, #141210 50%, #0a0a0c 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.records-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.records-tab {
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.records-tab:hover,
.records-tab.active {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(245, 166, 35, 0.08);
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.record-plaque {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-plaque:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: rgba(245, 166, 35, 0.25);
}

.record-infamy {
  border-color: rgba(139, 0, 0, 0.2);
}

.record-infamy:hover {
  border-color: rgba(248, 113, 113, 0.3);
}

.record-icon {
  font-size: 28px;
}

.record-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.record-value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-light);
  line-height: 1;
}

.record-infamy .record-value {
  color: #f87171;
}

.record-holder {
  font-size: 20px;
  font-weight: 600;
}

.record-team {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.record-narrative {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.record-runners {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* ─── Manager Legacies ─── */
.section-legacies {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d12 50%, var(--bg) 100%);
}

.legacy-card .manager-name {
  margin-bottom: 6px;
}

.legacy-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.legacy-tag-inactive {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-tertiary);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.legacy-tag-dynasty,
.legacy-tag-double-champ,
.legacy-tag-champion,
.legacy-tag-co-champion {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold-light);
}

.legacy-tag-co-champion {
  background: rgba(245, 166, 35, 0.1);
  color: #e8b84a;
}

.legacy-tag-bridesmaid {
  background: rgba(192, 192, 200, 0.12);
  color: var(--silver);
}

.legacy-tag-rs-king {
  background: rgba(255, 214, 10, 0.1);
  color: var(--gold);
}

.legacy-tag-basement-dweller {
  background: rgba(139, 0, 0, 0.15);
  color: #f87171;
}

.legacy-tag-one-hit-wonder,
.legacy-tag-one-season-wonder {
  background: rgba(255, 107, 53, 0.1);
  color: var(--chowder);
}

.legacy-narrative {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.co-manager-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 214, 10, 0.25);
  background: rgba(255, 214, 10, 0.04);
}

.co-manager-joke {
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: var(--chowder);
  margin: -4px 0 12px;
  padding-left: 2px;
}

.legacy-moment {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.legacy-moment-glory {
  border-color: rgba(245, 166, 35, 0.2);
  background: rgba(245, 166, 35, 0.04);
}

.legacy-moment-shame {
  border-color: rgba(139, 0, 0, 0.25);
  background: rgba(139, 0, 0, 0.04);
}

.legacy-moment-drama {
  border-color: rgba(255, 107, 53, 0.2);
}

.legacy-moment-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-right: 8px;
}

.legacy-moment-headline {
  font-size: 13px;
  font-weight: 600;
}

.legacy-moment-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.45;
}

.legacy-highlights {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.legacy-highlight {
  font-size: 12px;
  color: var(--text-tertiary);
}

.badge.record-badge {
  background: rgba(100, 149, 237, 0.12);
  color: #93b4f5;
}

.history-item {
  cursor: pointer;
  transition: background 0.2s;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.history-item-co {
  border: 1px dashed rgba(255, 214, 10, 0.2);
  background: rgba(255, 214, 10, 0.03);
}

.co-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* ─── Full-bleed divider ─── */
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 80px 24px;
}

.full-bleed-trophies {
  background: linear-gradient(180deg, #0a0a0c 0%, #111116 40%, #0a0a0c 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.full-bleed-seasons {
  background: linear-gradient(180deg, #0d0d10 0%, #141418 50%, #0d0d10 100%);
  border-top: 1px solid var(--border);
}

.full-bleed-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .champions-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .champion-ring-row {
    grid-template-columns: 28px 1fr auto;
    grid-template-areas:
      "rank name count"
      ". years years";
  }

  .champion-ring-rank { grid-area: rank; }
  .champion-ring-name { grid-area: name; }
  .champion-ring-count { grid-area: count; }
  .champion-rings { display: none; }
  .champion-ring-years {
    grid-area: years;
    text-align: left;
    margin-top: 4px;
  }

  .trophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



  .season-header {
    grid-template-columns: 1fr;
  }

  .season-images {
    grid-template-columns: 1fr;
  }

  .managers-grid {
    grid-template-columns: 1fr;
  }

  section,
  .full-bleed {
    padding: 60px 20px;
  }

  .champ-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .drama-grid {
    grid-template-columns: 1fr;
  }

  .drama-matchup {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .drama-vs {
    justify-content: center;
  }

  .records-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 11px;
    white-space: nowrap;
  }
}