:root{
  /* Brand tokens (tweak anytime; later can be edition-dynamic) */
  --brand-900:#072b2c;
  --brand-800:#0b3536;
  --brand-700:#0f3d3e;
  --brand-600:#1d5f56;
  --brand-500:#2f7a6a;
  --accent-500:#f4b400;

  --surface: #ffffff;
  --surface-2: #f7faf9;
  --text: #0f172a;
  --muted: #64748b;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow-sm: 0 8px 22px rgba(2,6,23,.06);
  --shadow-md: 0 16px 42px rgba(2,6,23,.12);
}

body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); background:linear-gradient(180deg,#ffffff 0%, #f6fbfa 100%);}

/* Prevent sideways scrolling on mobile due to shadows/blur layers */
body{overflow-x:hidden;}
h1,h2,h3,h4,h5{font-family:Montserrat,Inter,system-ui,sans-serif; letter-spacing:.15px;}

.fw-black{font-weight:800;}
.tiny{font-size:.72rem;}

.bg-brand{background:linear-gradient(90deg,var(--brand-800),var(--brand-500));}
.text-accent{color:var(--accent-500)!important;}

/* Navbar modernization */
.navbar.bg-brand{
  background: rgba(4,10,22,.82) !important;
  backdrop-filter: blur(16px);
}
.navbar .nav-link{
  color: rgba(255,255,255,.72) !important;
  font-weight: 700;
}
.navbar .nav-link:hover{color:#fff !important;}
.navbar .nav-link:focus{color:#fff !important;}


/* Mobile polish */
@media (max-width: 575.98px){
  .top-marquee{display:none;}

  .hero-event{min-height: 86vh;}
  .hero-title{font-size: 2.35rem;}
  .hero-sub{font-size: .82rem;}
  .hero-tagline{font-size: .98rem;}
  .hero-actions .btn{width:100%; justify-content:center;}

  /* Cleaner hero: show date + countdown first (like reference mobile UI) */
  .hero-left{display:none;}
  .hero-grid{gap: .95rem;}

  /* Reduce background noise so text stays crisp */
  .hero-event::before{opacity:.12; background-size: 52px 52px;}
  .hero-event::after{opacity:.72;}

  /* Center like the reference */
  .hero-topline{justify-content:center; text-align:center;}
  .hero-head{text-align:center;}
  .hero-meta{grid-template-columns:1fr;}

  .hero-right{align-self:stretch;}
  .hero-date{justify-content:center; text-align:center;}
  .hero-date-big{justify-content:center;}
  .hero-day{font-size: 4.6rem;}
  .hero-month{font-size: 2.6rem;}
  .hero-weekday{padding-bottom:0; text-align:center; width:100%;}

  /* Countdown as 2x2 glass cards */
  .hero-countdown{grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 14px;}
  .cd-pill{border-radius: 22px; padding: 14px 12px; min-height: 92px; display:flex; flex-direction:column; justify-content:center;}
  .cd-num{font-size: 2.05rem; letter-spacing:.06em;}
  .cd-lbl{font-size: .62rem;}

  .hero-bottom{margin-top: 16px;}
  .hero-bottom-card{padding: 12px 14px;}
}

@media (max-width: 767.98px){
  .gallery-item img{height: 210px;}
  .team-logo{width:52px; height:52px;}
  .team-card .card-body{padding: .75rem !important;}
}

.btn-brand{
  --bs-btn-color:#fff;
  --bs-btn-bg: var(--brand-600);
  --bs-btn-border-color: var(--brand-600);
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-800);
  --bs-btn-active-border-color: var(--brand-800);
  border-radius: 999px;
  padding: .7rem 1.05rem;
}
.btn-accent{
  --bs-btn-color:#1f2a2a;
  --bs-btn-bg: var(--accent-500);
  --bs-btn-border-color: var(--accent-500);
  --bs-btn-hover-bg: #ffcc33;
  --bs-btn-hover-border-color: #ffcc33;
  border-radius: 999px;
  padding: .7rem 1.05rem;
}

.card-soft{
  border:1px solid rgba(15,61,62,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

/* Teams section background (football pitch — subtle, clean)
   Keep it mostly static for readability. If you want motion later,
   we can add a very slow "light sweep" on top.
*/
.teams-section{
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.teams-section.teams-bg--shimmer::before,
.teams-section.teams-bg--shimmer::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

/* Grass stripes + calm vignette */
.teams-section.teams-bg--shimmer::before{
  opacity:.26;
  /* Use a self-hosted procedural grass image (SVG) so it feels like real turf.
     (Original file: public/assets/img/grass.svg)
  */
  background-image:
    radial-gradient(120% 100% at 50% 0%, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(120% 100% at 50% 100%, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 60%),
    url('../img/grass.svg');
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Pitch markings: center line + center circle (very faint) */
.teams-section.teams-bg--shimmer::after{
  opacity:.18;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 49.6%, rgba(255,255,255,.32) 50%, rgba(255,255,255,0) 50.4%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.32) 0 2px, rgba(255,255,255,0) 2px 56px, rgba(255,255,255,.28) 56px 57px, rgba(255,255,255,0) 57px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0 120px, rgba(255,255,255,.20) 120px 121px, rgba(255,255,255,0) 121px);
}

/* (Removed the drift animation - user prefers image-style grass) */

.teams-section > .container{position:relative; z-index:1;}

@media (max-width: 575.98px){
  .teams-section.teams-bg--shimmer::before{opacity:.16;}
  .teams-section.teams-bg--shimmer::after{opacity:.14;}
}

/* Avoid overflow in tight mobile cards */
.text-break-anywhere{overflow-wrap:anywhere; word-break:break-word;}
.year-pill{font-weight:900; letter-spacing:-.02em; color: rgba(15,23,42,.35);}
@media (max-width: 575.98px){
  .year-pill{font-size: 2.1rem !important; line-height: 1; max-width: 5ch;}
  /* prevent badge causing overflow */
  #history .badge{white-space: normal;}
}

@media (max-width: 390px){
  .year-pill{font-size: 1.85rem !important;}
}

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}
.section-title .kicker{color:var(--muted); font-size:.9rem;}

.hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(244,180,0,.22), transparent 55%),
              linear-gradient(135deg, var(--brand-900), var(--brand-600));
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:url("../img/banner.png");
  background-size:cover;
  background-position:center;
  opacity:.14;
  transform: scale(1.02);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(900px 380px at 80% 10%, rgba(47,122,106,.35), transparent 55%);
}
.hero>.container{position:relative; z-index:1;}

/* ------------------------------------------------------------
   STADIUM HERO — dark green football pitch, flip countdown,
   trophy center, glass team/sponsor panels
------------------------------------------------------------ */
.hero-stadium{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  /* Plain dark green base — the pitch SVG is rendered as a real <img> below */
  background: #061a0a;
}

/* The pitch SVG rendered as a real image — guaranteed to display */
.stadium-pitch-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Dark overlay — semi-transparent so pitch stays visible */
.stadium-pitch-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Sky darkness at top */
    linear-gradient(180deg,
      rgba(0,0,0,.65) 0%,
      rgba(0,0,0,.20) 32%,
      rgba(0,0,0,.05) 55%,
      rgba(0,0,0,.35) 100%
    ),
    /* Left floodlight glow */
    radial-gradient(ellipse 50% 70% at 2%  0%, rgba(180,255,140,.20) 0%, transparent 60%),
    /* Right floodlight glow */
    radial-gradient(ellipse 50% 70% at 98% 0%, rgba(180,255,140,.18) 0%, transparent 60%),
    /* Center green brightness boost */
    radial-gradient(ellipse 80% 45% at 50% 75%, rgba(40,200,80,.18) 0%, transparent 60%);
}

/* Subtle atmosphere pulse */
.hero-stadium::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 28% at 50% 72%, rgba(34,197,94,.10) 0%, transparent 65%);
  animation: pitch-shimmer 7s ease-in-out infinite alternate;
}
@keyframes pitch-shimmer{
  from{ opacity:.6; }
  to{ opacity:1; }
}

