/* Football X-Ray — brand: dark blue, light blue, yellow, red */
:root {
  --navy-900: #050f22;
  --navy-800: #0a1931;
  --navy-700: #0f2347;
  --navy-600: #16305e;
  --blue: #1e4fa3;
  --sky: #4fc3f7;
  --sky-soft: rgba(79, 195, 247, 0.14);
  --yellow: #ffc83d;
  --yellow-soft: rgba(255, 200, 61, 0.14);
  --red: #e63946;
  --red-soft: rgba(230, 57, 70, 0.14);
  --green: #2ecc71;
  --ink: #eaf2ff;
  --muted: #9fb3d1;
  --line: rgba(159, 179, 209, 0.16);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
.hero-grid > *, .grid > * { min-width: 0; }
body {
  margin: 0;
  background: var(--navy-800);
  background-image:
    radial-gradient(1100px 500px at 85% -10%, rgba(30, 79, 163, 0.45), transparent 60%),
    radial-gradient(800px 400px at -10% 10%, rgba(79, 195, 247, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--yellow); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: 0.3px; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; }
h2 { font-size: clamp(24px, 3.4vw, 34px); text-transform: uppercase; }
h3 { font-size: 20px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 15, 34, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 24px/1 var(--head); color: var(--ink); text-transform: uppercase; }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yellow), #ff9f1c); color: var(--navy-900); font-size: 19px;
  box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.18);
}
.logo .x { color: var(--yellow); }
.logo { white-space: nowrap; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
@media (max-width: 760px) { .nav { justify-content: flex-start; } .logo { font-size: 20px; } .logo-mark { width: 30px; height: 30px; } }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--sky-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  font-weight: 700; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy-900); box-shadow: 0 8px 24px rgba(255, 200, 61, 0.25); }
.btn-yellow:hover { color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--sky); }
.header-cta { padding: 9px 14px; font-size: 14px; }
@media (max-width: 760px) { .header-cta { display: none; } .site-header .wrap { gap: 10px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 220px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 60px, transparent 60px 120px);
  transform: perspective(500px) rotateX(60deg); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--red-soft); color: #ff8a93; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,0.25); }
.hero h1 span { color: var(--yellow); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.xray-card {
  position: relative; border-radius: 22px; padding: 22px;
  background: linear-gradient(160deg, rgba(30,79,163,0.55), rgba(10,25,49,0.9));
  border: 1px solid rgba(79,195,247,0.35); box-shadow: var(--shadow), inset 0 0 60px rgba(79,195,247,0.08);
}
.xray-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(79,195,247,0.18) 50%, transparent 52%);
  background-size: 100% 220%; animation: scan 4s linear infinite; mix-blend-mode: screen;
}
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
@media (prefers-reduced-motion: reduce) { .xray-card::before { animation: none; } }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 48px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 700 34px/1 var(--head); color: var(--yellow); }
.stat span { color: var(--muted); font-size: 13px; }
.stat.sky b { color: var(--sky); } .stat.red b { color: var(--red); }

