/* ═══════════════════════════════════════════════
   Inter school junior football league Admin — Custom CSS
   Glassmorphism, glows, sports UI components
   ═══════════════════════════════════════════════ */

/* ═══ TYPOGRAPHY ═══ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { line-height: 1.6; letter-spacing: -0.01em; }

/* ═══ TEXT ELEMENTS ═══ */
a {
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:visited { opacity: 0.9; }

button, [role="button"] {
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  letter-spacing: -0.01em;
}

code, pre {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════════ */

:root, [data-theme="light"] {
  --pitch: #047857; /* WCAG AA emerald-700 */
  --electric: #0284c7;
  --gold: #d97706;
  --surface: #ffffff;
  --card-bg: #f8fafc;
  --border: #e2e8f0;
  --glow-pitch: 0 4px 20px rgba(4, 120, 87, 0.08);
  --glow-electric: 0 4px 20px rgba(2, 132, 199, 0.08);
  --glow-gold: 0 4px 20px rgba(217, 119, 6, 0.08);
  --pitch-dim: rgba(4, 120, 87, 0.15);
  --electric-dim: rgba(2, 132, 199, 0.15);
  --gold-dim: rgba(217, 119, 6, 0.15);

  /* DaisyUI theme mapping */
  --p: 64% 0.19 224;      /* primary - electric */
  --pc: 98% 0.01 224;
  --s: 76% 0.18 80;       /* secondary - gold */
  --sc: 15% 0.04 80;
  --a: 44% 0.14 161;      /* accent - WCAG AA pitch */
  --ac: 98% 0.01 161;
  --n: 20% 0.02 240;      /* neutral */
  --nc: 95% 0.01 240;
  --b1: 100% 0 0;         /* base-100 */
  --b2: 97% 0.01 240;
  --b3: 93% 0.01 240;
  --bc: 15% 0.02 240;
  --su: 44% 0.14 161;     /* success */
  --suc: 98% 0.01 161;
  --wa: 76% 0.18 80;      /* warning */
  --wac: 15% 0.04 80;
  --er: 55% 0.22 29;      /* error */
  --erc: 98% 0.01 29;
}

.dark, [data-theme="dark"] {
  --pitch: #10b981; /* WCAG AA emerald-500 */
  --electric: #0ea5e9;
  --gold: #f59e0b;
  --surface: #050505;
  --card-bg: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --glow-pitch: 0 0 20px rgba(16, 185, 129, 0.25);
  --glow-electric: 0 0 20px rgba(14, 165, 233, 0.25);
  --glow-gold: 0 0 20px rgba(245, 158, 11, 0.25);
  --pitch-dim: rgba(16, 185, 129, 0.15);
  --electric-dim: rgba(14, 165, 233, 0.15);
  --gold-dim: rgba(245, 158, 11, 0.15);

  /* DaisyUI dark theme mapping */
  --p: 70% 0.18 220;      /* primary - electric */
  --pc: 100% 0 0;
  --s: 76% 0.18 80;       /* secondary - gold */
  --sc: 10% 0 0;
  --a: 70% 0.19 161;      /* accent - WCAG AA pitch */
  --ac: 10% 0 0;
  --n: 15% 0.02 240;      /* neutral */
  --nc: 95% 0.01 240;
  --b1: 11% 0 0;          /* base-100 */
  --b2: 14% 0 0;
  --b3: 18% 0 0;
  --bc: 95% 0.01 240;
  --su: 70% 0.19 161;     /* success */
  --suc: 10% 0 0;
  --wa: 76% 0.18 80;      /* warning */
  --wac: 10% 0 0;
  --er: 62.8% 0.25 29;    /* error */
  --erc: 100% 0 0;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ═══ GLASS CARD ═══ */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ═══ GLOW EFFECTS ═══ */
.glow-green  { box-shadow: var(--glow-pitch); }
.glow-blue   { box-shadow: var(--glow-electric); }
.glow-gold   { box-shadow: var(--glow-gold); }

/* ═══ STAT CARDS ═══ */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

/* ═══ SIDEBAR NAV ═══ */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  color: rgb(100, 116, 139);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-item:hover {
  color: #fff;
  background: rgba(0, 255, 100, 0.06);
  border-color: rgba(0, 255, 100, 0.15);
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.1);
  padding-left: 1.125rem;
}

.nav-active {
  color: var(--pitch) !important;
  background: rgba(0, 255, 100, 0.08) !important;
  border-color: rgba(0, 255, 100, 0.2) !important;
  box-shadow: 0 0 16px rgba(0, 255, 100, 0.15) !important;
}

.nav-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: linear-gradient(135deg, rgba(0,255,100,0.15) 0%, rgba(0,255,100,0.08) 100%);
  color: var(--pitch);
  border: 1px solid rgba(0,255,100,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,255,100,0.25) 0%, rgba(0,255,100,0.15) 100%);
  border-color: rgba(0,255,100,0.5);
  box-shadow: 0 0 16px rgba(0,255,100,0.2);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: rgb(100, 116, 139);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* ═══ INPUT FIELDS ═══ */
.input-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  padding: 0.5rem 0.875rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.input-field:focus {
  border-color: rgba(0,255,100,0.4);
  box-shadow: 0 0 0 3px rgba(0,255,100,0.08);
  background: rgba(255,255,255,0.06);
}

.input-field::placeholder {
  color: rgb(71, 85, 105);
}

.input-field option {
  background: #1a1a1a;
  color: #fff;
}

/* Date/time inputs */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

/* ═══ FORM LABELS ═══ */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(100, 116, 139);
  margin-bottom: 0.375rem;
}

/* ═══ SCORE INPUT ═══ */
.score-input {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  outline: none;
  width: 100%;
  max-width: 5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.score-input:focus {
  border-color: var(--pitch);
  box-shadow: 0 0 0 3px rgba(0,255,100,0.1);
}

/* ═══ ACTION BUTTONS ═══ */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.action-btn:hover {
  transform: scale(1.1);
}

/* ═══ MATCH / FIXTURE CARDS ═══ */
.match-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.match-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,255,100,0.2);
  transform: translateY(-1px);
}

.fixture-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.fixture-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(14,165,233,0.25);
}

/* ═══ SCORE BADGE ═══ */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  font-weight: 900;
  font-size: 1rem;
}

/* ═══ POSITION BADGE ═══ */
.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  font-weight: 800;
  font-size: 0.75rem;
}

/* ═══ STANDINGS HIGHLIGHT ═══ */
.standings-highlight td:first-child {
  border-left: 2px solid rgba(245, 158, 11, 0.4);
}

/* ═══ HTMX INDICATORS ═══ */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ═══ COUNTER ANIMATION ═══ */
.counter {
  animation: countUp 0.6s ease-out both;
}

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

/* ═══ SHIMMER LOADING ═══ */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ═══ RESPONSIVE SIDEBAR ═══ */
@media (max-width: 1023px) {
  #sidebar { box-shadow: 4px 0 32px rgba(0,0,0,0.8); }
}

/* ═══ TABLE IMPROVEMENTS ═══ */
th { user-select: none; }

/* ═══ FOCUS VISIBLE ═══ */
*:focus-visible {
  outline: 2px solid rgba(0,255,100,0.5);
  outline-offset: 2px;
}

/* ═══ HTMX SETTLING ANIMATION ═══ */
[hx-swap], [data-hx-swap] {
  transition: opacity 0.15s ease;
}

.htmx-settling {
  opacity: 0;
}

/* ═══ UTILITY ═══ */
.border-pitch    { border-color: rgba(0,255,100,0.2); }
.border-electric { border-color: rgba(14,165,233,0.2); }
.border-gold     { border-color: rgba(245,158,11,0.2); }

/* ══════════════════════════════════════════════════
   PUBLIC SITE COMPONENTS
   ══════════════════════════════════════════════════ */

/* ═══ PUBLIC NAVBAR ═══ */
.pub-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(148, 163, 184);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.pub-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.pub-nav-active {
  color: var(--pitch) !important;
}

.pub-nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--pitch);
  border-radius: 1px;
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgb(148, 163, 184);
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color 0.2s ease;
  letter-spacing: -0.02em;
}

.mobile-nav-link:hover {
  color: #fff;
}

.mobile-nav-link.pub-nav-active {
  color: var(--pitch);
}

/* ═══ PUBLIC MATCH CARD ═══ */
.pub-match-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pub-match-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ═══ PUBLIC RESULT CARD ═══ */
.pub-result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pub-result-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,255,100,0.2);
  transform: translateY(-2px);
}

/* ═══ PUBLIC SCHOOL CARD (COMPACT — HOME) ═══ */
.pub-school-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.pub-school-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,255,100,0.2);
  transform: translateY(-2px);
}