/* Floodlight shaft beams */
.stadium-beam{
  position: absolute;
  top: -5%;
  width: 350px;
  height: 110%;
  pointer-events: none;
  z-index: 2;
  opacity: .10;
  background: linear-gradient(180deg, rgba(220,255,190,.9) 0%, transparent 68%);
  filter: blur(40px);
  transform-origin: top center;
}
.stadium-beam--left{
  left: 2%;
  transform: rotate(14deg);
}
.stadium-beam--right{
  right: 2%;
  transform: rotate(-14deg);
}

.stadium-container{
  position: relative;
  z-index: 3;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

/* ── Date arc banner ── */
.stadium-date-arc{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: 1.2rem;
  padding-right: .5rem;
}
.arc-weekday{
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
  background: rgba(255,255,255,.08);
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.arc-day{
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(244,180,0,.35);
}
.arc-sep{
  color: rgba(244,180,0,.7);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  margin: 0 .25rem;
}
.arc-month{
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(244,180,0,.35);
}
@media (max-width: 767.98px){
  .stadium-date-arc{justify-content: center;}
}

/* ── 3-col hero grid ── */
.stadium-grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 991.98px){
  .stadium-grid{grid-template-columns: 1fr 1fr; gap: 1.5rem;}
  .stadium-center{display:none;}
}
@media (max-width: 575.98px){
  .stadium-grid{grid-template-columns: 1fr; gap: 1.2rem;}
  .stadium-right{display:none;}
}

/* ── LEFT column ── */
.stadium-left{}

.stadium-title{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: .92;
  margin: .5rem 0 .6rem;
  position: relative;
}
.stadium-title-main{
  display: inline-block;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0,0,0,.55),
    0 6px 32px rgba(0,0,0,.65),
    0 0 60px rgba(40,220,90,.25);
  /* Subtle gold underline on the title */
  background: linear-gradient(90deg, rgba(244,180,0,.0), rgba(244,180,0,.0));
}

/* Matchday strip below title */
.stadium-matchday-strip{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .35rem .85rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* Meta chips */
.stadium-meta-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: 1.2rem;
}
.smeta-chip{
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .65rem .8rem;
  border-radius: 14px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.smeta-icon{font-size: .95rem; line-height: 1.4; flex-shrink: 0; margin-top: 2px;}
.smeta-label{
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 2px;
}
.smeta-val{
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}

/* ── Flip-clock countdown ── */
.flip-countdown{
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  flex-wrap: nowrap;
}
.flip-unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  flex: 1;
}
.flip-box{
  background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(30,30,30,.90) 100%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  width: 100%;
  min-width: 52px;
  padding: .55rem .25rem;
  text-align: center;
  box-shadow:
    0 8px 24px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}
/* Fold line */
.flip-box::after{
  content:"";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,.45);
}
/* Top half slightly lighter */
.flip-box::before{
  content:"";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 50%;
  background: rgba(255,255,255,.04);
  border-radius: 10px 10px 0 0;
}
.flip-num{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  display: block;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
  position: relative;
  z-index: 1;
}
.flip-lbl{
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}
.flip-sep{
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: rgba(244,180,0,.80);
  line-height: 1;
  padding-bottom: 1.35rem;
  flex-shrink: 0;
  text-shadow: 0 0 16px rgba(244,180,0,.50);
}

