/* AUL Female Football — blue & purple */
:root {
  --ink: #0e1035;
  --ink-2: #2a2d55;
  --muted: #6a6e93;
  --line: #e3e5f3;
  --bg: #f4f5fc;
  --surface: #ffffff;
  --surface-2: #f8f8fe;
  --navy: #0b0e3a;
  --navy-2: #151a5c;
  --blue: #3550ff;
  --blue-2: #5b72ff;
  --purple: #7c3aed;
  --violet: #a78bfa;
  --lilac: #efeaff;
  --sky: #e9edff;
  --gold: #ffc23d;
  --green: #12b76a;
  --red: #f04438;
  --amber: #f79009;
  --grad: linear-gradient(135deg, #3550ff 0%, #7c3aed 100%);
  --grad-deep: linear-gradient(140deg, #0b0e3a 0%, #1c1f78 45%, #5a24c9 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 16, 53, .04), 0 8px 24px -8px rgba(14, 16, 53, .12);
  --shadow-lg: 0 24px 60px -20px rgba(40, 30, 140, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15.5px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
:focus-visible { outline: 3px solid rgba(53, 80, 255, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 58, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .bar { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.brand span { line-height: 1.1; font-size: 16px; }
.nav { display: none; margin-left: auto; gap: 2px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.78); transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { color: #fff; background: rgba(255,255,255,.12); }
.nav .btn { margin-left: 8px; }
.menu-btn { margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (min-width: 1020px) { .nav { display: flex; } .menu-btn { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(5, 6, 30, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--navy); color: #fff; padding: 20px; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer.open .panel { transform: none; }
.drawer .panel a { padding: 13px 14px; border-radius: 12px; font-weight: 500; color: rgba(255,255,255,.85); }
.drawer .panel a.on, .drawer .panel a:hover { background: rgba(255,255,255,.1); color: #fff; }
.drawer .close { align-self: flex-end; margin-bottom: 8px; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: transform .08s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(80, 60, 240, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(80, 60, 240, .85); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-danger { background: #fff1f0; color: #c4320a; border-color: #ffd5cf; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(53, 80, 255, .12); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--grad-deep); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 85% 10%, rgba(167, 139, 250, .35), transparent 60%),
  radial-gradient(500px 280px at 5% 100%, rgba(53, 80, 255, .35), transparent 60%); pointer-events: none; }
.hero .pitch-lines, .page-hero .pitch-lines { position: absolute; right: -120px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%); opacity: .09; pointer-events: none; }
.hero .inner { position: relative; padding-top: 44px; padding-bottom: 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin: 12px 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4ff, #d6c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.75); max-width: 560px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.page-hero { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 90% 0%, rgba(167,139,250,.35), transparent 60%); }
.page-hero .inner { position: relative; padding-top: 34px; padding-bottom: 30px; }
.page-hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; margin-top: 6px; }
.page-hero p { color: rgba(255,255,255,.72); margin: 8px 0 0; max-width: 640px; }
.page-hero .tabs { margin-top: 22px; }

/* ---------- Layout ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
@media (min-width: 700px) { .card-pad { padding: 22px; } }
.card h3 { font-size: 17px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-title h3 { font-size: 16px; }
.card-title a { font-size: 13.5px; font-weight: 600; color: var(--blue); }

/* ---------- Tabs / chips ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-hero .tab { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.page-hero .tab.on { background: #fff; color: var(--navy); border-color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sky); color: #2f3fbf; white-space: nowrap; }
.chip.purple { background: var(--lilac); color: #5b21b6; }
.chip.gold { background: #fff4d6; color: #8a5a00; }
.chip.green { background: #e3f8ee; color: #087443; }
.chip.red { background: #ffeceb; color: #b42318; }
.chip.amber { background: #fff3e0; color: #a15c07; }
.chip.dark { background: var(--navy); color: #fff; }
.chip.live { background: #ffe9e8; color: #d92d20; }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f04438; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.form { display: inline-flex; gap: 4px; }
.form i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.form i.W { background: var(--green); } .form i.D { background: #98a2b3; } .form i.L { background: var(--red); }

/* ---------- Team badge & avatars ---------- */
.badge { --c: var(--blue); width: 36px; height: 40px; flex: none; position: relative; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge b { position: relative; font-family: var(--display); font-size: 10px; font-weight: 800; color: #fff; letter-spacing: .02em; margin-top: -3px; }
.badge img { width: 100%; height: 100%; object-fit: contain; }
.badge.lg { width: 64px; height: 72px; } .badge.lg b { font-size: 16px; }
.badge.xl { width: 88px; height: 98px; } .badge.xl b { font-size: 22px; }
.badge.sm { width: 26px; height: 29px; } .badge.sm b { font-size: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--display); font-size: 15px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; }
.avatar.xl { width: 132px; height: 132px; font-size: 44px; border: 4px solid rgba(255,255,255,.25); }

/* ---------- Match cards ---------- */
.match-card { display: block; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; }
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.match-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.match-card .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-card .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 600; font-size: 14px; min-width: 0; }
.match-card .side span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.match-card .mid { text-align: center; }
.match-card .score { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.match-card .time { font-family: var(--display); font-size: 22px; font-weight: 700; }
.match-card .date { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.match-card .venue { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.match-card.feature { background: linear-gradient(160deg, #10155a, #2a1f8f 55%, #6b2ee0); color: #fff; border: 0; }
.match-card.feature .top, .match-card.feature .date, .match-card.feature .venue { color: rgba(255,255,255,.7); }
.match-card.feature .chip { background: rgba(255,255,255,.14); color: #fff; }

.row-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px; transition: background .15s; }
.row-match:first-child { border-top: 0; }
.row-match:hover { background: var(--surface-2); }
.row-match .h { display: flex; align-items: center; gap: 10px; justify-content: flex-end; text-align: right; min-width: 0; font-weight: 600; }
.row-match .a { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.row-match .h span, .row-match .a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-match .sc { min-width: 74px; text-align: center; }
.row-match .sc b { display: inline-block; font-family: var(--display); font-size: 15px; background: var(--navy); color: #fff; padding: 4px 10px; border-radius: 8px; letter-spacing: .04em; }
.row-match .sc .t { font-weight: 700; font-size: 14px; color: var(--ink-2); background: var(--sky); padding: 4px 10px; border-radius: 8px; }
.row-match .sub { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--muted); margin-top: -2px; }
.row-match .win { color: var(--ink); } .row-match .lose { color: var(--muted); font-weight: 500; }
.date-head { padding: 10px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); }
.date-head:first-child { border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.row-match .abbr { display: none; }
@media (max-width: 520px) { .row-match .short-hide { display: none; } .row-match .full { display: none; } .row-match .abbr { display: inline; } table.t .short-hide { display: none; } }
.tabs.centered > :first-child { margin-left: auto; } .tabs.centered > :last-child { margin-right: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.t td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t th.l, table.t td.l { text-align: left; }
table.t td.team { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 140px; }
table.t td.pos { width: 34px; font-weight: 700; color: var(--muted); }
table.t tr.q td.pos { color: var(--blue); }
table.t tr.q td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
table.t td.pts { font-weight: 800; font-family: var(--display); }
table.t tbody tr:hover { background: var(--surface-2); }
.leader { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.leader:first-child { border-top: 0; }
.leader .n { width: 22px; font-weight: 700; color: var(--muted); font-size: 13px; }
.leader .who { flex: 1; min-width: 0; }
.leader .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader .who small { color: var(--muted); font-size: 12.5px; }
.leader .val { font-family: var(--display); font-size: 20px; font-weight: 800; }
.leader.top { background: linear-gradient(90deg, rgba(53,80,255,.06), rgba(124,58,237,.06)); }
.leader.top .n { color: var(--gold); }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tile b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tile span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile.accent { background: var(--grad); color: #fff; border: 0; }
.tile.accent span { color: rgba(255,255,255,.8); }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; margin-top: 30px; max-width: 640px; }
@media (min-width: 640px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counters div { background: rgba(11, 14, 58, .35); padding: 14px 16px; }
.counters b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; }
.counters span { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; letter-spacing: .04em; }

/* ---------- Player cards ---------- */
.player-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; }
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.player-card .ph { position: relative; aspect-ratio: 1 / 1; background: var(--grad-deep); display: grid; place-items: center; overflow: hidden; }
.player-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.player-card .ph .ini { font-family: var(--display); font-size: 42px; font-weight: 800; color: rgba(255,255,255,.9); }
.player-card .ph .num { position: absolute; left: 12px; top: 8px; font-family: var(--display); font-size: 34px; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.player-card .ph .pos { position: absolute; right: 10px; top: 10px; }
.player-card .body { padding: 12px 14px 14px; }
.player-card .body b { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.player-card .body small { color: var(--muted); font-size: 12.5px; }
.player-card .mini { display: flex; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.player-card .mini strong { color: var(--ink); font-family: var(--display); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; height: 100%; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card .cover { aspect-ratio: 16 / 9; background: var(--grad-deep); position: relative; overflow: hidden; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card .cover .art { position: absolute; inset: 0; display: grid; place-items: center; }
.news-card .cover .art svg { width: 46%; opacity: .2; }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 17px; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: 14px; margin: 0; }
.news-card .meta { margin-top: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 22px; margin: 1.4em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 1.2em 0 .4em; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--purple); color: var(--ink); font-style: italic; }
.prose ul { padding-left: 1.2em; }

/* ---------- Feature (AUL team) ---------- */
.aul-feature { position: relative; border-radius: 24px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b0e3a, #23208a 50%, #7c3aed); padding: 26px; box-shadow: var(--shadow-lg); }
.aul-feature::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); }
.aul-feature h3 { font-size: 24px; margin: 8px 0 6px; }
.aul-feature p { color: rgba(255,255,255,.72); margin: 0 0 16px; }
.aul-feature .rec { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 20px; }
.aul-feature .rec div b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; }
.aul-feature .rec div span { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Match centre ---------- */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 10px 0 6px; }
.scoreboard .side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(15px, 3vw, 20px); }
.scoreboard .big { font-family: var(--display); font-size: clamp(44px, 10vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; text-align: center; }
.scoreboard .big small { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.65); letter-spacing: 0; margin-top: 6px; }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 13px; color: rgba(255,255,255,.78); margin-top: 8px; }
.scorers div:first-child { text-align: right; }
.timeline { position: relative; padding: 8px 0; }
.tl-item { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 10px; padding: 8px 0; }
.tl-item .min { text-align: center; font-weight: 800; font-family: var(--display); font-size: 13px; background: var(--sky); color: #2f3fbf; border-radius: 999px; padding: 4px 0; }
.tl-item .ev { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tl-item .ev.home { justify-content: flex-end; text-align: right; }
.tl-item .ev small { color: var(--muted); display: block; font-size: 12px; }
.ico { width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; }
.card-y { width: 12px; height: 16px; border-radius: 3px; background: #fdb022; display: inline-block; }
.card-r { width: 12px; height: 16px; border-radius: 3px; background: #f04438; display: inline-block; }
.stat-bar { margin: 14px 0; }
.stat-bar .lbl { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.stat-bar .lbl span { font-weight: 600; color: var(--muted); font-size: 13px; }
.stat-bar .bars { display: flex; gap: 4px; height: 8px; }
.stat-bar .bars i { border-radius: 99px; background: var(--blue); }
.stat-bar .bars i + i { background: var(--purple); }
.lineup-list { display: flex; flex-direction: column; }
.lineup-list a, .lineup-list div.p { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.lineup-list .no { width: 26px; text-align: center; font-weight: 800; font-family: var(--display); color: var(--muted); }
.live-feed .item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.live-feed .item:first-child { border-top: 0; }
.live-feed .item .m { flex: none; width: 44px; text-align: center; font-weight: 800; font-family: var(--display); color: var(--purple); }
.live-feed .item.goal { background: linear-gradient(90deg, rgba(53,80,255,.06), transparent); border-radius: 12px; }

/* ---------- Bracket ---------- */
.bracket { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 12px; }
.bracket .round { flex: none; width: 250px; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bracket .round h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--font); font-weight: 700; margin-bottom: 4px; }
.bracket .tie { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: block; }
.bracket .tie .r { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.bracket .tie .r + .r { border-top: 1px solid var(--line); }
.bracket .tie .r span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket .tie .r b { font-family: var(--display); }
.bracket .tie .r.lose { color: var(--muted); font-weight: 500; }
.bracket .tie .foot { font-size: 11.5px; color: var(--muted); padding: 6px 12px; background: var(--surface-2); border-top: 1px solid var(--line); }

/* ---------- Gallery ---------- */
.album { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--grad-deep); box-shadow: var(--shadow); }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album:hover img { transform: scale(1.04); }
.album .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(6, 8, 35, .85)); color: #fff; }
.album .cap b { display: block; font-family: var(--display); }
.album .cap small { color: rgba(255,255,255,.75); }
.photos { columns: 2 160px; column-gap: 10px; }
.photos button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sky); break-inside: avoid; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4, 5, 25, .94); display: none; align-items: center; justify-content: center; padding: 50px 12px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 10px; }
.lightbox .x, .lightbox .prev, .lightbox .next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .x { top: 12px; right: 12px; } .lightbox .prev { left: 12px; top: 50%; } .lightbox .next { right: 12px; top: 50%; }
.lightbox .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--grad-deep); border: 0; padding: 0; width: 100%; cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb .play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; padding: 36px 18px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; opacity: .35; margin: 0 auto 10px; }
.empty b { display: block; color: var(--ink-2); font-size: 15.5px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, #eceef8 25%, #f6f7fd 37%, #eceef8 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 14px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); margin-top: 40px; padding: 40px 0 26px; font-size: 14px; }
.site-footer .cols { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; }
.site-footer .cols > div:first-child { grid-column: 1 / -1; }
@media (min-width: 820px) { .site-footer .cols > div:first-child { grid-column: auto; } }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
@media (min-width: 960px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth .art { display: none; position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; padding: 48px; }
@media (min-width: 960px) { .auth .art { display: flex; flex-direction: column; justify-content: space-between; } }
.auth .art h2 { font-size: 40px; font-weight: 800; max-width: 460px; }
.auth .art p { color: rgba(255,255,255,.7); max-width: 420px; }
.auth .art .pitch-lines { position: absolute; right: -160px; bottom: -160px; width: 600px; opacity: .1; }
.auth .form-side { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth .box { width: 100%; max-width: 400px; }
.auth .box h1 { font-size: 28px; font-weight: 800; margin: 18px 0 6px; }
.auth .box > p { color: var(--muted); margin-bottom: 22px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; background: #fff1f0; color: #b42318; border: 1px solid #ffd5cf; }
.alert.ok { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.alert.info { background: var(--sky); color: #2f3fbf; border-color: #d4dbff; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--surface-2); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-lg); animation: up .25s ease; pointer-events: auto; }
.toast.err { background: #b42318; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.btn svg, .icon-btn svg { width: 18px; height: 18px; flex: none; }
.avatar svg { width: 22px; height: 22px; }

/* ---------- Responsive safety net: nothing may push the page wider than the screen ---------- */
.grid > *, .split > *, .stack > *, .tiles > *, .row > *, .board-wrap > * { min-width: 0; }
.grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); } }
.grid-wide { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1150px) { .grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card h3, .player-card b, .news-card h3 { overflow-wrap: anywhere; }
.seg { max-width: 100%; flex-wrap: wrap; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
img, svg, video, canvas, iframe { max-width: 100%; }
@media (max-width: 480px) {
  .list-row { flex-wrap: wrap; }
  .list-row .grow { flex-basis: 60%; }
  .section { padding: 26px 0; }
  .card-pad { padding: 16px; }
  .hello, .aul-feature { padding: 18px; }
  .counters b { font-size: 22px; }
  .tile b { font-size: 24px; }
  .tile { padding: 14px; }
  .leader { padding: 10px 12px; gap: 10px; }
  .scoreboard { gap: 6px; }
  .match-card { padding: 14px; }
  .match-card .score { font-size: 26px; }
  .tl-item { grid-template-columns: 1fr 44px 1fr; gap: 6px; }
  .tl-item .ev { font-size: 13px; }
  .p-head .row { width: 100%; }
}
@media (max-width: 340px) { .grid-4.teams-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) {
  .brand span { font-size: 14.5px; }
  .brand small { font-size: 9.5px; letter-spacing: .1em; }
  .tabs .tab { padding: 8px 13px; font-size: 13.5px; }
}
@media (max-width: 600px) { .teams-grid .card { flex-direction: column; text-align: center; gap: 10px !important; } }

/* ---------- No sideways scrolling: things wrap, stack or drop columns instead ---------- */
.tabs.centered { justify-content: center; } .tabs.centered > :first-child, .tabs.centered > :last-child { margin: 0; }
@media (max-width: 430px) { table.t .p3 { display: none; } }
@media (max-width: 900px) {
  .bracket { flex-direction: column; overflow: visible; gap: 18px; }
  .bracket .round { width: 100%; }
  .bracket .round h4 { margin-top: 4px; }
}
@media (max-width: 700px) {
  table.t.stack, table.t.stack tbody, table.t.stack tr, table.t.stack td { display: block; width: 100%; }
  table.t.stack thead { display: none; }
  table.t.stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.t.stack tr:last-child { border-bottom: 0; }
  table.t.stack tr:nth-child(even) td, table.t.stack tbody tr:hover { background: none; }
  table.t.stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: normal; text-align: right; min-width: 0; }
  table.t.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  table.t.stack td:first-child { grid-column: 1 / -1; text-align: left; font-size: 15px; padding-bottom: 6px; }
  table.t.stack td:first-child::before, table.t.stack td[data-label=""]::before { display: none; }
  table.t.stack td[colspan] { grid-column: 1 / -1; }
  table.t.stack .input { max-width: 96px; }
}
