/* GBG — Geng Bola Gelak. Theme inspired by "Kickstar": dark navy, sky-blue actions, orange accents. */
:root {
  --bg: #04121D;
  --bg-2: #061A28;
  --card: #0A2233;
  --card-2: #0D2C42;
  --line: rgba(255, 255, 255, .08);
  --text: #FFFFFF;
  --muted: #A9B8C6;
  --blue: #0AA5F5;
  --blue-2: #0789D0;
  --orange: #F28C38;
  --red: #E53935;
  --radius: 18px;
  --wrap: 1180px;
  --head: 'Jost', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scrollbar-color: #1F4A66 var(--bg); overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* dark scrollbars (no white bar beside dark pages/popups) */
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; position: relative; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.accent { color: var(--orange); }
.blue { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 40px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-2); transform: translateY(-2px); }
.btn .arr { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }
.btn .arr svg { width: 14px; height: 14px; }
.btn.ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn.sm { padding: 6px 16px; font-size: 13px; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff 22%, var(--blue) 24%); box-shadow: 0 0 0 2px rgba(10, 165, 245, .35); }
.section { padding: 100px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0; transition: background .25s, padding .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(4, 18, 29, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); padding: 8px 0; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav ul.right { justify-content: flex-end; align-items: center; }
.nav a.link { font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--blue); }
.brand img { width: 74px; height: 74px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); transition: width .2s, height .2s; }
.site-header.scrolled .brand img { width: 54px; height: 54px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 6px; animation: slide .25s ease; overflow-y: auto; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer .panel a.link { padding: 12px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer .panel a.link[aria-current="page"] { color: var(--blue); }
.drawer .close { align-self: flex-end; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 150px 0 110px; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 18, 29, .7) 0%, rgba(4, 18, 29, .45) 45%, var(--bg) 100%); }
.hero .inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(30px, 8vw, 82px); text-transform: uppercase; letter-spacing: -.01em; margin: 6px 0 18px; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
.hero .lead { max-width: 620px; margin: 0 auto 30px; color: #DCE6EE; font-size: 16px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .sponsor { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .sp-label { font: 600 12px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero .sp-slot { display: grid; place-items: center; width: 260px; max-width: 100%; height: 84px; padding: 12px 22px; border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, .28); background: rgba(10, 34, 51, .45); backdrop-filter: blur(6px); color: var(--muted); font-size: 13px; transition: border-color .2s, background .2s; }
.hero .sp-slot:hover { border-color: var(--blue); }
.hero .sp-slot.has-logo { border-style: solid; border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); }
.hero .sp-slot img { width: 100%; max-height: 52px; object-fit: contain; }
.hero .sp-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .sp-list .sp-slot.has-logo { width: 190px; height: 92px; padding: 10px 16px; }
.hero .sp-list .sp-slot.has-logo img { height: 100%; max-height: 72px; }
@media (max-width: 560px) {
  .hero .sp-list { gap: 8px; }
  .hero .sp-list .sp-slot.has-logo { width: calc(33.333% - 6px); min-width: 96px; height: 70px; padding: 8px 10px; border-radius: 12px; }
  .hero .sp-list .sp-slot.has-logo img { max-height: 54px; }
}
.stats { position: relative; margin-top: -60px; z-index: 2; }
.stats .box { background: rgba(10, 34, 51, .85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 24px; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--bg-2); border-radius: 16px; padding: 22px 12px; text-align: center; }
.stat b { display: block; font: 700 clamp(30px, 4vw, 42px)/1 var(--head); margin-bottom: 6px; }
.stat:nth-child(odd) b { color: var(--orange); }
.stat span { font-size: 14px; font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 170px 0 80px; text-align: center; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 18, 29, .75), rgba(4, 18, 29, .9)); }
.page-hero .inner { position: relative; }
.page-hero h1 { font-size: clamp(36px, 6vw, 60px); }
.crumbs { font-size: 14px; font-weight: 500; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--blue); margin: 0 8px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; padding-left: 52px; }
.about-media img { border-radius: 22px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about-media .since { position: absolute; left: 0; top: 10px; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 15px var(--head); }
.about-media .since b { color: var(--orange); font-size: 40px; margin-top: 8px; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px; }
.mini .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.mini .ic svg { width: 22px; height: 22px; }
.mini h4 { font-size: 18px; margin-bottom: 2px; }
.mini p { font-size: 13px; margin: 0; line-height: 1.55; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 50px 22px 26px; text-align: center; position: relative; margin-top: 30px; }
.feature .ic { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg); }
.section.alt .feature .ic { box-shadow: 0 0 0 6px var(--bg-2); }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; }
.feature p { font-size: 14px; margin: 0; }

