/* ==========================================================================
   SCORECERY — STRUCTURE (ONE FILE)
   - Colour-agnostic: uses variables from brand stylesheet.
   - Fixtures & Results scoped under body.fixtures / body.results
   - Index scoped under body.ix + ix-* classes (unique)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  --row-h:40px; --edge-w:28px; --mid-w:64px;
  --radius:16px;
  --shadow:0 12px 24px rgba(0,0,0,.12);
  --shadow-2:0 8px 24px rgba(0,0,0,.10);
  --container:max(960px, min(90vw, 1200px));
  --pad:24px;
  --card-pad:22px;
  --font-sans:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* Reset bits */
*,*::before,*::after{ box-sizing:border-box }
img,video{ max-width:100%; height:auto; display:block }

/* ==========================================================================
   FIXTURES / RESULTS — SCOPE: body.fixtures, body.results
   (unchanged geometry from your working file; only scoped)
   ========================================================================== */

/* Page shell */
body.fixtures, body.results{
  margin:0; font-family:var(--font-sans);
  display:flex; align-items:flex-start; justify-content:center;
  background: var(--bg, #f7f7f8); color: var(--ink, #111);
}
.fixtures .container, .results .container{
  max-width:clamp(980px,90vw,1100px);
  padding:32px 16px; box-sizing:border-box;
}

/* ---- Align RESULTS rows (no other changes) ---- */
body.results{ --row-h:56px; }     /* match Fixtures; tweak 52–58px if needed */
.results .row{ height:auto; min-height:var(--row-h); }
.results .home, .results .away{ line-height:1.25; } /* stops descenders clipping */


/* Header */
.fixtures header, .results header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px; gap:12px;
}

