/* ============================================================
   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=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 {
  --navy:        #0a0e1a;
  --navy-mid:    #111827;
  --navy-light:  #1c2540;
  --gold:        #f5c518;
  --gold-dim:    #c49a10;
  --white:       #f0f2f7;
  --white-dim:   #9aa3b8;
  --accent:      #e8423a;
  --green:       #22c55e;
  --red:         #ef4444;

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

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --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; }
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); }
body {
  background: var(--navy-mid);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  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; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-mid); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

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

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; width: 100%; box-sizing: border-box; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.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 24px;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,197,24,0.15);
  height: 64px;
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  gap: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo {
  width: 36px;
  height: 36px;
  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);
}
.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: 14px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  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;
}
.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: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,197,24,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(245,197,24,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232,66,58,0.04) 0%, transparent 50%),
    var(--navy);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.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 {
  color: var(--white);
  margin-bottom: 12px;
}
.hero h1 span { color: var(--gold); }
.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);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: #ffd93d; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.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: var(--navy-mid);
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
  position: relative;
}
.ticker-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.ticker-label {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  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;
  justify-content: center;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 155s linear infinite;
  white-space: nowrap;
  align-items: center;
  padding: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  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(0); }
  100% { transform: translateX(-50%); }
}

/* ── Scores / Results ──────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.match-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.match-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.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(min(100%, 220px), 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: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 16px 20px;
  transition: all var(--transition);
}
.news-item:hover { border-color: rgba(245,197,24,0.3); transform: translateX(4px); }
.news-item-title { font-weight: 500; font-size: 0.95rem; }
.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: var(--navy-light); border: 1px solid rgba(245,197,24,0.2);
  border-radius: var(--radius-lg); padding: 28px 32px;
  position: relative; overflow: hidden;
}
.recap-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--gold);
}
.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: 1fr 1fr; gap: 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: var(--navy-light); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.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: 2fr 1fr 1fr; gap: 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: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--white-dim); }
.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(260px, 75vw); z-index: 1000;
  background: var(--navy-light);
  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-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; }
.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(2rem, 5vw + 1rem, 5rem); line-height: 1.1; }
h2, .section-title { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.8rem); }
.section-subtitle { font-size: clamp(0.75rem, 1.5vw, 0.95rem); }
.hero-sub { font-size: clamp(0.85rem, 1.5vw, 1.05rem); }
.hero-tagline { font-size: clamp(0.8rem, 1.5vw, 1rem); }
.hero-eyebrow-text { font-size: clamp(0.65rem, 1.2vw, 0.85rem); }
.hero-stat-num { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.hero-stat-label { font-size: clamp(0.65rem, 1vw, 0.78rem); }

/* Fluid container — padding scales with screen */
.container { padding: 0 clamp(14px, 4vw, 40px); }
.section { padding: clamp(40px, 8vw, 100px) 0; }

/* Fluid grids — reflow automatically */
.results-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 2vw, 20px); }
.teams-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 2vw, 20px); }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)) !important; gap: clamp(10px, 2vw, 20px); }
.about-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: clamp(10px, 2vw, 20px); }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(24px, 4vw, 48px); }
.about-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(30px, 5vw, 60px); align-items: start; }

/* 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 — fluid */
.ticker-label { font-size: clamp(0.75rem, 1.5vw, 1.2rem); min-width: clamp(100px, 15vw, 220px); padding: 0 clamp(12px, 2.5vw, 36px); }
.ticker-item { padding: clamp(6px, 1.5vw, 10px) clamp(14px, 3vw, 40px); font-size: clamp(0.78rem, 1.4vw, 1rem); }

/* 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); }

/* Only 2 breakpoints needed — layout structure only */

/* Collapse nav to hamburger on small/medium screens */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .navbar-hamburger { display: flex; }
  .sport-tabs { display: none; }
  .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) {
}

/* Hide decorative balls on phones */
@media (max-width: 500px) {
  .hero-ball, .hero-ball-2, .hero-ball-3, .hero-ball-4, .hero-ball-5 { display: none; }
  .hero { padding-top: clamp(70px, 15vw, 100px); }
  div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .news-card { flex-direction: column; }
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Teams ──────────────────────────────────────────────────── */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.team-card { background: var(--navy-light); border: 1px solid rgba(245,197,24,0.12); border-radius: 12px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.team-card:hover { transform: translateY(-3px); border-color: rgba(245,197,24,0.35); }
.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-box { background: var(--navy-mid); 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; }
.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; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.person-card { background: var(--navy-light); border: 1px solid rgba(245,197,24,0.1); border-radius: 12px; padding: 20px; text-align: center; transition: transform 0.2s; }
.person-card:hover { transform: translateY(-3px); }
.person-photo { margin: 0 auto 12px; width: 72px; height: 72px; }
.person-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.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; }
.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;
}
