/* ============================================
   Garbage League — Hall of Records
   v4: "Editorial Gold" — Magazine / Trophy Room
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  /* Gold palette — matched to league logo's burnished gold */
  --gold-50: #fdf8ef;
  --gold-100: #faefd5;
  --gold-200: #f0daa0;
  --gold-300: #e0c060;
  --gold-400: #d4a84c;
  --gold-500: #c89840;
  --gold-600: #a87830;
  --gold-700: #8a5e1e;
  --gold-800: #6e4a16;
  --gold-900: #5a3c10;
  --stone-50: #faf9f7;
  --stone-100: #f5f3f0;
  --stone-200: #e8e4df;
  --stone-300: #d6d1cb;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #3d3a36;
  --stone-800: #262320;
  --stone-900: #1a1816;
  --stone-950: #0e0d0c;
  --green-muted: #86efac;
  --green-deep: #166534;
  --red-muted: #fca5a5;
  --red-deep: #991b1b;
  --blue-muted: #93c5fd;
  --purple-muted: #c4b5fd;
  --font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-display: 'Oswald', 'Impact', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.15s;
  --dur-med: 0.3s;
  --dur-slow: 0.5s;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Override Tailwind amber with logo-matched burnished gold */
.text-amber-400 { color: #d4a84c !important; }
.text-amber-300 { color: #e0c060 !important; }
.text-amber-500 { color: #c89840 !important; }
.bg-amber-500 { background-color: #c89840 !important; }
.bg-amber-500:hover, .hover\:bg-amber-400:hover { background-color: #d4a84c !important; }
.border-amber-500 { border-color: #c89840 !important; }
.border-amber-500\/50, .border-amber-700\/40 { border-color: rgba(200, 152, 64, 0.4) !important; }
.bg-amber-500\/15 { background-color: rgba(200, 152, 64, 0.15) !important; }
.text-yellow-500\/70 { color: rgba(200, 152, 64, 0.7) !important; }
.text-amber-100 { color: #f0daa0 !important; }


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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  background-color: var(--stone-950);
  color: var(--stone-300);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  padding-top: 160px;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--gold-700) 50%, transparent 90%);
  z-index: 1001;
  opacity: 0.6;
}

body::after { display: none; }

.text-silver { color: #b8b8b8; }
.text-bronze { color: #cd7f32; }
.text-last {
  color: var(--red-muted);
  font-weight: 700;
  font-family: var(--font-display);
}

/* === HEADER === */
#main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(14, 13, 12, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 152, 64, 0.1);
  transition: all var(--dur-med) var(--ease-out);
}

.header-inner { padding: 0.6rem 0; }

/* Top bar: logo + title + actions */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  transition: all var(--dur-med) var(--ease-out);
  /* Blend seamlessly — no border, bg matches site */
  background: transparent;
  object-fit: contain;
  margin: -8px 0; /* let it breathe outside the header padding */
}

.header-text h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--gold-400);
  transition: font-size var(--dur-med) var(--ease-out);
}

.header-text p {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.55rem;
  color: var(--stone-600);
  transition: all var(--dur-med) var(--ease-out);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back {
  padding: 6px 14px;
  background: var(--stone-800);
  color: var(--stone-400);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid var(--stone-700);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.btn-back:hover { color: white; border-color: var(--stone-600); }

.btn-theme {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--stone-700);
  background: transparent;
  color: var(--stone-500);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.btn-theme:hover { color: var(--gold-400); border-color: var(--gold-700); }

/* Scrolled state */
#main-header.scrolled-header { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
#main-header.scrolled-header .header-logo { width: 48px; height: 48px; margin: -4px 0; }
#main-header.scrolled-header .header-text h1 { font-size: 1.1rem; }
#main-header.scrolled-header .header-text p { font-size: 0; opacity: 0; margin: 0; }
#main-header.scrolled-header .header-inner { padding: 0.35rem 0; }

/* === NAVIGATION === */
.header-nav {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(200, 152, 64, 0.06);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-group + .nav-group {
  margin-left: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(200, 152, 64, 0.08);
}

.nav-group-label {
  font-family: var(--font-sans);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-700);
  padding: 0 4px;
  white-space: nowrap;
  display: none;
}

.tab-button {
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--stone-500);
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.tab-button:hover {
  color: var(--stone-200);
  background: rgba(200, 152, 64, 0.06);
}
.tab-button:active { transform: scale(0.96); }
.tab-button.tab-active {
  color: var(--gold-400);
  background: rgba(200, 152, 64, 0.1);
  font-weight: 700;
}

.nav-mobile-toggle { display: none; }

/* Desktop: show group labels */
@media (min-width: 1024px) {
  .nav-group-label { display: block; }
  .header-text h1 { font-size: 2rem; }
  .header-logo { width: 88px; height: 88px; margin: -10px 0; }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 769px) {
  .nav-pills { flex-wrap: wrap; gap: 3px; }
  .nav-group { flex-wrap: wrap; }
  .nav-group + .nav-group { border-left: none; margin-left: 0; padding-left: 0; }
}

/* Mobile */
@media (max-width: 768px) {
  .header-logo { width: 64px; height: 64px; margin: -6px 0; }
  .header-text h1 { font-size: 1.2rem; }
  .header-text p { font-size: 0.45rem; letter-spacing: 0.15em; }

  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--stone-900);
    border: 1px solid var(--stone-800);
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-height: 44px;
  }
  .nav-active-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
  }
  .nav-chevron {
    color: var(--stone-600);
    transition: transform var(--dur-med) var(--ease-out);
    flex-shrink: 0;
  }
  .nav-mobile-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
  .nav-pills-wrapper { max-height: 0; overflow: hidden; transition: max-height var(--dur-med) var(--ease-out); }
  .nav-pills-wrapper.nav-open { max-height: 600px; overflow-y: auto; }
  .nav-pills { flex-wrap: wrap; gap: 4px; padding: 10px 0 4px; }
  .nav-group { flex-wrap: wrap; gap: 4px; width: 100%; }
  .nav-group + .nav-group { border-left: none; margin-left: 0; padding-left: 0; padding-top: 6px; margin-top: 6px; border-top: 1px solid rgba(200, 152, 64, 0.05); }
  .nav-group-label { display: block; width: 100%; padding: 2px 0; color: var(--stone-700); font-size: 0.48rem; }
  .tab-button {
    flex: 1 1 calc(33.33% - 4px);
    text-align: center;
    font-size: 0.55rem;
    padding: 8px 4px;
    min-height: 38px;
    display: flex; align-items: center; justify-content: center;
  }
}

@media (max-width: 400px) {
  .tab-button { flex: 1 1 calc(50% - 3px); font-size: 0.5rem; }
  .header-text h1 { font-size: 1rem; }
}

/* === LIGHT MODE HEADER === */
body.light-mode #main-header {
  background: rgba(248, 245, 240, 0.97);
  border-bottom-color: rgba(168, 120, 48, 0.1);
}
body.light-mode #main-header.scrolled-header { box-shadow: 0 4px 20px rgba(100, 70, 20, 0.06); }
body.light-mode .header-text h1 { color: var(--gold-700); }
body.light-mode .header-text p { color: var(--stone-500); }
body.light-mode .tab-button { color: var(--stone-500); }
body.light-mode .tab-button:hover { color: var(--stone-800); background: rgba(200, 152, 64, 0.06); }
body.light-mode .tab-button.tab-active { color: var(--gold-700); background: rgba(200, 152, 64, 0.1); }
body.light-mode .btn-theme { border-color: var(--stone-300); color: var(--stone-500); }
body.light-mode .btn-theme:hover { color: var(--gold-600); border-color: var(--gold-500); }
body.light-mode .btn-back { background: var(--stone-200); color: var(--stone-600); border-color: var(--stone-300); }
body.light-mode .nav-mobile-toggle { background: var(--stone-100); border-color: var(--stone-200); }
body.light-mode .nav-active-label { color: var(--gold-700); }
body.light-mode .nav-group + .nav-group { border-left-color: rgba(168, 120, 48, 0.08); }
body.light-mode .nav-group-label { color: var(--stone-400); }
body.light-mode .header-nav { border-top-color: rgba(168, 120, 48, 0.06); }