/* Cards (one per day on fixtures) */
.fixtures .card, .results .card{
  background: var(--panel, #fff); border:1px solid var(--line, #e5e7eb);
  border-radius:16px; box-shadow: var(--shadow);
  padding:12px 8px; margin:0 0 26px;
}
.fixtures .card:last-child, .results .card:last-child{ margin-bottom:0 }

/* Day block */
.fixtures .day-block, .results .day-block{ background:transparent; border-radius:12px; padding:8px 16px 14px }
.fixtures .date-header, .results .date-header{ margin:4px 8px 12px; font-weight:800; font-size:18px }


body.fixtures{ --row-h:56px; }   /* try 52–58px to taste */


/* Two columns with a vertical divider */
.fixtures .columns.two-col, .results .columns.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:24px; position:relative }
.fixtures .columns.two-col::before, .results .columns.two-col::before{
  content:""; position:absolute; left:50%; top:0; bottom:0; width:1px;
  background: color-mix(in oklab, var(--line, #e5e7eb) 80%, transparent);
}
@media (max-width:900px){
  .fixtures .columns.two-col, .results .columns.two-col{ grid-template-columns:1fr; gap:12px }
  .fixtures .columns.two-col::before, .results .columns.two-col::before{ display:none }
}

/* Column headings */
.fixtures .col-head, .results .col-head{
  font-weight:700; font-size:13px; letter-spacing:.02em;
  margin:6px 0 10px; text-transform:uppercase; color: var(--ink, #111);
}

/* Matrix row: [lead | team | ko/venue | team | tail] */
.fixtures .fixture-row, .results .fixture-row{
  display:grid; align-items:center; min-height:var(--row-h);
  padding:8px 12px; column-gap:12px;
  grid-template-columns: var(--edge-w) minmax(0,14ch) var(--mid-w) minmax(0,14ch) var(--edge-w);
}
.fixtures .fixture-row + .fixture-row, .results .fixture-row + .fixture-row{ border-top:1px solid var(--line, #e5e7eb) }
.fixtures .col .fixture-row:first-child, .results .col .fixture-row:first-child{ border-top:0 }

/* Lead/tail + truncation */
.fixtures .cell--lead,.results .cell--lead,
.fixtures .cell--tail,.results .cell--tail{ display:flex; align-items:center; gap:4px; width:var(--edge-w) }
.fixtures .team, .results .team{ min-width:0 }
.fixtures .team>span, .results .team>span{ display:block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.fixtures .is-home .team:nth-of-type(2), .results .is-home .team:nth-of-type(2),
.fixtures .is-away .team:nth-of-type(2), .results .is-away .team:nth-of-type(2){ text-align:left;  justify-self:start }
.fixtures .is-home .team:nth-of-type(4), .results .is-home .team:nth-of-type(4),
.fixtures .is-away .team:nth-of-type(4), .results .is-away .team:nth-of-type(4){ text-align:right; justify-self:end }

/* KO/venue block */
.fixtures .versus, .results .versus{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px }
.fixtures .time, .results .time{ font-variant-numeric: tabular-nums; font-weight:800; font-size:.85rem; line-height:1.1 }

/* Venue chip, badges, chips */
.fixtures .venue-chip, .results .venue-chip{
  display:inline-flex; align-items:center; justify-content:center;
  height:16px; line-height:16px; padding:0 6px; border-radius:5px;
  font-size:.62rem; font-weight:700; white-space:nowrap;
  /* no background / color / border here — let brand.marlowhc.css set them */
}
.fixtures .badge, .results .badge{
  display:inline-flex; align-items:center; justify-content:center;
  height:18px; line-height:18px; padding:0 6px; border-radius:999px;
  font-size:.68rem; font-weight:700; border:1px solid transparent;
}
.fixtures .badge[data-cat], .results .badge[data-cat]{ width:18px; height:18px; padding:0; border-radius:50%; font-size:.62rem }
.fixtures .chips, .results .chips{ display:flex; align-items:center; gap:6px }
.fixtures .chip, .results .chip{
  display:inline-flex; align-items:center; justify-content:center;
  height:22px; padding:0 8px; border-radius:999px;
  font-size:12px; font-weight:600; letter-spacing:.2px;
  border:1px solid transparent; background:transparent; color:inherit;
}

/* Empty rows */
.fixtures .fixture-row .empty, .results .fixture-row .empty{
  grid-column:1/-1; display:flex; align-items:center; justify-content:center;
  min-height:var(--row-h); white-space:nowrap;
  color: color-mix(in oklab, var(--ink, #111) 70%, transparent);
}

/* Week picker */
.fixtures .week-picker, .results .week-picker{ position:relative; display:inline-block }
.fixtures .week-btn, .results .week-btn{
  height:36px; border-radius:10px; padding:0 12px; cursor:pointer;
  border:1px solid var(--line, #e5e7eb); background: var(--panel, #fff); color: var(--ink, #111);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.fixtures .week-menu, .results .week-menu{
  position:absolute; z-index:30; top:110%; left:0; width:340px;
  border-radius:12px; padding:12px; display:none;
  border:1px solid var(--line, #e5e7eb);
  background: var(--panel, #fff);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.fixtures .week-menu.open, .results .week-menu.open{ display:block }
.fixtures .week-menu .range, .results .week-menu .range{ width:100%; margin:4px 0 8px }
.fixtures .week-menu .options, .results .week-menu .options{ max-height:240px; overflow:auto; margin-top:8px; padding-top:8px; border-top:1px solid var(--line, #e5e7eb) }
.fixtures .week-menu .opt, .results .week-menu .opt{ display:block; width:100%; text-align:left; border:0; padding:6px 6px; border-radius:8px; cursor:pointer; background:transparent; color: var(--ink, #111) }

/* Results rows / panels / sections */
.fixtures .row, .results .row{
  display:grid; grid-template-columns: 160px 1fr 60px 1fr 200px;
  gap:12px; align-items:center; height:46px; padding:0 14px;
  border-top:1px solid var(--line, #e5e7eb);
}
.fixtures .row:first-child, .results .row:first-child{ border-top:none }
.fixtures .lead,.fixtures .home,.fixtures .mid,.fixtures .away,.fixtures .tail,
.results .lead,.results .home,.results .mid,.results .away,.results .tail{ min-width:0 }
.fixtures .lead, .results .lead{ display:flex; align-items:center; gap:8px }
.fixtures .time, .results .time{ font-variant-numeric:tabular-nums; font-weight:700 }
.fixtures .home,.results .home,
.fixtures .away,.results .away{ font-size:16px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.fixtures .mid,  .results .mid{ text-align:center; font-weight:700 }
.fixtures .tail, .results .tail{ font-size:13px; color: var(--muted, #6b7280); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }

.fixtures .panel, .results .panel{
  background: var(--panel, #fff); border:1px solid var(--line, #e5e7eb);
  border-radius:16px; box-shadow:var(--shadow); overflow:hidden;
}
.fixtures .section, .results .section{
  padding:10px 12px; font-size:13px; letter-spacing:.25px;
  color: var(--muted, #6b7280); background: var(--panel, #fff);
  border-top:1px solid var(--line, #e5e7eb);
}
.fixtures .section:first-child, .results .section:first-child{ border-top:0 }

/* Scoreband / versus */
.fixtures .versus, .results .versus{ position:relative; display:flex; align-items:center; justify-content:center; width:var(--mid-w, 64px) }
.fixtures .ko-time, .results .ko-time{ font-weight:800; font-variant-numeric:tabular-nums; line-height:1 }
.fixtures .scoreband, .results .scoreband{ display:inline-flex; flex-direction:column; align-items:center; line-height:1 }
.fixtures .scoreband .score-row, .results .scoreband .score-row{ display:inline-flex; align-items:baseline; gap:10px }
.fixtures .scoreband .cell, .results .scoreband .cell{
  display:inline-block; padding:2px 8px; border-radius:6px; font-weight:800; font-size:1.1rem; line-height:1; font-variant-numeric:tabular-nums; text-align:center;
}
.fixtures .scoreband .sep, .results .scoreband .sep{ width:1px; height:1em; display:inline-block }
.fixtures .scoreband .score-sub, .results .scoreband .score-sub{
  position:absolute; top:calc(100% + 2px); left:50%; transform:translateX(-50%); margin:0; font-size:.78rem; text-transform:uppercase; letter-spacing:.02em;
}

/* Names/codes responsive rules */
@media (min-width: 769px){
  .fixtures .fixture-row .team .team__code, .results .fixture-row .team .team__code{ display:none !important; }
  .fixtures .fixture-row .team .team__name.is-single, .results .fixture-row .team .team__name.is-single{
    display:inline-block; max-width:14ch; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; vertical-align:baseline;
  }
  .fixtures .fixture-row .team .team__name.is-multi, .results .fixture-row .team .team__name.is-multi{
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    white-space:normal; line-height:1.12; overflow:hidden; text-wrap:balance;
    max-width:14ch; max-height:calc(1em * 1.12 * 2); vertical-align:baseline;
  }
}
@media (max-width: 768px){
  .fixtures .fixture-row .team .team__name, .results .fixture-row .team .team__name{ display:none !important; }
  .fixtures .fixture-row .team .team__code, .results .fixture-row .team .team__code{
    display:inline-block !important; max-width:7ch; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:normal !important; letter-spacing:normal !important; vertical-align:baseline;
  }
}

/* ==========================================================================
   INDEX — SCOPE: body.ix + ix-* (unique; no collisions)
   ========================================================================== */

body.ix{ background:var(--hero-bg, var(--bg)); color:var(--ink); font-family:var(--font-sans); line-height:1.45 }

/* Centered container */
.ix .ix-container{ max-width:clamp(900px, 84vw, 1080px); margin:0 auto; padding:0 var(--pad) }

/* NAV — brand left, login right */
.ix .ix-nav{ position:sticky; top:0; z-index:20; backdrop-filter:blur(8px); background:var(--nav-bg, rgba(0,0,0,.5)); border-bottom:1px solid var(--line) }
.ix .ix-nav__row{ display:flex; align-items:center; justify-content:space-between; gap:16px; height:62px }
.ix .ix-brand{ display:inline-flex; align-items:center; gap:10px; font-weight:800 }
.ix .ix-brand__mark{ width:20px; height:20px; border-radius:6px; background:var(--brand) }
.ix .ix-nav__right{ display:flex; align-items:center; gap:18px }
.ix .ix-link{ text-decoration:none; font-weight:700; color:var(--ink) }

/* HERO (with generous vertical breathing space) */
.ix .ix-hero{ padding: clamp(72px, 10vh, 220px) 0 }
.ix .ix-hero h1{
  font-size: clamp(2rem, 2.2vw + 1.1rem, 2.8rem);
  line-height:1.08; margin:0 0 12px;
}
.ix .ix-lead{ color:var(--muted); max-width:60ch }
.ix .ix-muted{ color:var(--muted) }

/* Single-line hero on wide screens (per your screenshot) */
@media (min-width:1100px){
  .ix .ix-hero h1{ white-space:nowrap; max-width:none }
  .ix .ix-lead{ white-space:nowrap; max-width:none }
  .ix .ix-muted, .ix .ix-muted small{ white-space:nowrap }
}

/* FEATURES */
.ix .ix-section{ padding: clamp(48px, 5vh, 120px) 0; border-top:1px solid var(--line) }
.ix .ix-grid{ display:grid; gap:24px }
.ix .ix-grid-3{ grid-template-columns: repeat(3, 1fr) }
@media (max-width: 960px){ .ix .ix-grid-3{ grid-template-columns: 1fr 1fr } }
@media (max-width: 640px){ .ix .ix-grid-3{ grid-template-columns: 1fr } }

/* Cards */
.ix .ix-card{
  background: var(--panel); border:1px solid var(--line);
  border-radius: var(--radius); padding: var(--card-pad);
  box-shadow: var(--shadow-2);
}
.ix .ix-card h3{ font-size: var(--h3, 1.3rem); margin:0 0 8px }

/* CTA */
.ix .ix-actions{ display:flex; justify-content:center; margin-top: clamp(24px, 6vh, 56px) }
.ix .ix-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:42px; padding:0 16px; border-radius:12px; border:1px solid var(--line);
  background:var(--panel); color:var(--ink); text-decoration:none; font-weight:700;
  box-shadow: var(--shadow-2);
}
.ix .ix-btn--mint{
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 70%, black 30%));
  color:#041612; box-shadow:0 8px 18px color-mix(in oklab, var(--accent) 18%, transparent);
}

/* FOOTER */
.ix .ix-foot{ background: var(--foot-bg, var(--panel)); border-top:1px solid var(--line); padding: clamp(24px, 4vh, 48px) 0 }
.ix .ix-foot small{ color: var(--muted) }



/* ==========================================================================
   AUTH — SCOPE: body.auth  (login/forgot/reset)
   Uses Scorecery brand tokens; no collisions with fixtures/results/index
   ========================================================================== */
body.auth{
  margin:0; font-family:var(--font-sans);
  min-height:100dvh; display:flex; flex-direction:column;
  background: var(--bg); color: var(--ink);
}

/* top bar */
body.auth header.topbar{
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
body.auth .topbar__row{
  display:flex; align-items:center; justify-content:space-between;
  height:60px; max-width:1100px; margin:0 auto;
}
body.auth .brand{ display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--ink); font-weight:800 }
body.auth .brand__mark{ width:20px; height:20px; border-radius:6px; background:var(--brand) }
body.auth .brand__mark--lg{ width:40px; height:40px }

/* auth layout */
body.auth main.auth{
  flex:1; display:grid; place-items:center;
  padding:32px 16px;
}
body.auth .auth__card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  width: min(420px, 100%);
}
body.auth .auth__head{ text-align:center; margin-bottom:24px }
body.auth .auth__head h1{ margin:12px 0 6px; font-size:1.5rem }
body.auth .muted{ color: var(--muted) }

/* alerts */
body.auth .alert{ border-radius:8px; padding:10px 14px; margin:0 0 16px }
body.auth .alert--error{ background: color-mix(in oklab, #ff0000 10%, white 90%); color:#991b1b }

/* form fields */
body.auth .field{ display:grid; gap:6px; margin:0 0 16px }
body.auth .field__label{ font-weight:600; font-size:.9rem }
body.auth .field__input{
  height:42px; border-radius:10px; border:1px solid var(--line);
  background: var(--panel); color: var(--ink);
  padding: 0 12px; font-size:1rem;
}
body.auth .field__input:focus{ outline:2px solid var(--brand-ring) }

/* row with remember + forgot */
body.auth .auth__row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; font-size:.9rem }
body.auth .auth__row .check{ display:flex; align-items:center; gap:6px }
body.auth .auth__row .link{ color: var(--brand); text-decoration:none; font-weight:700 }

/* buttons */
body.auth .btn{ display:inline-flex; align-items:center; justify-content:center; cursor:pointer }
body.auth .btn--primary{
  background: var(--brand); color: var(--brand-ink);
  border: 0; border-radius:12px; font-weight:800;
  height:42px; padding:0 16px;
}
body.auth .btn--full{ width:100% }

/* footer text */
body.auth .auth__foot{ text-align:center; margin-top:20px; color:var(--muted); font-size:.85rem }


/* ==========================================================================
   DASHBOARD — SCOPE: body.dashboard
   ========================================================================== */
body.dashboard{
  margin:0; font-family:var(--font-sans);
  background: var(--bg); color: var(--ink);
  min-height:100dvh; display:flex; flex-direction:column;
}

/* width + padding for dashboard containers */
body.dashboard .container{ max-width:clamp(980px,90vw,1100px); margin:0 auto; padding:32px 16px }

/* top bar */
body.dashboard .topbar{ background:var(--panel); border-bottom:1px solid var(--line) }
body.dashboard .topbar__row{ display:flex; align-items:center; justify-content:space-between; height:60px; padding:0 16px }
body.dashboard .brand{ display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--ink); font-weight:800 }
body.dashboard .brand__mark{ width:20px; height:20px; border-radius:6px; background:var(--brand) }

/* nav */
body.dashboard .dash-nav{ display:flex; gap:20px }
body.dashboard .dash-nav a{ color:var(--ink); text-decoration:none; font-weight:600 }
body.dashboard .dash-nav a:hover{ color:var(--brand) }

/* main area */
body.dashboard .dash{ flex:1; }
body.dashboard .dash__welcome{ margin-bottom:24px }
body.dashboard .dash__welcome h1{ margin:0 0 6px; font-size:1.8rem }
body.dashboard .muted{ color:var(--muted) }

/* cards grid */
body.dashboard .dash__grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px }
body.dashboard .dash-card{
  background:var(--panel); border:1px solid var(--line);
  border-radius:16px; box-shadow:var(--shadow); padding:24px;
}
body.dashboard .dash-card h2{ margin:0 0 8px; font-size:1.25rem }
body.dashboard .dash-card p{ margin:0 0 16px; color:var(--muted) }

/* buttons (reusable) */
body.dashboard .btn{ display:inline-flex; align-items:center; justify-content:center; height:42px; padding:0 16px; border-radius:12px; font-weight:700; text-decoration:none; cursor:pointer }
body.dashboard .btn--primary{ background:var(--brand); color:var(--brand-ink); border:0; box-shadow:var(--shadow-2) }

/* =====================================================================
   RESULTS PAGE STRUCTURE
   ===================================================================== */

/* Centered container */
body.results .container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Row height + alignment */
body.results .row {
  display: flex;
  align-items: center;
  min-height: var(--row-h, 56px); /* match Fixtures */
  border-bottom: 1px solid var(--line);
}
body.results .row:last-child {
  border-bottom: none; /* clean end */
}

/* Date column no wrap */
body.results td.date {
  white-space: nowrap;
}

/* Actions inline */
body.results .btn-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
body.results .btn-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Table baseline */
body.results table {
  width: 100%;
  border-collapse: collapse;
}
body.results th,
body.results td {
  padding: 12px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
body.results tr:last-child td {
  border-bottom: none;
}

/* =======================================================================
   RESULTS ADMIN (scoped to body.results-admin)
   ======================================================================= */
body.results-admin{ background: var(--bg); color: var(--ink); font-family: var(--font-sans, system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif); }
.results-admin .wrap{ max-width:1100px; margin:32px auto; padding:0 16px; }
.results-admin h1{ margin:0 0 12px; font-size:22px }
.results-admin .muted{ color: var(--muted) }

/* Cards + table */
.results-admin .card{ background: var(--panel, #0e1117); border:1px solid var(--line); border-radius:12px; padding:16px; overflow:hidden; }
.results-admin table{ width:100%; border-collapse:collapse; border-spacing:0 }
.results-admin th,.results-admin td{ border-bottom:1px solid var(--line); padding:12px 10px; text-align:left; vertical-align:middle }
.results-admin th{ font-size:12px; color: var(--muted) }
.results-admin tr:last-child td{ border-bottom:none; }

/* Filters grid */
.results-admin .filters{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
  align-items:end;
}
@media (max-width: 960px){
  .results-admin .filters{ grid-template-columns: 1fr; }
}
.results-admin label{ display:block; font-size:12px; color: var(--muted); margin:0 0 6px }
.results-admin select,
.results-admin input[type="month"]{
  width:100%; padding:10px; background: var(--input-bg, #0b1220);
  border:1px solid var(--input-bd, #1f2a44); border-radius:10px; color: var(--input-fg, var(--ink));
}

/* Buttons */
.results-admin .btn{
  padding:10px 14px; border-radius:10px; border:1px solid #2a3346;
  background: #111827; color: var(--ink); cursor:pointer; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
}
.results-admin .btn.primary{ background: var(--brand, #6D5EF5); border-color: color-mix(in oklab, var(--brand) 60%, black 40%); color: #0D0E14 }
.results-admin .btn.delete{  background:#111827; border-color:#5b2020; color:#ffb4b4 }

.results-admin .nowrap{ white-space:nowrap }
.results-admin .btn-row{ display:inline-flex; gap:8px; align-items:center; white-space:nowrap }

/* Badges */
.results-admin .badge{
  display:inline-flex; align-items:center; justify-content:center;
  height:20px; padding:0 8px; border-radius:999px;
  border:1px solid #2a3346; background:#0b1220; font-size:.72rem; font-weight:700;
}

/* Pagination */
.results-admin .pager{ display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:12px; flex-wrap:wrap }
.results-admin .pager a, .results-admin .pager .current{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; height:34px; padding:0 10px; border-radius:8px; text-decoration:none;
  border:1px solid #2a3346; background:#111827; color: var(--ink); font-weight:700;
}
.results-admin .pager .current{ background:#1a2133; border-color:#364261 }
.results-admin .pager .muted{ color: var(--muted); border-color:transparent; background:transparent; padding:0 6px; min-width:auto }

/* ===== Async feedback (overlay + toast + progress) ===== */
#overlay[hidden]{display:none}
#overlay{
  position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.15); backdrop-filter: blur(3px);
}
.ol-card{
  min-width:260px; padding:14px 16px; border-radius:12px;
  background: var(--panel); border:1px solid var(--line); box-shadow: var(--shadow);
  display:flex; gap:10px; align-items:center;
}
.spinner{ width:20px; height:20px; border-radius:50%; border:3px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite }
@keyframes spin{ to{ transform: rotate(360deg) } }

#toast[hidden]{display:none}
#toast{
  position: fixed; right: 16px; bottom: 16px; z-index: 1001;
  display:flex; align-items:center; gap:8px; padding:10px 12px;
  border:1px solid var(--line); background: var(--panel); border-radius: 10px; box-shadow: var(--shadow);
  max-width: 520px; font-weight: 600;
}
#toast.ok{ outline: 2px solid rgba(16,185,129,.4) }
#toast.err{ outline: 2px solid rgba(239,68,68,.4) }
#toast pre{ margin:0; font: 12px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space:pre-wrap; }

/* Progress bar (indeterminate) */
.progress { width:100%; height:8px; background: var(--panel-2); border:1px solid var(--line); border-radius: 999px; overflow:hidden }
.progress .bar { height:100%; width:35%; border-radius:999px; background: var(--brand); animation: indet 1.2s ease-in-out infinite }
@keyframes indet {
  0% { transform: translateX(-100%) }
  50%{ transform: translateX(20%) }
  100%{ transform: translateX(120%) }
}

/* ===== Mid-cell centering & tidy spacing (results/fixtures) ===== */
.fixtures .versus, .results .versus{
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;  /* vertical + horizontal */
}

.fixtures .scoreband .score-row,
.results  .scoreband .score-row{
  display:flex; align-items:center; justify-content:center; /* center the two cells */
  gap:10px; line-height:1;
}

/* Ensure each “cell” (P / C / - / numbers) is centered and same width feel */
.fixtures .scoreband .cell,
.results  .scoreband .cell{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:1.25ch;       /* keeps P/C/- looking balanced */
  padding:2px 8px;        /* same padding as your numeric cells */
  border-radius:6px;      /* matches your existing score pill */
  text-align:center; font-weight:800; font-variant-numeric:tabular-nums;
}

/* Optional: slightly tighter look for letters so they don't feel heavier than digits */
.fixtures .scoreband .cell:empty,
.results  .scoreband .cell:empty{ padding:2px 8px } /* keep height consistent even when blank */

/* Keep the sublabel (FT/HT/AET/time) subtle */
.fixtures .scoreband .score-sub,
.results  .scoreband .score-sub{ color: var(--muted); }

/* You can also target a special class if you used the PHP that emits .center */
.results .scoreband.center .score-row,
.fixtures .scoreband.center .score-row{ justify-content:center; }


/* page background + centering */
.fa-wrap{
  min-height: 100dvh;
  display: flex;
  justify-content: center;        /* horizontal center */
  padding: 32px 16px;
  background: #0b0f17;            /* your dark admin bg */
}

/* the single “container that circles everything” */
.fa-card{
  width: min(1200px, 96vw);        /* responsive max width */
  background: #0f1522;             /* panel color */
  border: 1px solid #1f2a44;       /* thin outline */
  border-radius: 16px;             /* << rounded corners wrap ALL */
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  overflow: hidden;                /* keeps children clipped to radius */
}

/* header strip (optional) */
.fa-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #1f2a44;
}
.fa-head h1{ margin:0; font-size: 20px; color:#e5e7eb; }

/* filters block inside the same card */
.fa-filters{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  padding: 14px 20px 18px;
  background: #0f1522;
  border-bottom: 1px solid #1f2a44;
}
@media (max-width: 900px){
  .fa-filters{ grid-template-columns: 1fr; }
}

/* keep table inside rounded card without square scrollbars chopping corners */
.fa-table-scroll{
  overflow:auto;                   /* scroll if needed */
  max-height: calc(100dvh - 240px);/* optional: keep on-screen */
}

/* table styling */
.fa-table{
  width:100%;
  border-collapse: separate;       /* important for row separators */
  border-spacing: 0;
  color:#e5e7eb;
}
.fa-table thead th{
  position: sticky; top: 0;
  background: #0f1522;
  z-index: 1;
  text-align:left;
  font-size: 12px; font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2a44;
}
.fa-table tbody td{
  padding: 14px 16px;
  border-bottom: 1px solid #162038;
  vertical-align: middle;
}

/* pill buttons you already have */
.fa-table .pill,
.fa-filters .pill{
  display:inline-flex; align-items:center; gap:8px;
  height: 32px; padding: 0 12px;
  border:1px solid #2a3346; border-radius: 999px;
  background:#111827; color:#d1d5db; font-weight:700; text-decoration:none;
}

/* action buttons column */
.fa-table .btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 64px; height: 32px; padding: 0 12px;
  border-radius: 10px; border:1px solid #2a3346;
  background:#111827; color:#e5e7eb; font-weight:700;
}
.fa-table .btn:hover{ background:#152036; }

/* last row: remove bottom border for a neat end inside the rounded card */
.fa-table tbody tr:last-child td{ border-bottom: none; }

/* optional: tighten row height for dense tables */
.fa-table tbody tr td{ line-height: 1.25; }

/* Kill red between rows (no HTML changes) */
.container.fixtures-card .col {
  display: flex;
  flex-direction: column;
  gap: 0;                 /* if you used gap/row-gap */
}

.container.fixtures-card .fixture-row {
  margin: 0;              /* remove outside gaps exposing red */
  background: #0b2742;    /* same as your card panel */
  padding: 8px 0;         /* keep spacing inside the row */
}

.container.fixtures-card .fixture-row + .fixture-row {
  border-top: 1px solid rgba(255,255,255,0.08); /* subtle separator */
}

/* Make sure parents aren’t showing through */
.container.fixtures-card .card,
.container.fixtures-card .day-block,
.container.fixtures-card .columns.two-col,
.container.fixtures-card .columns.two-col > .col {
  background: #0b2742;
}
