/*
VOICE   A professional league's matchday desk: calm, editorial, fast. Scores first, photography second, chrome last.
IDEA    Like the Premier League, F1 and MLS sites: dark navigation and score strip over light reading surfaces, real photos carrying the mood.
PICTURE Floodlit night football, the Las Vegas valley and Southern Utah red rock (licensed photography); on matchdays the live cards lead.
COLOUR  Night #15110E chrome, warm white #F6F3EE page, white panels; amber = live; red rock = North, neon = South.
TYPE    General Sans 600/700 for headings and UI (sentence case, -2% tracking); Mona Sans for text and every number (tabular).
LAYOUT  1320px max, 16px panels in a soft container (PL hero pattern), 12px radii, 8px image radii; phone-first, bottom tabs.
*/
:root {
  color-scheme: light;
  /* chrome */
  --night: #15110E; --night-2: #201914; --night-3: #2C231D; --on-night: #F5EFE6; --on-night-2: #C9BDB0; --on-night-3: #968A7E; --line-dark: rgba(245, 239, 230, .12);
  /* surfaces */
  --bg: #F6F3EE; --panel: #FFFFFF; --panel-2: #EEE8DF; --ink: #15110E; --ink-2: #4A4038; --muted: #74685D; --line: rgba(21, 17, 14, .1); --line-2: rgba(21, 17, 14, .18);
  /* brand + function */
  --amber: #F2A33A; --amber-ink: #8A5208; --redrock: #B8441E; --redrock-glow: #E0643A; --neon: #FF3E8A; --neon-deep: #C2185B; --sage: #5E7D4E; --win: #3F8F5A; --loss: #B23B2E;
  --north: var(--redrock); --south: var(--neon-deep);
  /* emblem + wordmark colours (inline SVG reads these) */
  --e-ram: var(--on-night); --e-rock: var(--redrock); --e-ball: var(--amber); --e-bg: var(--night); --e-ground: var(--redrock-glow); --w1: var(--on-night); --w2: var(--amber);
  /* type */
  --f-head: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  /* space + shape */
  --r: 12px; --r-sm: 8px; --pill: 999px; --max: 1320px; --gut: clamp(16px, 3vw, 32px);
  --top: 64px; --tabs: 64px;
}
:root[data-theme=light], :root[data-theme=dark] { color-scheme: light; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--f-text); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 99; background: var(--amber); color: var(--night); padding: 10px 14px; font: 600 15px var(--f-head); border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--f-head); margin: 0; text-wrap: balance; color: inherit; }
h1, .h1 { font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.025em; }
h2, .h2 { font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.02em; }
h3, .h3 { font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.kicker { font: 600 13px/1.3 var(--f-head); color: var(--muted); letter-spacing: .01em; }
.meta { font-size: 13px; color: var(--muted); }
.num { font-family: var(--f-text); font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-2); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); container-type: inline-size; }
.sec { padding: clamp(28px, 4vw, 48px) 0; }
.sec.tight { padding-top: 0; }
.dark { background: var(--night); color: var(--on-night); --muted: var(--on-night-3); --ink-2: var(--on-night-2); --line: var(--line-dark); --panel: var(--night-2); --panel-2: var(--night-3); --north: var(--redrock-glow); --south: var(--neon); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.more { font: 600 14px var(--f-head); display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--panel); border: 1px solid var(--line); white-space: nowrap; }
.more:hover { border-color: var(--ink); }
.dark .more { background: transparent; border-color: var(--line-dark); }
.dark .more:hover { border-color: var(--on-night); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.panel { background: var(--panel); border-radius: var(--r); padding: 20px; border: 1px solid var(--line); }
.panel.flush { padding: 0; overflow: hidden; }
.tray { background: var(--panel-2); border-radius: 16px; padding: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 18px; }
main { min-height: 70vh; }
@media (max-width: 959px) { .foot { padding-bottom: calc(28px + var(--tabs) + env(safe-area-inset-bottom)) !important; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--on-night); padding-top: env(safe-area-inset-top); }
.top .bar { display: flex; align-items: center; gap: 20px; height: var(--top); max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo .em { height: 40px; width: auto; }
.logo .wm { height: 32px; width: auto; }
.nav { display: none; gap: 4px; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 12px; font: 600 15px var(--f-head); color: var(--on-night-2); position: relative; }
.nav a:hover { color: var(--on-night); }
.nav a[aria-current=page] { color: var(--on-night); }
.nav a[aria-current=page]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--amber); border-radius: 3px 3px 0 0; }
.spacer { flex: 1; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--pill); cursor: pointer; color: inherit; }
.iconbtn:hover { background: var(--line); }
.top .iconbtn:hover { background: var(--night-3); }
.join-cta { display: none !important; }
@media (min-width: 960px) { :root { --top: 76px; } .nav { display: flex; } .join-cta { display: inline-flex !important; } .logo .em { height: 48px; } .logo .wm { height: 39px; } }