/* ---------- Next match ---------- */
.next { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--card); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.next .poster { background: #000; }
.next .poster img { width: 100%; height: 100%; object-fit: cover; }
.next .info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.versus { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 22px; }
.versus .team { text-align: center; font: 600 15px var(--head); }
.versus .team img { width: 96px; height: auto; border-radius: 16px; margin: 0 auto 6px; }
.versus .vs { font: 800 26px var(--head); color: var(--orange); }
/* 3-team match: smaller badges so all three fit */
.versus.three { gap: 12px; }
.versus.three .team { min-width: 0; }
.versus.three .team img { width: 72px; }
.versus.three .vs { font-size: 20px; }
.meta { display: grid; gap: 8px; margin-bottom: 22px; }
.meta div { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.meta svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.countdown div { background: var(--bg-2); border-radius: 14px; padding: 12px 6px; text-align: center; }
.countdown b { display: block; font: 700 28px/1 var(--head); color: var(--orange); }
.countdown span { font-size: 12px; color: var(--muted); }
.live-pill { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }

/* ---------- Results / fixtures ---------- */
.month { background: var(--blue); border-radius: 14px; padding: 14px 22px; font: 700 clamp(20px, 3vw, 28px) var(--head); display: flex; align-items: center; gap: 12px; margin: 34px 0 12px; }
.month:first-child { margin-top: 0; }
.month svg { width: 24px; height: 24px; }
.month-group:first-child > .month { margin-top: 0; }
summary.month { cursor: pointer; list-style: none; user-select: none; }
summary.month::-webkit-details-marker { display: none; }
summary.month:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.month-chev { margin-left: auto; width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.month-group[open] > .month .month-chev { transform: rotate(-135deg) translate(-3px, -3px); }
.month-group:not([open]) > .month { margin-bottom: 0; }
.month-group:not([open]) + .month-group > .month { margin-top: 14px; }
.fixture { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 12px; }
.fixture .teams { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font: 600 19px var(--head); }
.fixture .teams img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.fixture .teams .tm { display: inline-flex; align-items: center; gap: 10px; }
.fixture .teams .match-line { display: contents; }
.fixture .score { font: 800 22px var(--head); color: var(--orange); min-width: 64px; text-align: center; background: var(--bg-2); padding: 4px 12px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.fixture .score.tbc { font-size: 13px; font-weight: 600; color: var(--muted); }
.fixture .right { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; text-align: right; }
.fixture .right .when { color: var(--muted); }
.fixture .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.badge-up { background: var(--orange); color: #111; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }

.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: center; transition: transform .2s, border-color .2s; }
.rcard:hover { transform: translateY(-3px); border-color: rgba(10, 165, 245, .4); }
.rcard .date { text-align: center; min-width: 70px; }
.rcard .date b { display: block; font: 700 26px/1 var(--head); }
.rcard .date span { color: var(--orange); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.rcard h4 { font-size: 18px; margin-bottom: 2px; }
.rcard p { margin: 0; font-size: 13px; }
.rcard .sc { margin-left: auto; font: 800 22px var(--head); color: var(--orange); white-space: nowrap; }
.rcard .sc.tbc { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Match detail / poster strip ---------- */
.match-block { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-bottom: 26px; }
.match-block .head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.match-block h3 { font-size: 26px; margin-bottom: 4px; }
.match-block .sub { color: var(--muted); font-size: 14px; }
.big-score { font: 800 40px/1 var(--head); color: var(--orange); }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.posters button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.posters img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.posters button:hover img { transform: scale(1.04); }

/* ---------- Squad ---------- */
.team-switch { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.team-switch button { border: 0; cursor: pointer; padding: 10px 22px; border-radius: 30px; background: var(--card); color: #fff; font: 600 14px var(--body); box-shadow: inset 0 0 0 1px var(--line); }
.team-switch button[aria-pressed="true"] { background: var(--blue); box-shadow: none; }
.squad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.player { position: relative; padding-top: 70px; }
.player .pic { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 140px; height: 140px; border-radius: 50%; border: 6px solid var(--bg); background: var(--card-2); display: grid; place-items: center; overflow: hidden; z-index: 1; font: 700 40px var(--head); color: #fff; }
.player .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.player .body { background: linear-gradient(180deg, var(--card-2), var(--card)); border-radius: 18px; padding: 84px 20px 22px; text-align: center; border: 1px solid var(--line); }
.player h3 { font-size: 20px; margin-bottom: 2px; }
.player .pos { font-size: 13px; color: var(--muted); }
.player .no { position: absolute; top: 80px; right: 16px; font: 800 30px var(--head); color: rgba(255, 255, 255, .32); }
.player .team-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-top: 10px; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .06); }
.player .team-dot i { width: 8px; height: 8px; border-radius: 50%; }
.team-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; gap: 22px; align-items: center; }
.team-card img { width: 120px; border-radius: 18px; flex: none; }
.team-card h3 { font-size: 26px; }
.team-card.biru { background: linear-gradient(135deg, rgba(10, 165, 245, .22), var(--card) 60%); }
.team-card.merah { background: linear-gradient(135deg, rgba(229, 57, 53, .25), var(--card) 60%); }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry button { display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: var(--card); border-radius: 14px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform .35s, opacity .35s; }
.masonry button:hover img { transform: scale(1.04); opacity: .9; }
.gal-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-preview > * { aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--card); position: relative; }
.gal-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gal-preview > *:hover img { transform: scale(1.05); }
.gal-more { cursor: pointer !important; display: block; }
.gal-more span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(4, 18, 29, .72); font-weight: 600; font-size: 14px; }
.gal-more b { display: block; font: 800 34px/1 var(--head); color: var(--orange); margin-bottom: 4px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(2, 10, 16, .95); z-index: 200; display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lightbox button { position: absolute; border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lightbox button:hover { background: var(--blue); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary { color: var(--orange); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; margin: 0; font-size: 14px; }
.help-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-top: 20px; }
.help-card h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; text-transform: uppercase; }
.help-card h3 i { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-style: normal; font-size: 22px; }

/* ---------- CTA band ---------- */
.band { position: relative; border-radius: 26px; overflow: hidden; padding: 60px 50px; }
.band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.band .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 18, 29, .95), rgba(4, 18, 29, .55)); }
.band .inner { position: relative; max-width: 560px; }
.band h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- Footer ---------- */
.site-footer { background: #030E17; padding-top: 70px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 50px; }
.foot-grid img { width: 90px; margin-bottom: 14px; }
.foot-grid h4 { font-size: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-grid ul a:hover { color: var(--blue); }
.foot-grid li { display: flex; gap: 10px; align-items: flex-start; }
.foot-grid li svg { width: 16px; height: 16px; color: var(--blue); flex: none; margin-top: 4px; }
.copy { border-top: 1px solid var(--line); padding: 18px 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .squad { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 36px; }
  .next { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav ul { display: none; }
  .nav .brand { grid-column: 1; }
  .menu-btn { display: grid; place-items: center; grid-column: 3; }
  .brand img { width: 58px; height: 58px; }
  .split, .next, .result-cards, .team-cards { grid-template-columns: 1fr; }
  .next .poster img { max-height: 520px; object-position: top; }
  .stats .box { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .squad { grid-template-columns: repeat(2, 1fr); }
  .gal-preview { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 120px; }
  .hero .cta .btn { width: 100%; justify-content: space-between; }
  .stats { margin-top: -40px; }
  .stats .box { padding: 10px; gap: 10px; border-radius: 18px; }
  .stat { padding: 16px 8px; }
  .stat span { font-size: 12px; }
  .about-media { padding-left: 38px; }
  .about-media .since b { font-size: 30px; }
  .mini-cards, .features { grid-template-columns: 1fr; }
  .next .info { padding: 26px 20px; }
  .versus .team img { width: 76px; }
  .versus.three .team img { width: 60px; }
  .countdown b { font-size: 22px; }
  .fixture { grid-template-columns: 1fr; padding: 16px; }
  .fixture .teams { font-size: 16px; gap: 10px; }
  .fixture .teams img { width: 32px; height: 32px; }
  /* Mobile: tag on top, whole matchup on ONE row below it */
  .fixture .teams .match-line { order: 3; flex-basis: 100%; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; min-width: 0; }
  .fixture .teams .match-line img { width: 24px; height: 24px; border-radius: 7px; }
  .fixture .teams .tm { gap: 6px; }
  .fixture .teams .vs-sep { font-size: 11px; letter-spacing: .06em; }
  .fixture .right { justify-content: space-between; text-align: left; }
  .rcard { flex-wrap: wrap; }
  .match-block { padding: 20px; }
  .posters { grid-template-columns: repeat(2, 1fr); }
  .squad { gap: 14px; }
  .player { padding-top: 50px; }
  .player .pic { width: 100px; height: 100px; font-size: 30px; border-width: 4px; }
  .player .body { padding: 58px 10px 16px; }
  .player h3 { font-size: 16px; }
  .player .no { top: 56px; right: 10px; font-size: 22px; }
  .team-card { flex-direction: column; text-align: center; }
  .band { padding: 40px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry button { margin-bottom: 10px; }
  .lightbox { padding: 60px 10px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
}

.foot-grid li[hidden] { display: none; }
.pos-head { font-size: 24px; margin: 46px 0 22px; padding-left: 14px; border-left: 4px solid var(--orange); }
.pos-head:first-child { margin-top: 0; }
.squad-note { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 24px; margin: 0 auto 40px; max-width: 760px; text-align: left; }
.squad-note b { font: 800 40px/1 var(--head); color: var(--orange); }
.squad-note p { margin: 0; max-width: 520px; }

/* ---------- Player card button + profile popup ---------- */
button.player { display: block; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
button.player .body { transition: border-color .2s, transform .2s; }
button.player:hover .body { border-color: rgba(10, 165, 245, .5); transform: translateY(-3px); }
.player .more { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--blue); }
.pmodal { position: fixed; inset: 0; z-index: 210; background: rgba(2, 10, 16, .8); display: flex; align-items: center; justify-content: center; padding: 20px; animation: pm-fade .2s ease; }
.pmodal[hidden] { display: none; }
@keyframes pm-fade { from { opacity: 0; } }
.pm-wrap { position: relative; width: min(380px, 86vw, calc((100vh - 60px) * .66)); animation: pm-spin 1.3s cubic-bezier(.15, .75, .25, 1) both; transform-style: preserve-3d; }
.pmodal { perspective: 1400px; }
/* FUT-style reveal: card spins twice (720°) while flying in, then settles with a small overshoot */
@keyframes pm-spin {
  0%   { transform: scale(.35) rotateY(720deg); opacity: 0; filter: brightness(2); }
  15%  { opacity: 1; }
  80%  { transform: scale(1.06) rotateY(-8deg); filter: brightness(1.25); }
  100% { transform: scale(1) rotateY(0); filter: none; }
}
@media (prefers-reduced-motion: reduce) { .pm-wrap { animation: pm-fade .2s ease; } }
.pm-close { position: absolute; top: -6px; right: -6px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #E9C46A; color: #111; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.pm-close:hover { background: #fff; }
.pm-close svg { width: 18px; height: 18px; }
/* Squad: "Show Best XI" button + popup (4-4-2 on a pitch drawn in SVG, our goal at the bottom) */
.xi-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -16px 0 32px; }
.xi-modal { position: fixed; inset: 0; z-index: 210; background: rgba(2, 10, 16, .85); display: flex; align-items: center; justify-content: center; padding: 16px; animation: pm-fade .2s ease; }
.xi-modal[hidden] { display: none; }
/* width follows the screen height so the whole portrait pitch fits without scrolling
   (200px = popup padding + title + note); if a tiny screen still needs to scroll, the scrollbar is dark, not white */
.xi-box { position: relative; width: min(560px, 100%, calc((100vh - 200px) * .755 + 36px)); min-width: min(300px, 100%); max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 14px; }
.xi-box::-webkit-scrollbar { width: 6px; }
.xi-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 3px; }
.xi-box::-webkit-scrollbar-track { background: transparent; }
.xi-box .xi-close { top: 12px; right: 12px; width: 38px; height: 38px; }
.xi-head { display: flex; align-items: center; gap: 12px; margin: 0 50px 14px 4px; }
.xi-head h3 { margin: 0; font: 800 26px/1.2 var(--head); }
.xi-form { padding: 3px 12px; border-radius: 20px; background: var(--orange); color: #111; font: 700 13px/1.4 var(--head); }
.xi-pitch { container-type: inline-size; position: relative; aspect-ratio: 68 / 90; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.xi-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xi-players { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.xi-p { --s: clamp(32px, 12cqw, 60px); position: absolute; width: 22cqw; margin-top: calc(var(--s) / -2); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; }
.xi-pic { position: relative; width: var(--s); height: var(--s); border-radius: 50%; border: 2px solid #E9C46A; background: var(--card-2); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.xi-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.xi-pic b { position: absolute; right: -9px; bottom: -3px; padding: 1px 5px; border-radius: 6px; background: var(--orange); color: #111; font: 800 clamp(8px, 2.2cqw, 11px)/1.3 var(--head); }
.xi-name { max-width: 100%; margin-top: 4px; padding: 1px 7px; border-radius: 6px; background: rgba(4, 18, 29, .85); color: #fff; font: 700 clamp(10px, 3cqw, 14px)/1.3 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xi-pts { margin-top: 1px; color: #fff; font-size: clamp(9px, 2.4cqw, 11px); font-weight: 600; text-shadow: 0 1px 3px #000; }
.xi-note { margin: 12px 4px 0; font-size: 12px; color: var(--muted); }
/* Popup opens with a small pop + a star burst */
.xi-box { animation: xi-pop .5s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes xi-pop { from { opacity: 0; transform: scale(.85) translateY(16px); } }
.xi-burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.xi-burst i { position: absolute; left: 50%; top: 45%; font-style: normal; font-size: var(--sz); line-height: 1; color: var(--c); text-shadow: 0 0 10px var(--c); opacity: 0; animation: xi-star 1.7s cubic-bezier(.15, .8, .3, 1) var(--d) forwards; }
@keyframes xi-star {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 6vmin)) scale(.7) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) { .xi-box { animation: pm-fade .2s ease; } .xi-burst { display: none; } }
@media (max-width: 640px) {
  .xi-modal { padding: 8px; }
  .xi-box { padding: 14px 10px 12px; border-radius: 16px; }
  .xi-head h3 { font-size: 22px; }
}
.fut { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .65)) drop-shadow(0 0 30px rgba(233, 196, 106, .18)); }
.fut text { font-family: var(--head); fill: url(#fc-gold); }
.fut .fc-big { font-size: 58px; font-weight: 800; letter-spacing: -2px; }
.fut .fc-pos { font-size: 22px; font-weight: 700; }
.fut .fc-no { font-size: 40px; font-weight: 800; }
.fut .fc-name { font-size: 40px; font-weight: 800; }
.fut .fc-lbl { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.fut .fc-val { font-size: 25px; font-weight: 700; }
.fut .fc-val.sm { font-size: 17px; }
.fut .fc-lbl.sm { font-size: 11px; letter-spacing: 0; }
.pm-bio { margin: 16px 0 0; font-size: 14px; text-align: center; color: #fff; }
}

/* ---------- Page preloader (shown ~2s on every page load) ---------- */
html.pl-active, html.pl-active body { overflow: hidden; }
.preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #020B12; transition: opacity .45s ease .25s, visibility 0s linear .7s; animation: pl-failsafe 0s linear 4s forwards; }
.preloader.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader.is-entering { opacity: 1; visibility: visible; transition: opacity .25s ease; animation: none; }
.preloader.is-entering .pl-content { opacity: 1; transform: none; }
.pl-glow { position: absolute; top: 50%; left: 50%; width: min(620px, 92vw); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(10, 165, 245, .22) 0%, rgba(242, 140, 56, .07) 38%, transparent 70%); animation: pl-glow 2.2s ease-in-out infinite; }
.pl-content { position: relative; display: flex; flex-direction: column; align-items: center; width: min(560px, calc(100vw - 40px)); text-align: center; transition: opacity .3s ease, transform .45s cubic-bezier(.22, .61, .36, 1); }
.preloader.is-leaving .pl-content { opacity: 0; transform: scale(.94); }
.pl-crest { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin-bottom: 24px; }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(10, 165, 245, .14); border-top-color: var(--blue); border-right-color: var(--orange); box-shadow: 0 0 35px rgba(10, 165, 245, .16), inset 0 0 25px rgba(242, 140, 56, .05); animation: pl-spin 1.4s linear infinite; }
.pl-ring::before, .pl-ring::after { content: ''; position: absolute; border-radius: 50%; }
.pl-ring::before { inset: 10px; border: 1px solid rgba(255, 255, 255, .08); border-bottom-color: rgba(242, 140, 56, .7); animation: pl-spin 2.1s linear infinite reverse; }
.pl-ring::after { inset: -6px; border: 1px solid rgba(10, 165, 245, .15); box-shadow: 0 0 22px rgba(10, 165, 245, .18); }
.pl-crest img { position: relative; width: 92px; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .65)); animation: pl-crest 1.8s ease-in-out infinite; }
.pl-brand { font: 800 clamp(26px, 7vw, 44px)/1 var(--head); white-space: nowrap; color: #fff; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 8px 30px rgba(0, 0, 0, .7); }
.pl-tag { margin-top: 10px; font: 600 11px var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.pl-bar { position: relative; width: 210px; height: 2px; margin-top: 26px; overflow: hidden; background: rgba(255, 255, 255, .12); border-radius: 2px; }
.pl-bar span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--orange)); transform-origin: left; transform: scaleX(0); animation: pl-fill 1.8s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-crest { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pl-glow { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes pl-fill { to { transform: scaleX(1); } }
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .pl-ring, .pl-ring::before, .pl-crest img, .pl-glow { animation: none; }
}

/* ---------- Abstract background decoration ---------- */
/* 1) Site-wide fixed layer: soft blue/orange glows + faint dot grid (sits behind all content). */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .055) 1px, transparent 1.6px) 0 0 / 28px 28px,
    radial-gradient(38vw 38vw at 6% 18%, rgba(10, 165, 245, .13), transparent 70%),
    radial-gradient(34vw 34vw at 96% 72%, rgba(242, 140, 56, .09), transparent 70%),
    radial-gradient(30vw 30vw at 60% 110%, rgba(10, 165, 245, .08), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 60%, #000 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 60%, #000 100%);
}
/* Let the layer show through the alternate sections */
.section.alt { background: rgba(6, 26, 40, .72); }

/* 2) Per-section shapes: content stays above them */
/* clip (not hidden): a clipped box can't be scrolled, so #anchor jumps can't shift a section's content */
.section { overflow: hidden; overflow: clip; }
.section > .wrap { position: relative; z-index: 1; }
.section::before, .section::after { content: ''; position: absolute; pointer-events: none; }

/* Plain sections: diagonal speed stripes in the top-left corner + an orange ring bottom-right */
.section:not(.alt)::before {
  top: -120px; left: -160px; width: 520px; height: 520px; transform: rotate(-12deg);
  background: repeating-linear-gradient(-45deg, rgba(10, 165, 245, .10) 0 2px, transparent 2px 20px);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
          mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.section:not(.alt)::after {
  right: -140px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
  border: 2px solid rgba(242, 140, 56, .12);
  box-shadow: 0 0 0 40px rgba(242, 140, 56, .025), 0 0 0 41px rgba(242, 140, 56, .07);
}

/* Alternate sections: faint football-pitch markings on the right + a blue glow on the left */
.section.alt::before {
  top: 50%; right: -120px; width: 720px; height: 480px; transform: translateY(-50%); opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%23fff' stroke-width='2'%3E%3Crect x='10' y='10' width='580' height='380' rx='4'/%3E%3Cpath d='M300 10v380'/%3E%3Ccircle cx='300' cy='200' r='70'/%3E%3Ccircle cx='300' cy='200' r='4' fill='%23fff'/%3E%3Crect x='10' y='110' width='90' height='180'/%3E%3Crect x='10' y='160' width='34' height='80'/%3E%3Cpath d='M100 160a50 50 0 0 1 0 80'/%3E%3Crect x='500' y='110' width='90' height='180'/%3E%3Crect x='556' y='160' width='34' height='80'/%3E%3Cpath d='M500 160a50 50 0 0 0 0 80'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section.alt::after {
  left: -200px; top: 10%; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 165, 245, .12), transparent);
}

/* Inner-page headers get the stripes too */
.page-hero::before {
  content: ''; position: absolute; z-index: 1; pointer-events: none; right: -100px; bottom: -140px; width: 460px; height: 460px;
  background: repeating-linear-gradient(-45deg, rgba(242, 140, 56, .12) 0 2px, transparent 2px 18px);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent);
          mask-image: radial-gradient(closest-side, #000 25%, transparent);
}
.page-hero .inner { z-index: 2; }

@media (max-width: 560px) {
  .section:not(.alt)::before { width: 340px; height: 340px; left: -140px; }
  .section:not(.alt)::after { width: 240px; height: 240px; right: -110px; bottom: -120px; }
  .section.alt::before { width: 460px; height: 310px; right: -180px; }
}

/* Match category tag (Internal / Friendly) */
.mtag { display: inline-block; vertical-align: middle; font: 700 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.mtag.internal { background: rgba(10, 165, 245, .15); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(10, 165, 245, .35); }
.mtag.friendly { background: rgba(242, 140, 56, .15); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(242, 140, 56, .35); }
.match-block .head .mtag { margin-bottom: 6px; }
.rcard p .mtag { margin-right: 6px; padding: 3px 7px; font-size: 10px; }

/* Next-match card artwork when there is no poster: big team badges with VS */
.next .poster.vs-art { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); min-height: 320px; padding: 30px;
  /* stadium photo with a 30% black overlay */
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), url('../img/site/next-match-bg.jpg?v=3') center 55% / cover no-repeat, #061A28; }
.next .poster.vs-art img { width: clamp(90px, 14vw, 170px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.next .poster.vs-art span { font: 800 clamp(22px, 3vw, 34px) var(--head); color: var(--orange); }
/* 3-team match: smaller badges that shrink to fit inside the box */
.next .poster.vs-art.three { gap: clamp(8px, 1.6vw, 18px); padding: 24px 16px; }
.next .poster.vs-art.three img { width: clamp(64px, 9vw, 120px); min-width: 0; flex: 0 1 auto; }
.next .poster.vs-art.three span { flex: none; font-size: clamp(16px, 2.2vw, 26px); }

/* ---------- Friendly statistics & analytics ---------- */
.fs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.fs-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 14px; text-align: center; }
.fs-box b { display: block; font: 800 34px/1.1 var(--head); color: #fff; }
.fs-box b i { font-style: normal; color: var(--muted); margin: 0 4px; font-weight: 600; }
.fs-box span { font-size: 13px; color: var(--muted); }
.fs-box.good b { color: #2ECC71; }
.fs-box.bad b { color: var(--red); }
.fs-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.fs-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.fs-card h4 { font-size: 18px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fs-card h4 small { font: 500 12px var(--body); color: var(--muted); }
.fs-form { display: flex; gap: 10px; margin-bottom: 18px; }
.fs-res { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; font: 800 18px var(--head); color: #fff; }
.fs-res.W { background: #22B35E; }
.fs-res.D { background: var(--orange); }
.fs-res.L { background: var(--red); }
.fs-res.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.fs-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.fs-list li { display: flex; align-items: center; gap: 10px; }
.fs-list li b { margin-left: auto; font-family: var(--head); }
.fs-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.fs-key .fs-res { margin-left: 8px; }
.fs-key .fs-res:first-child { margin-left: 0; }
.fs-leader { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.fs-leader + .fs-leader { border-top: 1px solid var(--line); }
.fs-leader .pic { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--card-2); border: 2px solid rgba(233, 196, 106, .6); }
.fs-leader .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fs-leader .fs-lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.fs-leader b { display: block; font: 700 20px/1.2 var(--head); }
.fs-leader small { color: var(--muted); font-size: 13px; }

/* Top performers: 2 × 2 grid on wider screens, single column on phones */
@media (min-width: 561px) {
  .fs-leaders { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .fs-leaders .fs-leader + .fs-leader { border-top: 0; }
  .fs-leaders .fs-leader:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
/* Last N games: next match row under the form badges */
.fs-game { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.fs-game .fs-res { width: 36px; height: 36px; font-size: 15px; }
.fs-game .fs-res.vs { background: transparent; border: 1px solid var(--line); color: var(--orange); font-size: 12px; }
.fs-game .op { display: flex; gap: 4px; }
.fs-game .op img { width: 34px; height: 34px; object-fit: cover; border-radius: 9px; }
.fs-game .txt { min-width: 0; }
.fs-game .txt b { display: block; font: 700 16px/1.2 var(--head); }
.fs-game .txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-next { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fs-next .fs-lbl { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
@media (max-width: 560px) {
  .fs-game { gap: 10px; padding: 10px; }
  .fs-game .op img { width: 28px; height: 28px; }
}
@media (max-width: 860px) {
  .fs-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fs-box b { font-size: 28px; }
  .fs-res { width: 40px; height: 40px; }
}

/* ---------- Gallery: one card per match ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); color: inherit; text-align: left; cursor: pointer; font: inherit; transition: transform .25s, border-color .25s, box-shadow .25s; }
.gcard:hover, .gcard:focus-visible { transform: translateY(-4px); border-color: rgba(10, 165, 245, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.gc-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gcard:hover .gc-img img { transform: scale(1.05); }
.gc-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; background: rgba(4, 18, 29, .78); backdrop-filter: blur(4px); font-size: 12px; font-weight: 600; }
.gc-count svg { width: 14px; height: 14px; }
.gc-body { display: grid; gap: 4px; padding: 16px 18px 18px; position: relative; }
.gc-body .mtag { justify-self: start; margin-bottom: 4px; }
.gc-body b { font: 700 19px/1.25 var(--head); }
.gc-body small { color: var(--muted); font-size: 13px; }
.gc-body em { position: absolute; right: 18px; top: 16px; font: 800 18px var(--head); font-style: normal; color: var(--orange); }
#gallery-view[hidden], .gcards[hidden] { display: none; }
.gv-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.gv-head h2 { font-size: clamp(24px, 4vw, 34px); margin: 0; }
.gv-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  .gcards { grid-template-columns: 1fr; }
  .gv-head { gap: 14px; }
}

/* Gallery photos: balanced columns (built in main.js) */
#gallery.masonry { columns: auto; display: flex; gap: 14px; align-items: flex-start; }
#gallery .mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
#gallery .mcol button { margin: 0; }
#gallery img { display: block; width: 100%; height: auto; object-fit: cover; }
.masonry img, .gal-preview img { display: block; }
@media (max-width: 560px) {
  #gallery.masonry, #gallery .mcol { gap: 10px; }
}

.gv-foot { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Registration-closed popup ---------- */
.rc-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 10, 16, .8); backdrop-filter: blur(6px); }
.rc-modal[hidden] { display: none; }
.rc-modal.rc-in { animation: pm-fade .25s ease; }
.rc-box { position: relative; width: min(440px, 100%); padding: 34px 28px 28px; text-align: center; border-radius: 24px; border: 1px solid rgba(10, 165, 245, .3);
  background: radial-gradient(circle at 50% 0%, rgba(10, 165, 245, .22), transparent 60%), var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.rc-in .rc-box { animation: rc-pop .55s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes rc-pop { 0% { transform: scale(.6) translateY(30px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.rc-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.rc-close:hover { background: var(--blue); }
.rc-close svg { width: 16px; height: 16px; }
.rc-icon { position: relative; width: 96px; height: 96px; margin: 0 auto 14px; }
.rc-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.rc-in .rc-icon img { animation: rc-shake .7s ease .35s both; }
@keyframes rc-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
.rc-ball { position: absolute; right: -14px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 30%, #cfd8e0 31% 100%); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .15); }
.rc-in .rc-ball { animation: rc-bounce 1s cubic-bezier(.3, 0, .3, 1) .2s 2 both; }
@keyframes rc-bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-34px) rotate(180deg); } }
.rc-box h3 { font: 800 34px/1.1 var(--head); color: var(--orange); margin: 0 0 8px; }
.rc-box p { color: #DCE6EE; margin: 0 0 20px; }
.rc-box p b { color: #fff; }
.rc-social { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.rc-social a, .rc-social .soon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.rc-social a:hover { background: var(--blue); transform: translateY(-2px); }
.rc-social .soon { opacity: .55; cursor: default; }
.rc-social svg { width: 18px; height: 18px; }
.rc-ok { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .rc-in .rc-box, .rc-in .rc-icon img, .rc-in .rc-ball { animation: none; }
}

/* Gallery pagination (max 8 match cards per page) */
.gpager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.gpager[hidden] { display: none; }
.gpager button { min-width: 42px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer; background: var(--card); color: #fff; font: 600 14px var(--body); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.gpager button:hover:not(:disabled) { background: var(--card-2); }
.gpager button[aria-current="page"] { background: var(--blue); box-shadow: none; }
.gpager button:disabled { opacity: .4; cursor: default; }

/* Fixture targeted from another page (matches.html#id): clear the fixed header + highlight */
.fixture { scroll-margin-top: 120px; }
.fixture.flash { animation: fx-flash 2.4s ease; }
@keyframes fx-flash { 0%, 60% { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 140, 56, .35); } 100% { border-color: var(--line); box-shadow: none; } }

/* ---------- Sponsor page ---------- */
.hero .sp-label a { color: inherit; }
.hero .sp-label a:hover { color: var(--blue); }
.sp-cards { display: grid; gap: 28px; }
.sp-card { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.sp-card.flip { grid-template-columns: 1fr 360px; }
.sp-card.flip .sp-card-logo { order: 2; }
.sp-card-logo { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(10, 165, 245, .14), rgba(4, 18, 29, .6) 70%); border: 1px solid var(--line); padding: 28px; }
.sp-card-logo a { display: grid; place-items: center; width: 100%; height: 100%; }
.sp-card-logo img { max-width: 100%; max-height: 220px; object-fit: contain; transition: transform .3s; }
.sp-card-logo a:hover img { transform: scale(1.04); }
.sp-card-body h2 { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 4px; }
.sp-tagline { font: 600 18px var(--head); margin: 0 0 14px; }
.sp-card-body p { margin: 0 0 12px; }
.sp-points { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; }
.sp-points li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
.sp-points li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px var(--card); border: 2px solid var(--blue); box-sizing: border-box; }
@media (max-width: 860px) {
  .sp-card, .sp-card.flip { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .sp-card.flip .sp-card-logo { order: 0; }
  .sp-card-logo { aspect-ratio: auto; height: 200px; padding: 20px; }
  .sp-card-logo img { max-height: 160px; }
}
.nav .btn { white-space: nowrap; }

/* Squad page — player statistics tables (GK / Defender / Midfielder / Forward) */
.stats-section { scroll-margin-top: 90px; }
.stats-section .stat-block { margin-bottom: 40px; }
.stats-section .stat-block:last-of-type { margin-bottom: 18px; }
.stat-block .pos-head { display: flex; align-items: center; gap: 12px; }
.stat-block .st-count { font: 600 13px var(--body); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 2px 12px; }
.stat-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.stat-table { width: 100%; border-collapse: collapse; min-width: 440px; }
.stat-table th, .stat-table td { padding: 13px 16px; text-align: center; white-space: nowrap; }
.stat-table thead th { font: 700 12px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--card-2); border-bottom: 1px solid var(--line); }
.stat-table tbody tr + tr { border-top: 1px solid var(--line); }
.stat-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.stat-table th.st-name, .stat-table td.st-name { text-align: left; }
.stat-table .st-name { color: #fff; font-weight: 600; }
.stat-table .st-role { display: inline-block; margin-left: 8px; font: 700 11px var(--head); color: var(--blue); background: rgba(10, 165, 245, .12); border-radius: 6px; padding: 2px 7px; vertical-align: middle; }
.stat-table .st-pts { font-weight: 800; color: var(--orange); }
.st-crown { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 8px; width: 15px; height: 15px; color: #E9C46A; }
.st-crown svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.stat-table tr.st-xi { background: rgba(233, 196, 106, .07); }
.stat-table tr.st-xi:hover { background: rgba(233, 196, 106, .12); }
@media (max-width: 600px) {
  .stat-table th, .stat-table td { padding: 11px 12px; }
  .stat-table .st-role { margin-left: 6px; font-size: 10px; padding: 2px 5px; }
}
