/* ============ Tokens ============ */
:root {
  --navy: #0b2a5b;
  --navy-2: #0f3673;
  --blue: #1550a8;
  --blue-2: #2f6fd6;
  --sky: #e8f0fc;
  --gold: #f5b700;
  --gold-2: #ffcb2e;
  --ink: #14213d;
  --text: #1f2a3d;
  --muted: #5d6b82;
  --line: #e3e8f0;
  --bg: #f4f6fa;
  --card: #ffffff;
  --win: #16a34a;
  --draw: #94a3b8;
  --loss: #dc2626;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 30, 60, .06), 0 6px 20px rgba(15, 30, 60, .06);
  --shadow-lg: 0 12px 40px rgba(11, 42, 91, .18);
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: .95rem; font-family: var(--sans); transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--sky); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 0 var(--blue), 0 6px 20px rgba(0, 0, 0, .15); }
.site-header::before { content: ""; display: block; height: 4px; background: repeating-linear-gradient(90deg, var(--blue-2) 0 28px, #fff 28px 56px); opacity: .9; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.55rem; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.brand-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(255, 255, 255, .65); margin-top: 4px; white-space: nowrap; }
.main-nav { display: none; margin-left: auto; gap: 2px; }
.main-nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s; }
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav a.active { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 -3px 0 var(--gold); }
.btn-sub { display: none; background: var(--gold); color: var(--navy); padding: 9px 14px; }
.btn-sub:hover { background: var(--gold-2); }
.burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: rgba(255, 255, 255, .08); border: 0; border-radius: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .08); padding: 6px 0 14px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; text-decoration: none; padding: 13px 20px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mobile-nav a.active { box-shadow: inset 4px 0 0 var(--gold); background: rgba(255, 255, 255, .05); }
.mobile-nav .mobile-sub { margin: 12px 16px 0; background: var(--gold); color: var(--navy); border-radius: 10px; text-align: center; border: 0; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .btn-sub { display: inline-flex; }
  .burger, .mobile-nav, .mobile-nav.open { display: none; }
  .header-inner { height: 76px; }
}
@media (max-width: 380px) { .brand-tag { display: none; } .brand-name { font-size: 1.3rem; } }

/* ============ Ticker ============ */
.ticker { display: block; background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.ticker:hover { background: var(--sky); }
.ticker-inner { display: flex; align-items: center; gap: 10px 14px; padding-top: 9px; padding-bottom: 9px; font-size: .88rem; flex-wrap: wrap; }
.ticker-label { font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: 1px; color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; }
.ticker-teams { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ticker-teams img { width: 18px; height: 18px; object-fit: contain; }
.ticker-meta { color: var(--muted); }
.ticker-go { margin-left: auto; font-weight: 700; color: var(--blue); }
@media (max-width: 560px) { .ticker-go { display: none; } .ticker-meta { width: 100%; font-size: .8rem; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); } 70% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

/* ============ Page hero (inner pages) ============ */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 120%); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 60px, transparent 60px 120px); pointer-events: none; }
.page-hero h1 { color: #fff; margin: 0; position: relative; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 6px 0 0; position: relative; max-width: 640px; }
.eyebrow { font-size: .75rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 0 0 8px; position: relative; }

/* ============ Cards ============ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head a { font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.section-title::before { content: ""; width: 6px; height: 26px; background: var(--gold); border-radius: 3px; }
.section-title h2 { margin: 0; }
.section-title a { margin-left: auto; font-weight: 700; text-decoration: none; font-size: .92rem; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.article-card .card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.article-card { transition: transform .18s, box-shadow .18s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--sky); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .card-img img { transform: scale(1.04); }
.card-img-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.card-img-fallback .logo-mark { opacity: .9; }
.chip { position: absolute; left: 12px; bottom: 12px; background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; padding: 4px 9px; border-radius: 6px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.35rem; margin: 0 0 8px; color: var(--ink); }
.card-excerpt { color: var(--muted); font-size: .93rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin: auto 0 0; font-size: .8rem; color: var(--muted); font-weight: 500; }
.article-card.compact .card-title { font-size: 1.15rem; }

/* ============ Home ============ */
.home-hero { background: var(--navy); padding: 20px 0 28px; }
.hero-grid { display: grid; gap: 18px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.7fr 1fr; } }
.lead-story { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--navy-2), var(--blue)); box-shadow: var(--shadow-lg); }
.lead-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lead-story:hover img { transform: scale(1.03); }
.lead-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 18, 42, 0) 25%, rgba(5, 18, 42, .92) 100%); }
.lead-body { position: relative; z-index: 1; padding: 22px; }
.lead-body .chip { position: static; display: inline-block; margin-bottom: 10px; }
.lead-body h2 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin-bottom: 8px; }
.lead-body p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 620px; }
@media (min-width: 980px) { .lead-story { min-height: 440px; } .lead-body { padding: 32px; } }