/* ═══ PUBLIC SCHOOL CARD (FULL — SCHOOLS PAGE) ═══ */
.pub-school-card-full {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.pub-school-card-full:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,255,100,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ═══ PUBLIC STANDINGS ROW ═══ */
.pub-standings-row {
  display: grid;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease;
}

.pub-standings-row:hover {
  background: rgba(255,255,255,0.03);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ═══ HERO ANIMATIONS ═══ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero-badge    { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title    { animation: fadeUp 0.7s ease 0.2s both; }
.hero-sub,
.hero-subtitle { animation: fadeUp 0.7s ease 0.35s both; }
.hero-cta      { animation: fadeUp 0.7s ease 0.5s both; }
.hero-stats    { animation: fadeUp 0.7s ease 0.65s both; }

/* ═══ FEATURED MATCH CARD ═══ */
.featured-match {
  background: linear-gradient(135deg, rgba(0,255,100,0.05) 0%, rgba(14,165,233,0.05) 100%);
  border: 1px solid rgba(0,255,100,0.15);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.featured-match::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0,255,100,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ═══ SECTION HEADINGS ═══ */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(100, 116, 139);
  margin-bottom: 0.5rem;
}

/* ═══ GRADIENT TEXT ═══ */
.text-gradient-pitch {
  background: linear-gradient(135deg, var(--pitch) 0%, #00cc50 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ PITCH PATTERN GEOMETRY ═══ */
.pitch-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,255,100,0.08);
  pointer-events: none;
}

/* ═══ FOOTER ═══ */
.pub-footer {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ═══ RESPONSIVE UTILITIES ═══ */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem !important; }
  .featured-match { padding: 1.25rem; }
  .pub-match-card, .pub-result-card, .pub-school-card-full { padding: 1rem; }
}

/* ═══ LIVE PULSE ═══ */
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.live-badge {
  animation: livePulse 2s ease infinite;
}

/* ══════════════════════════════════════════════════
   ENHANCED VISUALS — extra premium layer
   ══════════════════════════════════════════════════ */

/* ═══ STAGGERED REVEAL for grids ═══ */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ═══ GLOWING SCORE NUMBERS ═══ */
.score-glow {
  text-shadow: 0 0 30px rgba(0,255,100,0.4), 0 0 60px rgba(0,255,100,0.2);
}

/* ═══ PITCH LINE SEPARATOR ═══ */
.pitch-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,100,0.3), rgba(14,165,233,0.2), transparent);
  margin: 0;
}

/* ═══ HOVER GLOW CARDS ═══ */
.hover-glow-pitch:hover {
  box-shadow: 0 0 0 1px rgba(0,255,100,0.2), 0 8px 40px rgba(0,255,100,0.08);
}
.hover-glow-electric:hover {
  box-shadow: 0 0 0 1px rgba(14,165,233,0.2), 0 8px 40px rgba(14,165,233,0.08);
}
.hover-glow-gold:hover {
  box-shadow: 0 0 0 1px rgba(245,158,11,0.2), 0 8px 40px rgba(245,158,11,0.08);
}

/* ═══ IMAGE CARD OVERLAY ═══ */
.img-card-overlay {
  position: relative;
  overflow: hidden;
}
.img-card-overlay img {
  transition: transform 0.7s ease, filter 0.4s ease;
  filter: brightness(0.6) saturate(0.8);
}
.img-card-overlay:hover img {
  transform: scale(1.05);
  filter: brightness(0.5) saturate(0.6);
}

/* ═══ NUMBER COUNTER POP ═══ */
@keyframes numberPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(10px); }
  70%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.number-pop {
  animation: numberPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ═══ NEON TEXT GLOW ═══ */
.neon-pitch {
  color: var(--pitch);
  text-shadow: 0 0 10px rgba(0,255,100,0.6), 0 0 30px rgba(0,255,100,0.3);
}
.neon-electric {
  color: #0ea5e9;
  text-shadow: 0 0 10px rgba(14,165,233,0.6), 0 0 30px rgba(14,165,233,0.3);
}

/* ═══ VS BADGE ═══ */
.vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  background: rgba(0,255,100,0.08);
  border: 1px solid rgba(0,255,100,0.2);
  color: var(--pitch);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.vs-badge:hover,
.group:hover .vs-badge {
  background: rgba(0,255,100,0.15);
  box-shadow: 0 0 16px rgba(0,255,100,0.25);
}

/* ═══ POSITION INDICATOR STRIPE ═══ */
.pos-stripe-gold  { border-left: 3px solid rgba(245,158,11,0.5); }
.pos-stripe-silver{ border-left: 3px solid rgba(148,163,184,0.4); }
.pos-stripe-bronze{ border-left: 3px solid rgba(180,83,9,0.4); }

/* ═══ PAGE TRANSITION ANIMATION ═══ */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main { animation: pageIn 0.4s ease both; }

/* ═══ CARD IMAGE BACKGROUND UTILITY ═══ */
.card-img-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card-img-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-img-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.92);
}
.group:hover .card-img-bg {
  opacity: 1;
}

/* ═══ HORIZONTAL RULE ACCENT ═══ */
.hr-accent {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  margin: 3rem 0;
}

/* ═══ RESPONSIVE TWEAKS ═══ */
@media (max-width: 480px) {
  .mobile-nav-link { font-size: 1.25rem; }
  .hero-stats { gap: 1.5rem; }
}

/* ══════════════════════════════════════════════════
   PHASE 2 — CHAMPION / ATMOSPHERE / STATUS PILLS
   ══════════════════════════════════════════════════ */

/* ═══ NOISE / GRAIN TEXTURE OVERLAY ═══ */
/* Subtle film grain — apply over hero/section backgrounds for cinematic depth */
.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ VIGNETTE — dark edge shading for hero sections ═══ */
.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 180px 60px rgba(5, 5, 5, 0.85);
}

/* ═══ STADIUM SPOTLIGHT GLOW ═══ */
.spotlight {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.spotlight-gold  { background: rgba(245, 158, 11, 0.10); }
.spotlight-pitch { background: rgba(0, 255, 100, 0.08); }

/* ═══ GOLD CHAMPION SHIMMER (animated sweep) ═══ */
@keyframes goldShimmer {
  0%   { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}
.champion-shimmer {
  position: relative;
  overflow: hidden;
}
.champion-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.18), transparent);
  animation: goldShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

/* ═══ CHAMPION GOLD PULSE GLOW ═══ */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.18), inset 0 0 60px rgba(245, 158, 11, 0.04); }
  50%      { box-shadow: 0 0 70px rgba(245, 158, 11, 0.32), inset 0 0 80px rgba(245, 158, 11, 0.08); }
}
.champion-glow {
  animation: goldPulse 4s ease-in-out infinite;
}

/* ═══ ANIMATED GRADIENT BORDER (gold) ═══ */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.text-shimmer-gold {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fef3c7, #fbbf24, #f59e0b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3.5s linear infinite;
}

/* ═══ STATUS PILLS — broadcast-style ═══ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.status-live {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25);
}
.status-live .dot { background: #4ade80; animation: livePulse 2s ease infinite; }

.status-completed {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
  color: #7dd3fc;
}
.status-completed .dot { background: #38bdf8; }

.status-upcoming {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}
.status-upcoming .dot { background: #f59e0b; }

.status-postponed {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.status-postponed .dot { background: #ef4444; }

/* ═══ TROPHY FLOAT ═══ */
@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.trophy-float { animation: trophyFloat 3.5s ease-in-out infinite; }

/* ═══ CLUB CREST (real logo holder) ═══ */
.club-crest {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

/* ══════════════════════════════════════════════════
   PHASE 3 — MATCHDAY BANNER & COUNTDOWN
   ══════════════════════════════════════════════════ */

.matchday-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════════════
   PHASE 3.5 — HERO + MATCHDAY SPLIT REVEAL (runs once)
   ══════════════════════════════════════════════════ */

/* ░░ MATCHDAY TICKET — broadcast-grade fixture card ░░ */
.md-ticket {
  border-radius: 1.75rem;
  background:
    radial-gradient(135% 70% at 50% -5%, rgba(0, 255, 100, 0.10) 0%, transparent 50%),
    linear-gradient(165deg, rgba(20, 24, 26, 0.78) 0%, rgba(8, 10, 11, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 70px rgba(0, 255, 100, 0.06);
}
/* glowing top hairline */
.md-ticket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.7), transparent);
  z-index: 3;
}

/* slow conic sheen sweeping across the ticket */
.md-sheen {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(255, 255, 255, 0.05) 40deg, transparent 90deg, transparent 360deg);
  animation: mdSheen 14s linear infinite;
  opacity: 0.6;
  z-index: 0;
}
@keyframes mdSheen { to { transform: rotate(360deg); } }

