/* ============================================================
   ABAVA VOLLEYBALL — Main Stylesheet
   Aesthetic: Bold Caribbean sports — deep navy + electric gold
   Fonts: Bebas Neue (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand colours */
  --navy:        #0a0e1a;
  --navy-mid:    #111827;
  --navy-light:  #1c2540;
  --gold:        #f5c518;
  --gold-dim:    #c49a10;
  --gold-bright: #ffd93d;
  --gold-glow:   rgba(245,197,24,0.25);
  --white:       #f0f2f7;
  --white-dim:   #9aa3b8;
  --accent:      #e8423a;
  --green:       #22c55e;
  --red:         #ef4444;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #f5c518 0%, #ffd93d 50%, #f5a623 100%);
  --gradient-hero: linear-gradient(135deg, rgba(245,197,24,0.15) 0%, rgba(245,166,35,0.05) 50%, transparent 100%);

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Inter', 'Segoe UI', sans-serif;

  /* Radii */
  --radius:    8px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.4);
  --shadow-gold:  0 8px 32px rgba(245,197,24,0.2);

  /* Surfaces & borders */
  --surface-1:         rgba(255,255,255,0.03);
  --surface-2:         rgba(255,255,255,0.06);
  --border-subtle:     rgba(255,255,255,0.08);
  --border-gold:       rgba(245,197,24,0.2);
  --border:            rgba(255,255,255,0.1);
  --card-border:       1px solid rgba(255,255,255,0.08);
  --card-border-hover: 1px solid rgba(245,197,24,0.3);

  /* Spacing scale (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Layout tokens */
  --nav-height:    64px;
  --section-py:    clamp(60px, 8vw, 100px);
  --container-pad: clamp(16px, 4vw, 40px);
  --grid-gap:      clamp(12px, 2vw, 20px);

  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* Light mode */
body.light-mode {
  --navy:        #f0f4f8;
  --navy-mid:    #e2e8f0;
  --navy-light:  #ffffff;
  --white:       #1a202c;
  --white-dim:   #4a5568;
  --gold:        #c5920a;
}
body.light-mode .navbar { background: #ffffffee; border-bottom-color: rgba(0,0,0,0.08); }
body.light-mode .ticker-bar { background: #1a202c; }
body.light-mode .ticker-label { background: var(--gold); }
body.light-mode .match-card { background: #ffffff; border-color: rgba(0,0,0,0.08); }
body.light-mode .standings-table tr:hover td { background: rgba(0,0,0,0.03); }
body.light-mode .hero-bg { background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(197,146,10,0.08) 0%, transparent 60%), radial-gradient(ellipse 80% 60% at 30% 50%, rgba(197,146,10,0.06) 0%, transparent 60%), #f0f4f8; }
/* ── Phase 1: fixed page-canvas (league.html) ── */
body.light-mode #page-bg {
  background:
    radial-gradient(ellipse 65% 75% at 72% 35%, rgba(197,146,10,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 15% 65%, rgba(197,146,10,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(200,215,235,0.55) 0%, transparent 60%),
    linear-gradient(160deg, #f0f4f8 0%, #edf0f7 100%);
}
body.light-mode .page-grid {
  background-image:
    linear-gradient(rgba(197,146,10,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,146,10,0.10) 1px, transparent 1px);
}
body.light-mode .standings-table th:first-child,
body.light-mode .standings-table td:first-child {
  background: rgba(240,244,248,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.light-mode .section-subtitle { color: #4a5568; }
body.light-mode input, body.light-mode select { background: #ffffff; color: #1a202c; border-color: rgba(0,0,0,0.15); }
html { background: #0a0e1a; }
body {
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* Prevent fixed navbar from covering anchor targets */
:target, [id] { scroll-margin-top: calc(var(--nav-height) + 12px); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-dim)); border-radius: 99px; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h1 { font-size: clamp(3rem, 8vw + 0.5rem, 7rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .container { max-width: min(1200px, 90vw); }
}
.section { padding: var(--section-py) 0; width: 100%; box-sizing: border-box; position: relative; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(245,197,24,0.15);
}
.section-subtitle {
  color: var(--white-dim);
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.gold { color: var(--gold); }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 4px;
}
.tag-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(8, 11, 22, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(245,197,24,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 4px 24px rgba(0,0,0,0.3);
  height: 64px;
}
.navbar .container,
.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  border: 2px solid rgba(245,197,24,0.45);
  box-shadow: 0 2px 10px rgba(234,179,8,0.3);
}
.navbar-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.navbar-flag {
  width: 36px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center center;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  display: block;
}

/* ── Sport Tabs ────────────────────────────────────────────── */
.sport-tabs {
  display: flex;
  gap: 4px;
  background: var(--navy-light);
  border-radius: 8px;
  padding: 3px;
  margin-left: 40px;
  margin-right: 40px;
  flex-shrink: 0;
}
.sport-tab {
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--white-dim);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.sport-tab:hover { background: var(--navy-mid); color: var(--white); }
.sport-tab.active { background: var(--gold); color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85; }
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
#theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
#theme-toggle:hover { border-color: rgba(245,197,24,0.5); }
.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 40%, rgba(245,197,24,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(245,166,35,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(14,24,58,0.8) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10,14,26,0.95) 0%, var(--navy) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  animation: gridShift 20s linear infinite;
}
/* ── Fixed full-page background canvas (Phase 1: league.html) ── */
#page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 75% at 72% 35%, rgba(245,197,24,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 15% 65%, rgba(245,166,35,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(8,12,24,0.9) 0%, transparent 60%),
    linear-gradient(160deg, rgba(10,14,26,0.98) 0%, rgba(8,12,28,1) 100%);
}
.page-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, black 20%, transparent 75%);
  animation: gridShift 20s linear infinite;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero-eyebrow-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #f5c518 60%, #ffd93d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--white-dim);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(245,197,24,0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffd93d 0%, #f5c518 100%);
  box-shadow: 0 6px 24px rgba(245,197,24,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(245,197,24,0.05);
  color: var(--white);
  border: 1px solid rgba(245,197,24,0.3);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(245,197,24,0.12);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(245,197,24,0.15);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hero-ball {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 42vw);
  z-index: 1;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}
.hero-ball svg { width: 100%; height: auto; }
@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(calc(-50% - 20px)) rotate(8deg); }
}

/* ── Live Score Ticker ─────────────────────────────────────── */
.ticker-bar {
  background: linear-gradient(135deg, #0d1020 0%, var(--navy-mid) 100%);
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-gold) 1;
  box-shadow: 0 2px 20px rgba(245,197,24,0.1);
  overflow: hidden;
  position: sticky;
  top: var(--nav-height);
  z-index: 999;
}
.ticker-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.ticker-label {
  background: var(--gradient-gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  padding: 0 36px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  align-self: stretch;
}
.ticker-scroll {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  letter-spacing: 0.02em;
}
.ticker-team { color: var(--white); font-size: 1rem; }
.ticker-score {
  background: var(--gold);
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  min-width: 52px;
  text-align: center;
}
@keyframes ticker {
  0%   { transform: translateX(50%); }
  100% { transform: translateX(-100%); }
}

/* ── Scores / Results ──────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 28vw, 400px), 1fr));
  gap: var(--grid-gap);
}
.match-card {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(28,37,64,0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}
.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(245,197,24,0.3), transparent);
}
.match-card:hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(245,197,24,0.1);
}
.match-card-div {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 14px;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.match-team img {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
  background: var(--navy-mid);
  border: 2px solid rgba(255,255,255,0.1);
}
.match-team-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem; color: var(--gold);
}
.match-team-name { font-size: 0.78rem; font-weight: 500; line-height: 1.3; }
.match-score-box {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 10px 16px;
  text-align: center;
  min-width: 110px;
}
.match-date {
  display: block;
  font-size: 0.68rem; color: var(--gold);
  font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap;
  margin-bottom: 4px;
}
.match-score-label {
  display: block;
  font-size: 0.6rem; color: var(--white-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.match-score-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem; color: var(--white);
  letter-spacing: 0.1em; line-height: 1;
}

/* ── Standings ─────────────────────────────────────────────── */
.standings-tabs {
  display: flex; gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}
.standings-tab {
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: 0.06em;
  padding: 10px 20px; cursor: pointer;
  color: var(--white-dim);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
  margin-bottom: -1px;
}
.standings-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.standings-panel { display: none; }
.standings-panel.active { display: block; }
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th {
  text-align: left; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white-dim); padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.standings-table td {
  padding: 12px 12px; font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: rgba(255,255,255,0.02); }
.st-rank { font-family: var(--font-display); font-size: 1.1rem; color: var(--white-dim); width: 36px; }
.st-rank.top3 { color: var(--gold); }
.st-team { display: flex; align-items: center; gap: 10px; }
.st-team img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--navy-mid); }
.st-team-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.75rem; color: var(--gold); flex-shrink: 0;
}
.st-pts { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.streak { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.streak-w { background: rgba(34,197,94,0.15); color: var(--green); }
.streak-l { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── Photo Gallery ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 18vw, 280px), 1fr));
  gap: clamp(8px, 1.5vw, 16px);
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; background: var(--navy-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.75));
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 12px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { font-size: 0.75rem; font-weight: 500; color: #fff; line-height: 1.3; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 80vw; max-height: 80vh;
  border-radius: var(--radius); object-fit: contain;
  image-rendering: auto; width: auto; height: auto; min-width: 300px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1;
  opacity: 0.7; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem;
}

/* ── News ──────────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(15,22,44,0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 16px 20px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.news-item:hover { border-color: rgba(245,197,24,0.3); transform: translateX(6px); box-shadow: var(--shadow-hover); }
.news-item-title { font-weight: 600; font-size: 0.9rem; line-height: 1.4; }
.news-item-arrow { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; transition: transform var(--transition); }
.news-item:hover .news-item-arrow { transform: translateX(4px); }

/* ── Recap ─────────────────────────────────────────────────── */
.recap-card {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(15,22,44,0.9) 100%);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: var(--radius-lg); padding: 28px 32px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.recap-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gradient-gold);
  border-radius: 4px 0 0 4px;
}
.recap-card p { color: var(--white-dim); font-size: 0.95rem; line-height: 1.75; }
.recap-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.recap-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.recap-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-dim); }

