/* =============================================================
   Comfit Bangladesh — public site styles
   ============================================================= */
:root {
  --bg: #050d09;
  --bg-2: #0a1711;
  --surface: #0f2119;
  --surface-2: #142b20;
  --line: rgba(255, 255, 255, .08);
  --text: #f2f7f4;
  --muted: #94a99d;
  --green: #00a651;
  --green-2: #19d36f;
  --red: #e4252b;
  --yellow: #ffe500;
  --paper: #f4f6f2;
  --ink: #0b1510;
  --ink-muted: #5c6b62;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: .3px; text-transform: uppercase; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.paper { background: var(--paper); color: var(--ink); }
.section.paper .muted { color: var(--ink-muted); }
.section.alt { background: var(--bg-2); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--green-2);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.paper .eyebrow { color: var(--green); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(38px, 5.5vw, 64px); margin-top: 10px; }
.section-head h2 span { color: var(--green-2); }
.paper .section-head h2 span { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--green); color: #fff; transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(0, 166, 81, .7);
}
.btn:hover { transform: translateY(-2px); background: var(--green-2); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.paper .btn.ghost { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2); color: var(--ink); }
.btn.yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 229, 0, .5); }
.link-arrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-2); display: inline-flex; gap: 8px; align-items: center; }
.paper .link-arrow { color: var(--green); }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(5, 13, 9, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 1px; line-height: 1; text-transform: uppercase; }
.brand-text small { display: block; font-size: 11px; letter-spacing: 4px; color: var(--green-2); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255, 255, 255, .82);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-links a.active { color: var(--ink); background: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.nav-cta { padding: 10px 20px; font-size: 15px; }

@media (max-width: 1080px) {
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(5, 13, 9, .97); backdrop-filter: blur(14px); padding: 16px 20px 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .35s, opacity .35s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 20px; padding: 12px 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 980px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 13, 9, .55) 0%, rgba(5, 13, 9, 0) 28%),
    linear-gradient(90deg, rgba(5, 13, 9, .92) 0%, rgba(5, 13, 9, .55) 45%, rgba(5, 13, 9, .05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 13, 9, 0) 35%);
}
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-text { max-width: 720px; padding-top: 40px; }
.hero-text h1 { font-size: clamp(54px, 9vw, 124px); margin: 18px 0 18px; line-height: .92; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero-text h1 em { font-style: normal; color: var(--yellow); }
.hero-text p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-text > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 46px; }
.hero-dots .wrap { display: flex; gap: 10px; }
.hero-dots button { width: 44px; height: 4px; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.hero-dots button.active::after { content: ""; position: absolute; inset: 0; background: var(--yellow); animation: fill 7s linear forwards; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-match {
  position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 46px;
  width: 360px; padding: 20px 22px; border-radius: var(--radius);
  background: rgba(10, 23, 17, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow);
}
.hero-match .label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-match .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0 10px; text-align: center; }
.hero-match .team-name { font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; line-height: 1.1; }
.hero-match .score { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: 2px; }
.hero-match .vs { font-family: var(--display); font-size: 22px; color: var(--muted); }
.hero-match .meta { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .hero-match { left: 24px; right: 24px; width: auto; bottom: 80px; }
  .hero-dots { bottom: 40px; }
  .hero-text { padding-top: 0; margin-top: -120px; }
}

.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--green); color: #fff; overflow: hidden; white-space: nowrap; position: relative; }
.ticker-track { display: inline-flex; gap: 0; animation: marquee 40s linear infinite; padding: 14px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; border-right: 1px solid rgba(255, 255, 255, .25); }
.ticker-item b { background: rgba(0, 0, 0, .25); padding: 2px 10px; border-radius: 6px; }
.ticker-item .res { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.res.W { background: var(--yellow); color: var(--ink); }
.res.D { background: #cfd8d3; color: var(--ink); }
.res.L { background: var(--red); color: #fff; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Club numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.number { background: var(--bg-2); padding: 34px 28px; position: relative; }
.number strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 76px); line-height: 1; color: #fff; }
.number span { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.number::after { content: ""; position: absolute; left: 28px; top: 0; width: 36px; height: 3px; background: var(--green); }
.number:nth-child(2)::after { background: var(--yellow); }
.number:nth-child(3)::after { background: var(--red); }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Match center ---------- */
.match-center { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
@media (max-width: 900px) { .match-center { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.paper .card { background: #fff; border-color: rgba(0, 0, 0, .06); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); }
.next-match {
  padding: 36px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(0, 166, 81, .35) 0%, rgba(0, 166, 81, 0) 55%), var(--surface);
}
.next-match .comp { font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 30px 0; text-align: center; }
.crest { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); overflow: hidden; }
.crest img { width: 78%; height: 78%; object-fit: contain; }
.crest.initials { font-family: var(--display); font-weight: 800; font-size: 32px; color: #fff; background: linear-gradient(135deg, #24382e, #12241b); }
.versus .tname { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.versus .mid { font-family: var(--display); font-weight: 800; font-size: 48px; color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; }
.countdown span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.match-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.match-meta span { display: inline-flex; align-items: center; gap: 7px; }

.results-list { padding: 10px 0; }
.result-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--line); transition: background .2s; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: rgba(255, 255, 255, .03); }
.result-row .date { font-family: var(--display); text-align: center; line-height: 1; }
.result-row .date b { display: block; font-size: 28px; }
.result-row .date span { font-size: 12px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.result-row .opp { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.result-row .comp { font-size: 13px; color: var(--muted); }
.scorebox { display: flex; align-items: center; gap: 10px; }
.scorebox .sc { font-family: var(--display); font-weight: 800; font-size: 26px; background: rgba(255, 255, 255, .06); padding: 4px 12px; border-radius: 8px; min-width: 74px; text-align: center; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 8px; }
.card-head h3 { font-size: 24px; }

/* ---------- Top performers ---------- */
.performers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .performers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .performers { grid-template-columns: 1fr; } }
.perf {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 380px;
  background: linear-gradient(160deg, #11281d 0%, #07130d 100%); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: transform .3s, border-color .3s;
}
.perf:hover { transform: translateY(-6px); border-color: rgba(25, 211, 111, .5); }
.perf .bgnum { position: absolute; right: -10px; top: -30px; font-family: var(--display); font-weight: 800; font-size: 220px; line-height: 1; color: rgba(255, 255, 255, .05); }
.perf .photo { position: absolute; inset: 0; }
.perf .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.perf .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 13, 9, .98) 25%, rgba(5, 13, 9, .1) 70%); }
.perf > *:not(.photo):not(.bgnum):not(.cat) { position: relative; z-index: 1; }
.perf .cat { position: absolute; top: 22px; left: 22px; z-index: 2; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.perf .big { font-family: var(--display); font-weight: 800; font-size: 84px; line-height: .9; color: var(--green-2); }
.perf .big small { font-size: 20px; color: var(--muted); margin-left: 6px; letter-spacing: 1px; }
.perf h3 { font-size: 30px; margin-top: 8px; }
.perf .pos { color: var(--muted); font-size: 14px; }

/* ---------- Avatar placeholder ---------- */
.avatar-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 35%, #1f4231 0%, #0a1711 72%); }
.avatar-ph svg { width: 82%; height: auto; opacity: .13; margin-bottom: -2px; }
.avatar-ph .ini { display: none; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.news-feature:hover img { transform: scale(1.04); }
.news-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 10%, rgba(0, 0, 0, 0) 65%); }
.news-feature .body { position: relative; z-index: 1; padding: 34px; }
.news-feature h3 { font-size: clamp(30px, 3.6vw, 46px); margin: 12px 0 10px; }
.news-feature p { color: rgba(255, 255, 255, .8); max-width: 560px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; background: var(--green); color: #fff; }
.tag.t-award { background: var(--yellow); color: var(--ink); }
.tag.t-performance { background: var(--red); }
.tag.t-blog { background: #2f4bff; }
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 12px; border-radius: 14px; transition: background .2s; }
.news-item:hover { background: rgba(0, 0, 0, .04); }
.section:not(.paper) .news-item:hover { background: rgba(255, 255, 255, .04); }
.news-item .thumb { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #ddd; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h4 { font-size: 22px; margin: 8px 0 4px; line-height: 1.08; }
.news-item .date { font-size: 13px; }

.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-cards { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; transition: transform .3s; }
.post-card:hover { transform: translateY(-6px); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 26px; margin: 12px 0 8px; }
.post-card p { font-size: 15px; flex: 1; }
.post-card .by { font-size: 13px; }

/* ---------- Quotes ---------- */
.quotes { position: relative; overflow: hidden; }
.quotes-bg { position: absolute; inset: 0; }
.quotes-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.quotes-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 120, 58, .94), rgba(5, 13, 9, .93)); }
.quote-slider { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; text-align: center; min-height: 300px; }
.quote { position: absolute; inset: 0; opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; pointer-events: none; }
.quote.active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.quote .mark { font-family: Georgia, serif; font-size: 140px; line-height: .6; color: var(--yellow); height: 60px; }
.quote blockquote { margin: 10px 0 28px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; text-transform: none; letter-spacing: 0; }
.quote cite { font-style: normal; font-weight: 700; letter-spacing: 1px; }
.quote cite span { display: block; color: rgba(255, 255, 255, .7); font-weight: 500; font-size: 14px; }
.quote-dots { display: flex; gap: 10px; justify-content: center; margin-top: 30px; position: relative; z-index: 1; }
.quote-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .3); padding: 0; transition: all .3s; }
.quote-dots button.active { background: var(--yellow); width: 30px; border-radius: 6px; }

/* ---------- Awards ---------- */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.award {
  position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, #1b2a12 0%, #0d1a12 60%); border: 1px solid rgba(255, 229, 0, .18);
}
.award::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 229, 0, .25), transparent 70%); }
.award .trophy { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); margin-bottom: 20px; }
.award h3 { font-size: 28px; color: var(--yellow); }
.award .who { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; margin-top: 6px; }
.award .where { font-size: 14px; color: var(--muted); margin-top: 4px; }
.award .desc { font-size: 14px; color: rgba(255, 255, 255, .78); margin-top: 12px; margin-bottom: 0; }
.award .img { margin: -28px -28px 22px; aspect-ratio: 16/9; overflow: hidden; }
.award .img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Squad ---------- */
.squad-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.player-card { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; display: block; }
.player-card:hover { transform: translateY(-6px); border-color: rgba(25, 211, 111, .5); }
.player-card .photo { position: absolute; inset: 0; }
.player-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.player-card:hover .photo img { transform: scale(1.05); }
.player-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 13, 9, .96) 12%, rgba(5, 13, 9, 0) 55%); }
.player-card .info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px; }
.player-card .num { position: absolute; z-index: 1; top: 14px; right: 18px; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.player-card .pos { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.player-card h3 { font-size: 28px; margin-top: 4px; }
.player-card .cap { position: absolute; z-index: 1; top: 18px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--display); font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; font-size: 15px; transition: all .2s; }
.chip:hover { border-color: rgba(255, 255, 255, .3); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.paper .chip { color: var(--ink); border-color: rgba(0, 0, 0, .12); }
.paper .chip.active { color: #fff; }

/* ---------- Stats table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table.stats { width: 100%; border-collapse: collapse; min-width: 680px; }
table.stats th, table.stats td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.stats th { font-family: var(--display); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; color: var(--muted); background: rgba(0, 0, 0, .2); cursor: pointer; user-select: none; position: sticky; top: 0; }
table.stats th.sorted { color: var(--yellow); }
table.stats td:first-child, table.stats th:first-child { text-align: left; }
table.stats tbody tr { transition: background .2s; }
table.stats tbody tr:hover { background: rgba(255, 255, 255, .03); }
table.stats td b { font-family: var(--display); font-size: 19px; }
.pl-cell { display: flex; align-items: center; gap: 12px; }
.pl-cell .mini { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--muted); flex: none; }
.pl-cell .mini img { width: 100%; height: 100%; object-fit: cover; }
.pl-cell strong { display: block; line-height: 1.2; }
.pl-cell small { color: var(--muted); }

/* ---------- Gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; grid-auto-flow: dense; }
.mosaic a { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); }
.mosaic a:nth-child(10n+1) { grid-column: 1 / span 2; grid-row: span 2; }
.mosaic a:nth-child(10n+6) { grid-column: 3 / span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic a .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-size: 14px; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); opacity: 0; transition: opacity .3s; }
.mosaic a:hover .cap { opacity: 1; }
@media (max-width: 800px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .mosaic a:nth-child(10n+6) { grid-column: 1 / span 2; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 92vw; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #ddd; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Legends ---------- */
.legends { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.legend { display: grid; grid-template-columns: 140px 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 12px 34px -20px rgba(0, 0, 0, .35); }
.legend .ph { position: relative; background: linear-gradient(160deg, #0f2a1d, #050d09); min-height: 220px; }
.legend .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.legend .ph .ini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 54px; color: rgba(255, 255, 255, .25); }
.legend .bd { padding: 22px; color: var(--ink); }
.legend .yrs { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--green); }
.legend h3 { font-size: 28px; margin: 6px 0 4px; }
.legend .nums { display: flex; gap: 18px; margin: 12px 0; }
.legend .nums div b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; }
.legend .nums div span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); }
.legend p { font-size: 14px; color: var(--ink-muted); margin: 0; }
.legend .ach { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 420px) { .legend { grid-template-columns: 1fr; } .legend .ph { min-height: 200px; } }

/* ---------- About & Contact ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-img .badge { position: absolute; right: -14px; bottom: -24px; background: var(--yellow); color: var(--ink); padding: 18px 24px; border-radius: 16px; font-family: var(--display); box-shadow: var(--shadow); }
.about-img .badge b { display: block; font-size: 44px; line-height: 1; }
.about-img .badge span { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.about-text h2 { font-size: clamp(38px, 5vw, 58px); margin: 12px 0 20px; }
.about-facts { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.about-facts div b { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.about-facts div span { font-size: 13px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px; }
.contact-card .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(0, 166, 81, .15); color: var(--green-2); display: grid; place-items: center; flex: none; }
.contact-card small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-card a, .contact-card div > span { font-weight: 600; font-size: 17px; word-break: break-word; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--green); border-color: var(--green); }
.contact-form { padding: 30px; display: grid; gap: 14px; }
.contact-form label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-img, none) center/cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 13, 9, .6) 60%, rgba(5, 13, 9, .9) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(56px, 9vw, 110px); margin-top: 12px; }
.page-hero p { max-width: 640px; color: rgba(255, 255, 255, .78); font-size: 18px; margin-top: 14px; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: -30px 0 40px; aspect-ratio: 16/9; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.prose h2 { font-size: 38px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 28px; margin: 1.3em 0 .5em; }
.prose a { color: var(--green-2); text-decoration: underline; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--yellow); font-size: 22px; font-style: italic; color: #fff; }
.prose img { border-radius: 12px; margin: 1.4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- Player profile ---------- */
.profile { display: grid; grid-template-columns: 420px 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }
.profile .pic { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.profile .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile .bignum { font-family: var(--display); font-weight: 800; font-size: 120px; line-height: .8; color: var(--green-2); }
.profile h1 { font-size: clamp(48px, 7vw, 86px); margin: 10px 0; }
.bio-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 26px 0; }
.bio-facts div { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.bio-facts small { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bio-facts b { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.stat-tile { padding: 20px; border-radius: 14px; background: linear-gradient(160deg, #123222, #0a1711); border: 1px solid var(--line); }
.stat-tile b { display: block; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.stat-tile span { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Fixtures page ---------- */
.fixture-list { display: grid; gap: 14px; }
.fixture { display: grid; grid-template-columns: 110px 1fr auto 1fr 150px; align-items: center; gap: 18px; padding: 22px 26px; }
.fixture .when { font-family: var(--display); line-height: 1.1; }
.fixture .when b { display: block; font-size: 24px; }
.fixture .when span { font-size: 13px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.fixture .side { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.fixture .side.right { justify-content: flex-end; text-align: right; }
.fixture .mid { font-family: var(--display); font-weight: 800; font-size: 32px; text-align: center; min-width: 110px; padding: 6px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.fixture .mid.up { font-size: 20px; color: var(--muted); }
.fixture .info { font-size: 13px; color: var(--muted); text-align: right; }
.fixture .scorers { grid-column: 1 / -1; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.fixture.live { border-color: rgba(228, 37, 43, .6); box-shadow: 0 0 0 1px rgba(228, 37, 43, .3), 0 20px 50px -30px rgba(228, 37, 43, .8); }
@media (max-width: 820px) {
  .fixture { grid-template-columns: 1fr auto 1fr; padding: 18px; }
  .fixture .when, .fixture .info { grid-column: 1 / -1; text-align: center; }
  .fixture .side { font-size: 17px; }
}
.form-guide { display: flex; gap: 6px; }
.form-guide .res { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px; background: linear-gradient(120deg, var(--green) 0%, #007a3c 60%, #005a2c 100%); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--red); opacity: .9; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); max-width: 680px; }
.cta-band p { max-width: 560px; color: rgba(255, 255, 255, .88); margin: 14px 0 26px; font-size: 18px; }
@media (max-width: 640px) { .cta-band { padding: 40px 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: #030806; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--green-2); }
.foot-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.flag-bar { height: 5px; background: linear-gradient(90deg, var(--green) 0 70%, var(--red) 70% 100%); }

/* ---------- Misc ---------- */
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.demo-banner { position: fixed; z-index: 60; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 229, 0, .95); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
.demo-banner a { text-decoration: underline; }
.loader { min-height: 100vh; display: grid; place-items: center; }
.loader img { width: 140px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 640px) { .section { padding: 70px 0; } .wrap { padding: 0 16px; } }
@media (max-width: 560px) {
  .result-row { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 14px 16px; }
  .result-row .opp { font-size: 17px; }
  .scorebox .sc { min-width: 60px; font-size: 22px; }
  .number { padding: 26px 20px; }
  .card-head { padding: 20px 16px 6px; }
  .next-match { padding: 26px 20px; }
  .hero-text h1 { font-size: 52px; }
}