/* pulsing live dot in header */
.md-livedot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: var(--pitch);
  box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.5);
  animation: livePulse 2s ease infinite;
  flex-shrink: 0;
}

/* ticket perforation — notched divider line */
.md-perf {
  position: relative;
  height: 1px;
  margin: 0 1.25rem;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
  z-index: 2;
}
.md-perf::before,
.md-perf::after {
  /* half-round notches cut into each edge — reads as a ticket tear */
  content: '';
  position: absolute;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 9999px;
  background: #050505;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07),
              inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.md-perf::before { left: -1.95rem; }
.md-perf::after  { right: -1.95rem; }

/* footer CTA */
.md-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--pitch);
  background: rgba(0, 255, 100, 0.08);
  border: 1px solid rgba(0, 255, 100, 0.3);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.md-cta:hover {
  background: rgba(0, 255, 100, 0.16);
  box-shadow: 0 0 22px rgba(0, 255, 100, 0.3);
  transform: translateY(-1px);
}

/* Crest ring — separates logos from the busy hero background */
.crest-ring {
  position: relative;
  padding: 2.5px;
  border-radius: 9999px;
  background: conic-gradient(from 140deg,
    rgba(0, 255, 100, 0.65), rgba(14, 165, 233, 0.35), rgba(255, 255, 255, 0.06), rgba(0, 255, 100, 0.65));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 100, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.crest-ring::after {
  /* inner dark ring so the gradient reads as a thin rim */
  content: '';
  position: absolute;
  inset: 2.5px;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 30%, #14181a, #0a0c0d);
  z-index: 0;
}
.crest-ring .club-crest,
.crest-ring > div {
  position: relative;
  z-index: 1;
}
.crest-ring:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 255, 100, 0.28);
}

/* Team name — fixed two-line slot so both sides align regardless of length */
.md-team-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4em;               /* exactly two lines → crests & names stay level */
}

/* INITIAL STATE — the layout is FIXED from the start (panel space is always
   reserved) so nothing reflows on reveal. We animate purely with transform,
   which is GPU-accelerated and interpolates smoothly — no abrupt jumps.
   Easing & durations kept expensive (700–1000ms). */

/* Desktop: brand takes the left half, panel the right half — permanently.
   The brand begins shifted RIGHT (toward centre) so it reads as centred
   while the panel is invisible; on reveal it eases back to its natural
   left position. */
@media (min-width: 1024px) {
  #hero-brand {
    flex: 1 1 0%;
    /* shift the brand toward the centre of the hero initially */
    transform: translateX(38%);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  #hero-matchday {
    flex-shrink: 0;
  }
  #hero-split.md-revealed #hero-brand {
    transform: translateX(0);
  }
}

#hero-matchday {
  opacity: 0;
  transform: translateX(50px);
  filter: blur(6px);
  transition: opacity 0.95s ease,
              transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.95s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

html.no-js #hero-matchday,
html.no-js .hero-md-glow,
html.no-js .md-stagger {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  pointer-events: auto !important;
}

/* spotlight glow behind panel starts dim, brightens on reveal */
.hero-md-glow {
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* REVEALED STATE (.md-revealed added once via JS, ~3.5s) */
#hero-split.md-revealed #hero-matchday {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
}
#hero-split.md-revealed .hero-md-glow {
  opacity: 1;
}

/* STAGGERED CHILD REVEAL — label → teams → vs → countdown → venue.
   Each item offset by --md-i * 120ms once the panel is revealed. */
.md-stagger {
  opacity: 0;
  transform: translateY(14px);
}
#hero-split.md-revealed .md-stagger {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.45s + var(--md-i, 0) * 0.12s);
}

/* Reduced-motion: reveal instantly, no transforms */
@media (prefers-reduced-motion: reduce) {
  #hero-matchday, #hero-brand, .hero-md-glow, .md-stagger {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Layered dark overlay + spotlight + vignette */
.matchday-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.matchday-overlay::before {
  /* radial spotlight from top-centre */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(0, 255, 100, 0.10) 0%, transparent 55%);
}
.matchday-overlay::after {
  /* vignette */
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 200px 70px rgba(5, 5, 5, 0.9);
}

/* ═══ NEON MATCHDAY EYEBROW ═══ */
.matchday-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pitch);
  background: rgba(0, 255, 100, 0.08);
  border: 1px solid rgba(0, 255, 100, 0.3);
  text-shadow: 0 0 12px rgba(0, 255, 100, 0.6);
  box-shadow: 0 0 24px rgba(0, 255, 100, 0.18);
  animation: neonPulse 2.6s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 100, 0.15); }
  50%      { box-shadow: 0 0 34px rgba(0, 255, 100, 0.35); }
}

/* ═══ COUNTDOWN CARDS — split-flap broadcast style ═══ */
.countdown-card {
  position: relative;
  min-width: 0;
  padding: 0.7rem 0.4rem 0.55rem;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(30, 35, 38, 0.92) 0%, rgba(11, 14, 15, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -6px 14px rgba(0, 0, 0, 0.28);
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.countdown-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 100, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 26px rgba(0, 255, 100, 0.16);
}

.countdown-number {
  font-family: 'Rajdhani', sans-serif;
  position: relative;
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #a7f3cf 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 255, 100, 0.35));
}
@media (min-width: 768px) {
  .countdown-card { padding: 0.85rem 0.5rem 0.65rem; }
  .countdown-number { font-size: 2.15rem; }
}

.countdown-label {
  font-family: 'Rajdhani', sans-serif;
  margin-top: 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(110, 124, 146);
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0, 255, 100, 0.4);
  align-self: flex-start;
  margin-top: 0.6rem;
}

/* ═══ MATCHDAY VS BADGE (glowing) ═══ */
.matchday-vs {
  font-family: 'Rajdhani', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  font-size: 0.72rem;
  border-radius: 9999px;
  /* solid dark core so it reads cleanly over busy backgrounds */
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 255, 100, 0.22), transparent 70%),
    #0a0c0d;
  border: 1px solid rgba(0, 255, 100, 0.45);
  color: var(--pitch);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(0, 255, 100, 0.55);
  box-shadow: 0 0 24px rgba(0, 255, 100, 0.22), inset 0 0 14px rgba(0, 255, 100, 0.12);
  animation: vsGlow 3s ease-in-out infinite;
}
@keyframes vsGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(0, 255, 100, 0.2); }
  50%      { box-shadow: 0 0 46px rgba(0, 255, 100, 0.45); }
}

/* ═══ FLOATING PARTICLES (very subtle) ═══ */
@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-120px) translateX(20px); opacity: 0; }
}
.matchday-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(0, 255, 100, 0.5);
  pointer-events: none;
  animation: floatParticle 9s linear infinite;
}

/* ═══ STATUS PILLS (Phase 3 aliases) ═══ */
.status-pill-upcoming,
.status-pill-live,
.status-pill-completed {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill-upcoming {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}
.status-pill-live {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
  animation: livePulse 2s ease infinite;
}
.status-pill-completed {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
  color: #7dd3fc;
}

/* ══════════════════════════════════════════════════
   PHASE 4 — PLAYERS / SCORERS / MATCH REPORTS
   ══════════════════════════════════════════════════ */

/* shared pager (also used by players list) */
.fx-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.06); }
.fx-pager-btn { padding: 0.6rem 1.1rem; border-radius: 0.7rem; font-size: 0.82rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s ease; }
.fx-pager-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(0,255,100,0.3); transform: translateY(-1px); }
.fx-pager-btn--off { opacity: 0.35; pointer-events: none; }
.fx-pager-info { font-size: 0.82rem; color: rgb(100,116,139); font-weight: 500; }