/* ── Matchday CTA button ── */
.btn-matchday{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: .7rem 1.5rem .65rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,15,15,.92), rgba(5,5,5,.88));
  border: 1px solid rgba(244,180,0,.28);
  text-decoration: none;
  box-shadow:
    0 8px 28px rgba(0,0,0,.55),
    0 0 0 0 rgba(244,180,0,.0),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  backdrop-filter: blur(12px);
  min-width: 200px;
  cursor: pointer;
}
.btn-matchday:hover{
  transform: translateY(-3px);
  box-shadow:
    0 18px 44px rgba(0,0,0,.65),
    0 0 28px rgba(244,180,0,.18);
  border-color: rgba(244,180,0,.55);
}
.btn-matchday-label{
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .24em;
  color: rgba(244,180,0,.80);
  text-transform: uppercase;
}
.btn-matchday-sub{
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* ── CENTER: Football visual ── */
.stadium-center{
  display: flex;
  justify-content: center;
  align-items: center;
}
.stadium-football-wrap{
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: trophy-float 4s ease-in-out infinite;
}
@keyframes trophy-float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-14px);}
}

/* Outer glow ring */
.sfb-ring{
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.sfb-ring--outer{
  width: 240px; height: 240px;
  border: 2px solid rgba(40,200,80,.22);
  box-shadow: 0 0 60px rgba(40,200,80,.18), inset 0 0 60px rgba(40,200,80,.06);
  animation: ring-pulse 3s ease-in-out infinite alternate;
}
.sfb-ring--inner{
  width: 170px; height: 170px;
  border: 1.5px solid rgba(244,180,0,.25);
  box-shadow: 0 0 32px rgba(244,180,0,.14);
  animation: ring-pulse 3s ease-in-out infinite alternate-reverse;
}
@keyframes ring-pulse{
  from{opacity:.55; transform:scale(.97);}
  to{opacity:1; transform:scale(1.03);}
}

/* Football emoji */
.sfb-ball{
  font-size: 5.5rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.65)) drop-shadow(0 0 20px rgba(40,200,80,.35));
  animation: ball-spin 12s linear infinite;
  display: block;
  margin-bottom: .4rem;
}
@keyframes ball-spin{
  from{filter: drop-shadow(0 8px 32px rgba(0,0,0,.65)) drop-shadow(0 0 20px rgba(40,200,80,.35));}
  50%{filter: drop-shadow(0 8px 32px rgba(0,0,0,.65)) drop-shadow(0 0 36px rgba(244,180,0,.40));}
  to{filter: drop-shadow(0 8px 32px rgba(0,0,0,.65)) drop-shadow(0 0 20px rgba(40,200,80,.35));}
}