/* ── About section ─────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 580px), 1fr)); gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-text p { color: var(--white-dim); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-fact {
  background: linear-gradient(145deg, var(--navy-light) 0%, rgba(15,22,44,0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 20px; text-align: center;
  transition: transform 0.3s ease, border-color 0.2s, box-shadow 0.3s;
  box-shadow: var(--shadow-card);
}
.about-fact-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.about-fact-label { font-size: 0.8rem; color: var(--white-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Last updated bar ──────────────────────────────────────── */
.status-bar { background: var(--navy-mid); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 8px 0; text-align: center; }
.status-bar span { font-size: 0.72rem; color: var(--white-dim); letter-spacing: 0.06em; }
#last-updated { color: var(--gold); }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 20vw, 280px), 1fr)); gap: clamp(24px, 4vw, 48px); margin-bottom: 40px; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.footer-brand-name span { color: var(--gold); }
.footer-tagline { font-size: 0.85rem; color: var(--white-dim); line-height: 1.6; max-width: 280px; }
.footer-heading { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--white-dim); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--white-dim); text-align: center; }
.footer-lr-link { font-size: 0.78rem; color: var(--white-dim); }
.footer-lr-link a { color: var(--gold); }

/* ── Mobile nav ────────────────────────────────────────────── */
.nav-mobile {
  display: none; position: fixed; top: 0; right: 0; bottom: 0;
  width: min(280px, 85vw); z-index: 1000;
  background: linear-gradient(180deg, rgba(15,20,40,0.98) 0%, rgba(10,14,26,0.99) 100%);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(245,197,24,0.12);
  flex-direction: column; padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.nav-mobile.open { display: flex; transform: translateX(0); }
.nav-mobile-backdrop {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
}
.nav-mobile-backdrop.open { display: block; }
.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.nav-mobile-logo { display: flex; align-items: center; gap: 8px; }
.nav-mobile-logo-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.65rem; }
.nav-mobile-links { display: flex; flex-direction: column; padding: 8px; flex: 1; }
.nav-mobile a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--white-dim); padding: 9px 12px;
  border-radius: 7px; transition: all 0.15s;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
}
.nav-mobile a:hover, .nav-mobile a:active {
  color: var(--white); background: rgba(255,255,255,0.05);
}
.nav-mobile a.nav-highlight { color: var(--gold); }
.nav-mobile a.nav-highlight:hover { background: rgba(245,197,24,0.08); border-color: rgba(245,197,24,0.15); }
.nav-mobile-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 12px; }
.nav-mobile-group-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); padding: 12px 16px 4px; opacity: 0.8; }
.nav-mobile-footer { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.68rem; color: var(--white-dim); flex-shrink: 0; text-align: center; }
.nav-mobile-close {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-size: 0.78rem; cursor: pointer;
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.nav-mobile-close:hover { background: rgba(255,255,255,0.12); }

/* ── Responsive ────────────────────────────────────────────── */
/* ── Responsive — Tablet (≤900px) ───────────────────────────── */
/* ── Fluid Responsive (auto-adapts to any screen) ──────────── */

/* Fluid typography — scales smoothly across all screen sizes */
h1 { font-size: clamp(3rem, 8vw + 0.5rem, 7rem); line-height: 1.05; }
h2, .section-title { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.section-subtitle { font-size: clamp(0.72rem, 1.5vw, 0.88rem); }
.hero-sub { font-size: clamp(0.88rem, 1.5vw, 1.05rem); }
.hero-tagline { font-size: clamp(0.75rem, 1.5vw, 0.95rem); }
.hero-eyebrow-text { font-size: clamp(0.62rem, 1.2vw, 0.8rem); }
.hero-stat-num { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.hero-stat-label { font-size: clamp(0.62rem, 1vw, 0.75rem); }

/* Fluid container — padding scales with screen */
.container { padding: 0 var(--container-pad); }

/* Fluid grids — reflow automatically */
.teams-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 24vw, 340px), 1fr)); gap: var(--grid-gap); }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 18vw, 240px), 1fr)); gap: var(--grid-gap); }
.about-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: var(--grid-gap); }

/* Hero balls — scale with viewport, hide on very small screens */
.hero-ball { width: clamp(200px, 35vw, 460px); }
.hero-ball-4 { width: clamp(200px, 35vw, 460px); }
.hero-ball-2 { width: clamp(100px, 18vw, 260px); height: clamp(100px, 18vw, 260px); }
.hero-ball-5 { width: clamp(100px, 18vw, 260px); height: clamp(100px, 18vw, 260px); }

/* Match card — fluid */
.match-score-num { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.match-team span { font-size: clamp(0.68rem, 1.5vw, 0.9rem); }
.match-logo { width: clamp(34px, 5vw, 52px); height: clamp(34px, 5vw, 52px); }
.match-logo img, .match-initials { width: clamp(30px, 4.5vw, 48px); height: clamp(30px, 4.5vw, 48px); }

/* Standings table — fluid */
.standings-table th { font-size: clamp(0.6rem, 1.2vw, 0.78rem); padding: clamp(4px, 1vw, 10px) clamp(4px, 1vw, 12px); }
.standings-table td { font-size: clamp(0.72rem, 1.4vw, 0.9rem); padding: clamp(6px, 1.2vw, 12px) clamp(4px, 1vw, 12px); }
.st-logo, .st-logo-fallback { width: clamp(24px, 3.5vw, 40px); height: clamp(24px, 3.5vw, 40px); }
.st-name { font-size: clamp(0.72rem, 1.4vw, 0.95rem); }
.standings-tabs { flex-wrap: wrap; gap: clamp(4px, 1vw, 8px); }
.standings-tab { font-size: clamp(0.65rem, 1.3vw, 0.85rem); padding: clamp(6px, 1vw, 10px) clamp(8px, 1.5vw, 16px); }

/* Filter buttons — wrap naturally */
#results-filter-wrap { flex-wrap: wrap; gap: clamp(6px, 1vw, 10px); }
.beach-filter-btn { font-size: clamp(0.68rem, 1.3vw, 0.85rem); padding: clamp(5px, 1vw, 8px) clamp(8px, 1.5vw, 14px); white-space: nowrap; }
.season-switcher-wrap { flex-wrap: wrap; gap: clamp(6px, 1vw, 10px); }
.season-btn { padding: clamp(5px, 1vw, 8px) clamp(10px, 2vw, 18px); font-size: clamp(0.75rem, 1.3vw, 0.9rem); }

/* Ticker — fixed size for consistent scrollWidth across all screen sizes */
.ticker-label { font-size: 1rem; min-width: 160px; padding: 0 20px; }

/* Hero actions */
.hero-actions { flex-wrap: wrap; gap: clamp(8px, 2vw, 16px); }

/* Live updates — fluid sidebar */
div[style*="grid-template-columns: minmax(0,1fr) 320px"] {
  grid-template-columns: minmax(0, 1fr) clamp(200px, 25vw, 320px) !important;
}

/* Contact grid */
div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
}