/* ── STAT TILES (player/school hero stats) ── */
.stat-tile {
  position: relative;
  padding: 1.25rem 1rem;
  border-radius: 1.1rem;
  text-align: center;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-tile:hover { transform: translateY(-3px); border-color: rgba(0,255,100,0.25); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.stat-tile-num { font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-tile-label { margin-top: 0.5rem; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(110,124,146); }

/* ── PLAYER CARDS ── */
.player-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.1rem;
  background: linear-gradient(120deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.player-card:hover { transform: translateY(-3px); border-color: rgba(0,255,100,0.3); box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6), 0 0 26px rgba(0,255,100,0.1); }
.player-card-num {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.85rem;
  font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums;
  color: #fff;
  background: radial-gradient(circle at 50% 30%, rgba(0,255,100,0.18), transparent 70%), #0a0c0d;
  border: 1px solid rgba(0,255,100,0.3);
  box-shadow: inset 0 0 14px rgba(0,255,100,0.08);
}
.player-card-crest { flex-shrink: 0; }
.player-card-pos { display: inline-block; margin-top: 0.3rem; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: rgb(110,124,146); }
.player-card-goals { flex-shrink: 0; text-align: center; font-size: 1.5rem; font-weight: 900; color: var(--pitch); font-variant-numeric: tabular-nums; line-height: 1; }

/* team-stat superlative card */
.stat-superlative:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); box-shadow: 0 14px 36px -12px rgba(0,0,0,0.6); }

/* ══════════════════════════════════════════════════
   PHASE 5 — SCHOOL MODAL / FORMATION PITCH / POSTER
   ══════════════════════════════════════════════════ */

/* ── SCHOOL SUMMARY MODAL ── */
.school-modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(3, 4, 5, 0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: modalFade 0.3s ease both;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.school-modal {
  position: relative;
  width: 100%; max-width: 30rem;
  max-height: 92vh; overflow-y: auto;
  border-radius: 1.75rem;
  background: linear-gradient(165deg, rgba(18,22,24,0.96), rgba(8,10,11,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8), 0 0 80px rgba(0,255,100,0.06);
  animation: modalPop 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes modalPop { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.school-modal::-webkit-scrollbar { width: 5px; }
.school-modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 5;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); transition: all 0.2s ease;
}
.school-modal-close:hover { background: rgba(0,0,0,0.7); transform: scale(1.08); }
.school-modal-banner { position: relative; height: 11rem; overflow: hidden; border-radius: 1.75rem 1.75rem 0 0; }
.school-modal-banner-bg { width: 100%; height: 100%; object-fit: cover; }
.school-modal-banner-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,10,11,1) 2%, rgba(8,10,11,0.5) 45%, rgba(8,10,11,0.2)); }
.school-modal-head { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.5rem; display: flex; align-items: flex-end; gap: 1rem; }
.school-modal-body { padding: 1.5rem; }
.school-modal-stat { text-align: center; padding: 0.7rem 0.4rem; border-radius: 0.8rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.school-modal-stat-num { font-size: 1.35rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.school-modal-stat-label { font-size: 0.55rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: rgb(110,124,146); margin-top: 0.35rem; }
.school-modal-panel { padding: 1rem; border-radius: 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.school-modal-panel-label { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: rgb(110,124,146); margin-bottom: 0.6rem; }
.school-modal-fixture { display: block; padding: 1rem; border-radius: 1rem; background: rgba(14,165,233,0.05); border: 1px solid rgba(14,165,233,0.18); margin-bottom: 1.25rem; transition: all 0.25s ease; }
.school-modal-fixture:hover { border-color: rgba(14,165,233,0.4); background: rgba(14,165,233,0.09); }
.school-modal-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.9rem; border-radius: 1rem;
  font-weight: 800; font-size: 0.9rem; color: #000;
  background: var(--pitch); transition: all 0.25s ease;
}
.school-modal-cta:hover { background: #6bffa6; box-shadow: 0 0 30px rgba(0,255,100,0.4); transform: translateY(-2px); }

/* ── 5-A-SIDE FORMATION PITCH ── */
.pitch-board {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  padding: 2rem 1rem;
  min-height: 30rem;
  border: 1px solid rgba(0,255,100,0.15);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), inset 0 0 80px rgba(0,0,0,0.5);
}
.pitch-board--xi { min-height: 42rem; }

/* photo-backed pitch (aerial image, faded on all sides into the page) */
.pitch-board--photo {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
/* landscape proportions to match the aerial image; override the tall XI height */
.pitch-board--photo.pitch-board--xi {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.pitch-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(0.92);
}
/* all-sides fade: edges dissolve to the page background (#050505) */
.pitch-photo-fade {
  position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(to right,  #050505 0%, rgba(5,5,5,0) 18%, rgba(5,5,5,0) 82%, #050505 100%),
    linear-gradient(to bottom, #050505 0%, rgba(5,5,5,0) 16%, rgba(5,5,5,0) 84%, #050505 100%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(5,5,5,0.85) 100%);
}
.pitch-grass {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,40,15,0) 0, rgba(0,40,15,0) 3rem, rgba(0,0,0,0.12) 3rem, rgba(0,0,0,0.12) 6rem),
    radial-gradient(120% 80% at 50% 0%, #0d3b1f 0%, #082815 55%, #051a0e 100%);
}
.pitch-lines { position: absolute; inset: 1.25rem; border: 2px solid rgba(255,255,255,0.18); border-radius: 0.5rem; pointer-events: none; }
.pitch-center-circle { position: absolute; top: 50%; left: 50%; width: 9rem; height: 9rem; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,0.18); border-radius: 9999px; }
.pitch-center-line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.18); }
.pitch-box { position: absolute; left: 50%; transform: translateX(-50%); width: 13rem; height: 4.5rem; border: 2px solid rgba(255,255,255,0.18); }
.pitch-box-top { top: -2px; border-top: none; }
.pitch-box-bottom { bottom: -2px; border-bottom: none; }
.pitch-spot { position: absolute; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.3); }
.pitch-spot-top { top: 3rem; }
.pitch-spot-bottom { bottom: 3rem; }
.pitch-floodlight { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 50% -10%, rgba(220,255,235,0.18) 0%, transparent 55%); }
.pitch-watermark { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.12); pointer-events: none; }
.pitch-rows { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 26rem; gap: 1.5rem; }
.pitch-board--xi .pitch-rows { min-height: 38rem; }
.pitch-row { display: flex; justify-content: space-around; align-items: center; }
.pitch-row-fwd { padding: 0 20%; }
.pitch-row-mid { padding: 0 4%; }
.pitch-row-def { padding: 0 3%; }
.pitch-row-gk { justify-content: center; }

/* ── HORIZONTAL layout (matches landscape aerial photo) ──
   Each line is absolutely pinned at a fixed depth across the pitch so the
   four lines spread evenly between the goals with no dead gaps. */
.pitch-rows--h {
  position: absolute;
  inset: 0;
  min-height: 0;
  gap: 0;
  padding: 0;
}
.pitch-board--xi .pitch-rows--h { min-height: 0; }
/* each line: vertical column of players, centred on its depth marker */
.pitch-rows--h .pitch-row {
  position: absolute;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 7rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  gap: 1.25rem;
}
/* depth of each line across the pitch (GK at left goal → FWD near right goal) */
.pitch-rows--h .pitch-row-gk  { left: 8%; }
.pitch-rows--h .pitch-row-def { left: 29%; }
.pitch-rows--h .pitch-row-mid { left: 52%; }
.pitch-rows--h .pitch-row-fwd { left: 75%; }
/* tighten the FWD pair vertically so they read as a front two */
.pitch-rows--h .pitch-row-fwd { gap: 7rem; }
.pitch-rows--h .pitch-row-def,
.pitch-rows--h .pitch-row-mid { gap: 2.5rem; }

.pitch-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: default; }