/* === ROW HIGHLIGHTS === */
#content-area .active-row { background-color: rgba(134, 239, 172, 0.04); }
#content-area .bye-row { background-color: rgba(134, 239, 172, 0.06); }
#content-area .playoff-row { background-color: rgba(147, 197, 253, 0.05); }
#content-area .wildcard-row { background-color: rgba(250, 204, 21, 0.04); }

#content-area .highlight-high { color: var(--gold-400); font-size: 1.25rem; font-weight: 700; font-family: var(--font-display); text-shadow: none; }
#content-area .highlight-low { color: var(--purple-muted); font-size: 1.25rem; font-weight: 700; font-family: var(--font-display); text-shadow: none; }
#content-area .highlight-blowout { border-color: var(--blue-muted); border-width: 1px; }
#content-area .highlight-closest { border-color: var(--gold-600); border-width: 1px; }

/* === BRACKET === */
.bracket-match { background: var(--stone-900); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; border: 1px solid var(--stone-800); }
.bracket-match:hover { transform: scale(1.01); }
.bracket-match.empty { display: flex; align-items: center; justify-content: center; height: 60px; background: var(--stone-950); }
.bracket-match.bracket-final { border-color: rgba(161, 98, 7, 0.3); }
.bracket-team { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; }
.bracket-team.winner { background: rgba(22, 101, 52, 0.06); border-bottom: 1px solid var(--stone-800); }
.bracket-team.loser { background: rgba(153, 27, 27, 0.04); }
.bracket-final .bracket-team.winner { background: rgba(161, 98, 7, 0.06); }
.bracket-name { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; }
.bracket-team.winner .bracket-name { color: var(--stone-200); }
.bracket-team.loser .bracket-name { color: var(--stone-600); }
.bracket-final .bracket-team.winner .bracket-name { color: var(--gold-400); }
.bracket-score { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; min-width: 50px; text-align: right; }
.bracket-team.winner .bracket-score { color: var(--green-muted); }
.bracket-team.loser .bracket-score { color: var(--stone-600); }
.bracket-final .bracket-team.winner .bracket-score { color: var(--gold-400); }
.bracket-margin { text-align: center; font-family: var(--font-display); font-size: 0.6rem; color: var(--stone-600); padding: 2px 0; background: var(--stone-950); letter-spacing: 0.05em; }
.bracket-final .bracket-margin { color: var(--gold-700); }
.live-bracket-cell { background-color: var(--stone-900); border: 1px solid var(--stone-800); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 6px; }
.live-bracket-cell:hover { border-color: var(--stone-700); }
#content-area .bracket-match .text-green-400 { color: var(--green-muted); }