/* ---------- sections & cards ---------- */
section { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--yellow); margin-top: 8px; }
.card { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- badge (club colours + initials) ---------- */
.badge {
  --c1: var(--blue); --c2: var(--sky);
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 700 13px/1 var(--head); letter-spacing: 0.5px;
  background: conic-gradient(from 210deg, var(--c1) 0 50%, var(--c2) 50% 100%);
  color: #fff; text-shadow: 0 0 2px #000, 0 0 4px rgba(0,0,0,0.9), 0 1px 1px #000;
  border: 2px solid rgba(255,255,255,0.18); box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.badge.lg { width: 84px; height: 84px; font-size: 26px; border-width: 3px; }
.badge.sm { width: 26px; height: 26px; font-size: 9px; border-width: 1px; }

/* ---------- match cards ---------- */
.match {
  display: block; color: var(--ink); background: var(--navy-700); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s, transform .15s;
}
.match:hover { color: var(--ink); border-color: rgba(79,195,247,0.55); transform: translateY(-2px); }
.match-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.match-teams { display: grid; gap: 8px; margin: 12px 0; }
.team-line { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.team-line .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 16px; height: 16px; border-radius: 4px; font: 700 10px/16px var(--body); font-style: normal; text-align: center; color: #fff; }
.form i.W { background: var(--green); } .form i.D { background: #6b7c99; } .form i.L { background: var(--red); }
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.teaser b { color: var(--yellow); }
.lock { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- league tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 13px; }
.tab.active, .tab:hover { color: var(--navy-900); background: var(--sky); border-color: var(--sky); }
[data-comp].hidden { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--navy-700); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); background: var(--navy-600); }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: rgba(79,195,247,0.06); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.pts { font-weight: 800; color: var(--yellow); }
.pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--navy-600); font-weight: 700; font-size: 12px; }
tr.zone-top .pos { background: var(--sky); color: var(--navy-900); }
tr.zone-bottom .pos { background: var(--red); color: #fff; }
.club-cell { display: flex; align-items: center; gap: 10px; }

/* ---------- league overview cards ---------- */
.league-card { display: block; color: var(--ink); position: relative; overflow: hidden; }
.league-card:hover { color: var(--ink); border-color: rgba(255,200,61,0.5); }
.league-card .flag { position: absolute; right: -10px; top: -10px; font: 700 70px/1 var(--head); color: rgba(255,255,255,0.04); }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mini-row:first-of-type { border-top: 0; }
.mini-row .p { width: 18px; color: var(--muted); font-weight: 700; }
.mini-row .n { flex: 1; }
.mini-row .v { font-weight: 800; color: var(--yellow); }

/* ---------- pills & key facts ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--sky); font-size: 12px; font-weight: 700; }
.pill.yellow { background: var(--yellow-soft); color: var(--yellow); }
.pill.red { background: var(--red-soft); color: #ff8a93; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fact { background: var(--navy-600); border-radius: 12px; padding: 12px 14px; }
.fact small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.fact strong { font-size: 16px; }

/* ---------- team / match hero ---------- */
.page-hero { padding-top: 40px; padding-bottom: 20px; }
.club-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.colour-bar { height: 6px; border-radius: 3px; margin: 18px 0 0; }
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; }
.vs-grid .side { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.vs-grid .side h2 { margin-top: 10px; font-size: clamp(22px, 4vw, 34px); }
.vs { font: 700 28px/1 var(--head); color: var(--yellow); }
.verdict {
  margin: 22px auto 0; max-width: 640px; text-align: center; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,200,61,0.16), rgba(230,57,70,0.12)); border: 1px solid rgba(255,200,61,0.35);
}
.verdict .big { font: 700 30px/1.1 var(--head); text-transform: uppercase; color: var(--yellow); }
.blur-bars { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 14px 0 8px; filter: blur(3px); opacity: .7; }
.blur-bars span:nth-child(1) { background: var(--sky); flex: 5; }
.blur-bars span:nth-child(2) { background: #6b7c99; flex: 2; }
.blur-bars span:nth-child(3) { background: var(--red); flex: 3; }

/* squad */
.squad-group h3 { display: flex; align-items: center; gap: 10px; }
.squad-group h3 .count { font: 600 12px var(--body); color: var(--muted); }
.player { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.player:first-of-type { border-top: 0; }
.player .meta { color: var(--muted); font-size: 12px; text-align: right; }

/* how it works */
.step { position: relative; padding-top: 30px; }
.step .num { position: absolute; top: -14px; left: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 20px var(--head); background: var(--yellow); color: var(--navy-900); }
.cta-band {
  margin: 30px 0; border-radius: 22px; padding: 34px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--blue), #0f2f6b 60%, rgba(230,57,70,0.6));
  border: 1px solid rgba(79,195,247,0.35); box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 6px; }

/* legal pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 34px; font-size: 26px; }
.prose p, .prose li { color: #cfdcf2; }
.prose li { margin: 6px 0; }
.notice { border-left: 4px solid var(--yellow); background: var(--yellow-soft); padding: 12px 16px; border-radius: 10px; color: var(--ink); }

/* footer */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: var(--navy-900); padding: 34px 0; color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--muted); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--yellow); }
.disclaimer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
