/* ============================================================
   Short Circuit Poker League — stylesheet
   Black / gray / white / red accent
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --bg:           #0d0d0d;
  --bg-card:      #141414;
  --bg-alt:       #111111;
  --bg-hover:     #1c1c1c;
  --accent:       #c0392b;
  --accent-dim:   #7b241c;
  --accent-glow:  rgba(192, 57, 43, 0.10);
  --text:         #e8e8e8;
  --text-muted:   #888888;
  --text-faint:   #333333;
  --border:       #222222;
  --border-light: #2a2a2a;
  --radius:       4px;
  --nav-h:        64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Utility ---------- */
.accent { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}
.nav.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: none;
}

.nav-logo-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.2s;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header-logo {
  width: 208px;
  height: 208px;
  object-fit: contain;
  margin-bottom: 24px;
  display: block;
  transition: opacity 0.2s;
}
a .page-header-logo:hover { opacity: 0.85; }

.page-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.page-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 3px;
  background: var(--accent);
}


/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-subline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #a93226;
  border-color: #a93226;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   TABLES (stats, schedule)
   ============================================================ */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table thead th:first-child { text-align: left; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-hover); }

.data-table tbody td {
  padding: 11px 16px;
  color: var(--text);
  white-space: nowrap;
  text-align: center;
}
.data-table tbody td.num { text-align: center; color: var(--text-muted); }
.data-table tbody td.player { font-weight: 500; text-align: left; }

/* Last column (buy-ins): equal padding so amounts center correctly; right padding holds dots */
#currentTournamentTable td:last-child { padding: 11px 16px; }

/* Buy-in status colors */
.buyin-paid  { color: #4caf50; font-weight: 500; }
.buyin-owed  { color: var(--accent); font-weight: 500; }
.buyin-cell  { white-space: nowrap; }

/* Buy-in amount centered; dots absolutely positioned so they don't affect centering */
.buyin-amount {
  display: inline-block;
  position: relative;
}
.buyin-dots {
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}
.rebuy-dot-inline {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  cursor: default;
  position: relative;
}
/* Instant CSS tooltip — shared by both dot types */
.rebuy-dot::after,
.rebuy-dot-inline::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0s;
}
.rebuy-dot:hover::after,
.rebuy-dot-inline:hover::after { opacity: 1; }


/* Rebuy indicators in season standings */
.pts-cell {
  position: relative;
  display: inline-block;
}
.rebuy-dot {
  position: absolute;
  top: 50%;
  right: -11px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  cursor: default;
}
/* Second dot (2 rebuys) sits 10px further right */
.pts-cell .rebuy-dot + .rebuy-dot { right: -21px; }
/* Legend badge next to "Rebuy" note */
.rebuy-flag {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3px;
}

/* Current tournament payouts */
.current-payouts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.payout-item { color: var(--text); }
.payout-item .payout-place { color: var(--text-muted); font-weight: 400; margin-right: 6px; }
.payout-sep  { color: var(--text); }