.match-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.match-card .mc-comp { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.mc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.mc-team img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.mc-team b { display: block; font-family: var(--head); font-size: 1.25rem; color: var(--ink); line-height: 1.05; }
.mc-team small { color: var(--muted); font-size: .75rem; }
.mc-vs { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--blue); }
.mc-when { text-align: center; font-weight: 600; }
.mc-when small { display: block; color: var(--muted); font-weight: 500; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font-family: var(--head); font-size: 1.7rem; line-height: 1; }
.countdown span { font-size: .65rem; letter-spacing: 1px; text-transform: uppercase; opacity: .7; }

.home-cols { display: grid; gap: 22px; }
@media (min-width: 980px) { .home-cols { grid-template-columns: 1fr 360px; align-items: start; } }

/* ============ Mini lists ============ */
.results-list { list-style: none; margin: 0; padding: 0; }
.results-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.results-list li:last-child { border-bottom: 0; }
.results-list .opp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.results-list .opp img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.results-list .opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results-list .opp small { color: var(--muted); display: block; font-size: .75rem; }
.results-list .score { font-weight: 800; font-variant-numeric: tabular-nums; }
.res { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: .75rem; font-weight: 800; color: #fff; }
.res-w, .f-w { background: var(--win); }
.res-d, .f-d { background: var(--draw); }
.res-l, .f-l { background: var(--loss); }
.form { display: inline-flex; gap: 3px; }
.form i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: .68rem; font-weight: 800; color: #fff; }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.league { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; font-variant-numeric: tabular-nums; }
table.league th { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; padding: 11px 8px; text-align: center; background: #f8fafd; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
table.league th.t-team { text-align: left; }
table.league td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
table.league td.t-pos { position: relative; font-weight: 700; width: 40px; }
table.league td.t-pos::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--zone, transparent); }
table.league td.t-team { text-align: left; }
.t-team-inner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t-team-inner img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.t-team-inner span { white-space: nowrap; }
table.league td.t-pts { font-weight: 800; color: var(--ink); }
table.league tr.us td { background: #fff8db; }
table.league tr.us td.t-team { font-weight: 800; color: var(--navy); }
table.league tbody tr:hover td { background: var(--sky); }
table.league tr.us:hover td { background: #fff1b8; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: table-cell; } }
.t-short { display: inline; }
.t-long { display: none; }
@media (min-width: 640px) { .t-short { display: none; } .t-long { display: inline; } }
.zones { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.zones li { display: flex; align-items: center; gap: 6px; }
.zones i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ============ Fixtures list ============ */
.fx-day { margin: 0 0 18px; }
.fx-day h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.fx { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; gap: 8px; padding: 11px 12px; background: #fff; border-radius: 10px; margin-bottom: 6px; box-shadow: 0 1px 0 var(--line); font-size: .92rem; }
.fx .h { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; min-width: 0; }
.fx .a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.fx .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .mid { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--sky); border-radius: 7px; padding: 5px 0; color: var(--navy); }
.fx .mid.ko { font-weight: 700; font-size: .85rem; }
.fx .mid.live { background: #ffe4e4; color: #b91c1c; }
.fx.us { box-shadow: inset 4px 0 0 var(--gold), 0 1px 0 var(--line); background: #fffcef; }
.fx.us .nm { font-weight: 700; }
.fx-meta { grid-column: 1 / -1; text-align: center; font-size: .72rem; color: var(--muted); margin-top: -2px; }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 4px; background: #e9eef6; padding: 4px; border-radius: 11px; margin-bottom: 16px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px 14px; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer; font-family: var(--sans); font-size: .9rem; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tab-panel[hidden] { display: none; }

/* ============ Matchday ============ */
.md-hero { background: radial-gradient(1200px 400px at 50% -10%, #2a63c4 0%, var(--navy) 60%); color: #fff; padding: 26px 0 34px; position: relative; overflow: hidden; }
.md-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 70px, transparent 70px 140px); pointer-events: none; }
.md-hero > .wrap { position: relative; z-index: 1; }
.md-top { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.md-badge { font-size: .74rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(255, 255, 255, .12); padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.md-badge.live { background: #e11d48; }
.md-badge.ft { background: var(--gold); color: var(--navy); }
.md-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; text-align: center; }
.md-crest { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.md-crest img { width: 64%; height: 64%; object-fit: contain; }
.md-team h2 { color: #fff; font-size: clamp(1.15rem, 3.6vw, 2rem); margin: 0; }
.md-team .pos { font-size: .78rem; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.md-team .form { margin-top: 8px; }
.md-score { font-family: var(--head); font-weight: 800; font-size: clamp(2.8rem, 10vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.md-vs { font-family: var(--head); font-weight: 800; font-size: 2rem; opacity: .9; }
.md-clock { display: block; font-family: var(--sans); font-size: .9rem; letter-spacing: 0; margin-top: 6px; font-weight: 700; color: var(--gold); }
@media (min-width: 640px) { .md-crest { width: 104px; height: 104px; } }
.md-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 14px auto 0; font-size: .82rem; color: rgba(255, 255, 255, .85); }
.md-scorers div:first-child { text-align: right; }
.md-info { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.md-info span { display: inline-flex; align-items: center; gap: 7px; }
.md-info svg { width: 16px; height: 16px; opacity: .8; }
.md-countdown { max-width: 420px; margin: 22px auto 0; }
.md-countdown .countdown div { background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .12); }
.md-body { margin-top: -18px; position: relative; z-index: 2; }
.md-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .md-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.refresh-note { text-align: center; color: var(--muted); font-size: .78rem; margin: 14px 0 0; }

.stat-row { margin-bottom: 14px; }
.stat-label { display: grid; grid-template-columns: 60px 1fr 60px; font-size: .88rem; margin-bottom: 5px; }
.stat-label b:first-child { text-align: left; }
.stat-label b:last-child { text-align: right; }
.stat-label span { text-align: center; color: var(--muted); }
.stat-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: #eef1f6; gap: 3px; }
.stat-bar .bh { background: var(--blue); border-radius: 6px 0 0 6px; }
.stat-bar .ba { background: #9aa8bf; border-radius: 0 6px 6px 0; margin-left: auto; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline li { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; padding: 6px 0; font-size: .88rem; position: relative; }
.timeline .ev-min { text-align: center; font-weight: 800; background: #fff; border: 2px solid var(--line); border-radius: 999px; font-size: .75rem; padding: 3px 0; position: relative; z-index: 1; }
.timeline .ev-h { text-align: right; padding-right: 10px; }
.timeline .ev-a { padding-left: 10px; }
.timeline .ev small { display: block; color: var(--muted); font-size: .76rem; }
.ev-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; vertical-align: -3px; margin: 0 4px; }
.card-y { width: 11px; height: 15px; background: #facc15; border-radius: 2px; display: inline-block; }
.card-r { width: 11px; height: 15px; background: #dc2626; border-radius: 2px; display: inline-block; }

.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lineups h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 8px; }
.lineups ul { list-style: none; margin: 0 0 14px; padding: 0; }
.lineups li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.lineups li .no { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--sky); color: var(--navy); font-weight: 800; font-size: .75rem; flex: none; }
.lineups li .sub-ico { margin-left: auto; font-size: .72rem; font-weight: 800; }
.sub-in { color: var(--win); }
.sub-out { color: var(--loss); }
.formation { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: .75rem; padding: 2px 8px; border-radius: 5px; margin-left: 6px; }

.h2h-list { list-style: none; margin: 0; padding: 0; }
.h2h-list li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.h2h-list li:last-child { border: 0; }
.h2h-list .hs { text-align: right; }
.h2h-list .sc { font-weight: 800; background: var(--sky); border-radius: 6px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.h2h-list .dt { grid-column: 1 / -1; text-align: center; font-size: .72rem; color: var(--muted); margin-top: -4px; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-cols h4 { font-family: var(--sans); font-size: .85rem; margin: 0 0 8px; }
.form-game { display: flex; align-items: center; gap: 8px; font-size: .82rem; padding: 5px 0; }
.form-game img { width: 18px; height: 18px; object-fit: contain; }
.form-game .res { width: 20px; height: 20px; font-size: .68rem; flex: none; }
.form-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.leader { padding: 10px 12px; background: var(--sky); border-radius: 10px; margin-bottom: 8px; }
.leader small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.leader b { display: block; font-size: .92rem; }
.leader span { font-size: .78rem; color: var(--muted); }
.notes { white-space: pre-line; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h1, .empty h2 { color: var(--ink); }
.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ============ Squad ============ */
.squad-group { margin-bottom: 30px; }
.squad-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .squad-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .squad-grid { grid-template-columns: repeat(4, 1fr); } }
.player { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: left; font-family: var(--sans); color: inherit; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.player:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.player-top { position: relative; background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%); color: #fff; padding: 16px 14px 14px; min-height: 118px; overflow: hidden; }
.player-top::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 22px, transparent 22px 44px); }
.player-no { font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: .9; color: rgba(255, 255, 255, .95); position: relative; z-index: 1; }
.player-flag { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; z-index: 1; border: 2px solid rgba(255, 255, 255, .8); background: #fff; }
.player-pos { position: relative; z-index: 1; font-size: .7rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); font-weight: 800; margin-top: 8px; }
.player-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.player-name { font-family: var(--head); font-size: 1.2rem; line-height: 1.05; color: var(--ink); margin: 0 0 2px; }
.player-name b { display: block; font-size: 1.45rem; }
.player-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: auto; padding-top: 12px; text-align: center; }
.player-stats div { background: #f3f6fb; border-radius: 7px; padding: 6px 2px; }
.player-stats b { display: block; font-size: 1rem; color: var(--navy); }
.player-stats span { font-size: .62rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.inj { position: absolute; z-index: 2; left: 14px; bottom: 12px; background: #dc2626; color: #fff; font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .6px; }
.squad-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.squad-tools input { flex: 1; min-width: 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a { text-decoration: none; }
.chips button, .chips a { border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); padding: 8px 13px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; font-family: var(--sans); font-size: .85rem; }
.chips button[aria-pressed="true"], .chips a[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.staff-card { display: flex; align-items: center; gap: 14px; }
.staff-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 1.4rem; font-weight: 800; flex: none; }

dialog.modal { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(5, 18, 42, .6); backdrop-filter: blur(3px); }
.modal-head { background: linear-gradient(160deg, var(--blue), var(--navy)); color: #fff; padding: 22px; position: relative; }
.modal-head h2 { color: #fff; margin: 0; }
.modal-head .player-no { font-size: 2.8rem; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.3rem; cursor: pointer; }
.modal-body { padding: 20px 22px 24px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
.kv div { background: #f3f6fb; border-radius: 10px; padding: 10px 12px; }
.kv dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.kv dd { margin: 2px 0 0; font-weight: 700; }
.kv-stats { grid-template-columns: repeat(3, 1fr); text-align: center; }
.kv-stats dd { font-size: 1.4rem; font-family: var(--head); color: var(--navy); }

/* ============ Article ============ */
.article-head { padding: 30px 0 10px; }
.article-head .chip { position: static; display: inline-block; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); margin-bottom: 14px; }
.article-standfirst { font-size: 1.15rem; color: var(--muted); margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.byline b { color: var(--ink); }
.share { margin-left: auto; display: flex; gap: 6px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); text-decoration: none; border: 0; cursor: pointer; }
.share svg { width: 16px; height: 16px; }
.article-figure { margin: 22px 0 0; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.prose { font-size: 1.08rem; line-height: 1.75; padding: 22px 0; color: #222d40; }
.prose h2 { font-size: 1.9rem; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 1.5rem; margin: 1.3em 0 .5em; }
.prose img { border-radius: 10px; margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--gold); font-size: 1.2rem; font-style: italic; color: var(--ink); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; margin: 1.2em 0; border: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.author-box { display: flex; gap: 14px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 0 26px; }
.author-box .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

/* ============ News list ============ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filters form { display: flex; gap: 8px; margin-left: auto; flex: 1; max-width: 360px; min-width: 220px; }
input[type=email], input[type=text], input[type=search], input[type=password] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--text); }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 80, 168, .15); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 30px 0 10px; font-weight: 600; }
.pagination a { padding: 9px 16px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); text-decoration: none; }

/* ============ Subscribe ============ */
.subscribe { border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-items: center; }
.subscribe-card { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; box-shadow: var(--shadow-lg); }
.subscribe-footer { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 34px; }
.subscribe h2 { color: #fff; margin: 0 0 4px; }
.subscribe p { margin: 0; color: rgba(255, 255, 255, .8); }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-form input[type=email] { flex: 1; min-width: 200px; border: 0; }
.subscribe-msg { width: 100%; font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.subscribe-msg.ok { color: #a7f3d0; }
.subscribe-msg.err { color: #fecaca; }
@media (min-width: 860px) { .subscribe { grid-template-columns: 1fr 1.1fr; padding: 28px 32px; } }

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0 26px; margin-top: 40px; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 10px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.brand-footer { margin-bottom: 10px; }
.brand-footer .brand-name { font-size: 1.3rem; }
.disclaimer { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: rgba(255, 255, 255, .55); }

.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-weight: 600; }
.flash-success { background: #dcfce7; color: #14532d; }
.flash-error { background: #fee2e2; color: #7f1d1d; }
.notice-page { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notice-page .panel { max-width: 520px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.player[hidden], .squad-group[hidden] { display: none; }
/* Quill 2 stores bullet lists as <ol><li data-list="bullet"> */
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose li[data-list="ordered"] { list-style-type: decimal; }
.prose .ql-ui { display: none; }
.hp { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; left: -9999px; }
.md-grid > *, .form-cols > *, .leaders > *, .lineups > *, .home-cols > *, .hero-grid > * { min-width: 0; }
.h2h-list li > span { min-width: 0; overflow-wrap: anywhere; }
.grid > .panel + .panel { margin-top: 0; }

/* ---- Player photos (squad) ---- */
.player-top { aspect-ratio: 1 / 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.player-top.has-photo { padding: 0; background: #1550a8; }
.player-top.has-photo::after { background: linear-gradient(180deg, rgba(11, 42, 91, 0) 45%, rgba(11, 42, 91, .88) 100%); }
.player-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .4s; }
.player:hover .player-photo { transform: scale(1.05); }
.player-top.has-photo .player-no { position: absolute; left: 12px; bottom: 26px; font-size: 2.6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.player-top.has-photo .player-pos { position: absolute; left: 13px; bottom: 10px; margin: 0; }
.player-top.has-photo .inj { left: auto; right: 12px; bottom: 12px; }
.player-top:not(.has-photo) .player-no { font-size: 4rem; }
.modal-head { overflow: hidden; }
.modal-head.with-photo { padding-right: 46%; min-height: 200px; }
.modal-photo { position: absolute; right: 0; bottom: 0; height: 100%; width: 46%; object-fit: cover; object-position: 50% 10%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.modal-head > *:not(.modal-photo):not(.modal-close) { position: relative; z-index: 1; }
.modal-close { z-index: 2; }

/* Wednesday fixtures & results: two equal columns, tops aligned */
.fx-cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.fx-cols > *, .home-cols > *, .grid > * { margin-top: 0 !important; }

/* ============ Predictor ============ */
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.pr-me, .pr-join { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 22px; }
.pr-join h2 { margin: 0 0 4px; }
.pr-join p { margin: 0; }
.pr-join > div:first-child { flex: 1 1 320px; }
.pr-join-btns { display: flex; gap: 10px; }
.pr-me-name { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 0; }
.pr-me-name b { display: block; font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.pr-me-name small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.pr-me .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.pr-me-stats { display: flex; gap: 8px; }
.pr-me-stats div { background: var(--sky); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 78px; }
.pr-me-stats b { display: block; font-family: var(--head); font-size: 1.5rem; line-height: 1.1; color: var(--navy); }
.pr-me-stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.pr-me-links { display: flex; gap: 14px; align-items: center; font-size: .9rem; font-weight: 600; }
.pr-me-links form { margin: 0; }
@media (max-width: 560px) { .pr-me-stats { width: 100%; } .pr-me-stats div { flex: 1; min-width: 0; padding: 8px 6px; } }

.pr-cols { align-items: start; }
.pr-gw { padding: 18px; }
.pr-gw-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 12px; text-align: center; }
.pr-gw-title h2 { margin: 0; }
.pr-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.7rem; font-weight: 700; text-decoration: none; line-height: 1; }
a.pr-arrow:hover { background: var(--navy); color: #fff; }
span.pr-arrow { background: transparent; }
.pr-lock { background: #fff8db; color: #6b4f00; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 8px; text-align: center; }
.pr-lock.is-locked { background: #eef1f6; color: var(--muted); }
.pr-count { font-variant-numeric: tabular-nums; }
.pr-open { display: block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 11px 14px; text-align: center; font-size: .92rem; margin-bottom: 8px; }
.pr-open:hover { background: var(--blue); }
.pr-day { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 18px 0 8px; }
.pr-match { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pr-match.is-void { opacity: .6; }
.pr-match.pts-1 { border-color: #fcd34d; }
.pr-match.pts-2, .pr-match.pts-3 { border-color: #86efac; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.pr-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: .95rem; }
.pr-team.h { justify-content: flex-end; text-align: right; }
.pr-team img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.pr-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-score { display: flex; align-items: center; gap: 6px; }
.pr-score span { color: var(--muted); font-weight: 700; }
.pr-score input { width: 46px; height: 46px; text-align: center; font-size: 1.25rem; font-weight: 800; font-family: var(--sans); border: 1.5px solid var(--line); border-radius: 10px; background: var(--sky); color: var(--navy); padding: 0; -moz-appearance: textfield; }
.pr-score input::-webkit-outer-spin-button, .pr-score input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pr-score input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(21, 80, 168, .15); }
.pr-mid { min-width: 76px; padding: 6px 10px; text-align: center; font-weight: 800; background: var(--sky); border-radius: 8px; color: var(--navy); font-variant-numeric: tabular-nums; }
.pr-mid.ko { font-weight: 700; font-size: .88rem; }
.pr-mid.live { background: #ffe4e4; color: #b91c1c; }
.pr-sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; }
.pr-ko { color: var(--muted); font-weight: 600; flex: none; min-width: 42px; }
.pr-sel { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 9px; border: 1.5px solid var(--line); font-family: var(--sans); font-size: .9rem; background: #fff; color: var(--text); }
.pr-sel:focus { outline: none; border-color: var(--blue); }
.pr-info { flex-wrap: wrap; justify-content: center; color: var(--muted); text-align: center; }
.pr-info b { color: var(--ink); }
.pr-pts { background: var(--navy); color: #fff; font-weight: 800; border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.pts-0 .pr-pts { background: #94a3b8; }
.live-txt { color: #b91c1c; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pr-save { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: rgba(255, 255, 255, .96); padding: 12px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); }
.pr-save .btn { min-width: 180px; }
.pr-rules h3 { margin-top: 0; }
.pr-rules ul { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.pr-rules li { margin: 6px 0; }
table.lb td.t-team { font-weight: 600; overflow-wrap: anywhere; }
table.lb tr.lb-gap td { padding: 2px; color: var(--muted); background: #fafbfd; }
@media (max-width: 420px) { .pr-team img { width: 22px; height: 22px; } .pr-team { font-size: .88rem; gap: 6px; } .pr-score input { width: 42px; height: 42px; } .pr-row { gap: 6px; } }

.pr-auth { max-width: 460px; margin: 10px auto; }
.pr-auth h1 { font-size: 2.2rem; }
.pr-auth .eyebrow { color: var(--blue); }
.pr-stack { display: grid; gap: 14px; margin: 18px 0; }
.pr-stack label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.pr-stack label small { font-weight: 400; }
.pr-stack h3 { margin: 6px 0 0; }
.pr-stack + .pr-stack { border-top: 1px solid var(--line); padding-top: 18px; }
.pr-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.pr-check input { width: 18px; height: 18px; }
.pr-danger h3 { color: #b91c1c; }
@media (max-width: 560px) {
  .pr-team, .pr-team.h { flex-direction: column; justify-content: center; text-align: center; gap: 4px; font-size: .8rem; line-height: 1.15; }
  .pr-team.h { flex-direction: column-reverse; }
  .pr-team .nm { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pr-team img { width: 28px !important; height: 28px !important; }
  .pr-save { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 560px) { .pr-save > span { display: none; } }

/* ============ Contact ============ */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-form { margin: 0; }
.contact-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 80, 168, .15); }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.contact-done { text-align: center; padding: 20px 0; }

/* ============ Member account (header + account page) ============ */
.hdr-acct { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; height: 44px; padding: 0 11px; border-radius: 10px; background: rgba(255, 255, 255, .08); max-width: 180px; }
.hdr-acct:hover, .hdr-acct.active { background: rgba(255, 255, 255, .16); }
.hdr-acct svg { width: 21px; height: 21px; flex: none; }
.hdr-acct .lbl { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-inner .burger { margin-left: 0; }
.mnav-user { opacity: .7; font-weight: 500; }
@media (min-width: 900px) { .hdr-acct { margin-left: 0; height: 40px; } }
@media (min-width: 1080px) { .hdr-acct .lbl { display: inline; } }
.acct-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; }
.acct-links a { display: flex; flex-direction: column; text-decoration: none; background: var(--sky); border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 200px; }
.acct-links a b { color: var(--navy); }
.acct-links a span { color: var(--muted); font-size: .85rem; }
.acct-links form { margin: 0; }

/* Brand name: small "The" kicker above, matching the logo */
.brand-the { font-family: var(--head); font-weight: 700; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); line-height: 1; margin-bottom: 2px; }
.brand-footer .brand-text { line-height: 1; }

/* Matchday information sections (Admin → Matchday) */
.md-sec-body { font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.md-sec-body p { margin: 0 0 .7em; }
.md-sec-body p:last-child { margin-bottom: 0; }
.md-sec-body h3 { font-size: 1.05rem; margin: 1em 0 .4em; }
.md-sec-body ul, .md-sec-body ol { padding-left: 1.2em; margin: 0 0 .7em; }
.md-sec-body li { margin: .25em 0; }
.md-sec-body li[data-list="bullet"] { list-style-type: disc; }
.md-sec-body li[data-list="ordered"] { list-style-type: decimal; }
.md-sec-body .ql-ui { display: none; }
.md-sec-body a { color: var(--blue); font-weight: 600; }
aside > .panel + .panel, aside > .panel + a.panel, aside > a.panel { margin-top: 20px; }