/* buttons + controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--panel); font: 600 15px var(--f-head); cursor: pointer; white-space: nowrap; color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2C231D; }
.btn.amber { background: var(--amber); color: var(--night); border-color: var(--amber); }
.btn.amber:hover { background: #F7B85C; }
.dark .btn { background: transparent; color: var(--on-night); border-color: rgba(245, 239, 230, .3); }
.dark .btn:hover { border-color: var(--on-night); }
.dark .btn.amber { background: var(--amber); color: var(--night); border-color: var(--amber); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { color: var(--loss); border-color: rgba(178, 59, 46, .4); }
.seg { display: inline-flex; background: var(--panel-2); border-radius: var(--pill); padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; min-height: 36px; padding: 0 16px; border-radius: var(--pill); font: 600 14px var(--f-head); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed=true] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 17, 14, .14); }
.dark .seg { background: var(--night-3); }
.dark .seg button { color: var(--on-night-2); }
.dark .seg button[aria-pressed=true] { background: var(--on-night); color: var(--night); }
.seg.full { display: flex; } .seg.full button { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* score strip */
.strip { background: var(--night-2); border-top: 1px solid var(--line-dark); }
.strip .in { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--gut); scrollbar-width: none; max-width: var(--max); margin: 0 auto; }
.strip .in::-webkit-scrollbar { display: none; }
.strip .lab { flex: none; display: flex; align-items: center; font: 600 13px var(--f-head); color: var(--on-night-3); padding-right: 4px; }
.chip { flex: none; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 12px; padding: 6px 12px; background: var(--night-3); border-radius: var(--r-sm); font-size: 13px; min-height: 48px; color: var(--on-night); position: relative; }
.chip::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--div); }
.chip:hover { background: #3A2F27; }
.chip .cols { display: grid; grid-template-columns: auto 16px; gap: 1px 10px; align-items: center; }
.chip .tm { display: flex; align-items: center; gap: 6px; font: 600 13px var(--f-head); }
.chip .sc { font: 700 14px var(--f-text); text-align: right; font-variant-numeric: tabular-nums; }
.chip .st { grid-column: 2; grid-row: 1; font: 600 12px var(--f-head); color: var(--on-night-3); padding-left: 10px; border-left: 1px solid var(--line-dark); align-self: stretch; display: flex; align-items: center; gap: 5px; }
.chip.live .st { color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; flex: none; }
.live .dot, .pill.live .dot, .dot.live { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* bottom tabs (mobile) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--night); border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabs a, .tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabs); font: 600 11px var(--f-head); color: var(--on-night-3); background: none; border: 0; cursor: pointer; }
.tabs [aria-current=page] { color: var(--amber); }
.tabs svg { width: 24px; height: 24px; }
@media (min-width: 960px) { .tabs { display: none; } }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(21, 17, 14, .55); z-index: 60; display: none; }
.scrim.open { display: block; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--panel); border-radius: 16px 16px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(620px, 92vw); border-radius: 16px; transform: translate(-50%, -46%); opacity: 0; transition: .2s; } .sheet.open { transform: translate(-50%, -50%); opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; background: var(--line-2); border-radius: 4px; margin: -6px auto 14px; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font: 600 18px var(--f-head); }