/* Season selector pills */
.season-selector { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.season-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}
.season-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.season-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.buyin-action {
  margin-top: 20px;
  text-align: right;
}
.btn-buyin {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.btn-buyin:hover { opacity: 0.85; }

.table-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Rank badge */
.rank-1 { color: var(--accent); }
.rank-2 { color: #aaa; }
.rank-3 { color: #888; }

/* ============================================================
   NEWS / BLOG
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.post-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-hover);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.post-date {
  font-size: 0.7rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-badge {
  font-size: 0.65rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--accent-dim);
  color: var(--text-muted);
}

.post-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.post-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   POST PAGE
   ============================================================ */
.post-page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.post-meta-sep { color: var(--text-faint); }

.post-page-body {
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.post-page-body p { margin-bottom: 16px; }
.post-page-body p:last-child { margin-bottom: 0; }
/* List groups: indented, tight spacing, natural gap between groups */
.post-page-body ul.post-list,
.post-page-body ol.post-list {
  padding-left: 1.5em;
  margin: 4px 0 14px;
}
.post-page-body ul.post-list { list-style: none; }
.post-page-body ul.post-list-bullets { list-style: disc !important; }
.post-page-body ol.post-list { list-style: decimal; }
.post-page-body ul.post-list li,
.post-page-body ol.post-list li {
  margin-bottom: 2px;
  line-height: 1.6;
}
.post-page-body h2, .post-page-body h3, .post-page-body h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 28px 0 12px;
  text-transform: uppercase;
}
.post-page-body h2 { font-size: 1.2rem; }
.post-page-body h3 { font-size: 1rem; }
.post-page-body ul, .post-page-body ol {
  margin: 0 0 14px 24px;
}
.post-page-body li { margin-bottom: 6px; }
.post-page-body strong, .post-page-body b { color: var(--text); }
.post-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
  display: block;
}
.post-page-body a { color: var(--accent); }
.post-page-body a:hover { text-decoration: underline; }

/* Post prev/next nav */
.post-nav {
  max-width: 680px;
  margin: 0 auto 32px;
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.post-nav-prev { flex: 1; }
.post-nav-next { flex: 1; text-align: right; }
.post-nav-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.post-nav-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-nav-title {
  font-size: 0.9rem;
  color: var(--accent);
  line-height: 1.4;
}
.post-nav-link:hover .post-nav-title { text-decoration: underline; }

.post-back {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 16px;
}
.post-back a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.post-back a:hover { color: var(--text); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 8px;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.upcoming-date { color: var(--accent) !important; font-weight: 500; }

/* Celebration banner */
.celebrate-banner {
  text-align: center;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer celebration line */
.footer-celebrate {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* Countdown bar */
.countdown-bar {
  text-align: center;
  padding: 18px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.countdown-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.countdown-sep {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.countdown-timer {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.countdown-state.underway {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #4caf50;
  text-transform: uppercase;
}

.schedule-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.schedule-cal {
  margin-top: 20px;
  text-align: right;
}

/* ============================================================
   RULES
   ============================================================ */
.rules-content {
  max-width: 100%;
}

.rules-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.rules-toc h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.rules-toc ol {
  list-style: decimal;
  padding-left: 18px;
  column-count: 2;
  column-gap: 32px;
}
.rules-toc ol li {
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.rules-toc ol li a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.rules-toc ol li a:hover { color: var(--accent); }

.rule-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.rule-section h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.rule-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}
.rule-section p:last-child { margin-bottom: 0; }
.rule-section .example {
  background: var(--bg-card);
  border-left: 3px solid var(--border-light);
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.rule-section .formula {
  font-family: 'Courier New', monospace;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  margin: 12px 0;
}

/* Blind structure tables inside rules — stacked vertically, auto width */
.blind-tables {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 16px 0;
}
.blind-table-wrap h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blind-table-wrap .data-table-wrap {
  width: fit-content;
}
.blind-table-wrap .data-table {
  width: auto;
}

/* ============================================================
   WSOPC PAGE
   ============================================================ */
.wsopc-highlight { background: rgba(192, 57, 43, 0.06); }
.wsopc-cash { color: #4caf50; font-weight: 600; }

.wsopc-results-link { color: var(--accent); }
.wsopc-results-link:hover { text-decoration: underline; }

.wsopc-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wsopc-links a {
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: none;
}
.wsopc-links a:hover { text-decoration: underline; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { margin-bottom: 56px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.05); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.photo-item:hover .photo-overlay { opacity: 1; }

.photo-caption {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 300;
}

.photo-empty {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--text); }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 1.8rem;
  width: 48px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
  z-index: 10;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.footer-est {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
  background: var(--bg-hover);
  border-radius: var(--radius);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

.loading-msg {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.error-msg {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
}

/* ============================================================
   PLAYERS PAGE
   ============================================================ */
.players-updated-as {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.player-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: row;
}
.player-card:hover { border-color: var(--border-light); }

.player-card-photo-wrap {
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-hover);
  /* width set dynamically by squarePhotos() in players.js */
}
.player-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.player-card:hover .player-card-photo { transform: scale(1.03); }

.player-card-body {
  flex: 1;
  min-width: 0;
  padding: 24px 20px 20px;
}

.player-card-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.player-card-name::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 28px; height: 2px;
  background: var(--accent);
}

.player-stats-group {
  margin-bottom: 16px;
}
.player-stats-group:last-child { margin-bottom: 0; }

.player-stats-group-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.player-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.player-stats-row:last-child { margin-bottom: 0; }

.player-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  flex: 1;
}
.player-stat--highlight {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.player-stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.player-stat--highlight .player-stat-value { color: var(--accent); }

.player-stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
}

.player-stat--seasons {
  flex: 1;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-color: var(--border);
  padding: 6px 12px;
}
.player-stat-value--seasons {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.player-stats-row--net { margin-top: 4px; }
.player-stat--net {
  flex: none;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-color: var(--border);
  padding: 6px 12px;
}
.player-stat--net .player-stat-value {
  font-size: 0.95rem;
  color: #4caf50;
}
.player-stat--net-neg .player-stat-value { color: var(--accent); }
.player-stat--net .player-stat-label {
  font-size: 0.65rem;
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .blind-tables { grid-template-columns: 1fr; }
  .rules-toc ol { column-count: 1; }

  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
}

@media (max-width: 640px) {
  .player-stat { min-width: 60px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .player-card {
    flex-direction: column;
  }
  .player-card-photo-wrap {
    width: 100% !important;
    aspect-ratio: 1 / 1;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }

  .page-header { padding-top: calc(var(--nav-h) + 28px); }

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

@media (max-width: 400px) {
  .photo-grid { grid-template-columns: 1fr; }
}