/* ── JERSEY SHIRT MARKER ── */
.pitch-jersey {
  position: relative;
  width: 4.25rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.55));
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), filter 0.3s ease;
}
.pitch-node:hover .pitch-jersey { transform: translateY(-6px) scale(1.08); filter: drop-shadow(0 14px 22px rgba(0,0,0,0.6)) drop-shadow(0 0 14px rgba(0,255,100,0.45)); }
.pitch-jersey-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pitch-jersey-shape {
  fill: url(#jerseyGrad);
  stroke: rgba(255,255,255,0.95);
  stroke-width: 1.75;
  stroke-linejoin: round;
}
/* goalkeeper wears the alternate (gold) kit */
.pitch-row-gk .pitch-jersey-shape { fill: url(#jerseyGradGk); }
.pitch-row-gk .pitch-jersey-num { color: #2a1c05; text-shadow: 0 1px 2px rgba(255,255,255,0.25); }
.pitch-jersey-num {
  position: absolute;
  top: 54%; left: 50%; transform: translate(-50%,-50%);
  font-size: 1.45rem; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  pointer-events: none;
}
.pitch-node-goals {
  position: absolute; top: -0.35rem; right: 0.1rem;
  min-width: 1.45rem; height: 1.45rem; padding: 0 0.32rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-size: 0.7rem; font-weight: 900; color: #1a1205;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 12px rgba(245,158,11,0.6); border: 2px solid #07120a;
  z-index: 2;
}
.pitch-node-name {
  font-size: 0.72rem; font-weight: 800; color: #fff; text-align: center;
  max-width: 6rem; line-height: 1.15;
  padding: 0.2rem 0.55rem; border-radius: 0.5rem;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.pitch-node-tip {
  position: absolute; bottom: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 12rem; padding: 0.85rem 1rem; border-radius: 0.9rem; z-index: 10;
  background: rgba(8,10,11,0.97); border: 1px solid rgba(0,255,100,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: left;
}
.pitch-node:hover .pitch-node-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .pitch-board { padding: 1.25rem 0.4rem; min-height: 26rem; }
  .pitch-board--xi { min-height: 34rem; }
  .pitch-rows { min-height: 22rem; gap: 1rem; }
  .pitch-board--xi .pitch-rows { min-height: 30rem; }
  .pitch-row-fwd { padding: 0 18%; }
  .pitch-row-mid { padding: 0 1%; }
  .pitch-row-def { padding: 0 1%; }
  .pitch-node { gap: 0.3rem; }
  .pitch-jersey { width: 3rem; height: 2.85rem; }
  .pitch-jersey-num { font-size: 1.05rem; }
  .pitch-node-name { font-size: 0.6rem; max-width: 4.5rem; padding: 0.15rem 0.35rem; }
  .pitch-node-goals { min-width: 1.1rem; height: 1.1rem; font-size: 0.6rem; }
  .pitch-box { width: 8rem; }
  .pitch-center-circle { width: 5rem; height: 5rem; }
  /* tooltip would overflow tiny screens — keep but constrain */
  .pitch-node-tip { width: 9rem; }

  /* horizontal photo pitch on small screens: taller board, tighter columns */
  .pitch-board--photo.pitch-board--xi { aspect-ratio: 4 / 5; }
  .pitch-rows--h .pitch-row { width: 4.4rem; gap: 0.6rem; }
  .pitch-rows--h .pitch-row-def,
  .pitch-rows--h .pitch-row-mid { gap: 1.1rem; }
  .pitch-rows--h .pitch-row-fwd { gap: 3.5rem; }
  /* pull the lines toward the edges a touch since columns are narrower */
  .pitch-rows--h .pitch-row-gk  { left: 9%; }
  .pitch-rows--h .pitch-row-def { left: 30%; }
  .pitch-rows--h .pitch-row-mid { left: 53%; }
  .pitch-rows--h .pitch-row-fwd { left: 76%; }
  .pitch-rows--h .pitch-node-name { max-width: 3.6rem; }
}

/* ── MATCH POSTER ── */
.poster-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.poster {
  position: relative;
  width: 100%; max-width: 30rem; aspect-ratio: 4 / 5;
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9);
}
.poster-bg { position: absolute; inset: 0; }
.poster-bg img { width: 100%; height: 100%; object-fit: cover; }
.poster-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3,4,5,0.7) 0%, rgba(3,4,5,0.55) 40%, rgba(3,4,5,0.92) 100%); }
.poster-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 2rem 1.75rem; }
.poster-brand { display: flex; align-items: center; gap: 0.6rem; justify-content: center; }
.poster-brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 0.5rem; background: rgba(0,255,100,0.18); border: 1px solid rgba(0,255,100,0.4); display: flex; align-items: center; justify-content: center; }
.poster-eyebrow { text-align: center; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; }
.poster-crest { width: 6.5rem; height: 6.5rem; border-radius: 9999px; padding: 3px; background: conic-gradient(from 140deg, rgba(0,255,100,0.7), rgba(14,165,233,0.4), rgba(255,255,255,0.1), rgba(0,255,100,0.7)); box-shadow: 0 0 40px rgba(0,255,100,0.2); }
.poster-crest img, .poster-crest > span { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.poster-team-name { font-size: 1.35rem; font-weight: 900; color: #fff; text-align: center; line-height: 1.1; letter-spacing: -0.01em; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.poster-vs { font-size: 1.5rem; font-weight: 900; color: var(--pitch); letter-spacing: 0.1em; text-shadow: 0 0 24px rgba(0,255,100,0.6); }
.poster-score { font-size: 4.5rem; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(0,255,100,0.3); }
.poster-meta { text-align: center; color: #cbd5e1; }
.poster-print-bar { position: fixed; top: 1rem; right: 1rem; z-index: 20; display: flex; gap: 0.6rem; }
@media print {
  .poster-print-bar, #pub-nav, footer, #school-modal-slot { display: none !important; }
  body { background: #050505 !important; }
  .poster-stage { padding: 0; min-height: auto; }
  .poster { box-shadow: none; max-width: 100%; }
}

/* position filter pills */
.pos-filter { padding: 0.5rem 0.9rem; border-radius: 9999px; font-size: 0.78rem; font-weight: 700; color: rgb(148,163,184); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s ease; }
.pos-filter:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.pos-filter--on { color: var(--pitch); background: rgba(0,255,100,0.1); border-color: rgba(0,255,100,0.3); }

/* player hero jersey number */
.player-hero-num {
  width: 7rem; height: 7rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1.5rem;
  font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums;
  color: var(--pitch);
  background: radial-gradient(circle at 50% 30%, rgba(0,255,100,0.2), transparent 70%), #0a0c0d;
  border: 2px solid rgba(0,255,100,0.4);
  box-shadow: 0 0 40px rgba(0,255,100,0.25), inset 0 0 24px rgba(0,255,100,0.1);
}

/* goal minute pill */
.goal-minute { flex-shrink: 0; min-width: 2.6rem; text-align: center; font-weight: 900; font-size: 0.85rem; color: var(--pitch); font-variant-numeric: tabular-nums; }

/* ── SCORER PODIUM ── */
.scorer-podium {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scorer-podium:hover { transform: translateY(-4px); }
.scorer-podium--gold { padding-top: 2.5rem; border-color: rgba(245,158,11,0.35); background: linear-gradient(180deg, rgba(245,158,11,0.08), transparent); }
.scorer-podium--silver { border-color: rgba(203,213,225,0.2); }
.scorer-podium--bronze { border-color: rgba(180,83,9,0.25); }
.scorer-podium-trophy { font-size: 2rem; margin-bottom: 0.25rem; }
.scorer-podium-rank { font-size: 1rem; font-weight: 900; color: rgb(100,116,139); margin-bottom: 0.75rem; }
.scorer-podium-crest { margin-bottom: 0.9rem; }
.scorer-podium-name { font-weight: 900; color: #fff; letter-spacing: -0.01em; line-height: 1.15; }
.scorer-podium-school { font-size: 0.72rem; color: rgb(100,116,139); margin-top: 0.2rem; }
.scorer-podium-goals { font-size: 2.75rem; font-weight: 900; line-height: 1; margin-top: 0.85rem; font-variant-numeric: tabular-nums; }
.scorer-podium-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; color: rgb(100,116,139); margin-top: 0.25rem; }

/* ── SCORER LEADERBOARD ROWS ── */
/* leaderboard with stadium backdrop faded on all 4 sides */
.scorer-board {
  border: 1px solid rgba(255,255,255,0.07);
  background: #07090b;
}
.scorer-board-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  opacity: 0.5; filter: saturate(0.9);
}
.scorer-board-fade {
  position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(to right,  #07090b 0%, rgba(7,9,11,0) 30%, rgba(7,9,11,0) 70%, #07090b 100%),
    linear-gradient(to bottom, #07090b 0%, rgba(7,9,11,0) 28%, rgba(7,9,11,0) 72%, #07090b 100%),
    radial-gradient(110% 90% at 50% 50%, rgba(7,9,11,0) 35%, rgba(7,9,11,0.92) 100%);
}

.scorer-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.5rem; transition: background 0.2s ease; }
.scorer-row:hover { background: rgba(255,255,255,0.06); }
.scorer-row-rank { width: 1.75rem; text-align: center; font-weight: 900; font-size: 1rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.scorer-row-crest { flex-shrink: 0; }
.scorer-row-goals { flex-shrink: 0; font-size: 1.4rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

/* ── FORM CHIPS ── */
.form-chip { width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.55rem; font-weight: 900; font-size: 0.8rem; flex-shrink: 0; }
.form-chip--w { background: rgba(0,255,100,0.15); color: var(--pitch); border: 1px solid rgba(0,255,100,0.35); }
.form-chip--d { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35); }
.form-chip--l { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }

/* ── MATCH SCORE (report hero) ── */
.match-score { font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(0,255,100,0.25); }
@media (min-width: 768px) { .match-score { font-size: 5.5rem; } }

/* ── MATCH TIMELINE ── */
.match-timeline { position: relative; padding: 1.5rem 0; }
.match-timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(0,255,100,0.3), rgba(0,255,100,0.3), transparent); }
.match-tl-row { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.6rem 1.5rem; }
.match-tl-minute {
  grid-column: 2; justify-self: center;
  width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-weight: 900; font-size: 0.75rem; color: var(--pitch);
  background: #0a0c0d; border: 1px solid rgba(0,255,100,0.4);
  box-shadow: 0 0 16px rgba(0,255,100,0.25); font-variant-numeric: tabular-nums; z-index: 1;
}
.match-tl-content { display: flex; }
.match-tl-left .match-tl-content { grid-column: 1; justify-content: flex-end; }
.match-tl-right .match-tl-content { grid-column: 3; justify-content: flex-start; }
.match-tl-card { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; border-radius: 0.9rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: all 0.25s ease; max-width: 100%; }
.match-tl-card:hover { border-color: rgba(0,255,100,0.3); transform: translateY(-1px); }
.match-tl-left .match-tl-card { flex-direction: row-reverse; text-align: right; }

@media (max-width: 640px) {
  .match-timeline::before { left: 1.3rem; }
  .match-tl-row { grid-template-columns: 2.6rem 1fr; gap: 0.75rem; padding: 0.5rem 0.5rem; }
  .match-tl-minute { grid-column: 1; justify-self: start; }
  .match-tl-left .match-tl-content, .match-tl-right .match-tl-content { grid-column: 2; justify-content: flex-start; }
  .match-tl-left .match-tl-card { flex-direction: row; text-align: left; }
}

/* school modal refinement */
.school-modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(3,4,5,0.7);
  backdrop-filter: blur(18px);
  animation: modalFadeIn 0.28s ease both;
}
.school-modal {
  position: relative;
  width: min(100%, 60rem);
  max-height: min(92vh, 58rem);
  overflow: auto;
  border-radius: 1.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top, rgba(0,255,100,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)),
    #080a0b;
  box-shadow: 0 40px 120px rgba(0,0,0,0.72);
  animation: modalLiftIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.school-modal-spotlight {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 50% -10%, rgba(255,255,255,0.16), transparent 50%),
    radial-gradient(40% 60% at 15% 20%, rgba(0,255,100,0.12), transparent 60%);
}
.school-modal-banner { height: 15rem; }
.school-modal-body { padding: 1.5rem; }
.school-modal-panel,
.school-modal-stat {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}
.school-modal-crest {
  object-fit: contain;
  object-position: center;
  background: rgba(10,12,13,0.95);
  padding: 0.3rem;
}
.school-modal-fixture {
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(255,255,255,0.02));
  border-color: rgba(14,165,233,0.22);
}
.school-modal-fixture:hover {
  box-shadow: 0 18px 40px rgba(14,165,233,0.12);
  transform: translateY(-2px);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalLiftIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* school showcase formation */
.formation-stage { position: relative; }
.formation-pitch {
  position: relative;
  min-height: 42rem;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
}
.formation-pitch-bg,
.formation-pitch-overlay,
.formation-floodlights,
.formation-grid {
  position: absolute; inset: 0;
}
.formation-pitch-bg {
  background-size: cover;
  background-position: center;
  filter: saturate(1.08) brightness(0.74);
}
.formation-pitch-overlay {
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.08), rgba(0,0,0,0.42) 58%, rgba(5,5,5,0.94) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(5,5,5,0.18) 45%, rgba(5,5,5,0.75) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 72px);
}
.formation-floodlights {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(232,255,240,0.22), transparent 65%),
    radial-gradient(35% 28% at 0% 20%, rgba(0,255,100,0.14), transparent 65%),
    radial-gradient(35% 28% at 100% 20%, rgba(14,165,233,0.10), transparent 70%);
  pointer-events: none;
}
.formation-marking {
  position: absolute;
  pointer-events: none;
  border-color: rgba(255,255,255,0.25);
}
.formation-marking--outline { inset: 1.8rem; border: 1px solid rgba(255,255,255,0.24); border-radius: 0.8rem; }
.formation-marking--halfway { left: 1.8rem; right: 1.8rem; top: 50%; height: 1px; background: rgba(255,255,255,0.22); }
.formation-marking--circle { top: 50%; left: 50%; width: 11rem; height: 11rem; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,0.24); border-radius: 9999px; }
.formation-marking--box-top { top: 1.8rem; left: 50%; transform: translateX(-50%); width: 14rem; height: 5.5rem; border: 1px solid rgba(255,255,255,0.22); border-top: 0; }
.formation-marking--box-bottom { bottom: 1.8rem; left: 50%; transform: translateX(-50%); width: 14rem; height: 5.5rem; border: 1px solid rgba(255,255,255,0.22); border-bottom: 0; }
.formation-marking--spot-top,
.formation-marking--spot-bottom {
  width: 0.4rem; height: 0.4rem; border-radius: 9999px;
  background: rgba(255,255,255,0.34); left: 50%; transform: translateX(-50%);
}
.formation-marking--spot-top { top: 6rem; }
.formation-marking--spot-bottom { bottom: 6rem; }
.formation-pitch-label {
  position: absolute; left: 0; right: 0; bottom: 1.3rem;
  text-align: center; color: rgba(255,255,255,0.14);
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.28em; text-transform: uppercase;
}
.formation-line,
.formation-lane {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  width: min(88%, 42rem);
  display: flex; justify-content: center; align-items: center;
  gap: 1.25rem;
  z-index: 2;
}
.formation-lane--forward { top: 14%; }
.formation-line--mid { top: 34%; }
.formation-line--def { top: 57%; }
.formation-lane--gk { bottom: 10%; }
.formation-node {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.formation-node-card {
  position: relative;
  width: 9.2rem;
  padding: 0.9rem 0.8rem 0.95rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(8,10,11,0.86), rgba(8,10,11,0.65));
  backdrop-filter: blur(12px);
  text-align: center;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.formation-node-glow {
  position: absolute; inset: -0.75rem;
  border-radius: 1.8rem;
  background: radial-gradient(circle, rgba(0,255,100,0.18), transparent 62%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.formation-node:hover .formation-node-glow { opacity: 1; }
.formation-node:hover .formation-node-card {
  transform: translateY(-6px);
  border-color: rgba(0,255,100,0.35);
  box-shadow: 0 18px 36px rgba(0,0,0,0.45), 0 0 28px rgba(0,255,100,0.16);
}
.formation-node-role {
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(148,163,184);
}
.formation-node-shirt {
  width: 4rem; height: 4rem; margin: 0.8rem auto 0.7rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1.2rem 1.2rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(0,255,100,0.92), rgba(5,122,54,0.92)),
    radial-gradient(circle at top, rgba(255,255,255,0.2), transparent 55%);
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.22), 0 10px 24px rgba(0,0,0,0.35);
}
.formation-node--goalkeeper .formation-node-shirt {
  background: linear-gradient(180deg, rgba(245,158,11,0.95), rgba(180,107,8,0.95));
}
.formation-node-number {
  font-size: 1.05rem; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.formation-node-name {
  font-size: 0.92rem; font-weight: 900; color: #fff; line-height: 1.1;
}
.formation-node-goals {
  margin-top: 0.35rem; font-size: 0.7rem; color: var(--pitch); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.formation-node-tip {
  position: absolute; left: 50%; bottom: calc(100% + 0.75rem);
  transform: translateX(-50%) translateY(8px);
  width: 12rem; padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(8,10,11,0.96);
  border: 1px solid rgba(0,255,100,0.25);
  box-shadow: 0 16px 38px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.formation-node:hover .formation-node-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* premium poster */
.poster-stage--premium { padding: 2rem 1rem; }
.poster--premium {
  max-width: 34rem;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,0.08);
  background: #050505;
}
.poster-bg--premium::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.22), rgba(5,5,5,0.68) 56%, rgba(5,5,5,0.96) 100%),
    linear-gradient(90deg, rgba(5,5,5,0.78), rgba(5,5,5,0.18) 48%, rgba(5,5,5,0.78));
}
.poster-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4rem 4rem;
  opacity: 0.12;
}
.poster-aura {
  position: absolute;
  width: 16rem; height: 16rem;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.45;
}
.poster-aura--left { top: 16%; left: -3rem; background: rgba(0,255,100,0.16); }
.poster-aura--right { bottom: 16%; right: -3rem; background: rgba(14,165,233,0.14); }
.poster-content--premium {
  padding: 1.6rem 1.6rem 1.8rem;
  justify-content: space-between;
}
.poster-strap {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.poster-strap-brand { display: flex; align-items: center; gap: 0.7rem; }
.poster-strap-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1;
}
.poster-strap-sub {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.26em; color: rgb(148,163,184); margin-top: 0.2rem;
}
.poster-center {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.poster-team { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.poster-crest--premium {
  width: 7rem; height: 7rem;
  padding: 0.28rem;
  background: conic-gradient(from 160deg, rgba(0,255,100,0.76), rgba(14,165,233,0.4), rgba(255,255,255,0.16), rgba(0,255,100,0.76));
}
.poster-team-name--premium {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.poster-vs-wrap { text-align: center; }
.poster-vs-badge {
  width: 4rem; height: 4rem; margin: 0 auto 0.9rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: #fff; font-size: 1rem; font-weight: 900; letter-spacing: 0.16em;
  box-shadow: 0 0 26px rgba(0,0,0,0.35);
}
.poster-vs--premium {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.poster-scoreline {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.poster-score-divider {
  font-size: 2rem; font-weight: 800; color: rgba(255,255,255,0.4);
}
.poster-meta-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.poster-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.poster-meta-label {
  font-size: 0.64rem; color: rgb(148,163,184); text-transform: uppercase; letter-spacing: 0.24em; font-weight: 800;
}
.poster-meta-value {
  font-size: 0.92rem; color: #fff; font-weight: 700; text-align: right;
}
.poster-edge {
  position: absolute; left: 0; right: 0; top: 0; height: 0.28rem;
}
.poster-edge--pitch { background: linear-gradient(90deg, transparent, rgba(0,255,100,0.9), transparent); }
.poster-edge--electric { background: linear-gradient(90deg, transparent, rgba(14,165,233,0.9), transparent); }
.poster-edge--gold { background: linear-gradient(90deg, transparent, rgba(245,158,11,0.95), transparent); }

@media (max-width: 768px) {
  .school-modal-banner { height: 13rem; }
  .school-modal-head { padding: 1rem 1rem 1.15rem; }
  .school-modal-body { padding: 1rem; }
  .formation-pitch { min-height: 35rem; }
  .formation-line, .formation-lane { width: min(92%, 28rem); gap: 0.75rem; }
  .formation-node-card { width: 7.4rem; padding: 0.8rem 0.65rem; }
  .formation-node-shirt { width: 3.35rem; height: 3.35rem; }
  .formation-node-name { font-size: 0.82rem; }
  .formation-node-tip { width: 10rem; }
  .poster-center { grid-template-columns: 1fr; gap: 1.15rem; }
  .poster-vs-wrap { order: 2; }
  .poster-team-name--premium { font-size: 1.35rem; }
  .poster-crest--premium { width: 6rem; height: 6rem; }
}

/* Gallery */
.gallery-preview-mask {
  position: relative;
  overflow: hidden;
}

.gallery-preview-mask::before,
.gallery-preview-mask::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 8rem);
  pointer-events: none;
}

.gallery-preview-mask::before {
  left: 0;
  background: linear-gradient(90deg, #050505, rgba(5,5,5,0));
}

.gallery-preview-mask::after {
  right: 0;
  background: linear-gradient(270deg, #050505, rgba(5,5,5,0));
}

.gallery-preview-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0 1.5rem;
  animation: galleryMarquee 36s linear infinite;
}

.gallery-preview-track:hover {
  animation-play-state: paused;
}

.gallery-preview-card {
  position: relative;
  display: block;
  width: clamp(15rem, 24vw, 24rem);
  height: clamp(11rem, 18vw, 17rem);
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.gallery-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-preview-card:hover img {
  transform: scale(1.06);
}

.gallery-preview-copy {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(5,5,5,0.92), rgba(5,5,5,0));
}

.gallery-preview-copy span {
  color: var(--pitch);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-preview-copy strong {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.15;
}

@keyframes galleryMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-preview-track {
    width: auto;
    overflow-x: auto;
    animation: none;
  }
}

.gallery-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgb(148,163,184);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter--on {
  color: var(--pitch);
  border-color: rgba(0,255,100,0.32);
  background: rgba(0,255,100,0.09);
}

.gallery-masonry {
  columns: 1;
  column-gap: 1rem;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
  text-align: left;
}

.gallery-tile:nth-child(3n + 1) { aspect-ratio: 4 / 5; }
.gallery-tile:nth-child(3n + 2) { aspect-ratio: 16 / 11; }
.gallery-tile:nth-child(3n) { aspect-ratio: 1 / 1; }

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease, filter 0.75s ease;
}

.gallery-tile:hover img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.gallery-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,5,5,0.94), rgba(5,5,5,0.12) 55%, rgba(5,5,5,0));
  opacity: 0.9;
}