/* crest */
.crest { flex: none; }
.crest { border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px rgba(21, 17, 14, .08); }
.c20 { width: 20px; height: 20px; } .c24 { width: 24px; height: 24px; } .c28 { width: 28px; height: 28px; } .c32 { width: 32px; height: 32px; } .c40 { width: 40px; height: 40px; } .c48 { width: 48px; height: 48px; } .c64 { width: 64px; height: 64px; } .c96 { width: 96px; height: 96px; } .c128 { width: 128px; height: 128px; }
.dark .crest, .top .crest, .chead .crest, .mhead .crest { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill); font: 600 12px var(--f-head); white-space: nowrap; background: var(--panel-2); color: var(--ink-2); }
.pill.live { background: var(--amber); color: var(--night); }
.pill.live .dot { background: var(--night); }
.pill.ht { background: rgba(242, 163, 58, .18); color: var(--amber-ink); }
.dark .pill.ht { color: var(--amber); }
.pill.ft { background: var(--ink); color: #fff; }
.dark .pill.ft { background: var(--on-night); color: var(--night); }
.pill.prov { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber-ink); }
.dark .pill.prov { color: var(--amber); }
.pill.pp { background: rgba(178, 59, 46, .12); color: var(--loss); }
.divtag { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--f-head); color: var(--ink-2); }
.divtag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--div); }
.form { display: inline-flex; gap: 4px; }
.fp { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 11px var(--f-head); color: #fff; }
.fp.W { background: var(--win); } .fp.D { background: #9A8F84; } .fp.L { background: var(--loss); }
.fp.lv { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber); }

/* match row */
.day { margin: 24px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.day:first-child { margin-top: 0; }
.mlist { container-type: inline-size; background: var(--panel); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.mrow { display: grid; grid-template-columns: 72px 1fr auto 1fr 96px; align-items: center; gap: 12px; padding: 12px 16px 12px 20px; position: relative; min-height: 68px; border-bottom: 1px solid var(--line); transition: background .15s; }
.mrow:last-child { border-bottom: 0; }
.mrow::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; background: var(--div); border-radius: 0 4px 4px 0; }
.mrow:hover { background: rgba(21, 17, 14, .03); }
.dark .mrow:hover { background: rgba(245, 239, 230, .04); }
.mrow .time { font: 600 15px var(--f-text); font-variant-numeric: tabular-nums; }
.mrow .time small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.mrow .tm { display: flex; align-items: center; gap: 10px; font: 600 16px var(--f-head); letter-spacing: -.01em; }
.mrow .tm.h { justify-content: flex-end; text-align: right; }
.mrow .tm .rk { color: var(--muted); font: 500 12px var(--f-text); }
.mrow .tm.lose { color: var(--muted); }
.mrow .score { font: 750 22px/1 var(--f-text); font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; padding: 8px 10px; border-radius: var(--r-sm); background: var(--panel-2); letter-spacing: .02em; }
.mrow .score.up { font: 600 13px var(--f-head); color: var(--muted); background: transparent; }
.mrow.is-live .score { background: var(--night); color: var(--amber); }
.dark .mrow.is-live .score { background: var(--amber); color: var(--night); }
.mrow .stc { justify-self: end; }
.mrow .sub { grid-column: 2 / 5; text-align: center; font-size: 12px; color: var(--muted); margin-top: -6px; }
.nm-s { display: none; }
@container (max-width: 680px) {
  .mrow { grid-template-columns: 1fr auto 1fr; grid-template-areas: "time time st" "h sc a" "sub sub sub"; padding: 12px 14px 12px 18px; gap: 8px; }
  .mrow .time { grid-area: time; display: flex; gap: 6px; align-items: baseline; font-size: 14px; } .mrow .time small { display: inline; }
  .mrow .stc { grid-area: st; } .mrow .tm.h { grid-area: h; } .mrow .tm.a { grid-area: a; } .mrow .score { grid-area: sc; min-width: 56px; font-size: 20px; padding: 6px 8px; } .mrow .sub { grid-area: sub; margin: 0; }
  .mrow .tm { font-size: 15px; gap: 8px; } .mrow .tm .rk { display: none; }
  .nm-l { display: none; } .nm-s { display: inline; }
}
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: rgba(242, 163, 58, .28); } }
.flip { display: inline-block; animation: flip .25s ease-out; }
@keyframes flip { from { transform: translateY(40%); opacity: 0; } }

/* live card (dark) */
.lcard { background: rgba(32, 25, 20, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(245, 239, 230, .1); border-radius: var(--r); padding: 16px; position: relative; overflow: hidden; display: block; color: var(--on-night); }
.lcard:hover { border-color: rgba(245, 239, 230, .35); }
.lcard .top-l { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font: 600 12px var(--f-head); color: var(--on-night-3); }
.lcard .rowt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 5px 0; }
.lcard .rowt .n { display: flex; align-items: center; gap: 12px; font: 600 17px var(--f-head); letter-spacing: -.01em; }
.lcard .rowt .g { font: 800 30px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.lcard .lfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-night-2); gap: 8px; }
.lcard .bar-c { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--c1) 50%, var(--c2) 50%); }