/* Modal */
.modal-box { width: clamp(300px, 90vw, 560px); padding: clamp(16px, 3vw, 32px); }

/* ── Tablet (641px – 1100px): desktop-size elements, hamburger replaces nav links ── */
@media (min-width: 641px) and (max-width: 1100px) {
  .navbar .container, .navbar-inner {
    flex-wrap: nowrap !important;
    padding: 0 clamp(20px, 4vw, 40px) !important;
    align-items: center !important;
    width: 100% !important;
  }
  .navbar-brand     { flex-shrink: 0 !important; gap: 10px !important; }
  .navbar-name      { font-size: 1.4rem !important; white-space: nowrap !important; }
  .navbar-logo      { width: 36px !important; height: 36px !important; font-size: 1rem !important; flex-shrink: 0 !important; }
  .navbar-flag      { width: 36px !important; height: 22px !important; flex-shrink: 0 !important; }
  .nav-links        { display: none !important; }
  .navbar-hamburger { display: flex !important; flex-shrink: 0 !important; margin-left: auto !important; }
  .navbar-controls  { display: flex !important; align-items: center !important; gap: 12px !important; flex-shrink: 0 !important; }
  #theme-toggle     { padding: 6px 10px !important; font-size: 0.9rem !important; }
}

/* ── Tablet landscape (641px – 1100px): override — show scrollable nav links ── */
@media (min-width: 641px) and (max-width: 1100px) and (orientation: landscape) {
  .navbar { height: 52px !important; }
  .navbar .container, .navbar-inner {
    gap: 8px !important;
    padding: 0 clamp(12px, 2vw, 24px) !important;
  }
  .navbar-name   { font-size: 1rem !important; }
  .navbar-logo   { width: 28px !important; height: 28px !important; font-size: 0.65rem !important; }
  .navbar-flag   { width: 22px !important; height: 14px !important; }
  .nav-links {
    display: flex !important;
    flex: 1 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    margin-left: 8px !important;
    gap: 0 !important;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a      { font-size: 0.74rem !important; padding: 4px 8px !important; white-space: nowrap !important; }
  .nav-cta          { padding: 4px 10px !important; font-size: 0.74rem !important; }
  .sport-tabs       { flex-shrink: 0 !important; margin: 0 4px !important; }
  .sport-tab        { font-size: 0.7rem !important; padding: 4px 10px !important; }
  .navbar-hamburger { display: none !important; }
  .navbar-controls  { display: flex !important; align-items: center !important; gap: 6px !important; flex-shrink: 0 !important; }
  #theme-toggle     { padding: 5px 8px !important; font-size: 0.78rem !important; }
}

/* Collapse nav to hamburger on phones only (≤ 640px) */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .navbar-hamburger { display: flex; }
}
/* General layout adjustments for small screens */
@media (max-width: 768px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  div[style*="grid-template-columns: minmax(0,1fr) 320px"] {
    grid-template-columns: 1fr !important;
  }
  .modal-header { flex-direction: column; text-align: center; }
}


/* Live updates — stack on mobile */
.live-updates-grid { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 768px) {
}

/* On small phones keep only the primary ball, hide the extras */
@media (max-width: 500px) {
  .hero-ball-2, .hero-ball-3, .hero-ball-4, .hero-ball-5 { display: none; }
  .hero-ball { width: clamp(140px, 45vw, 200px); opacity: 0.25; right: -4%; }
  .hero { padding-top: clamp(86px, 20vw, 110px); }
  div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  .news-card { flex-direction: column; }
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Teams ──────────────────────────────────────────────────── */
.teams-grid { display: grid; margin-top: 24px; }
.team-card { background: linear-gradient(145deg, var(--navy-light) 0%, rgba(15,22,44,0.9) 100%); border: var(--card-border); border-radius: 12px; overflow: hidden; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.3s; box-shadow: var(--shadow-card); }
.team-card:hover { transform: translateY(-6px) scale(1.01); border-color: rgba(245,197,24,0.4); box-shadow: var(--shadow-hover), 0 0 0 1px rgba(245,197,24,0.1), 0 0 32px rgba(245,197,24,0.08); }
.team-card-header { display: flex; align-items: center; gap: 14px; padding: 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.06); }
.team-card-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.team-card-initials { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-card-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; color: var(--white); letter-spacing: 0.04em; line-height: 1.2; }
.team-card-rank { font-size: 0.78rem; color: var(--gold); margin-top: 3px; }
.team-card-body { padding: 14px 16px; }
.team-player-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.team-player-list li { font-size: 0.85rem; color: var(--white-dim); display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.team-player-list li:last-child { border-bottom: none; }
.player-num { font-family: 'Bebas Neue', sans-serif; font-size: 0.8rem; color: var(--gold); min-width: 28px; }
.team-no-players { font-size: 0.82rem; color: var(--white-dim); opacity: 0.5; font-style: italic; margin: 0; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.modal-hidden { display: none !important; }
.modal-box { background: linear-gradient(145deg, var(--navy-mid) 0%, rgba(10,14,26,0.98) 100%); border: 1px solid rgba(245,197,24,0.2); border-radius: 16px; padding: 32px; max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,197,24,0.05); backdrop-filter: blur(20px); animation: modalSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.1); border: none; color: var(--white); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.modal-team-logo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.modal-stats { color: var(--gold); font-size: 0.88rem; margin-top: 4px; }

/* ── Team photo box in modal header ── */
.modal-team-photo-box {
  width: 120px; height: 80px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(245,197,24,0.25);
  background: rgba(255,255,255,0.04);
  cursor: default; position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.modal-team-photo-box.has-photo { cursor: pointer; }
.modal-team-photo-box.has-photo:hover { border-color: var(--gold); transform: scale(1.03); }
.modal-team-photo-box.has-photo:hover::after {
  content: '⛶'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35); border-radius: 10px;
}
.modal-team-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-team-photo-empty {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.25);
  text-transform: uppercase; letter-spacing: 0.06em; text-align: center; padding: 4px;
}

/* ── Team photo lightbox ── */
.team-photo-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.team-photo-lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 12px; box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  object-fit: contain; cursor: default;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ── People ──────────────────────────────────────────────────── */
.people-grid { display: grid; margin-top: 24px; }
.person-card { background: linear-gradient(145deg, var(--navy-light) 0%, rgba(15,22,44,0.9) 100%); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 20px; text-align: center; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.3s; cursor: pointer; box-shadow: var(--shadow-card); }
.person-card:hover { transform: translateY(-6px); border-color: rgba(245,197,24,0.3); box-shadow: var(--shadow-hover), 0 0 24px rgba(245,197,24,0.08); }
.person-photo { margin: 0 auto 12px; width: 72px; height: 72px; cursor: pointer; }
.person-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); cursor: pointer; }
.person-initials { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.person-name { font-weight: 600; color: var(--white); margin-bottom: 4px; }
.person-team { font-size: 0.8rem; color: var(--gold); margin-bottom: 6px; }
.person-bio  { font-size: 0.8rem; color: var(--white-dim); line-height: 1.5; }

/* ── Navbar brand link fix ── */
a.navbar-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; flex-shrink:0; }

/* ── Hero tagline ── */
.hero-tagline { font-size:0.95rem; color:var(--gold); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:8px; opacity:0.85; }

/* ── Extra hero balls ── */
.hero-ball-2 { position:absolute; right:-60px; top:60%; width:240px; height:240px; opacity:0.2; animation:float 9s ease-in-out infinite reverse; pointer-events:none; }
.hero-ball-3 { position:absolute; right:28%; top:-60px; width:160px; height:160px; opacity:0.12; animation:float 12s ease-in-out infinite; pointer-events:none; }
.hero-ball-4 { position:absolute; left:6%; top:50%; transform:translateY(-50%); width:min(420px, 42vw); height:auto; opacity:0.12; animation:float 6s ease-in-out infinite reverse; pointer-events:none; z-index:1; }
.hero-ball-5 { position:absolute; left:-60px; top:60%; width:240px; height:240px; opacity:0.2; animation:float 9s ease-in-out infinite; pointer-events:none; }

/* ── Season Switcher ───────────────────────────────────────── */
.season-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.season-switcher-label {
  font-size: 0.8rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.season-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.season-btn {
  background: var(--navy-light);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--white-dim);
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}
.season-btn:hover { border-color: var(--gold); color: var(--white); }
.season-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Sponsors section ── */
.sponsors-tier-group { margin-bottom: 40px; }
.sponsors-tier-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 16px; font-weight: 700;
}
.sponsors-row {
  display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 20px);
  justify-content: center;
}
.sponsor-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: 14px; overflow: hidden;
  width: clamp(140px, 20vw, 200px);
  display: flex; flex-direction: column; align-items: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.sponsor-card[onclick] { cursor: pointer; }