.gallery-tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
}

.gallery-tile-kicker {
  color: var(--pitch);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-tile-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.08;
}

.gallery-tile-caption {
  color: rgb(148,163,184);
  font-size: 0.82rem;
  line-height: 1.35;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3,4,5,0.86);
  backdrop-filter: blur(18px);
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-inner {
  width: min(100%, 74rem);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: #080a0b;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}

.gallery-lightbox-inner img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #020303;
}

.gallery-lightbox-copy {
  padding: 1.25rem;
}

.gallery-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 91;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

@media (min-width: 640px) {
  .gallery-masonry { columns: 2; }
}

@media (min-width: 1024px) {
  .gallery-masonry { columns: 3; }
  .gallery-lightbox-inner {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: stretch;
  }
  .gallery-lightbox-inner img {
    height: 82vh;
    max-height: 82vh;
  }
  .gallery-lightbox-copy {
    align-self: end;
    padding: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════
   LIGHT MODE OVERRIDES AND UTILITIES
   ══════════════════════════════════════════════════ */

/* Default Light Mode (when .dark class is NOT present on html) */
html:not(.dark) body {
  background-color: #f8fafc !important;
  color: #1e293b !important;
}

html:not(.dark) .bg-\[\#050505\],
html:not(.dark) .bg-\[\#080808\],
html:not(.dark) .bg-\[\#0a0a0a\],
html:not(.dark) .bg-surface {
  background-color: #ffffff !important;
}

html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-200,
html:not(.dark) .text-slate-300,
html:not(.dark) .text-white {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-500 {
  color: #475569 !important;
}

html:not(.dark) .text-slate-600 {
  color: #64748b !important;
}

/* Let headers and major text sections remain dark text */
html:not(.dark) h1,
html:not(.dark) h2,
html:not(.dark) h3,
html:not(.dark) h4,
html:not(.dark) h5,
html:not(.dark) h6,
html:not(.dark) .hero-title,
html:not(.dark) .hero-subtitle,
html:not(.dark) .poster-team-name,
html:not(.dark) .poster-score,
html:not(.dark) .match-score,
html:not(.dark) .scorer-podium-name,
html:not(.dark) .scorer-row-goals {
  color: #0f172a !important;
}

/* Nav links styling in light mode */
html:not(.dark) .pub-nav-link {
  color: #475569 !important;
}
html:not(.dark) .pub-nav-link:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}
html:not(.dark) .pub-nav-link.pub-nav-active {
  color: var(--pitch) !important;
}

/* Sidebar and active menu links */
html:not(.dark) #sidebar {
  background-color: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
}
html:not(.dark) .nav-item {
  color: #475569 !important;
}
html:not(.dark) .nav-item:hover {
  color: #0f172a !important;
  background: rgba(0, 168, 68, 0.05) !important;
  border-color: rgba(0, 168, 68, 0.15) !important;
}
html:not(.dark) .nav-active {
  color: var(--pitch) !important;
  background: rgba(0, 168, 68, 0.08) !important;
  border-color: rgba(0, 168, 68, 0.2) !important;
}

/* Glass cards, cards and backgrounds */
html:not(.dark) .glass-card,
html:not(.dark) .stat-card,
html:not(.dark) .bg-white\/5,
html:not(.dark) .bg-white\/10,
html:not(.dark) .bg-white\/\[0\.02\],
html:not(.dark) .bg-white\/\[0\.04\] {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/20,
html:not(.dark) .border-white\/\[0\.05\],
html:not(.dark) .border-white\/\[0\.06\],
html:not(.dark) .border-white\/\[0\.07\],
html:not(.dark) .border-white\/\[0\.08\] {
  border-color: #e2e8f0 !important;
}

html:not(.dark) .border-r-white\/10,
html:not(.dark) .border-b-white\/10,
html:not(.dark) .border-t-white\/10 {
  border-color: #e2e8f0 !important;
}

/* Forms input tags */
html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
  border-color: var(--pitch) !important;
  box-shadow: 0 0 0 2px rgba(0, 168, 68, 0.15) !important;
}

/* Table styles */
html:not(.dark) tr {
  border-bottom-color: #f1f5f9 !important;
}
html:not(.dark) tr:hover {
  background-color: #f8fafc !important;
}
html:not(.dark) th {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}

/* Buttons and icons */
html:not(.dark) .logo-container {
  background-color: #ffffff !important;
}
html:not(.dark) .text-white\/40,
html:not(.dark) .text-white\/60,
html:not(.dark) .text-white\/70,
html:not(.dark) .text-white\/80 {
  color: #64748b !important;
}

/* Match ticket / MD ticket styles in light mode */
html:not(.dark) .md-ticket {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08) !important;
}
html:not(.dark) .md-ticket * {
  color: #0f172a !important;
}
html:not(.dark) .md-ticket .text-slate-400,
html:not(.dark) .md-ticket .text-slate-500 {
  color: #64748b !important;
}

/* Badge colors / badges text should remain light */
html:not(.dark) .bg-pitch\/10 .text-pitch,
html:not(.dark) .bg-electric\/10 .text-electric,
html:not(.dark) .bg-gold\/10 .text-gold {
  color: inherit !important;
}

/* Gallery and spotlight custom tweaks */
html:not(.dark) .gallery-lightbox {
  background: rgba(15, 23, 42, 0.95) !important;
}
html:not(.dark) .gallery-lightbox * {
  color: #ffffff !important;
}

/* Header border */
html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Fix specific pitch aeriels, jersey gradient background text */
html:not(.dark) .player-hero-num {
  background: radial-gradient(circle at 50% 30%, rgba(0, 168, 68, 0.15), transparent 70%), #ffffff !important;
  border-color: rgba(0, 168, 68, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 168, 68, 0.08) !important;
}

/* Ensure text inside hero banners remains white/legible since hero is always dark */
html:not(.dark) main > section:first-of-type *,
html:not(.dark) main > div:first-of-type *,
html:not(.dark) .relative.pt-28.pb-20 *,
html:not(.dark) .relative.pt-32.pb-16 *,
html:not(.dark) .relative.min-h-\[70vh\] *,
html:not(.dark) .relative.min-h-screen * {
  color: #ffffff !important;
}

/* Maintain typographic color hierarchy inside hero banners */
html:not(.dark) main > section:first-of-type .text-slate-400,
html:not(.dark) main > div:first-of-type .text-slate-400,
html:not(.dark) .relative.pt-28.pb-20 .text-slate-400,
html:not(.dark) .relative.pt-32.pb-16 .text-slate-400,
html:not(.dark) .relative.min-h-\[70vh\] .text-slate-400,
html:not(.dark) .relative.min-h-screen .text-slate-400 {
  color: #94a3b8 !important;
}

html:not(.dark) main > section:first-of-type .text-slate-500,
html:not(.dark) main > div:first-of-type .text-slate-500,
html:not(.dark) .relative.pt-28.pb-20 .text-slate-500,
html:not(.dark) .relative.pt-32.pb-16 .text-slate-500,
html:not(.dark) .relative.min-h-\[70vh\] .text-slate-500,
html:not(.dark) .relative.min-h-screen .text-slate-500 {
  color: #64748b !important;
}

/* Re-allow accent colors inside the hero sections */
html:not(.dark) main > section:first-of-type .text-pitch,
html:not(.dark) main > section:first-of-type .text-electric,
html:not(.dark) main > section:first-of-type .text-gold,
html:not(.dark) main > div:first-of-type .text-pitch,
html:not(.dark) main > div:first-of-type .text-electric,
html:not(.dark) main > div:first-of-type .text-gold,
html:not(.dark) .relative.pt-28.pb-20 .text-pitch,
html:not(.dark) .relative.pt-28.pb-20 .text-electric,
html:not(.dark) .relative.pt-28.pb-20 .text-gold,
html:not(.dark) .relative.pt-32.pb-16 .text-pitch,
html:not(.dark) .relative.pt-32.pb-16 .text-electric,
html:not(.dark) .relative.pt-32.pb-16 .text-gold,
html:not(.dark) .relative.min-h-\[70vh\] .text-pitch,
html:not(.dark) .relative.min-h-\[70vh\] .text-electric,
html:not(.dark) .relative.min-h-\[70vh\] .text-gold,
html:not(.dark) .relative.min-h-screen .text-pitch,
html:not(.dark) .relative.min-h-screen .text-electric,
html:not(.dark) .relative.min-h-screen .text-gold {
  color: var(--pitch) !important;
}

/* Reduce wasted space on top of all public sub-pages (excluding home page hero) */
main > section:first-of-type:not(.min-h-screen),
main > div:first-of-type:not(.min-h-screen),
.relative.pt-28.pb-20,
.relative.pt-32.pb-16,
.relative.min-h-\[70vh\] {
  min-height: auto !important;
  height: auto !important;
  padding-top: 3.5rem !important; /* pt-14 */
  padding-bottom: 1.5rem !important;  /* pb-6 */
}

@media (min-width: 768px) {
  main > section:first-of-type:not(.min-h-screen),
  main > div:first-of-type:not(.min-h-screen),
  .relative.pt-28.pb-20,
  .relative.pt-32.pb-16,
  .relative.min-h-\[70vh\] {
    padding-top: 4.5rem !important; /* pt-18 */
    padding-bottom: 2rem !important; /* pb-8 */
  }
}

/* Hide the redundant, space-wasting descriptions inside all subpage hero banners */
main > section:first-of-type:not(.min-h-screen) p.text-slate-400,
main > div:first-of-type:not(.min-h-screen) p.text-slate-400,
.relative.pt-28.pb-20 p.text-slate-400,
.relative.pt-32.pb-16 p.text-slate-400,
.relative.min-h-\[70vh\] p.text-slate-400 {
  display: none !important;
}

/* Make navbar links larger and easier to click/tap for parents */
.pub-nav-link {
  font-size: 1.05rem !important; /* ~17px */
  padding: 0.6rem 1.1rem !important; /* larger click area */
}

/* Make filter pills (like gallery categories) larger and easier to click */
.gallery-filter {
  min-height: 2.75rem !important; /* ~44px tap target */
  padding: 0.7rem 1.3rem !important;
  font-size: 0.95rem !important; /* larger font */
}

.pos-filter {
  min-height: 2.75rem !important;
  padding: 0.7rem 1.3rem !important;
  font-size: 0.95rem !important;
}

/* Accessibility contrast fixes for the public home hero in light mode.
   A broad hero rule above keeps sub-page banner text white; these restore
   readable foreground colors for controls and numbers on pale surfaces. */
html:not(.dark) .relative.min-h-screen .btn-primary,
html:not(.dark) .relative.min-h-screen a.btn-primary {
  color: #065f46 !important;
  background: rgba(220, 252, 231, 0.92) !important;
  border-color: #34d399 !important;
  box-shadow: 0 8px 22px rgba(4, 120, 87, 0.12) !important;
}

html:not(.dark) .relative.min-h-screen .btn-primary:hover,
html:not(.dark) .relative.min-h-screen a.btn-primary:hover {
  color: #064e3b !important;
  background: #bbf7d0 !important;
  border-color: #059669 !important;
}

html:not(.dark) .relative.min-h-screen .btn-primary svg,
html:not(.dark) .relative.min-h-screen .md-cta svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

html:not(.dark) .relative.min-h-screen .hero-stats .text-slate-900,
html:not(.dark) .relative.min-h-screen .hero-stats .tabular-nums {
  color: #0f172a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

html:not(.dark) .relative.min-h-screen .hero-stats .text-pitch {
  color: #047857 !important;
}

html:not(.dark) .relative.min-h-screen .hero-stats .text-slate-500 {
  color: #475569 !important;
}

html:not(.dark) .relative.min-h-screen .hero-badge,
html:not(.dark) .relative.min-h-screen .status-pill-live,
html:not(.dark) .relative.min-h-screen .md-cta {
  color: #047857 !important;
  background: rgba(220, 252, 231, 0.92) !important;
  border-color: rgba(4, 120, 87, 0.35) !important;
}

html:not(.dark) .relative.min-h-screen .status-pill-upcoming {
  color: #92400e !important;
  background: #fffbeb !important;
  border-color: #f59e0b !important;
}

html:not(.dark) .relative.min-h-screen .md-ticket,
html:not(.dark) .relative.min-h-screen .md-ticket .md-team-name,
html:not(.dark) .relative.min-h-screen .md-ticket .text-slate-900 {
  color: #0f172a !important;
}

html:not(.dark) .relative.min-h-screen .md-ticket .text-slate-500,
html:not(.dark) .relative.min-h-screen .md-ticket .text-slate-600,
html:not(.dark) .relative.min-h-screen .countdown-label {
  color: #475569 !important;
}

html:not(.dark) .relative.min-h-screen .md-ticket .text-pitch {
  color: #047857 !important;
}

html:not(.dark) .relative.min-h-screen .matchday-vs {
  color: #dcfce7 !important;
}

html:not(.dark) .relative.min-h-screen .countdown-number {
  color: #dcfce7 !important;
  -webkit-text-fill-color: #dcfce7 !important;
  background: none !important;
  filter: none !important;
  letter-spacing: 0;
}

html:not(.dark) #hamburger-btn span {
  background-color: #334155 !important;
}