/* === TABLES === */
table { font-variant-numeric: tabular-nums; border-collapse: separate; border-spacing: 0; }
thead th { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.1em; font-size: 0.6rem; text-transform: uppercase; position: sticky; top: 0; z-index: 5; color: var(--stone-500); }
tbody tr { transition: background-color var(--dur-fast); }
tbody tr:hover { background-color: rgba(250, 204, 21, 0.015); }

/* === INTERACTIVE === */
[data-action="view-profile"] { cursor: pointer; transition: color var(--dur-fast); }
[data-action="view-profile"]:hover { color: var(--gold-400); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
[data-action="sort"] { cursor: pointer; user-select: none; transition: color var(--dur-fast); }
[data-action="sort"]:hover { color: var(--stone-200); }

/* === FORMS === */
select, input[type="text"], input[type="number"] { font-family: var(--font-sans); background: var(--stone-900); color: var(--stone-300); border: 1px solid var(--stone-700); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.875rem; -webkit-appearance: none; }
select:focus, input:focus { outline: none; border-color: var(--gold-600); }

button:not(.tab-button) { -webkit-tap-highlight-color: transparent; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone-700); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-600); }

.overflow-x-auto { position: relative; -webkit-overflow-scrolling: touch; }



.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 640px) { .mobile-only { display: none; } .desktop-only { display: block; } }