.sponsor-card[onclick]:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.12);
}
.sponsor-photo { width: 100%; height: 80px; overflow: hidden; }
.sponsor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sponsor-logo-wrap {
  padding: 16px 12px 8px;
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
}
.sponsor-logo { max-width: 100px; max-height: 52px; object-fit: contain; }
.sponsor-initials {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(245,197,24,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--gold);
}
.sponsor-name {
  font-size: 0.8rem; font-weight: 600; color: var(--white);
  padding: 0 12px 8px; line-height: 1.3;
}
.sponsor-link {
  font-size: 0.68rem; color: var(--gold); opacity: 0.7;
  padding-bottom: 10px; letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .sponsor-card { width: clamp(120px, 42vw, 160px); }
}

/* ── Sponsor team picker ── */
.sp-team-list {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; margin-top: 4px;
  max-height: 180px; overflow-y: auto;
  background: var(--navy, #1a2340);
}
.sp-team-option {
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  display: flex; align-items: baseline; gap: 6px;
}
.sp-team-option:last-child { border-bottom: none; }
.sp-team-option:hover { background: rgba(245,197,24,0.1); }
.sp-team-tag {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.35);
  color: var(--gold, #f5c518);
  border-radius: 20px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 600;
}
.sponsor-teams {
  font-size: 0.68rem; color: var(--white-dim);
  padding: 0 10px 6px; text-align: center;
  line-height: 1.4;
}

/* ── Phase 1 additions — new rules only (duplicates merged above) ── */

/* ── Noise texture overlay on body ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

/* ── Button shine effect (new addition) ── */
.btn-primary::after {
  content: '';
  position: absolute; top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 120%; }
/* ── Enhanced standings table ── */
.standings-table tbody tr:hover td {
  background: rgba(245,197,24,0.04) !important;
}
.standings-table tr:first-child .st-rank { color: var(--gold); }


.person-photo img {
  border: 2px solid transparent;
  background: linear-gradient(var(--navy-light), var(--navy-light)) padding-box,
              var(--gradient-gold) border-box;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.person-card:hover .person-photo img { transform: scale(1.05); }
.person-initials {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  box-shadow: 0 4px 16px rgba(245,197,24,0.3);
}


/* ── Gallery album cards upgrade ── */
.gallery-album {
  background: var(--navy-light);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.3s;
  box-shadow: var(--shadow-card);
}
.gallery-album:hover {
  transform: translateY(-5px);
  border-color: rgba(245,197,24,0.35);
  box-shadow: var(--shadow-hover), 0 0 24px rgba(245,197,24,0.1);
}
.gallery-album-thumb {
  position: relative; height: 160px; overflow: hidden;
}
.gallery-album-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-album:hover .gallery-album-thumb img { transform: scale(1.07); }
.gallery-album-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-album:hover .gallery-album-overlay { opacity: 1; }
.gallery-album-overlay span { color: white; font-size: 0.78rem; font-weight: 600; }
.gallery-album-name {
  padding: 10px 14px 4px;
  font-weight: 700; font-size: 0.88rem; color: var(--white);
}
.gallery-album-season { padding: 0 14px 12px; font-size: 0.72rem; color: var(--white-dim); }

/* ── Skeleton loaders ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-card {
  height: 130px; border-radius: 14px; margin-bottom: 8px;
}

/* ── Sponsor cards upgrade ── */
.sponsor-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.3s;
}
.sponsor-card[onclick]:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 24px rgba(245,197,24,0.15);
}

/* ── Recap card glow effect (new addition) ── */
.recap-card::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 30%;
  background: radial-gradient(ellipse at right, rgba(245,197,24,0.05), transparent 70%);
  pointer-events: none;
}

/* ── About facts hover (new addition) ── */
.about-fact:hover {
  transform: translateY(-3px);
  border-color: rgba(245,197,24,0.2);
  box-shadow: var(--shadow-hover);
}