/* Season badge */
.sfb-season{
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(244,180,0,.28);
  border-radius: 14px;
  padding: .45rem .9rem;
  backdrop-filter: blur(12px);
}
.sfb-season-label{
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .22em;
  color: rgba(244,180,0,.80);
  text-transform: uppercase;
}
.sfb-season-num{
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.sfb-season-year{
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
}

/* Glow blob */
.sfb-glow{
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 50px;
  background: radial-gradient(ellipse, rgba(40,200,80,.38) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  border-radius: 999px;
}

/* ── RIGHT: Glass panels ── */
.stadium-right{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stadium-panel{
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: .9rem 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.stadium-panel-head{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
}
.stadium-panel-icon{font-size: .95rem;}
.stadium-panel-title{
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* Teams mini-logo grid */
.stadium-teams-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.stadium-team-chip{
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stadium-team-chip:hover{
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
}
.stadium-team-chip img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.stadium-team-more{
  width: 100%; aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(244,180,0,.20);
  border: 1px solid rgba(244,180,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 900;
  color: rgba(255,255,255,.90);
}

/* Sponsor logo grid */
.stadium-sponsors-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.stadium-sponsor-chip{
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  padding: 4px; aspect-ratio: 1; overflow: hidden;
  transition: background .2s ease;
}
.stadium-sponsor-chip:hover{ background: rgba(255,255,255,.18); }
.stadium-sponsor-chip img{
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.stadium-sponsor-text{
  font-size: .55rem; font-weight: 900;
  color: rgba(255,255,255,.75);
  text-align: center; letter-spacing: .08em;
}
.stadium-panel-foot{
  margin-top: .6rem;
  font-size: .65rem; font-weight: 900;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.40);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: .5rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px){
  .stadium-grid{grid-template-columns: 1fr 1fr; gap: 1.5rem;}
  .stadium-center{display:none;}
}
@media (max-width: 575.98px){
  .stadium-grid{grid-template-columns: 1fr; gap: 1.2rem;}
  .stadium-right{display:none;}
  .stadium-title{font-size:2.1rem;}
  .stadium-meta-row{grid-template-columns:1fr;}
  .flip-countdown{gap:.3rem;}
  .flip-num{font-size:1.3rem;}
  .btn-matchday{min-width:160px; width:100%;}
}

/* keep legacy hero classes for other sections that reference them */
.hero{position:relative;overflow:hidden;color:#fff;background:linear-gradient(135deg,var(--brand-900),var(--brand-600));}
.hero>.container{position:relative;z-index:1;}
.hero-topline{display:flex;align-items:center;gap:14px;}
.hero-logo{width:52px;height:52px;border-radius:16px;object-fit:cover;border:2px solid rgba(255,255,255,.18);}
.hero-org{color:#fff;font-weight:800;letter-spacing:.16em;text-transform:uppercase;font-size:.9rem;}
.hero-sub{color:rgba(255,255,255,.58);font-weight:600;font-size:.82rem;}
.meta-chip{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);border-radius:18px;padding:.85rem .95rem;backdrop-filter:blur(14px);}
.meta-label{color:rgba(255,255,255,.55);font-weight:800;letter-spacing:.2em;text-transform:uppercase;font-size:.7rem;}
.meta-value{color:#fff;font-weight:800;margin-top:.15rem;}
.hero-bottom{margin-top:30px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
@media(max-width:991.98px){.hero-bottom{grid-template-columns:1fr;}}
.hero-bottom-card{border-radius:22px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);padding:16px 18px;backdrop-filter:blur(14px);}
.hero-badge{display:inline-flex;align-items:center;gap:.55rem;padding:.35rem .75rem;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);}
.cd-num{font-size:2.4rem;font-weight:900;color:#fff;letter-spacing:.06em;}
.cd-lbl{font-size:.72rem;font-weight:900;letter-spacing:.22em;color:rgba(255,255,255,.55);}
.arc-day{font-size:clamp(2.4rem,5vw,4rem);}
.arc-month{font-size:clamp(2rem,4vw,3.4rem);}
@media(max-width:575.98px){
  .arc-day{font-size:2.2rem;}
  .arc-month{font-size:2rem;}
}



.top-marquee marquee{white-space:nowrap;}

/* Teams */
.team-logo{
  width:56px;
  height:56px;
  border-radius: 16px;
  overflow:hidden;
  border:2px solid rgba(244,180,0,.35);
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
}
.team-logo img{width:100%; height:100%; object-fit:cover; display:block;}
.team-card{border-color: rgba(15,61,62,.10)}

/* Sponsors */
.sponsors-section{
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(244,180,0,.18), transparent 60%),
    radial-gradient(900px 420px at 80% 70%, rgba(47,122,106,.20), transparent 60%),
    linear-gradient(135deg, #010915 0%, #071b2a 50%, #040410 100%);
}
.tier-dot{width:10px;height:10px;border-radius:999px; background: var(--accent-500); box-shadow:0 0 0 6px rgba(244,180,0,.14)}
.sponsor-card{
  border-radius: var(--radius-lg);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color:#fff;
  backdrop-filter: blur(14px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.sponsor-card:hover{transform: translateY(-3px); box-shadow: 0 16px 42px rgba(0,0,0,.35); background: rgba(255,255,255,.09);}

/* ============================================================
   FIXTURES SECTION
============================================================ */
.fixtures-section{
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34,197,94,.07) 0%, transparent 60%),
    linear-gradient(180deg, #f8fdf9 0%, #eef7f1 100%);
  position: relative;
}
.fixtures-section::before{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(47,122,106,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events:none;
}

/* ── Section main tabs (Fixtures | Standings) ── */
.section-main-tabs{
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.section-main-tab{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.8rem;
  border-radius: 14px;
  border: 2px solid rgba(15,61,62,.15);
  background: #fff;
  color: rgba(15,23,42,.60);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 10px rgba(2,6,23,.06);
}
.section-main-tab:hover{
  border-color: rgba(15,61,62,.35);
  color: #0b3536;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2,6,23,.10);
}
.section-main-tab.active{
  background: linear-gradient(135deg, #083a3b, #1a7b6a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(8,58,59,.28);
}

/* ── Pending / empty standings notice ── */
.standings-pending-notice{
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: rgba(244,180,0,.05);
  border: 1.5px dashed rgba(244,180,0,.35);
  border-radius: 18px;
  margin-bottom: 2rem;
}
.standings-pending-icon{
  font-size: 2.8rem;
  margin-bottom: .75rem;
}
.standings-pending-title{
  font-size: 1.2rem;
  font-weight: 800;
  color: #0b3536;
  margin-bottom: .4rem;
}
.standings-pending-sub{
  font-size: .9rem;
  color: #64748b;
  line-height: 1.5;
}

/* ── Round tabs ── */
.fixture-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.fixture-tab{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15,61,62,.18);
  background: #fff;
  color: rgba(15,23,42,.65);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(2,6,23,.06);
}
.fixture-tab:hover{
  border-color: rgba(15,61,62,.40);
  color: #0b3536;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(2,6,23,.10);
}
.fixture-tab.active{
  background: linear-gradient(135deg, #083a3b, #1a7b6a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(8,58,59,.30);
}
.fixture-tab-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  background: rgba(255,255,255,.22);
  color: inherit;
}
.fixture-tab.active .fixture-tab-count{ background: rgba(255,255,255,.25); }
.fixture-tab:not(.active) .fixture-tab-count{ background: rgba(15,61,62,.10); color: #0b3536; }

/* ── Fixture grid ── */
.fixture-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
@media (min-width: 768px){
  .fixture-grid{grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px;}
}
@media (min-width: 992px){
  .fixture-grid{grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px;}
}
@media (max-width: 575.98px){
  .fixture-grid{grid-template-columns: 1fr; gap: 12px;}
}

/* ── Fixture card ── */
.fixture-card{
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(15,61,62,.10);
  box-shadow: 0 8px 24px rgba(2,6,23,.07);
  overflow: hidden;
  transition: transform .26s cubic-bezier(.16,1,.3,1), box-shadow .26s ease, border-color .26s ease;
  position: relative;
}
.fixture-card::before{
  content:"";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #083a3b, #1a7b6a, #f4b400);
  opacity: 0;
  transition: opacity .26s ease;
}
.fixture-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(2,6,23,.12);
  border-color: rgba(15,61,62,.22);
}
.fixture-card:hover::before{ opacity: 1; }

.fixture-card--live{
  border-color: rgba(239,68,68,.35);
  box-shadow: 0 8px 24px rgba(239,68,68,.12);
}
.fixture-card--live::before{
  background: linear-gradient(90deg, #ef4444, #f97316);
  opacity: 1;
}
.fixture-card--done{
  border-color: rgba(15,61,62,.14);
  background: linear-gradient(180deg, #fff 0%, #f8fdf9 100%);
}

/* Card meta bar */
.fcard-meta{
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem .4rem;
  border-bottom: 1px solid rgba(15,61,62,.07);
  background: rgba(248,253,249,.80);
}
.fcard-match-no{
  font-size: .68rem;
  font-weight: 900;
  color: rgba(15,23,42,.35);
  letter-spacing: .10em;
  flex-shrink: 0;
}
.fcard-date{
  font-size: .72rem;
  font-weight: 600;
  color: rgba(15,23,42,.50);
  flex: 1;
}
.fcard-status{
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.fcard-status--live{
  background: rgba(239,68,68,.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,.25);
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.35);}
  50%{box-shadow:0 0 0 5px rgba(239,68,68,.0);}
}
.fcard-status--done{
  background: rgba(34,197,94,.10);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,.22);
}
.fcard-status--upcoming{
  background: rgba(244,180,0,.10);
  color: #b45309;
  border: 1px solid rgba(244,180,0,.28);
}

/* Match body */
.fcard-match{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  padding: 1rem .85rem .75rem;
}

/* Team block */
.fcard-team{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.fcard-team--home{ align-items: flex-end; text-align: right; }
.fcard-team--away{ align-items: flex-start; text-align: left; }
.fcard-team-avatar{
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #083a3b, #1a7b6a);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8,58,59,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fixture-card:hover .fcard-team-avatar{
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(8,58,59,.32);
}
.fcard-team--winner .fcard-team-avatar{
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 4px 14px rgba(244,180,0,.35);
}
.fcard-team--loser .fcard-team-avatar{ opacity: .5; }
.fcard-team-name{
  font-size: .78rem;
  font-weight: 800;
  color: #0b3536;
  letter-spacing: .02em;
  line-height: 1.2;
}
.fcard-team--loser .fcard-team-name{ color: rgba(15,23,42,.38); }

/* Score / VS center */
.fcard-score-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-width: 64px;
}
.fcard-score{
  display: flex;
  align-items: center;
  gap: .3rem;
}
.fcard-score-num{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0b3536;
  line-height: 1;
  min-width: 24px;
  text-align: center;
}
.fcard-score-num.fcard-score--win{ color: #16a34a; }
.fcard-score-num.fcard-score--lose{ color: rgba(15,23,42,.30); }
.fcard-score-sep{
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(15,23,42,.25);
}
.fcard-draw-badge{
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .10em;
  color: #b45309;
  background: rgba(244,180,0,.12);
  border: 1px solid rgba(244,180,0,.25);
  border-radius: 999px;
  padding: .1rem .45rem;
}
.fcard-vs{
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(15,23,42,.25);
  letter-spacing: .06em;
}
.fcard-time-badge{
  font-size: .7rem;
  font-weight: 700;
  color: rgba(15,23,42,.45);
  background: rgba(15,61,62,.07);
  border-radius: 999px;
  padding: .15rem .5rem;
}

/* Card footer */
.fcard-venue{
  font-size: .68rem;
  font-weight: 600;
  color: rgba(15,23,42,.40);
  text-align: center;
  padding: .45rem .85rem .55rem;
  border-top: 1px solid rgba(15,61,62,.07);
  background: rgba(248,253,249,.60);
  letter-spacing: .02em;
}

/* Final match highlight */
.fixture-grid:has(.fixture-card:only-child) .fixture-card{
  max-width: 440px;
  margin: 0 auto;
}


   Dark teal header · circular photo bridge · white body
============================================================ */

.committee-section{
  background: linear-gradient(180deg, #f0f6f8 0%, #e8f3f5 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}
.committee-section::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: radial-gradient(circle, rgba(47,122,106,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events:none;
}

.committee-section-title{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: .05em;
  color: #0a2e30;
  margin: .5rem 0 .75rem;
}
.committee-section-sub{
  color: #4a6970;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Responsive grid */
.committee-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (min-width: 576px){
  .committee-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (min-width: 768px){
  .committee-grid{grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;}
}
@media (min-width: 992px){
  .committee-grid{grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;}
}
@media (min-width: 1200px){
  .committee-grid{grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px;}
}

/* The card shell */
.committee-item{position:relative;}

.ccard{
  border-radius: 20px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 14px 42px rgba(2,6,23,.10);
  transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s cubic-bezier(.16,1,.3,1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ccard:hover{
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 28px 72px rgba(2,6,23,.16);
}

/* Dark teal top section */
.ccard-header{
  background: linear-gradient(135deg, #083a3b 0%, #0f5c5e 60%, #1a7b6a 100%);
  border-radius: 20px 20px 0 0;
  height: 90px;
  position: relative;
  overflow: hidden;
}
.ccard-header::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(120% 140% at 20% -10%, rgba(244,180,0,.22), transparent 55%),
              radial-gradient(80% 80% at 90% 110%, rgba(255,255,255,.10), transparent 55%);
}
.ccard-header::after{
  content:"";
  position:absolute;
  bottom:0; left:0; right:0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.08));
}

/* Corner icon */
.ccard-icon-wrap{
  position:absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
  backdrop-filter: blur(8px);
}

/* Circular photo bridging header and body */
.ccard-photo-wrap{
  display: flex;
  justify-content: center;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.ccard-photo{
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(2,6,23,.18);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, filter .35s ease;
  background: #e8f3f5;
}
.ccard:hover .ccard-photo{
  transform: scale(1.10);
  box-shadow: 0 16px 44px rgba(2,6,23,.22), 0 0 0 5px rgba(47,122,106,.20);
  filter: saturate(1.10) contrast(1.04);
}
@media (min-width: 768px){
  .ccard-photo{width: 96px; height: 96px;}
}
@media (max-width: 575.98px){
  .ccard-photo{width: 78px; height: 78px;}
  .ccard-photo-wrap{margin-top: -38px;}
}

/* White card body */
.ccard-body{
  padding: .75rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.ccard-name{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0a2e30;
  letter-spacing: .01em;
  line-height: 1.2;
  margin-top: .4rem;
}
@media (max-width: 575.98px){
  .ccard-name{font-size: .96rem;}
}

.ccard-role{
  margin-top: .35rem;
  color: #1a7b6a;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
}

.ccard-badge-wrap{
  margin-top: .45rem;
  display: flex;
  justify-content: center;
}
.ccard-batch-badge{
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #083a3b;
  background: rgba(26,123,106,.12);
  border: 1px solid rgba(26,123,106,.20);
}

.ccard-divider{
  width: 32px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0f5c5e, #f4b400);
  margin: .75rem auto .6rem;
  opacity: .55;
}

.ccard-footer{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.ccard-season-chip{
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(8,58,59,.75);
  background: rgba(15,92,94,.08);
  border: 1px solid rgba(15,92,94,.14);
}

/* Keep old committee-avatar for fallback if referenced */
.committee-avatar{
  width: 90px;
  height: 90px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #083a3b, #1a7b6a);
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(2,6,23,.18);
  font-weight: 900;
  font-size: 1.8rem;
  color: #fff;
}

/* Smooth anchor scroll */
html{scroll-behavior:smooth;}

/* Full-page animated background (subtle) */
.site-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(244,180,0,.10), transparent 60%),
    radial-gradient(1000px 600px at 90% 30%, rgba(47,122,106,.12), transparent 55%),
    radial-gradient(900px 500px at 30% 85%, rgba(7,43,44,.10), transparent 60%),
    linear-gradient(180deg,#ffffff 0%, #f6fbfa 100%);
}
.site-bg::after{
  content:"";
  position:absolute;
  inset:-30%;
  background-image:
    radial-gradient(circle, rgba(7,43,44,.16) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .15;
  transform: translate3d(0,0,0);
  animation: bg-drift 26s linear infinite;
}
@keyframes bg-drift{
  from{transform: translate3d(0,0,0) rotate(0deg)}
  to{transform: translate3d(6%,6%,0) rotate(2deg)}
}

/* Gallery */
.gallery-section{background: transparent;}
.gallery-item{
  position: relative;
  display: block;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform: translateZ(0);
}
.gallery-item img{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s cubic-bezier(.16,1,.3,1);
}
.gallery-item:hover img{transform: scale(1.08); filter: saturate(1.08) contrast(1.05)}
.gallery-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding: 18px;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.65));
  opacity:0;
  transition: opacity .25s ease;
}
.gallery-item:hover .gallery-overlay{opacity:1;}
.gallery-title{color:#fff; font-weight:800; letter-spacing:.02em;}
.gallery-chip{
  color:#0b1b1b;
  background: rgba(244,180,0,.95);
  font-weight:800;
  border-radius:999px;
  padding: .35rem .75rem;
}

.gallery-lightbox{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(0,0,0,.88);
}
.gallery-lightbox.is-open{display:flex; animation: lb-fade .18s ease both;}
@keyframes lb-fade{from{opacity:0}to{opacity:1}}
.gallery-lightbox-inner{max-width: min(1100px, 96vw); width:100%;}
.gallery-lightbox-inner img{
  width:100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: rgba(255,255,255,.04);
}
.gallery-lightbox-caption{color: rgba(255,255,255,.75); margin-top: 10px; font-weight:600}
.gallery-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-size: 28px;
  line-height: 38px;
}

/* Modern footer */
.footer-modern{
  position: relative;
  overflow:hidden;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(244,180,0,.16), transparent 60%),
    radial-gradient(900px 420px at 85% 70%, rgba(47,122,106,.18), transparent 60%),
    linear-gradient(135deg, #020a16 0%, #061a2d 50%, #050610 100%);
  color: #fff;
}
.footer-modern{padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));}

/* Some mobile browsers (esp. Android) can clip fixed/blur compositions; add spacing */
@media (max-width: 575.98px){
  footer.footer-modern{padding-bottom: calc(2rem + env(safe-area-inset-bottom));}
}
.footer-modern a{color: rgba(255,255,255,.78); text-decoration:none;}
.footer-modern a:hover{color: #fff;}
.footer-pill{border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); border-radius:999px; padding:.55rem .9rem;}
.footer-pill{max-width: 100%; display:inline-flex; align-items:center; gap:.45rem;}
.footer-pill{overflow-wrap:anywhere; word-break:break-word; white-space:normal;}

/* ------------------------------------------------------------
   Extra animations (Fade / Zoom / Slide) for a richer UI
   Usage:
   - Add class: anim anim-fade-in-up (etc)
   - Optionally add: anim-delay-1 .. anim-delay-6
   - For scroll-triggered: use data-anim + JS (see ui.js)
------------------------------------------------------------ */
.anim{will-change: transform, opacity; animation-duration:1.1s; animation-timing-function:cubic-bezier(.16,1,.3,1); animation-fill-mode:both;}
.anim-fast{animation-duration:.7s;}
.anim-slow{animation-duration:1.6s;}

/* Hero section animations are slower and more cinematic */
.hero-stadium [data-anim].anim{
  animation-duration: 1.4s;
  animation-timing-function: cubic-bezier(.10, 0.82, 0.25, 1);
}
.hero-stadium .anim-zoom-in.anim{
  animation-duration: 1.8s;
  animation-timing-function: cubic-bezier(.10, 0.82, 0.25, 1);
}

.anim-delay-1{animation-delay:80ms}
.anim-delay-2{animation-delay:160ms}
.anim-delay-3{animation-delay:240ms}
.anim-delay-4{animation-delay:320ms}
.anim-delay-5{animation-delay:420ms}
.anim-delay-6{animation-delay:520ms}

@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes fade-out{from{opacity:1}to{opacity:0}}
@keyframes fade-in-up{from{opacity:0; transform:translate3d(0,24px,0)}to{opacity:1; transform:translate3d(0,0,0)}}
@keyframes fade-in-down{from{opacity:0; transform:translate3d(0,-24px,0)}to{opacity:1; transform:translate3d(0,0,0)}}
@keyframes fade-in-left{from{opacity:0; transform:translate3d(-28px,0,0)}to{opacity:1; transform:translate3d(0,0,0)}}
@keyframes fade-in-right{from{opacity:0; transform:translate3d(28px,0,0)}to{opacity:1; transform:translate3d(0,0,0)}}

@keyframes zoom-in{from{opacity:0; transform:scale(.94)}to{opacity:1; transform:scale(1)}}
@keyframes zoom-out{from{opacity:0; transform:scale(1.06)}to{opacity:1; transform:scale(1)}}
@keyframes zoom-in-up{from{opacity:0; transform:translate3d(0,26px,0) scale(.94)}to{opacity:1; transform:translate3d(0,0,0) scale(1)}}
@keyframes zoom-out-down{from{opacity:0; transform:translate3d(0,-26px,0) scale(1.06)}to{opacity:1; transform:translate3d(0,0,0) scale(1)}}

@keyframes slide-in-left{from{transform:translate3d(-44px,0,0); opacity:0}to{transform:translate3d(0,0,0); opacity:1}}
@keyframes slide-in-right{from{transform:translate3d(44px,0,0); opacity:0}to{transform:translate3d(0,0,0); opacity:1}}
@keyframes slide-in-up{from{transform:translate3d(0,44px,0); opacity:0}to{transform:translate3d(0,0,0); opacity:1}}
@keyframes slide-in-down{from{transform:translate3d(0,-44px,0); opacity:0}to{transform:translate3d(0,0,0); opacity:1}}

@keyframes slide-out-left{from{transform:translate3d(0,0,0); opacity:1}to{transform:translate3d(-44px,0,0); opacity:0}}
@keyframes slide-out-right{from{transform:translate3d(0,0,0); opacity:1}to{transform:translate3d(44px,0,0); opacity:0}}

.anim-fade-in{animation-name:fade-in}
.anim-fade-out{animation-name:fade-out}
.anim-fade-in-up{animation-name:fade-in-up}
.anim-fade-in-down{animation-name:fade-in-down}
.anim-fade-in-left{animation-name:fade-in-left}
.anim-fade-in-right{animation-name:fade-in-right}

.anim-zoom-in{animation-name:zoom-in}
.anim-zoom-out{animation-name:zoom-out}
.anim-zoom-in-up{animation-name:zoom-in-up}
.anim-zoom-out-down{animation-name:zoom-out-down}

.anim-slide-in-left{animation-name:slide-in-left}
.anim-slide-in-right{animation-name:slide-in-right}
.anim-slide-in-up{animation-name:slide-in-up}
.anim-slide-in-down{animation-name:slide-in-down}

.anim-slide-out-left{animation-name:slide-out-left}
.anim-slide-out-right{animation-name:slide-out-right}

/* Scroll reveal helper (JS toggles .anim-play) */
[data-anim]{opacity:0; transform: translate3d(0,22px,0);}
[data-anim].anim-play{
  opacity:1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 1.0s cubic-bezier(.10,0.82,0.25,1);
}

/* Simple hover motion */
.hover-rise{transition:transform .25s ease, box-shadow .25s ease;}
.hover-rise:hover{transform:translateY(-4px); box-shadow: var(--shadow-md);}

/* ============================================================
   HERO SECTION UPGRADES — bigger title, bolder cards
   ============================================================ */

/* Glowing title */
.hero-title-glow{
  text-shadow: 0 0 60px rgba(244,180,0,.55), 0 4px 32px rgba(0,0,0,.4);
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -.02em;
  color: #fff;
}

/* Bigger matchday strip */
.hero-strip-xl{
  background: linear-gradient(90deg, rgba(244,180,0,.18), rgba(244,180,0,.06));
  border: 1px solid rgba(244,180,0,.35);
  border-radius: 14px;
  padding: .85rem 1.3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
}

/* Bigger meta chips */
.smeta-chip-xl{
  padding: .85rem 1.15rem !important;
  gap: .85rem !important;
  border-radius: 16px !important;
  flex: 1;
}
.smeta-val-lg{
  font-size: .95rem !important;
  font-weight: 700;
}

/* ============================================================
   FIXTURE CARD V2 — with team logos, bigger layout
   ============================================================ */
.fixture-card-v2{
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(15,61,62,.10);
  box-shadow: 0 4px 20px rgba(2,6,23,.07);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.fixture-card-v2::before{
  content:"";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #083a3b, #1a7b6a, #f4b400);
  opacity: 0;
  transition: opacity .26s ease;
}
.fixture-card-v2:hover{ transform: translateY(-4px); box-shadow: 0 14px 38px rgba(2,6,23,.13); }
.fixture-card-v2:hover::before{ opacity: 1; }
.fixture-card-v2.fixture-card--done{ border-color: rgba(15,61,62,.14); background: linear-gradient(180deg,#fff 0%,#f8fdf9 100%); }
.fixture-card-v2.fixture-card--live{ border-color: rgba(239,68,68,.35); box-shadow: 0 8px 24px rgba(239,68,68,.12); }
.fixture-card-v2.fixture-card--live::before{ background: linear-gradient(90deg,#ef4444,#f97316); opacity:1; }

/* V2 match body — grid layout (same as original) */
.fcard-match-v2{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem .85rem .9rem;
}

/* Override team alignment inside v2: center both teams */
.fixture-card-v2 .fcard-team{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: .4rem;
}
.fixture-card-v2 .fcard-team--home{
  align-items: center !important;
  text-align: center !important;
}
.fixture-card-v2 .fcard-team--away{
  align-items: center !important;
  text-align: center !important;
}

/* Team logo */
.fcard-team-logo{
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  background: #f4f8f6;
  padding: 4px;
  border: 1.5px solid rgba(15,61,62,.10);
  display: block;
  transition: transform .2s ease;
}
.fixture-card-v2:hover .fcard-team-logo{ transform: scale(1.06); }

/* Team name inside v2 */
.fixture-card-v2 .fcard-team-name{
  font-size: .76rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  color: #0b3536;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  line-height: 1.2;
}
.fixture-card-v2 .fcard-team--winner .fcard-team-name{ color: #15803d !important; }
.fixture-card-v2 .fcard-team--loser .fcard-team-name{ color: rgba(15,23,42,.38) !important; }
.fixture-card-v2 .fcard-team--winner .fcard-team-avatar{ background: linear-gradient(135deg,#b45309,#f59e0b); }
.fixture-card-v2 .fcard-team--loser .fcard-team-avatar{ opacity: .5; }

/* Winner chip */
.fcard-winner-chip{
  background: #16a34a;
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  padding: .1rem .38rem;
  border-radius: 999px;
  letter-spacing: .12em;
}

/* V2 score/VS center column */
.fcard-score-wrap-v2{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  min-width: 72px;
  flex-shrink: 0;
}
.fcard-score-v2{
  display: flex;
  align-items: center;
  gap: .25rem;
  background: #f0f5f3;
  border-radius: 12px;
  padding: .45rem .75rem;
  border: 1px solid rgba(15,61,62,.08);
}
/* scoped score numbers */
.fcard-score-v2 .fcard-score-num{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 1.55rem !important;
  font-weight: 900;
  color: #0b3536 !important;
  line-height: 1;
  min-width: 22px;
  text-align: center;
}
.fcard-score-v2 .fcard-score-num.fcard-score--win{ color: #16a34a !important; }
.fcard-score-v2 .fcard-score-num.fcard-score--lose{ color: rgba(15,23,42,.28) !important; }
.fcard-score-v2 .fcard-score-sep{
  font-size: .95rem;
  font-weight: 900;
  color: rgba(15,23,42,.22);
  margin: 0;
}
.fcard-vs-v2{
  font-size: 1rem;
  font-weight: 900;
  color: rgba(15,23,42,.32);
  letter-spacing: .10em;
  background: rgba(15,61,62,.07);
  border-radius: 10px;
  padding: .45rem .75rem;
  text-align: center;
}

@media (max-width: 575.98px){
  .fcard-team-logo{ width: 42px; height: 42px; border-radius: 9px; }
  .fcard-score-v2 .fcard-score-num{ font-size: 1.2rem !important; }
  .fixture-card-v2 .fcard-team-name{ font-size: .66rem !important; max-width: 70px; }
  .fcard-score-wrap-v2{ min-width: 54px; }
  .fcard-score-v2{ padding: .35rem .5rem; }
}

/* ============================================================
   GROUP STANDINGS / POINT TABLE
   ============================================================ */
.standings-section{
  background: linear-gradient(180deg, #f7faf9 0%, #edf4f0 100%);
}
.standings-card{
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15,61,62,.10);
  box-shadow: 0 4px 20px rgba(2,6,23,.07);
  overflow: hidden;
}
.standings-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem;
  background: linear-gradient(90deg, #072b2c, #0b3536);
  color: #fff;
}
.standings-group-badge{
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f4b400;
}
.standings-legend{
  display: flex;
  gap: 1rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
}
.standings-row{
  display: flex;
  align-items: center;
  padding: .6rem 1.1rem;
  border-bottom: 1px solid rgba(15,61,62,.06);
  gap: .6rem;
  transition: background .15s;
}
.standings-row:last-child{ border-bottom: none; }
.standings-row:hover{ background: rgba(15,61,62,.03); }
.standings-row--qualify{
  background: rgba(22,163,74,.04);
  border-left: 3px solid #16a34a;
}
.standings-rank{
  width: 22px;
  font-size: .78rem;
  font-weight: 800;
  color: #64748b;
  text-align: center;
  flex-shrink: 0;
}
.standings-team-info{
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1;
  min-width: 0;
}
.standings-logo{
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f7f6;
  border: 1px solid rgba(15,61,62,.10);
  flex-shrink: 0;
}
.standings-logo-placeholder{
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #083a3b, #1a7b6a);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.standings-team-name{
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.standings-qualify-badge{
  background: #16a34a;
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  padding: .1rem .32rem;
  border-radius: 999px;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.standings-stats{
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
  flex-shrink: 0;
}
.standings-pts{
  font-weight: 900;
  color: #083a3b;
  min-width: 18px;
  text-align: center;
}
@media (max-width: 575.98px){
  .standings-legend{ gap: .55rem; font-size: .6rem; }
  .standings-stats{ gap: .55rem; font-size: .7rem; }
  .standings-row{ padding: .55rem .7rem; }
  .standings-header{ padding: .6rem .7rem; }
  .fcard-team-logo{ width: 44px; height: 44px; }
  .fcard-score-num{ font-size: 1.3rem; }
  .fcard-team-name{ font-size: .7rem; max-width: 72px; }
}