.owner-card { transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.owner-card:active { transform: scale(0.98); }

/* === TYPOGRAPHY === */
#content-area h2 { font-family: var(--font-serif); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.2; color: var(--gold-400); }
#content-area h3 { font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.02em; line-height: 1.3; }
#content-area h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.7rem; color: var(--stone-500); }
.score-display { font-family: var(--font-display); letter-spacing: 0.02em; }



/* === MOBILE === */
@media (max-width: 767px) {
  body { padding-top: 130px; font-size: 14px; }
  #main-header { padding: 0.6rem 0; }
  #main-header .max-w-7xl { padding-left: 12px; padding-right: 12px; }
  #header-title { font-size: 1.3rem; }
  #header-subtitle { font-size: 0.55rem; letter-spacing: 0.12em; }
  #main-header.scrolled-header { padding: 0.3rem 0; }
  #main-header.scrolled-header #header-title { font-size: 1.1rem; }
  main { padding-left: 10px; padding-right: 10px; }
  table { font-size: 0.72rem; }
  thead th { font-size: 0.55rem; padding: 6px 5px; letter-spacing: 0.06em; }
  tbody td { padding: 7px 5px; }
  .matchup-card { border-radius: var(--radius-sm); margin-bottom: 6px; }
  .matchup-card:hover { transform: none; }
  .live-bracket-cell { padding: 8px; }
  .score-display { font-size: 1rem; }
  .matchup-winner { font-size: 1rem; }
  #content-area .text-4xl, #content-area .sm\\:text-5xl { font-size: 1.8rem; }
  #content-area .text-3xl { font-size: 1.3rem; }
  #content-area .text-2xl { font-size: 1.1rem; }
  [data-action="view-profile"], [data-action="sort"], .tab-button { min-height: 36px; }
  select, input { font-size: 16px; padding: 10px 12px; min-height: 44px; }
}

@media (max-width: 400px) {
  body { padding-top: 120px; }
  #header-title { font-size: 1.1rem; }
  .tab-button { font-size: 0.52rem; padding: 5px 8px; }
  table { font-size: 0.68rem; }
  thead th { font-size: 0.52rem; padding: 5px 4px; }
  tbody td { padding: 6px 4px; }
  #content-area .text-4xl { font-size: 1.5rem; }
}

@media (max-width: 767px) and (orientation: landscape) {
  body { padding-top: 90px; }
  #main-header { padding: 0.25rem 0; }
  #header-title { font-size: 1rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body { padding-top: 150px; }
  main { padding-left: 16px; padding-right: 16px; }
}

@media (min-width: 1280px) { body { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  body::before { display: none; }
  #main-header { position: static; box-shadow: none; }
}

/* === MOBILE ENHANCEMENTS === */
@media (max-width: 767px) {
  /* Prevent horizontal overflow on the page */
  #content-area { overflow-x: hidden; }

  /* Section headers smaller on mobile */
  #content-area h2 { font-size: 1rem; letter-spacing: 0.06em; }

  /* Year pill bars scroll nicely */
  #playoff-year-bar,
  #draft-year-bar,
  #roster-year-bar { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #playoff-year-bar::-webkit-scrollbar,
  #draft-year-bar::-webkit-scrollbar,
  #roster-year-bar::-webkit-scrollbar { display: none; }

  /* Record book cards full width */
  .grid.grid-cols-1.lg\\:grid-cols-2 { gap: 12px; }

  /* Bracket matches need more padding on touch */
  .bracket-match .bracket-team { padding: 8px 12px; }

  /* Safe area padding for notched phones */
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  #main-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Small phones */
@media (max-width: 380px) {
  main { padding-left: 6px; padding-right: 6px; }
  .tab-button { font-size: 0.48rem; padding: 6px 6px; }
  #content-area h2 { font-size: 0.9rem; }
}

/* === TAB TRANSITION ANIMATION === */
#content-area {
  transition: opacity 0.15s ease;
}
#content-area.tab-switching {
  opacity: 0;
  transform: translateY(6px);
}

/* === LIGHT MODE === */
body.light-mode {
  background-color: #f8f5f0;
  color: #2a2520;
}
body.light-mode::before { background: linear-gradient(90deg, transparent 10%, var(--gold-500) 50%, transparent 90%); }

/* Header */
body.light-mode #main-header {
  background: rgba(248, 245, 240, 0.96);
  border-bottom-color: rgba(168, 120, 48, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(100, 70, 20, 0.06);
}
body.light-mode #main-header.scrolled-header { box-shadow: 0 2px 20px rgba(100, 70, 20, 0.08); }

/* Navigation */
body.light-mode .tab-button { background: transparent; border-color: #e0dbd4; color: #8a7e72; }
body.light-mode .tab-button:hover { color: #4a3520; border-color: #b8a890; background: rgba(212, 168, 76, 0.04); }
body.light-mode .tab-button.tab-active { color: #6e4a16; border-color: var(--gold-500); background: rgba(212, 168, 76, 0.08); font-weight: 700; }
body.light-mode .nav-mobile-toggle { background: #f0ebe4; border-color: #d8d2c8; }
body.light-mode .nav-active-label { color: #6e4a16; }
body.light-mode .nav-group-label { color: #a89880; border-left-color: rgba(168, 120, 48, 0.2); }

/* Typography */
body.light-mode #content-area h2 { color: #6e4a16; }
body.light-mode #content-area h3 { color: #3a3530; }
body.light-mode .text-white { color: #1a1512 !important; }
body.light-mode .text-stone-400, body.light-mode .text-stone-500 { color: #7a7068 !important; }
body.light-mode .text-stone-600 { color: #a89880 !important; }
body.light-mode .text-amber-100 { color: #4a3520 !important; }
body.light-mode .text-amber-300 { color: #8a5e1e !important; }
body.light-mode .text-amber-400 { color: #a87830 !important; }
body.light-mode .text-yellow-500\/70 { color: #8a5e1e !important; }

/* Tables */
body.light-mode table { color: #2a2520; }
body.light-mode thead th { color: #6e4a16; background: #f0ebe4; border-bottom: 2px solid #e0d8cc; }
body.light-mode tbody td { border-color: #f0ebe4; }
body.light-mode tbody tr:hover { background-color: rgba(212, 168, 76, 0.06) !important; }
body.light-mode tbody tr:nth-child(even) { background-color: rgba(240, 235, 228, 0.5); }

/* Cards — warm paper with soft shadows */
body.light-mode [class*="bg-stone-900"],
body.light-mode [class*="bg-gray-900"] { background-color: #ffffff; }
body.light-mode [class*="bg-stone-900\/50"],
body.light-mode [class*="bg-stone-900\/40"],
body.light-mode [class*="bg-stone-900\/30"],
body.light-mode [class*="bg-stone-900\/20"] { background-color: #fdfbf8; }
body.light-mode [class*="border-stone-800"],
body.light-mode [class*="border-stone-700"] { border-color: #e0d8cc !important; }
body.light-mode [class*="rounded-xl"][class*="border"],
body.light-mode [class*="rounded-2xl"][class*="border"] {
  box-shadow: 0 1px 4px rgba(100, 70, 20, 0.06), 0 4px 16px rgba(100, 70, 20, 0.03);
}
body.light-mode .stat-card:hover, body.light-mode .owner-card:hover,
body.light-mode [class*="rounded-xl"]:hover {
  box-shadow: 0 4px 20px rgba(100, 70, 20, 0.08), 0 8px 40px rgba(100, 70, 20, 0.04);
}

/* Hero section — warm cream gradient */
body.light-mode .relative.overflow-hidden.rounded-2xl[style*="min-height"] {
  background: linear-gradient(135deg, #faf6ef 0%, #f5efe4 30%, #f0e8d8 100%) !important;
}
body.light-mode .relative.overflow-hidden.rounded-2xl[style*="min-height"] > div[class*="absolute"] {
  display: none;
}

/* Stat pills */
body.light-mode [class*="bg-white\/5"] {
  background-color: rgba(168, 120, 48, 0.06) !important;
  border-color: rgba(168, 120, 48, 0.12) !important;
}

/* Colored stat text — slightly muted in light mode */
body.light-mode .text-green-400 { color: #16803c !important; }
body.light-mode .text-red-400 { color: #c42020 !important; }
body.light-mode .text-cyan-400 { color: #0e7490 !important; }
body.light-mode .text-orange-400 { color: #c2570a !important; }
body.light-mode .text-purple-400 { color: #7c3aed !important; }
body.light-mode .text-pink-400 { color: #be185d !important; }
body.light-mode .text-blue-400 { color: #2563eb !important; }
body.light-mode .text-indigo-400 { color: #4f46e5 !important; }
body.light-mode .text-emerald-400 { color: #059669 !important; }
body.light-mode .text-rose-400 { color: #e11d48 !important; }

/* Bracket matches */
body.light-mode [class*="bg-green-900\/5"] { background-color: rgba(22, 163, 74, 0.04); }
body.light-mode [class*="bg-amber-900\/8"] { background-color: rgba(212, 168, 76, 0.06); }
body.light-mode [class*="bg-stone-950\/50"] { background-color: #f8f5f0; }

/* Year pills */
body.light-mode .playoff-year-btn { border-color: #e0d8cc; color: #8a7e72; }
body.light-mode .playoff-year-btn[class*="bg-amber"] { background: rgba(212, 168, 76, 0.1); color: #6e4a16; border-color: var(--gold-500); }

/* Forms */
body.light-mode select, body.light-mode input[type="text"] {
  background: #ffffff; color: #2a2520; border-color: #d8d2c8;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
body.light-mode select:focus, body.light-mode input:focus {
  border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(200, 152, 64, 0.12);
}

/* Gradients — warm instead of dark */
body.light-mode [style*="radial-gradient"] { opacity: 0.5; }
body.light-mode .bg-gradient-to-r { opacity: 0.5; }

/* Section labels */
body.light-mode .section-label span { color: #a89880; }
body.light-mode .section-label::before, body.light-mode .section-label::after {
  background: linear-gradient(90deg, transparent, rgba(168, 120, 48, 0.15), transparent);
}

/* Misc */
body.light-mode .spinner { border-color: #e0d8cc; border-top-color: var(--gold-500); }
body.light-mode ::-webkit-scrollbar-thumb { background: #d8d2c8; }
body.light-mode .spark-bar { opacity: 0.8; }



/* Logo in light mode — add subtle shadow for definition */
body.light-mode .header-logo {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
  border-radius: 50%;
  background: transparent;
}

/* ===== LIGHT MODE TEXT CONTRAST FIXES ===== */
/* Ensure all text has sufficient contrast in light mode */

/* Oswald stat numbers — must be dark and bold */
body.light-mode [class*="font-\\[\\'Oswald\\'\\]"],
body.light-mode [style*="font-family:Oswald"],
body.light-mode .font-\\[\'Oswald\'\\] {
  color: #2a2520;
}

/* Score numbers in matchup cards */
body.light-mode .matchup-card .text-white,
body.light-mode .matchup-card [class*="font-bold"] {
  color: #1a1512 !important;
}

/* Table cell text */
body.light-mode td { color: #2a2520 !important; }
body.light-mode td.text-stone-400,
body.light-mode td .text-stone-400 { color: #57534e !important; }
body.light-mode td .text-stone-300 { color: #44403c !important; }

/* Stone-colored backgrounds that need to be visible */
body.light-mode [class*="bg-stone-800\/40"],
body.light-mode [class*="bg-stone-800\/50"] {
  background-color: rgba(232, 226, 217, 0.5) !important;
}

/* Bracket match boxes */
body.light-mode [class*="border-stone-800\/40"] .text-sm,
body.light-mode [class*="border-stone-800\/30"] .text-sm {
  color: #2a2520 !important;
}

/* Score colors that wash out */
body.light-mode .text-green-400 { color: #15803d !important; }
body.light-mode .text-red-400 { color: #b91c1c !important; }
body.light-mode .text-stone-600 { color: #57534e !important; }
body.light-mode .text-stone-700 { color: #44403c !important; }

/* Italic editorial text in brackets */
body.light-mode .italic { color: #78716c !important; }

/* H2H matchup history rows */
body.light-mode .bg-stone-800\/40 {
  background-color: rgba(232, 226, 217, 0.6) !important;
}

/* Champion comparison cards — records and bars */
body.light-mode [class*="rounded-xl"] .text-stone-300 { color: #44403c !important; }
body.light-mode [class*="rounded-xl"] .text-stone-400 { color: #57534e !important; }
body.light-mode [class*="rounded-xl"] .text-stone-500 { color: #78716c !important; }

/* Owner profile hero gradient */
body.light-mode [style*="linear-gradient"][class*="rounded-2xl"] {
  background: linear-gradient(135deg, #f5efe4 0%, #ede6d8 40%, #f0ebe4 100%) !important;
}

/* Big Oswald numbers in owner profiles and stats */
body.light-mode .text-3xl[class*="font-black"],
body.light-mode .text-2xl[class*="font-black"],
body.light-mode .text-4xl[class*="font-black"],
body.light-mode .text-5xl[class*="font-black"] {
  filter: none;
}

/* Owner profile stat pills */
body.light-mode [class*="bg-white\/5"],
body.light-mode [class*="bg-white\/10"] {
  background-color: rgba(42, 37, 32, 0.06) !important;
  border-color: rgba(42, 37, 32, 0.1) !important;
}

/* Spark bars need to be visible */
body.light-mode .spark-bar { opacity: 0.9; }

/* Alternating rows in H2H matchup list */
body.light-mode .rounded-lg.text-xs {
  color: #2a2520;
}

/* Ensure winner name badges are readable */
body.light-mode .text-right.text-green-400,
body.light-mode .text-right.text-red-400 {
  font-weight: 700;
}

/* Sub-100 PF alert */
body.light-mode [class*="bg-red-900\/40"],
body.light-mode [class*="bg-red-900\/20"] {
  background-color: rgba(185, 28, 28, 0.08) !important;
  border-color: rgba(185, 28, 28, 0.2) !important;
}
body.light-mode [class*="bg-red-900"] .text-red-400 { color: #b91c1c !important; }

/* Playoff picture legend boxes */
body.light-mode [class*="bg-green-900\/40"],
body.light-mode [class*="bg-green-900\/20"] {
  background-color: rgba(21, 128, 61, 0.06) !important;
}

/* VS text between matchup scores */  
body.light-mode .text-stone-600,
body.light-mode .text-stone-700 {
  color: #78716c !important;
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--stone-900) 25%, var(--stone-800) 50%, var(--stone-900) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
body.light-mode .skeleton {
  background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
  background-size: 200% 100%;
}

/* === VISUAL POLISH === */

/* Card hover lift effect */
.stat-card, .owner-card, [class*="rounded-xl"][class*="border"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover, .owner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Number reveal animation */
@keyframes numberReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-value {
  animation: numberReveal 0.4s ease both;
}
.stat-value:nth-child(2) { animation-delay: 0.05s; }
.stat-value:nth-child(3) { animation-delay: 0.1s; }
.stat-value:nth-child(4) { animation-delay: 0.15s; }

/* Better table rows */
tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:nth-child(even) {
  background-color: rgba(28, 25, 23, 0.3);
}
tbody tr:hover {
  background-color: rgba(202, 138, 4, 0.06) !important;
}
body.light-mode tbody tr:nth-child(even) {
  background-color: rgba(245, 245, 244, 0.5);
}
body.light-mode tbody tr:hover {
  background-color: rgba(202, 138, 4, 0.08) !important;
}

/* Interactive button press effect */
button:active:not(.tab-button), [data-action]:active {
  transform: scale(0.97);
}

/* Scrolled header - tighter with logo */
/* scrolled header styles moved to main header CSS */

/* Nav group labels */
.nav-group-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone-600);
  padding: 8px 0 4px 0;
  border-left: 2px solid rgba(202, 138, 4, 0.15);
  padding-left: 8px;
  margin-top: 4px;
}

/* Inline spark bars for tables */
.spark-bar {
  display: inline-block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #86efac, #facc15);
  vertical-align: middle;
  margin-left: 6px;
}

/* Section divider with label */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 1rem 0;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 113, 108, 0.2), transparent);
}
.section-label span {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-500);
  white-space: nowrap;
}