/* tables */
.ltable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.ltable th { font: 600 12px var(--f-head); color: var(--muted); text-align: right; padding: 12px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable td { padding: 0 8px; height: 56px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ltable tr:last-child td { border-bottom: 0; }
.ltable th.l, .ltable td.l { text-align: left; }
.ltable td.club a { display: flex; align-items: center; gap: 12px; font: 600 15px var(--f-head); letter-spacing: -.01em; }
.ltable td.club a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ltable td.pos { width: 44px; font-weight: 700; text-align: left; padding-left: 20px; position: relative; }
.ltable th.pos { text-align: left; padding-left: 20px; }
.ltable tr.zone td.pos::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; background: var(--div); border-radius: 0 4px 4px 0; }
.ltable td.mv { width: 18px; padding: 0; font-size: 9px; text-align: center; }
.up-a { color: var(--win); } .dn-a { color: var(--loss); }
.ltable td.pts { font-weight: 800; font-size: 16px; padding-right: 20px; } .ltable th:last-child { padding-right: 20px; }
.ltable tr.lv td { background: rgba(242, 163, 58, .08); }
.ltable .full { display: none; }
.ltable.isfull .full { display: table-cell; }
.ltable.isform .nform { display: none; } .ltable .fcol { display: none; } .ltable.isform .fcol { display: table-cell; }
.tscroll { overflow-x: auto; }
.tscroll .ltable.isfull td.club, .tscroll .ltable.isfull th.club { position: sticky; left: 0; background: var(--panel); z-index: 1; }
@container (max-width: 560px) { .ltable td.club .nm-l { display: none; } .ltable td.club .nm-s { display: inline; } .ltable td.pos { padding-left: 16px; width: 38px; } .ltable { font-size: 14px; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.legend span::before { content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: var(--div); vertical-align: -2px; margin-right: 8px; }

/* photos + news */
.ph { position: relative; overflow: hidden; background: var(--night-2) center / cover no-repeat; height: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ratio { aspect-ratio: 16 / 9; }
.ncard { display: flex; flex-direction: column; gap: 10px; }
.ncard .ph { border-radius: var(--r-sm); aspect-ratio: 16 / 9; }
.ncard h3 { font-size: 18px; }
.ncard:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ncard .ph::after { content: ""; position: absolute; inset: 0; background: rgba(21, 17, 14, 0); transition: background .2s; }
.ncard:hover .ph::after { background: rgba(21, 17, 14, .12); }
.hrow { display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hrow .ph { border-radius: var(--r-sm); aspect-ratio: 16 / 10; height: auto; width: 100%; }
.ncard .ph, .leadstory .ph { height: auto; }
.hrow h3 { font-size: 16px; line-height: 1.3; }
.hrow:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* lead story (PL hero item) */
.leadstory { display: flex; flex-direction: column; background: var(--night); color: var(--on-night); border-radius: var(--r); overflow: hidden; height: 100%; }
.leadstory .ph { aspect-ratio: 16 / 9; }
.leadstory .txt { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.leadstory h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; }
.leadstory .meta { color: var(--on-night-3); }
.leadstory:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-tray { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@container (max-width: 1100px) { .hero-tray { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .hero-tray > :last-child { grid-column: 1 / -1; } }
@container (max-width: 720px) { .hero-tray { grid-template-columns: 1fr; } }

/* photographic hero band */
.photohero { position: relative; color: var(--on-night); background: var(--night); overflow: hidden; }
.photohero .ph { position: absolute; inset: 0; }
.photohero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 17, 14, .9) 0%, rgba(21, 17, 14, .6) 45%, rgba(21, 17, 14, .1) 100%), linear-gradient(0deg, rgba(21, 17, 14, .85) 0%, rgba(21, 17, 14, 0) 50%); }
.photohero .in { position: relative; }
.photohero .credit { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(245, 239, 230, .55); }
.pagehead { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.pagehead h1 { font-size: clamp(36px, 5.5vw, 64px); }
.pagehead .lead { color: var(--on-night-2); margin-top: 12px; }

/* page tabs */
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: none; background: none; border: 0; padding: 16px 14px 14px; font: 600 15px var(--f-head); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ptabs button:hover { color: var(--ink); }
.ptabs [aria-selected=true] { color: var(--ink); border-bottom-color: var(--amber); }
.dark .ptabs [aria-selected=true] { color: var(--on-night); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .h2 { min-width: 170px; text-align: center; font-size: 22px; }

/* match centre header */
.mhead { position: relative; overflow: hidden; color: #fff; background: var(--night); }
.mhead .bg { position: absolute; inset: 0; background: linear-gradient(105deg, var(--c1) 0 49.8%, var(--c2) 50.2% 100%); opacity: .9; }
.mhead .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(21, 17, 14, .2), rgba(21, 17, 14, .75)); }
.mhead .in { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; padding: 20px 0 32px; }
.mhead .side { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mhead .side .n { font: 700 clamp(17px, 2.4vw, 28px)/1.1 var(--f-head); letter-spacing: -.02em; }
.mhead .big { font: 800 clamp(48px, 8vw, 80px)/1 var(--f-text); font-variant-numeric: tabular-nums; text-align: center; letter-spacing: -.02em; }
.mhead .stt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.mhead .scorers { font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.6; }
.mhead .crumb { position: relative; padding-top: 18px; font: 500 13px var(--f-head); color: rgba(255, 255, 255, .8); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* timeline */
.tl { list-style: none; padding: 8px 0; margin: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl li { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; min-height: 52px; }
.tl .mn { font: 700 15px var(--f-text); font-variant-numeric: tabular-nums; text-align: center; background: var(--panel); z-index: 1; padding: 4px 0; }
.tl .e { display: flex; align-items: center; gap: 10px; font: 600 15px var(--f-head); }
.tl .e.h { justify-content: flex-end; text-align: right; grid-column: 1; }
.tl .e.a { grid-column: 3; }
.tl .e small { color: var(--muted); display: block; font: 500 12px var(--f-text); }
.card-y { width: 12px; height: 16px; background: #E8C21C; border-radius: 2px; flex: none; }
.card-r { width: 12px; height: 16px; background: #D6382A; border-radius: 2px; flex: none; }
.tl .marker { grid-column: 1 / 4; text-align: center; font: 600 12px var(--f-head); color: var(--muted); }
.tl .marker span { background: var(--panel); padding: 4px 12px; position: relative; border-radius: var(--pill); border: 1px solid var(--line); }

/* pitch */
.pitch { background: repeating-linear-gradient(#2E6B37 0 10%, #2A6332 10% 20%); border-radius: var(--r); aspect-ratio: 68/100; position: relative; margin: 0 auto; width: 100%; max-width: 380px; }
.pitch::before { content: ""; position: absolute; inset: 4%; border: 2px solid rgba(255, 255, 255, .45); border-radius: 2px; background: linear-gradient(transparent calc(50% - 1px), rgba(255, 255, 255, .45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.pitch .pl { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 11px var(--f-head); width: 80px; text-align: center; line-height: 1.15; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pitch .shirt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--f-text); border: 2px solid rgba(255, 255, 255, .9); text-shadow: none; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font: 600 14px var(--f-head); color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 163, 58, .35); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 16px; }
.ok { background: #EAF2E6; border: 1px solid #A9C79C; padding: 16px; border-radius: var(--r-sm); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--night); color: var(--on-night); padding: 12px 18px; border-radius: var(--r-sm); font: 600 15px var(--f-head); z-index: 80; opacity: 0; transition: .25s; max-width: 92vw; box-shadow: 0 10px 30px rgba(21, 17, 14, .35); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* footer */
.foot { background: var(--night) !important; color: var(--on-night-2); padding: 48px 0 32px; font-size: 14px; margin-top: 8px; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.foot h4 { font: 600 14px var(--f-head); color: var(--on-night); margin: 0 0 10px; }
.foot a { display: block; padding: 5px 0; } .foot a:hover { color: var(--on-night); }
.foot .brand { display: flex; flex-direction: column; gap: 14px; }
.foot .brand .em { width: 96px; height: auto; }
.foot .rule { border-top: 1px solid var(--line-dark); margin: 32px 0 20px; }
.demo-note { font-size: 13px; color: var(--muted); }

/* leaders */
.leader { display: grid; grid-template-columns: 24px 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.leader:last-child { border-bottom: 0; }
.leader:hover { background: rgba(21, 17, 14, .03); }
.leader .v { font: 800 22px var(--f-text); font-variant-numeric: tabular-nums; }
.leader .nm { font: 600 15px var(--f-head); letter-spacing: -.01em; }
.leader.first { background: var(--night); color: var(--on-night); --muted: var(--on-night-3); padding-top: 18px; padding-bottom: 18px; }
.leader.first .v { font-size: 36px; color: var(--amber); }
.leader.first .nm { font-size: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--f-text); flex: none; }

/* club header */
.chead { position: relative; color: #fff; overflow: hidden; background: var(--c1); }
.chead .bg { position: absolute; inset: 0; background: linear-gradient(100deg, var(--c1) 40%, color-mix(in srgb, var(--c1) 70%, #000) 100%); }
.chead .bg::after { content: ""; position: absolute; right: -6%; top: -30%; width: 46%; height: 170%; background: var(--c2); opacity: .12; transform: skewX(-16deg); }
.chead .in { position: relative; display: flex; gap: 28px; align-items: center; padding: 40px 0; flex-wrap: wrap; }
.chead .kicker { color: rgba(255, 255, 255, .78); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.stat { font: 800 48px/1 var(--f-text); font-variant-numeric: tabular-nums; margin-top: 8px; letter-spacing: -.02em; }

/* admin + console */
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px dashed var(--amber); border-radius: var(--r-sm); margin-bottom: 8px; background: rgba(242, 163, 58, .06); }
.stepnum { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--pill); }
.stepnum button { width: 44px; height: 48px; background: none; border: 0; font-size: 22px; cursor: pointer; }
.stepnum output { min-width: 40px; text-align: center; font: 800 28px var(--f-text); }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; padding: 20px 12px; background: var(--night); color: var(--on-night); border-radius: var(--r); }
.board > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 15px var(--f-head); }
.board .g { font: 800 60px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bigbtns .btn { min-height: 60px; font-size: 16px; border-radius: var(--r-sm); }
.logrow { display: grid; grid-template-columns: 110px 150px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 640px) { .logrow { grid-template-columns: 1fr; gap: 2px; } }

/* design system */
.swatch { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.swatch .c { height: 84px; display: flex; align-items: end; padding: 10px; font: 600 13px var(--f-head); }
.swatch .t { padding: 10px; font-size: 13px; }
.spec { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@container (max-width: 460px) { .ltable:not(.isfull) .wdl { display: none; } .ltable td.mv { width: 12px; } }

/* ===== v3 components ===== */
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
/* club crest bar + utility links (PL / MLS pattern) */
.crestbar { display: none; background: #fff; border-bottom: 1px solid var(--line); font: 600 13px var(--f-head); color: var(--ink-2); }
.cb-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 44px; display: flex; align-items: center; gap: 16px; }
.cb-l { color: var(--muted); }
.cb-g { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.cb-d { font-size: 11px; color: var(--muted); margin-right: 4px; }
.cb-g a { display: block; border-radius: 50%; transition: transform .15s; }
.cb-g a:hover { transform: translateY(-2px); }
.cb-in > a, .cb-in > .linkbtn { color: var(--ink-2); } .cb-in > a:hover, .cb-in > .linkbtn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) { .crestbar { display: block; } }
/* More dropdown */
.dd { position: relative; display: flex; align-items: center; }
.dd-b { display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; background: none; border: 0; cursor: pointer; font: 600 15px var(--f-head); color: var(--on-night-2); }
.dd-b:hover, .dd.open .dd-b { color: var(--on-night); }
.dd-b svg { transition: transform .2s; } .dd.open .dd-b svg { transform: rotate(180deg); }
.dd-m { display: none; position: absolute; top: calc(100% - 6px); right: 0; min-width: 230px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(21, 17, 14, .28); z-index: 50; }
.dd.open .dd-m { display: block; }
.dd-m a { display: block; padding: 10px 12px; border-radius: 8px; font: 600 15px var(--f-head); color: var(--ink); }
.dd-m a:hover { background: var(--panel-2); }
/* quick chips (F1) */
.qchips { padding: 2px 0; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--pill); background: var(--panel); border: 1px solid var(--line); font: 600 14px var(--f-head); white-space: nowrap; }
.qchip:hover { border-color: var(--ink); }
.qchip svg { color: var(--muted); }
/* rails (PL content rails) */
.railp { padding: 20px 20px 22px; }
.rail-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rail-h h2 { font-size: clamp(20px, 2vw, 24px); }
.rail-ctl { display: flex; align-items: center; gap: 8px; }
.rbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.rbtn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@container (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 32px) / 3); } }
@container (max-width: 700px) { .rail { grid-auto-columns: 78%; } .rbtn { display: none; } }
/* highlight cards */
.vcard { display: flex; flex-direction: column; gap: 10px; }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--night); }
.vthumb .ph { position: absolute; inset: 0; height: 100%; filter: saturate(1.05); }
.vov { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 17, 14, .82), rgba(21, 17, 14, .2) 70%); display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px; color: #fff; }
.vtag { align-self: flex-start; font: 700 11px var(--f-head); letter-spacing: .08em; text-transform: uppercase; background: var(--amber); color: var(--night); padding: 3px 7px; border-radius: 4px; }
.vsc { display: flex; align-items: center; gap: 8px; font: 800 26px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.vsc i { width: 8px; height: 2px; background: rgba(255, 255, 255, .7); }
.vplay { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--night); display: grid; place-items: center; transition: transform .15s; }
.vplay svg { margin-left: 3px; }
.vcard:hover .vplay { transform: scale(1.08); }
.vdur { position: absolute; left: 12px; bottom: 12px; font: 600 12px var(--f-text); color: #fff; background: rgba(0, 0, 0, .5); padding: 2px 6px; border-radius: 4px; }
.vcard h3 { font-size: 15px; line-height: 1.3; }
.vcard:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.vplayer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--night); }
.vplayer .ph { position: absolute; inset: 0; }
.vov.big { padding: 18px; } .vov.big .vsc { font-size: 44px; gap: 12px; }
.vplay.lg { width: 72px; height: 72px; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
/* player cards */
.pcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: var(--r); min-height: 150px; padding: 14px; color: #fff; background: linear-gradient(140deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 55%, #000) 100%); isolation: isolate; }
.pcard.big { min-height: 230px; padding: 18px; }
.pcard .crest { position: absolute; top: 12px; left: 12px; z-index: 2; }
.pc-num { position: absolute; right: 10px; top: -6px; font: 800 96px/1 var(--f-text); color: var(--c2); opacity: .22; z-index: 0; letter-spacing: -.04em; }
.pcard.big .pc-num { font-size: 140px; }
.pc-sil { position: absolute; right: 8%; bottom: 0; width: 46%; height: auto; fill: rgba(255, 255, 255, .16); z-index: 0; }
.pc-txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.pc-name { font: 700 18px/1.15 var(--f-head); letter-spacing: -.01em; }
.pcard.big .pc-name { font-size: 24px; }
.pc-sub { font: 500 13px var(--f-text); opacity: .85; }
.pcard:hover .pc-name { text-decoration: underline; text-underline-offset: 3px; }
.lc-top { padding: 14px 16px 6px; }
/* team of the week */
.totw { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
@container (max-width: 820px) { .totw { grid-template-columns: 1fr; } }
.pitch.wide { aspect-ratio: 105 / 68; max-width: none; background: repeating-linear-gradient(90deg, #2E6B37 0 10%, #2A6332 10% 20%); }
.pitch.wide::before { background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.pitch .pl .crest { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 10px rgba(0, 0, 0, .35); }
.pitch .pl span { background: rgba(21, 17, 14, .72); padding: 2px 6px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.potw { display: flex; flex-direction: column; gap: 14px; }
.potw .pcard { flex: 1; }
/* bracket */
.bracket { display: grid; grid-template-columns: minmax(0, 1.2fr) 40px minmax(0, 1fr); align-items: center; gap: 0; }
.bk-col { display: grid; gap: 14px; }
.bk-m { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px 12px; background: var(--panel); display: grid; gap: 8px; }
.bk-m.final { border: 1.5px solid var(--amber); background: rgba(242, 163, 58, .06); }
.bk-t { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; font: 600 15px var(--f-head); }
.bk-t em { font: 500 12px var(--f-text); color: var(--muted); font-style: normal; }
.bk-t.tbd { display: block; color: var(--muted); font-weight: 500; padding: 6px 0; border-top: 1px dashed var(--line-2); }
.bk-t.tbd:first-of-type { border-top: 0; }
.bk-line { height: 60%; border: 2px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0; margin-right: 12px; }
@container (max-width: 640px) { .bracket { grid-template-columns: 1fr; gap: 14px; } .bk-line { display: none; } }
/* partners */
.plist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 900px) { .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 520px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pslot { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 4px; }
.plogo { width: 100%; height: 56px; border-radius: 8px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; font: 700 13px var(--f-head); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pslot:hover .plogo { border-color: var(--ink); color: var(--ink); }
.pslot .kicker { font-size: 12px; }
/* newsletter + app */
.news-l { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px; }
.nl-f { display: flex; gap: 10px; }
.nl-f .input { background: #fff; color: var(--ink); border-color: transparent; }
@container (max-width: 760px) { .news-l { grid-template-columns: 1fr; } .nl-f { flex-direction: column; } }
.appband { display: grid; grid-template-columns: 300px 1fr; padding: 0; overflow: hidden; align-items: center; }
.appband .ph { height: 100%; min-height: 180px; }
.ab-txt { padding: 24px 28px; }
@container (max-width: 640px) { .appband { grid-template-columns: 1fr; } .appband .ph { min-height: 140px; } }
/* promo cards */
.leadstory.promo { position: relative; min-height: 320px; justify-content: flex-end; }
.leadstory.promo .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.pshade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 17, 14, .95) 12%, rgba(21, 17, 14, 0) 72%); }
.leadstory.promo .txt { position: relative; flex: none; }
/* heritage */
.heritage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; }
.her-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.her-stats > div { display: flex; flex-direction: column; }
.her-stats .stat { font-size: 44px; margin: 0; }
@container (max-width: 760px) { .heritage { grid-template-columns: 1fr; } }
/* footer extras */
.fcrests { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fcrests a { opacity: .9; transition: opacity .15s, transform .15s; } .fcrests a:hover { opacity: 1; transform: translateY(-2px); }
.socials { display: flex; gap: 6px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); padding: 0 !important; }
.socials a:hover { border-color: var(--on-night); }
.legal { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; }
.legal a { display: inline; padding: 0; } .legal .linkbtn { margin-left: auto; color: var(--on-night-2); }

.lcard .top-l { gap: 10px; } .tl-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vov { justify-content: flex-end; } .vtag { position: absolute; top: 10px; left: 12px; }
.vdur { left: auto; right: 10px; top: 10px; bottom: auto; }
.vsc .crest { width: 34px; height: 34px; } .vsc { font-size: 24px; }
.pitch.wide { max-height: 440px; width: 100%; }

.pitch.wide .pl { left: var(--x); top: var(--y); }
@container (max-width: 560px) { .pitch.wide { aspect-ratio: 68 / 92; max-height: none; background: repeating-linear-gradient(#2E6B37 0 10%, #2A6332 10% 20%); } .pitch.wide::before { background: linear-gradient(transparent calc(50% - 1px), rgba(255, 255, 255, .45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); } .pitch.wide .pl { left: var(--vx); top: var(--vy); } }
.ltable td.club { width: 100%; max-width: 0; }
.ltable td.club a { min-width: 0; } .ltable td.club .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ===== v3.2 mobile pass ===== */
/* club + player heads kept the gutter */
.chead .in { padding: 40px var(--gut); }
@media (max-width: 640px) {
  .chead .in { padding: 28px var(--gut) 26px; gap: 16px; }
  .chead .crest.c128, .chead .avatar { width: 84px !important; height: 84px !important; }
  .chead h1 { font-size: 36px; }
}
/* live matches: swipeable rail on phones */
@media (max-width: 700px) {
  .lrail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .lrail::-webkit-scrollbar { display: none; }
  .lrail > * { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }
  .lrail > :only-child { flex-basis: 100%; }
}
/* match rows: names on one line */
@container (max-width: 680px) {
  .mrow .tm { font-size: 14px; gap: 6px; min-width: 0; }
  .mrow .tm .crest { width: 24px; height: 24px; flex: none; }
  .mrow .tm .nm-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
/* tap targets */
.ltable td.club a { min-height: 44px; }
.bk-t { min-height: 44px; }
.up-a, .dn-a { font-size: 10px; }
.fp { width: 24px; height: 24px; }
.kicker a, a.kicker, .linkbtn.kicker { padding: 10px 0; margin: -10px 0; }
/* scrolling tab rows fade at the edge */
@media (max-width: 700px) {
  .ptabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ptabs button { padding: 14px 12px 12px; }
}
/* footer on phones */
@media (max-width: 640px) {
  .foot { padding: 36px 0 28px; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot .cols > .brand { grid-column: 1 / -1; }
  .foot .cols > div:last-child { grid-column: 1 / -1; }
  .foot .brand .em { width: 64px; }
  .fcrests { gap: 10px; } .fcrests .crest { width: 36px; height: 36px; }
  .foot .rule { margin: 24px 0 16px; }
  .legal .linkbtn { margin-left: 0; width: 100%; text-align: left; padding: 8px 0 0; }
}