/* ── Section heading accent line (new addition) ── */
.section-subtitle::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Light mode refinements ── */
body.light-mode .match-card { background: #ffffff; }
body.light-mode .team-card  { background: #ffffff; }
body.light-mode .person-card { background: #ffffff; }
body.light-mode .news-item  { background: #ffffff; }
body.light-mode .about-fact { background: #ffffff; }
body.light-mode .recap-card { background: #ffffff; }
body.light-mode .section-title {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-mode .hero h1 {
  background: linear-gradient(135deg, #1a202c 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Staggered child animations ── */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ── Count-up number animation ── */
.count-up { transition: all 0.3s ease; }

.match-card:active { transform: scale(0.98); }

/* ── Button effects ── */
.btn:active { transform: translateY(1px) scale(0.98); }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Skeleton loader improvements ── */
.skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.skeleton-text.w-80 { width: 80%; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-avatar { width: 52px; height: 52px; border-radius: 50%; }
.skeleton-thumb { width: 100%; aspect-ratio: 4/3; border-radius: 10px; }

.section-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0; z-index: 2;
}
.section-wave svg { display: block; width: 100%; height: 40px; }

/* ── Diagonal section cuts ── */
.section-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  padding-bottom: calc(var(--section-pad, 80px) + 40px);
}
.section-diagonal-r {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px));
  padding-bottom: calc(var(--section-pad, 80px) + 40px);
}

/* ── Enhanced standings table ── */
.standings-table tbody tr {
  transition: background 0.15s ease;
}
.standings-table tbody tr:hover {
  background: rgba(245,197,24,0.04);
}
.standings-table tbody tr:first-child td:first-child {
  color: var(--gold);
  font-weight: 900;
}
/* Rank medal colors */
.st-rank[data-rank="1"] { color: #FFD700; }
.st-rank[data-rank="2"] { color: #C0C0C0; }
.st-rank[data-rank="3"] { color: #CD7F32; }

/* ── Team card footer upgrade ── */
.team-card-footer {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--gold);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s, padding-left 0.2s;
}
.team-card:hover .team-card-footer {
  background: rgba(245,197,24,0.06);
  padding-left: 20px;
}
.team-card-footer::after { content: '→'; color: var(--gold); }

/* ── Person card role badge ── */
.person-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(245,197,24,0.12);
  color: var(--gold);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 6px;
}

/* ── News item date ── */
.news-item-date {
  font-size: 0.72rem;
  color: var(--white-dim);
  display: block;
  margin-top: 3px;
}

/* ── Mobile nav polish ── */
.nav-mobile a {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile a:hover {
  background: rgba(245,197,24,0.08);
  color: var(--white);
  transform: translateX(4px);
}

/* ── Mobile touch targets ── */
@media (max-width: 768px) {
  .btn { padding: 14px 24px; font-size: 0.95rem; }
  .navbar-hamburger { padding: 8px; margin-left: 8px; }
  #theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
#theme-toggle:hover { border-color: rgba(245,197,24,0.5); }
.navbar-hamburger span { width: 22px; height: 2px; }
  .sport-tab { padding: 6px 14px; }
  .standings-tab { padding: 8px 14px; }
  .team-card-header { padding: 14px; }
  .match-card { padding: 16px; }
}

/* ── Smooth page transitions ── */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
main, body > section:first-of-type {
  animation: pageIn 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

/* ── Focus styles for accessibility ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Image lazy load fade-in ── */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded { opacity: 1; }

/* ── Score number pop animation ── */
@keyframes scorePop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.match-score-num { animation: scorePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }

/* ── Ticker pause on hover ── */
.ticker-bar:hover .ticker-track { animation-play-state: paused; }

/* ── Gallery item upgrade ── */
.gallery-item {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 2;
}

/* ── Hero content entrance ── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: heroSlideUp 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* ── Section dividers ── */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.2), transparent);
  margin: 0;
}

/* ── Card entrance animations ── */
.match-card.fade-in, .team-card.fade-in, .person-card.fade-in,
.news-item.fade-in, .about-fact.fade-in, .sponsor-card.fade-in {
  animation: cardEntrance 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

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

/* ── Scroll progress indicator ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Mobile bottom safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .nav-mobile-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ── Empty state ── */
.no-data {
  text-align: center; padding: 48px 24px;
  color: var(--white-dim); font-size: 0.9rem;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  grid-column: 1 / -1; /* span full width when placed inside a CSS grid */
  width: 100%;
  box-sizing: border-box;
}

/* ── Tooltip ── */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(10,14,26,0.95);
  border: 1px solid rgba(245,197,24,0.2);
  color: var(--white); font-size: 0.72rem;
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
  backdrop-filter: blur(8px);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Pulse dot upgrade ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; transform: scale(0.9); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Phase 3: smooth modal open/close ── */
.modal-overlay {
  animation: modalBgIn 0.25s ease both;
}
@keyframes modalBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Phase 3: enhanced mobile hero ── */
@media (max-width: 600px) {
  .hero { padding-top: 80px; min-height: auto; }
  .hero-stats { gap: 20px; margin-top: 32px; padding-top: 24px; }
  .hero-stat-num { font-size: 1.8rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .ticker-label { min-width: 80px; font-size: 1rem; padding: 0 12px; }
}

/* ── Phase 3: section entrance reveal ── */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ── Load More Button ────────────────────────────────────────── */
.load-more-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  margin-top: 24px; padding-top: 8px;
}
.load-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--gold); border-radius: 10px;
  padding: 10px 28px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.load-more-btn:hover {
  background: rgba(245,197,24,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,197,24,0.15);
}
.load-more-btn:active { transform: translateY(0); }
.load-more-btn.loading {
  opacity: 0.6; pointer-events: none;
}
.load-more-btn.loading::before {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(245,197,24,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-more-count {
  font-size: 0.72rem; color: var(--white-dim);
  letter-spacing: 0.04em;
}

/* ── Modal sponsor chips ── */
.modal-sponsor-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.2);
  color: var(--white); border-radius: 20px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
a.modal-sponsor-chip:hover {
  background: rgba(245,197,24,0.15);
  border-color: var(--gold); color: var(--gold);
}

/* ── People section subheadings ── */
.people-section-group { margin-top: 40px; }
.people-section-group:first-child { margin-top: 0; }
.people-subheading {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.06em;
  color: var(--white-dim);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 10px;
}
.people-subheading::before {
  content: '';
  display: inline-block; width: 16px; height: 2px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}

/* ── Footer alignment fix ── */
.footer-grid { align-items: start; }

/* ============================================================
   MOBILE FIXES — All Pages
   ============================================================ */

/* ── People grid — prevent horizontal scroll ── */
@media (max-width: 600px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .person-card { padding: 14px 10px; }
  .person-photo, .person-photo img, .person-initials { width: 56px; height: 56px; }
  .person-name { font-size: 0.82rem; }
  .person-role { font-size: 0.62rem; padding: 2px 8px; }
  .person-bio { font-size: 0.72rem; }
  .people-subheading { font-size: 0.9rem; }
  .people-section-group { margin-top: 28px; }
}

/* ── Team modal mobile ── */
@media (max-width: 600px) {
  .modal-box {
    padding: 16px !important;
    max-height: 90vh !important;
    border-radius: 16px 16px 0 0 !important;
  }
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-box { width: 100% !important; max-width: 100% !important; }
  .modal-header { gap: 10px; }
  .modal-team-photo-box { width: 90px; height: 60px; }
  .modal-team-logo img { width: 48px; height: 48px; }
}

/* ── Results grid mobile ── */
@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr !important;
  }
  .match-card { padding: 14px; }
  .match-score-num { font-size: 1.4rem; }
}

/* ── Ticker mobile ── */
@media (max-width: 480px) {
  .ticker-label { min-width: 70px; font-size: 1rem; padding: 0 8px; letter-spacing: 0.06em; }
  .ticker-item { font-size: 1rem; padding: 6px 16px; white-space: nowrap; }
  .ticker-score { padding: 3px 8px; font-size: 1rem; min-width: 36px; }
  .ticker-team { font-size: 1rem; white-space: nowrap; }
}

/* ── Ticker portrait boost ── */
@media (max-width: 480px) and (orientation: portrait) {
  .ticker-label { font-size: 1.15rem; }
  .ticker-item { font-size: 1.15rem; }
  .ticker-score { font-size: 1.15rem; }
  .ticker-team { font-size: 1.15rem; }
  .ticker-divider { padding: 0 10px; }
}

/* ── Standings table mobile ── */
@media (max-width: 480px) {
  .standings-table th, .standings-table td { padding: 8px 6px; font-size: 0.72rem; }
  .st-name { font-size: 0.72rem; }
  .standings-tab { font-size: 0.68rem; padding: 7px 10px; }
}

/* ── Team cards mobile ── */
@media (max-width: 480px) {
  .teams-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .team-card-header { padding: 12px; gap: 8px; }
  .team-card-logo, .team-card-initials { width: 40px; height: 40px; }
  .team-card-name { font-size: 0.85rem; }
  .team-card-rank { font-size: 0.68rem; }
  .team-card-footer { font-size: 0.72rem; padding: 8px 12px; }
}

/* ── Schedule mobile ── */
@media (max-width: 480px) {
  #schedule-filter-wrap { gap: 6px; }
  .beach-filter-btn { font-size: 0.68rem !important; padding: 5px 10px !important; }
}

/* ── Gallery mobile ── */
@media (max-width: 480px) {
  .gallery-grid, #gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ── News items mobile ── */
@media (max-width: 480px) {
  .news-item { padding: 12px 14px; }
  .news-item-title { font-size: 0.85rem; }
}

/* ── Sponsor modal popup mobile ── */
@media (max-width: 480px) {
  #sponsor-popup > div {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }
}

/* ── Load more mobile ── */
@media (max-width: 480px) {
  .load-more-btn { padding: 10px 24px; font-size: 0.82rem; }
  .load-more-count { font-size: 0.68rem; }
}

/* ── Hero mobile ── */
@media (max-width: 480px) {
  .hero { padding-top: 70px; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .hero-sub { font-size: 0.85rem; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-eyebrow { gap: 8px; }
  .hero-actions { gap: 8px; }
}

/* ── Section titles mobile ── */
@media (max-width: 480px) {
  .section-title { font-size: clamp(1.5rem, 7vw, 2.2rem) !important; }
  .section { padding: clamp(32px, 6vw, 60px) 0; }
}

/* ── Fix container overflow ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ── Navbar hamburger always touchable ── */
@media (max-width: 768px) {
  .navbar-hamburger {
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
  }
}

/* ── Staff Accordion ─────────────────────────────────────────── */
.staff-accordion {
  display: flex; flex-direction: column;
  gap: 10px; margin-top: 28px;
}
.staff-group {
  background: linear-gradient(145deg, var(--navy-light) 0%, rgba(12,18,36,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.staff-group:has(.staff-toggle.active) {
  border-color: rgba(245,197,24,0.25);
  box-shadow: 0 4px 24px rgba(245,197,24,0.06);
}
.staff-toggle {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  text-align: left; transition: background 0.2s;
}
.staff-toggle:hover { background: rgba(245,197,24,0.04); }
.staff-toggle.active { background: rgba(245,197,24,0.06); }
.staff-toggle-label {
  display: flex; align-items: center; gap: 10px; flex: 1;
  font-family: var(--font-display); font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.06em; color: var(--white); font-weight: 400;
}
.staff-toggle.active .staff-toggle-label { color: var(--gold); }
.staff-toggle-icon { font-size: 1.1rem; flex-shrink: 0; }
.staff-toggle-count {
  font-size: 0.72rem; color: var(--white-dim);
  background: rgba(255,255,255,0.07);
  border-radius: 20px; padding: 3px 10px;
  flex-shrink: 0; font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.staff-arrow {
  width: 22px; height: 22px; color: var(--white-dim); flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
}
.staff-arrow.open {
  transform: rotate(180deg);
  color: var(--gold);
}
/* Panel collapse/expand */
.staff-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 20px;
}
.staff-panel.open {
  max-height: 4000px;
  overflow: visible;
  padding: 4px 20px 20px;
}
/* First one open by default */
.staff-panel.open .people-grid { margin-top: 4px; }

@media (max-width: 480px) {
  .staff-toggle { padding: 14px 16px; gap: 10px; }
  .staff-toggle-label { font-size: 0.95rem; }
  .staff-panel.open { padding: 4px 14px 16px; }
  .staff-toggle-count { font-size: 0.68rem; padding: 2px 8px; }
}

/* ── Landscape mobile fix ── */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 70px 0 32px; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .hero-stats { margin-top: 16px; padding-top: 16px; gap: 20px; }
  .section { padding: clamp(24px, 4vw, 48px) 0; }
  .section-title { font-size: clamp(1.3rem, 4vw, 2rem) !important; }
  .staff-toggle { padding: 12px 16px; }
  .staff-panel.open { padding: 4px 16px 14px; }
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)) !important; }
  .modal-box { max-height: 85vh !important; }
}

@media (max-width: 600px) and (orientation: landscape) {
  .official-hero { padding: 64px 0 24px; }
  .official-hero-title { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .official-hero-sub { display: none; }
  .official-hero-stats { gap: 12px; padding-top: 12px; margin-top: 12px; }
  .official-stat-num { font-size: 1.3rem; }
  .official-stat-label { font-size: 0.6rem; }
}

/* ── Layout Fixes — Full Width Sections ────────────────────── */

/* Ensure all sections are truly full width */
section, footer {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Facebook embed responsive fix */
.fb-page, .fb-page span, .fb-page span iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* ── Landscape mobile fixes ─────────────────────────────────── */
@media (orientation: landscape) and (max-width: 900px) {
  .hero { min-height: auto; padding: 80px 0 32px; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero-stats { margin-top: 16px; padding-top: 16px; }
  .hero-actions { margin-bottom: 16px; }
  .official-hero { padding: 72px 0 28px; }
  .official-hero-title { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .official-hero-stats { margin-top: 16px; }
  .oh-ball-1, .oh-ball-2, .oh-ball-3 { display: none; }
  .navbar, .official-navbar { height: 52px; }
}

/* ── Footer full-width fix ───────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  clear: both;
}
.footer-grid {
  width: 100%;
  box-sizing: border-box;
}

/* ── People section full-width ──────────────────────────────── */
#people {
  width: 100%;
  box-sizing: border-box;
  clear: both;
}
.staff-accordion {
  width: 100%;
  box-sizing: border-box;
}

/* ── Container overflow fix ─────────────────────────────────── */
.container {
  width: 100%;
  box-sizing: border-box;
}

/* ── Landscape tablet fixes ─────────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .staff-toggle-label { font-size: 0.9rem; }
}


/* ============================================================
   LANDSCAPE FIXES
   ============================================================ */



/* ── Social cards — 3 across in landscape ── */
@media (max-height: 500px) and (orientation: landscape) {
  .social-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
  /* Facebook embed — hide in landscape to save space */
  #facebook div[style*="max-width:500px"] {
    display: none;
  }
  /* Reduce padding on social cards */
  .social-cards-grid > div { padding: 12px !important; }
  .social-cards-grid > div p { display: none; } /* hide description text */
}

/* ── Footer in landscape ── */
@media (orientation: landscape) and (max-width: 900px) {
  footer { padding: 24px 0 16px; }
  .footer-grid {
    gap: 24px;
    margin-bottom: 16px;
  }
  .footer-brand-name { font-size: 1.2rem; margin-bottom: 6px; }
  .footer-tagline { font-size: 0.75rem; max-width: 220px; }
  .footer-heading { font-size: 0.8rem; margin-bottom: 8px; }
  .footer-links a { font-size: 0.75rem; }
  .footer-links { gap: 6px; }
  .footer-bottom { padding: 10px 0; }
  .footer-bottom p { font-size: 0.7rem; }
}

/* ── Team Staff in landscape ── */
@media (orientation: landscape) and (max-width: 900px) {
  .staff-toggle { padding: 12px 16px; }
  .staff-toggle-label { font-size: 0.85rem; }
  .staff-panel.open { padding: 4px 16px 14px; }
  .people-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .person-card { padding: 10px 8px; }
  .person-photo, .person-photo img, .person-initials { width: 44px; height: 44px; }
  .person-name { font-size: 0.72rem; }
}

/* ── Section titles landscape ── */
@media (orientation: landscape) and (max-width: 900px) {
  .section-title { font-size: clamp(1.2rem, 4vw, 1.8rem) !important; }
  .section { padding: 24px 0; }
  .section-subtitle { font-size: 0.75rem; margin-bottom: 2px; }
}


/* ── Facebook embed wrapper ─────────────────────────────────── */
.fb-embed-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245,197,24,0.2);
  box-shadow: 0 0 30px rgba(245,197,24,0.06);
  width: 100%;
  max-width: 500px;
}
.fb-embed-wrap .fb-page,
.fb-embed-wrap .fb-page span,
.fb-embed-wrap .fb-page span iframe {
  width: 100% !important;
}

/* Hide Facebook embed in landscape to save space */
@media (orientation: landscape) and (max-width: 900px) {
  .social-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
  .social-cards-grid > div { padding: 12px !important; }
  .social-cards-grid > div p { display: none !important; }
}









/* ── Phone navbar compact styles (≤ 640px) ── */
@media (max-width: 640px) {
  .navbar .container {
    flex-wrap: nowrap !important;
    height: 54px !important;
    align-items: center !important;
    gap: 4px !important;
    overflow: visible !important;
  }
  .navbar-brand    { flex: 0 0 auto !important; gap: 5px !important; overflow: hidden; }
  .navbar-name     { font-size: 0.82rem !important; white-space: nowrap !important; }
  .navbar-logo     { width: 28px !important; height: 28px !important; font-size: 0.58rem !important; flex-shrink: 0 !important; }
  .navbar-flag     { width: 18px !important; height: 12px !important; flex-shrink: 0 !important; }
  .sport-tabs      { flex-shrink: 0 !important; margin: 0 4px !important; display: flex !important; }
  .sport-tab       { font-size: 0.68rem !important; padding: 4px 9px !important; }
  .navbar-controls { display: flex !important; align-items: center !important; gap: 4px !important; flex-shrink: 0 !important; margin-left: auto !important; }
  #theme-toggle    { padding: 5px 7px !important; font-size: 0.8rem !important; }
  .navbar-hamburger{ flex-shrink: 0 !important; }
  .nav-links       { display: none !important; }
}

/* ── Landscape navbar — spacing and alignment ── */
@media (orientation: landscape) and (max-width: 900px) {
  .navbar { height: 48px !important; }
  .navbar .container {
    flex-wrap: nowrap !important;
    height: 48px !important;
    padding: 0 12px !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: visible !important;
  }
  .navbar-brand    { flex-shrink: 0; gap: 6px !important; }
  .navbar-logo     { width: 26px !important; height: 26px !important; font-size: 0.55rem !important; }
  .navbar-name     { font-size: 0.78rem !important; white-space: nowrap !important; }
  .navbar-flag     { width: 18px !important; height: 12px !important; }
  .sport-tabs      { flex-shrink: 0 !important; margin: 0 6px !important; display: flex !important; }
  .sport-tab       { font-size: 0.68rem !important; padding: 3px 10px !important; }
  /* Show nav links as scrollable row */
  .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    flex: 1 !important;
    margin: 0 6px !important;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a     { font-size: 0.75rem !important; white-space: nowrap !important; padding: 4px 6px !important; }
  .nav-cta         { padding: 4px 10px !important; font-size: 0.75rem !important; }
  .navbar-controls { display: flex !important; align-items: center !important; gap: 4px !important; flex-shrink: 0; }
  #theme-toggle    { padding: 4px 7px !important; font-size: 0.78rem !important; }
  .navbar-hamburger{ display: none !important; }
}

/* ── Ticker speed ────────────────────────────────────────────────
   Desktop        : 20s
   Portrait mobile : 15s
   Landscape mobile: 18s
*/
@media (orientation: portrait) and (max-width: 768px) {
  .ticker-track { animation-duration: 15s; }
}
@media (orientation: landscape) and (max-width: 900px) {
  .ticker-track { animation-duration: 18s; }
}

/* ── Gold Sponsor Banner ─────────────────────────────────────── */
/* ── Gold Sponsor Banner ── */
#sponsor-banner {
  position: sticky;
  top: var(--nav-height);
  z-index: 900;
  background: linear-gradient(135deg, #0d1020 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid rgba(245,197,24,0.25);
  margin-top: var(--nav-height);
}
/* The inner wraps all cards — only .active is visible */
.spb-inner {
  display: grid;
  grid-template-areas: "card";
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
}
/* Every card occupies the same grid cell so they stack/fade in place */
.spb-card {
  grid-area: card;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  visibility: hidden;
}
.spb-card.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.spb-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
}
.spb-logo {
  height: 2rem;
  width: auto;
  max-width: 5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.spb-logo-fallback {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(245,197,24,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}
.spb-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.spb-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  white-space: nowrap;
}
.spb-sub {
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.spb-cta {
  display: inline-flex;
  align-items: center;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--gold);
  border-radius: 2rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.spb-cta:hover { background: rgba(245,197,24,0.2); border-color: var(--gold); }
@media (max-width: 900px) { .spb-cta { display: none; } }
@media (max-width: 640px) { .spb-label { display: none; } .spb-sub { display: none; } }

/* ── Registration Modal ────────────────────────────────────── */
.reg-league-btn {
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}
.reg-league-btn:hover {
  border-color: var(--gold);
  background: rgba(245,197,24,0.06);
}
.reg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.reg-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reg-field input, .reg-field select, .reg-field textarea {
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 0.88rem;
}
.reg-player-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.reg-player-row input {
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.83rem;
  width: 100%;
}
.reg-player-row select {
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 0.83rem;
}

.person-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.person-lightbox.open {
  display: flex;
}
.person-lightbox-box {
  background: #1a2540;
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 16px; padding: 32px;
  max-width: 500px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  position: relative;
}

/* ── Person photo circle (officials pages) ───────────────────
   Mirrors the proven .modal-team-photo-box / .team-photo-lightbox
   pattern from league.html — simple inline style="display:flex"
   open/close, no JS class toggling.                           */
.person-photo-circle {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 12px;
  border: 2px solid rgba(245,197,24,0.3);
  background: rgba(245,197,24,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: default; position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.person-photo-circle.has-photo {
  cursor: zoom-in;
  border-color: var(--gold);
}
.person-photo-circle.has-photo:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.25);
}
.person-photo-circle.has-photo:hover::after {
  content: '⛶';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4); border-radius: 50%;
}
.person-photo-circle img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none;
}
.person-photo-initials {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 900; color: var(--navy);
  pointer-events: none;
}

/* ── Person photo lightbox (officials pages) ─────────────────
   Same pattern as .team-photo-lightbox in league.html         */
.person-photo-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.person-photo-lightbox img {
  max-width: 88vw; max-height: 85vh;
  border-radius: 50%; box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  object-fit: cover; cursor: default;
  border: 3px solid var(--gold);
}

/* ── Person modal photo box (inside detail modal) ───────────── */
.person-modal-photo-box {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(245,197,24,0.3);
  background: rgba(245,197,24,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: default; position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.person-modal-photo-box.has-photo {
  cursor: zoom-in;
  border-color: var(--gold);
}
.person-modal-photo-box.has-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.25);
}
.person-modal-photo-box.has-photo:hover::after {
  content: '⛶';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4); border-radius: 50%;
}
.person-modal-photo-box img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
.person-modal-team-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem; padding: 4px 12px; border-radius: 20px;
}

/* ── Pagination bar (officials pages) ───────────────────────── */
.people-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.people-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-btn {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--gold);
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.page-btn:hover:not(:disabled) {
  background: rgba(245,197,24,0.2);
  transform: translateY(-1px);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
.page-info {
  font-size: 0.85rem;
  color: var(--white-dim);
  font-weight: 600;
  min-width: 100px;
  text-align: center;
}

/* ── Results pagination (← Previous | Page X of Y | Next →) ── */
.results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: nowrap;
}
.results-pagination:empty { margin-top: 0; }
.results-page-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.results-page-btn:hover:not(:disabled) {
  background: rgba(245,197,24,0.08);
}
.results-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 480px) {
  .results-pagination { gap: 8px; }
  .results-page-btn { font-size: 0.78rem; padding: 6px 8px; }
  .results-pagination .page-info { font-size: 0.78rem; min-width: 80px; }
}

/* ============================================================
   PASS 1 — DESIGN SYSTEM ADDITIONS
   Spacing tokens · Card system · Grid utilities
   Navbar scroll-shrink · Mobile overflow safety
   ============================================================ */

/* ── Navbar scroll-shrink ── */
.navbar,
.official-navbar {
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.is-scrolled {
  height: 52px;
  background: rgba(8,11,22,0.97);
  box-shadow: 0 2px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(245,197,24,0.08);
}
.official-navbar.is-scrolled {
  height: 52px;
  background: rgba(8,11,22,0.97);
  box-shadow: 0 2px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(245,197,24,0.08);
}
/* Keep the existing .scrolled class on official-navbar working */
.official-navbar.scrolled {
  height: 52px;
}

/* ── Consistent section spacing ── */
.section + .section {
  padding-top: var(--section-py);
}

/* ── Grid utilities — auto-fill minmax, no fixed px widths ── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--grid-gap);
}
.grid-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: var(--grid-gap);
}
.grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: var(--grid-gap);
}
.grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--grid-gap);
}

/* ── about-facts-grid — used in index.html but missing class ── */
.about-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: var(--grid-gap);
}

/* ── Card system — subtle default borders, gold on hover only ── */
.match-card,
.team-card,
.person-card,
.news-item,
.about-fact,
.recap-card,
.spotlight-card,
.event-row,
.cal-event-row,
.dev-card,
.affiliate-card {
  border: var(--card-border);
}
.match-card:hover,
.team-card:hover,
.person-card:hover,
.news-item:hover,
.about-fact:hover {
  border-color: rgba(245,197,24,0.3);
}

/* ── Body text — small and clean ── */
body {
  font-size: 0.9375rem;
  line-height: 1.65;
}
p, li, td, .news-item-title, .section-subtitle {
  font-size: 0.9rem;
}

/* ── Mobile overflow safety — no horizontal scroll ── */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe { max-width: 100%; }

/* ── Highlights ──────────────────────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 28vw, 360px), 1fr));
  gap: var(--grid-gap);
}
.highlight-card {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(28,37,64,0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.25s;
}
.highlight-card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,0.35); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.highlight-photo { width: 100%; height: 200px; overflow: hidden; background: rgba(255,255,255,0.04); }
.highlight-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.highlight-card:hover .highlight-photo img { transform: scale(1.04); }
.highlight-no-photo { display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.highlight-body { padding: 16px 18px 20px; }
.highlight-badge { display: inline-block; background: rgba(245,197,24,0.12); color: var(--gold); border-radius: 20px; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 8px; }
.highlight-title { font-size: 1rem; font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 6px; }
.hl-card-result { font-size: 0.82rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.hl-score { background: rgba(245,197,24,0.15); padding: 1px 7px; border-radius: 4px; margin: 0 4px; }
.highlight-desc { font-size: 0.82rem; color: var(--white-dim); line-height: 1.5; margin: 6px 0 0; }
.highlight-date { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 8px; letter-spacing: 0.03em; }

/* ── Highlight Modal ─────────────────────────────────────────── */
.hlm-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; box-sizing: border-box; }
.hlm-box { background: #111827; border: 1px solid rgba(245,197,24,0.2); border-radius: 14px; width: 100%; max-width: 720px; overflow: hidden; position: relative; }
.hlm-hero { position: relative; overflow: hidden; }
.hlm-hero img { width: 100%; height: 280px; object-fit: cover; display: block; transition: opacity 0.2s; }
.hlm-hero:hover img { opacity: 0.88; }
.hlm-view-full { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; padding: 3px 9px; border-radius: 10px; pointer-events: none; }
.hlm-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: rgba(0,0,0,0.3); scrollbar-width: none; }
.hlm-thumb { height: 60px; width: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s; }
.hlm-thumb-active, .hlm-thumb:hover { border-color: var(--gold); }
.hlm-content { padding: 24px 28px 32px; }
.hlm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hlm-match-num { background: rgba(245,197,24,0.12); color: var(--gold); border-radius: 20px; padding: 3px 12px; font-size: 0.72rem; font-weight: 700; }
.hlm-meta-date { font-size: 0.78rem; color: var(--white-dim); }
.hlm-title { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; color: #f0f2f7; line-height: 1.25; margin: 0 0 16px; }
.hlm-result { display: flex; align-items: center; justify-content: center; gap: 16px; background: rgba(245,197,24,0.06); border: 1px solid rgba(245,197,24,0.15); border-radius: 10px; padding: 14px 20px; margin-bottom: 12px; flex-wrap: wrap; }
.hlm-team { display: flex; align-items: center; gap: 10px; }
.hlm-team-name { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.hlm-sets { font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.hlm-vs { font-size: 1rem; color: var(--white-dim); font-weight: 600; }
.hlm-set-scores { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hlm-set-score { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border-radius: 6px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; }
.hlm-description { font-size: 0.95rem; font-weight: 500; color: #f0f2f7; line-height: 1.6; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hlm-article { color: rgba(255,255,255,0.82); }
.hlm-close { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); color: #fff; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 1; }

/* ── Mobile padding safety ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: clamp(40px, 7vw, 80px) 0; }
  body { font-size: 14px; }
}

/* ── Light mode — body text stays readable ── */
body.light-mode p,
body.light-mode li,
body.light-mode td { color: var(--white-dim); }

/* ── Social badges (live-updates) ── */
.social-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}
.social-badge-fb { background: #1877F2; }
.social-badge-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-badge-yt { background: #FF0000; }

/* ── Social follow cards ── */
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.social-card {
  background: var(--navy-light);
  border: var(--card-border);
  border-radius: 14px;
  padding: var(--sp-4);
  transition: border-color 0.2s;
}
.social-card:hover { border-color: rgba(255,255,255,0.15); }
.social-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.social-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-card-icon-fb { background: #1877F2; }
.social-card-icon-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-card-icon-yt { background: #FF0000; }
.social-card-info { flex: 1; }
.social-card-name { font-weight: 700; font-size: 0.85rem; color: var(--white); }
.social-card-handle { font-size: 0.72rem; color: var(--white-dim); }
.social-card-desc { font-size: 0.78rem; color: var(--white-dim); line-height: 1.5; margin: 0; }
.social-follow-btn {
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.social-follow-btn:hover { opacity: 0.85; }
.social-follow-btn-fb { background: #1877F2; }
.social-follow-btn-ig { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.social-follow-btn-yt { background: #FF0000; }

/* ── Video embed — responsive 16:9 ── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: var(--sp-4);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Live badge ── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-light);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  padding: 8px 18px;
  margin-top: var(--sp-4);
}
.live-badge-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.live-badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22c55e;
}
.live-badge-sub {
  font-size: 0.85rem;
  color: var(--white-dim);
}

/* ── Utility: Section Dark ─────────────────────────────────── */
.section-dark {
  background: var(--navy-mid);
  width: 100%;
  box-sizing: border-box;
}

/* ── Utility: Affiliations Strip ───────────────────────────── */
.affiliations-strip {
  border-top: 1px solid rgba(245,197,24,0.15);
  padding: 28px 0 24px;
}
.affiliations-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}
.affil-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.affil-link:hover { opacity: 1; }
.affil-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,197,24,0.6);
  text-align: center;
  margin: 0 0 20px;
}
.affil-logo-box {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}
.affil-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.affil-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  letter-spacing: 0.06em;
}

/* ── Admin Modal ───────────────────────────────────────────── */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.admin-modal.is-open { display: flex; }
.admin-modal-box {
  background: var(--navy-light);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 16px;
  padding: 32px;
  width: min(380px, 90vw);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-modal-eyebrow {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.admin-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.admin-modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}
.admin-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-modal-label {
  font-size: 0.75rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.admin-modal-input {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.admin-modal-input:focus { border-color: rgba(245,197,24,0.4); }
.admin-modal-error {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  text-align: center;
}
.admin-modal-submit {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
  width: 100%;
}
.admin-modal-submit:hover { opacity: 0.9; }

/* ── Admin nav icon (desktop only) ── */
.admin-nav-icon {
  display: none;
}
/* Mobile/tablet: hidden unconditionally — no later rule may resurrect it */
@media (max-width: 1100px) {
  .admin-nav-icon { display: none !important; }
}
@media (min-width: 1101px) {
  .admin-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    vertical-align: middle;
    position: relative;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: 8px;
    padding: 5px 9px;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
  }
  .admin-nav-icon:hover { background: rgba(255,255,255,0.08); }
}

/* ============================================================
   RESPONSIVE AUDIT FIXES
   Global hardening for 320px – 1920px viewports
   ============================================================ */

/* ── Media elements — never overflow their container ── */
img, video, canvas, svg, iframe { max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }

/* ── iOS Safari: inputs below 16px trigger auto-zoom on focus ── */
input, select, textarea {
  font-size: 16px;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Horizontal scroll wrappers: momentum scrolling on iOS ── */
.standings-table-wrap,
.scroll-container,
.hlm-thumbs {
  -webkit-overflow-scrolling: touch;
}
.standings-table-wrap { overflow-x: auto; width: 100%; }
/* Standings tables carry a min-width below 768px (see the rule under),
   so their panel has to scroll — otherwise the Record column is simply
   clipped off the right edge on a phone. */
.standings-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Tables: keep the team column visible while scrolling sideways ── */
@media (max-width: 767px) {
  .standings-table { min-width: 480px; }
  .standings-table th:first-child,
  .standings-table td:first-child {
    position: sticky; left: 0; z-index: 2;
    background: rgba(10,14,26,0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* ── Touch targets: ≥44px for interactive controls on touch devices ── */
@media (pointer: coarse) {
  .btn-primary, .btn-secondary, .btn-full,
  .load-more-btn, .page-btn, .results-page-btn,
  .beach-filter-btn, .nt-filter-btn, .standings-tab, .season-btn,
  .leagues-dropdown a, .nav-mobile a {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .nav-mobile a { justify-content: flex-start; }
  .results-pagination { gap: 16px; }
  /* Hover-revealed elements must stay reachable on touch */
  .team-card-footer, .sponsor-link { opacity: 1 !important; }
}

/* ── Modals: guaranteed fit at 320px, scrollable, safe-area aware ── */
#event-detail-modal > div,
#match-detail-modal > div,
#dev-article-modal > div {
  width: min(480px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#event-detail-modal, #match-detail-modal, #dev-article-modal,
.modal-backdrop, .hlm-backdrop {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ── 480px+: large phones / phablets ── */
@media (min-width: 480px) and (max-width: 767px) {
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Large desktop: cap and center content ── */
@media (min-width: 1440px) {
  .container { max-width: 1400px; margin: 0 auto; }
}

/* ── Very small phones (320px): tighten paddings, no overflow ── */
@media (max-width: 359px) {
  :root { --container-pad: 12px; }
  .section-title { font-size: 1.35rem; }
  .match-card { padding: 12px 10px; }
  .match-team span { font-size: 0.75rem; }
  .results-pagination { gap: 6px; }
  .results-pagination .page-info { min-width: 64px; }
}

/* iOS zoom fix for class-styled fields (outspecify the 0.88rem rules) */
@media (max-width: 768px) {
  .reg-field input, .reg-field select, .reg-field textarea,
  .reg-player-row input, .reg-player-row select,
  .admin-modal-input {
    font-size: 16px;
  }
}

/* ── Contact & Register cards: compact on mobile only ── */
@media (max-width: 767px) {
  #contact .contact-card { padding: 20px 16px; }
  /* Icon: cap at 40px, tight gap to the title */
  #contact .contact-card > div:first-child {
    font-size: 1.9rem;            /* ~30px emoji, under the 40px cap */
    line-height: 1;
    max-height: 40px;
    margin-bottom: 8px !important;
  }
  #contact .contact-card .about-fact-label { margin-bottom: 8px !important; }
  #contact .contact-card p {
    margin-bottom: 16px !important;
    font-size: 14px !important;
  }
  #contact .contact-card .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    width: 100%;
  }
  /* Map embed */
  #contact .contact-map-card { padding: 0; }
  #contact .contact-map-card iframe {
    height: 160px !important;
    width: 100%;
    border-radius: 8px 8px 0 0;
  }
  /* Location block under the map */
  #contact .contact-map-info { padding: 16px !important; }
  #contact .contact-map-info .about-fact-label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-bottom: 8px !important;
  }
  #contact .contact-map-info > div { font-size: 14px !important; }
}

/* ── Officials Pyramid Layout ───────────────────────────────── */
.executives-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 24px 0 32px;
}
.pyramid-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}
.exec-connector {
  width: 100%;
  height: 40px;
  display: block;
  overflow: visible;
}
.exec-card {
  background: #1a2236;
  border: 1px solid #2a3550;
  border-radius: 12px;
  padding: 16px 12px;
  width: 150px;
  flex: 0 0 150px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.exec-card:hover {
  border-color: rgba(201,162,39,0.4);
  transform: translateY(-3px);
}
.exec-card--president {
  width: 170px;
  flex: 0 0 170px;
  border-color: #c9a227;
}
.exec-avatar {
  border-radius: 50%;
  border: 2px solid #c9a227;
  margin: 0 auto 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1628;
}
.exec-initials {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: #c9a227;
}
.exec-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}
.exec-card--president .exec-name {
  font-size: 15px;
}
.exec-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9a227;
  background: rgba(201,162,39,0.12);
  border-radius: 20px;
  padding: 2px 8px;
}
@media (max-width: 480px) {
  .exec-connector { display: none !important; }
  .pyramid-level { gap: 12px; }
  .exec-card,
  .exec-card--president {
    width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
  }
}

/* Association News modal — squad position rows stack on narrow screens */
@media (max-width: 480px) {
  .an-pos-row-modal {
    flex-direction: column !important;
    gap: 2px !important;
  }
  .an-pos-row-modal span:first-child {
    min-width: unset !important;
  }
}

/* ── Wide viewport scaling (1920px+) ── */
@media (min-width: 1920px) {
  html { font-size: 18px; }
}

@media (min-width: 2560px) {
  html { font-size: 21px; }
}
