:root {
  --brand-orange:#ff5533; --brand-orange-deep:#d9411d; --brand-navy:#070b18;
  --pitch-green:#19b86a; --action-blue:#2f9dff;
  --bg: var(--brand-navy); --surface: #101827; --card: #111b33; --card2: #17233f;
  --border: rgba(255,255,255,.10); --border2: rgba(255,255,255,.18);
  --A: var(--brand-orange); --B: var(--action-blue);
  --gold: #f6c445; --green: var(--pitch-green); --red: #ef4444; --purple: #aa88ff;
  --text: #f8fbff; --sub: #c3cee4; --muted: #8f9cb7;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-body); background: var(--bg);
  color: var(--text); min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
}
body::after {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse 70% 40% at 15% 0%, rgba(255,85,51,.10) 0%, transparent 65%),
    radial-gradient(ellipse 60% 35% at 85% 100%, rgba(25,184,106,.10) 0%, transparent 65%),
    linear-gradient(90deg, rgba(25,184,106,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25,184,106,.035) 1px, transparent 1px);
  background-size:auto, auto, 28px 28px, 28px 28px;
}

/* ── SCHOOL SELECTOR (shown when no ?name= param) ── */
#fixturesSelectorScreen {
  display:none; flex-direction:column; width:100%; max-width:520px;
  padding:24px 14px 80px; position:relative; z-index:1;
}
.fx-brand { font-family:var(--font-display); font-size:22px; font-weight:900; display:flex; align-items:center; gap:8px; margin-bottom:28px; }
.fx-brand img { width:30px; height:30px; border-radius:8px; background:var(--A); box-shadow:0 8px 18px rgba(255,85,51,.22); }
.fx-brand em { color:var(--A); font-style:normal; }
.fx-heading { font-family:var(--font-display); font-size:28px; font-weight:900; line-height:1.1; margin-bottom:6px; }
.fx-sub { font-size:13px; color:var(--sub); margin-bottom:24px; }
.public-ad-slot {
  width:100%; margin:0 0 16px; cursor:pointer; color:var(--text);
  background:linear-gradient(135deg,rgba(255,85,51,.12),rgba(25,184,106,.08));
  border:1.5px solid rgba(255,255,255,.14); border-radius:16px;
  overflow:hidden; box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.public-ad-slot:active { opacity:.86; }
.public-ad-slot:focus { outline:2px solid rgba(255,204,0,.65); outline-offset:3px; }
.public-ad-inner {
  min-height:72px; display:flex; align-items:center; gap:12px;
  padding:12px 14px;
}
.public-ad-badge {
  width:42px; height:42px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  font-family:var(--font-display); font-size:18px; font-weight:900;
  overflow:hidden;
}
.public-ad-badge img { width:100%; height:100%; object-fit:contain; }
.public-ad-copy { flex:1; min-width:0; }
.public-ad-name {
  font-family:var(--font-display); font-size:20px; font-weight:900;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.public-ad-tag {
  font-size:12px; color:var(--sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.public-ad-label {
  font-size:9px; color:var(--muted); letter-spacing:1.2px; font-weight:800;
  white-space:nowrap;
}
.public-ad-banner { padding:0; position:relative; min-height:76px; }
.public-ad-banner img { display:block; width:100%; height:100%; min-height:76px; object-fit:cover; }
.public-ad-banner .public-ad-label {
  position:absolute; right:10px; bottom:8px; padding:3px 7px; border-radius:999px;
  background:rgba(0,0,0,.5); color:#fff;
}
.fx-input-wrap { position:relative; margin-bottom:10px; }
.fx-input {
  width:100%; padding:14px 16px; border-radius:14px;
  background:var(--card); border:1.5px solid var(--border2);
  color:var(--text); font-family:var(--font-body); font-size:16px;
  outline:none; transition:border-color .2s;
}
.fx-input:focus { border-color:var(--A); }
.fx-input::placeholder { color:var(--muted); }
.fx-go {
  width:100%; padding:14px; border-radius:14px; border:none;
  background:linear-gradient(135deg,var(--A),var(--brand-orange-deep)); color:#fff; cursor:pointer;
  font-family:var(--font-display); font-size:18px; font-weight:900;
  letter-spacing:1px; margin-bottom:20px;
}
.fx-go:active { opacity:.85; }
.fx-go:disabled { opacity:.4; cursor:not-allowed; }
.fx-known-label { font-size:10px; color:var(--muted); letter-spacing:1.5px; font-weight:700; margin-bottom:10px; }
.fx-known-list { display:flex; flex-direction:column; gap:8px; }
.fx-known-item {
  background:var(--card); border:1.5px solid var(--border); border-radius:14px;
  padding:14px 16px; cursor:pointer; display:flex; align-items:center; gap:12px;
  text-decoration:none; color:var(--text);
}
.fx-known-item:active { opacity:.8; }
.fx-ki-logo {
  width:40px; height:40px; border-radius:50%; flex-shrink:0;
  background:var(--card2); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:14px; font-weight:900;
  border:1.5px solid var(--border2);
}
.fx-ki-info { flex:1; min-width:0; }
.fx-ki-name { font-family:var(--font-display); font-size:17px; font-weight:800; }
.ss-ki-meta { font-size:11px; color:var(--sub); margin-top:2px; }
.fx-ki-arrow { color:var(--muted); font-size:16px; }
.fx-loading { text-align:center; color:var(--muted); font-size:13px; padding:20px 0; }

/* ── LOADING ── */
#loadingScreen {
  position:fixed; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:16px; z-index:100; background:var(--bg);
}
.logo-brand { font-family:var(--font-display); font-size:32px; font-weight:900; display:flex; align-items:center; gap:10px; }
.logo-brand img { width:36px; height:36px; border-radius:9px; background:var(--A); box-shadow:0 8px 18px rgba(255,85,51,.22); }
.logo-brand em { color:var(--A); font-style:normal; }
.spinner { width:32px; height:32px; border:3px solid var(--border); border-top-color:var(--A); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── WRAPPER ── */
#boardWrap {
  display:none; flex-direction:column; width:100%; max-width:520px;
  padding:14px 14px 148px; position:relative; z-index:1;
}

/* ── TOP BAR ── */
.topbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:16px;
}
.tb-left { display:flex; align-items:center; gap:8px; min-width:0; }
.tb-brand { font-family:var(--font-display); font-size:18px; font-weight:900; display:flex; align-items:center; gap:7px; }
.tb-brand img { width:26px; height:26px; border-radius:7px; background:var(--A); box-shadow:0 8px 18px rgba(255,85,51,.22); }
.tb-brand em { color:var(--A); font-style:normal; }
.tb-actions { display:flex; align-items:center; gap:8px; }
.tb-share-btn {
  font-family:var(--font-display); font-size:12px; font-weight:800;
  letter-spacing:.8px; padding:6px 12px; border-radius:20px;
  border:1.5px solid var(--border2); background:transparent; color:var(--sub); cursor:pointer;
  white-space:nowrap;
}
.tb-share-btn:active { opacity:.75; }

@media (max-width: 380px) {
  .topbar { align-items:flex-start; gap:10px; }
  .tb-actions { flex-direction:column; align-items:flex-end; gap:6px; }
  .tb-share-btn { font-size:11px; padding:5px 10px; }
}

/* ── SCHOOL HEADER ── */
.fixtures-header {
  background:var(--card); border:1.5px solid var(--border); border-radius:18px;
  padding:16px; margin-bottom:20px;
  display:flex; align-items:center; gap:14px;
}
.fx-logo {
  width:54px; height:54px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:18px; font-weight:900;
  border:2px solid rgba(255,255,255,.12);
  background: var(--card2);
}
.fx-logo img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.sh-info { flex:1; min-width:0; }
.fx-name { font-family:var(--font-display); font-size:26px; font-weight:900; line-height:1; letter-spacing:.5px; }
.fx-meta { font-size:12px; color:var(--sub); margin-top:4px; }
.fx-filters {
  display:flex; gap:6px; margin-top:10px; flex-wrap:wrap;
}
.fx-filter-group {
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  width:100%;
}
.fx-filter-label {
  font-family:var(--font-display); font-size:10px; font-weight:800;
  letter-spacing:.8px; color:var(--muted); margin-right:2px;
}
.sf-pill {
  font-family:var(--font-display); font-size:11px; font-weight:800;
  letter-spacing:.5px; padding:4px 10px; border-radius:20px;
  border:1.5px solid var(--border); background:transparent; color:var(--muted); cursor:pointer;
}
.sf-pill.active { background:rgba(255,204,0,.1); color:var(--gold); border-color:var(--gold); }
.sf-pill:active { opacity:.75; }

/* ── DATE FILTER ── */
.fixtures-search-row {
  margin-bottom:10px;
}
.fixture-search-input {
  width:100%; background:var(--card); border:1.5px solid var(--border);
  border-radius:10px; padding:10px 12px; color:var(--text);
  font-family:var(--font-body); font-size:14px; outline:none;
}
.fixture-search-input:focus { border-color:var(--gold); }
.fixture-search-input::placeholder { color:var(--muted); }
.date-row {
  display:flex; align-items:center; gap:8px; margin-bottom:16px;
}
.date-row label { font-size:11px; color:var(--muted); letter-spacing:.5px; font-weight:600; white-space:nowrap; }
.date-input {
  flex:1; background:var(--card); border:1.5px solid var(--border); border-radius:10px;
  color:var(--text); font-family:var(--font-body); font-size:13px;
  padding:6px 10px; outline:none; color-scheme:dark;
}
.date-input:focus { border-color:var(--border2); }
.date-clear {
  font-family:var(--font-display); font-size:11px; font-weight:800;
  letter-spacing:.5px; color:var(--muted); cursor:pointer; white-space:nowrap;
  background:none; border:none; padding:4px;
}
.date-clear:hover { color:var(--sub); }

.tier-upgrade-cta {
  background:var(--card); border:1.5px solid var(--border);
  border-left:3px solid var(--A); border-radius:14px;
  color:var(--sub); font-size:13px; line-height:1.35;
  padding:13px 14px; margin:12px 0 16px;
  text-align:center;
}
.tier-upgrade-cta strong { color:var(--A); font-weight:800; }
.tier-upgrade-link {
  color:inherit;
  text-decoration:none;
  display:block;
}
.tier-upgrade-link:hover { text-decoration:underline; }

/* ── SECTION HEADER ── */
.section-head {
  display:flex; align-items:center; gap:8px; margin-bottom:10px; margin-top:4px;
}
.fx-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.fx-dot.live { background:var(--red); box-shadow:0 0 8px var(--red); animation:dotPulse 1.5s ease-in-out infinite; }
.fx-dot.sched { background:var(--B); }
.fx-dot.done  { background:var(--gold); }
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.85)} }
.fx-label { font-family:var(--font-display); font-size:13px; font-weight:800; letter-spacing:1.5px; }
.fx-label.live  { color:var(--red); }
.fx-label.sched { color:var(--B); }
.fx-label.done  { color:var(--gold); }
.fx-count { font-size:11px; color:var(--muted); margin-left:auto; }

/* ── MATCH CARD ── */
.match-card {
  background:var(--card); border:1.5px solid var(--border); border-radius:16px;
  padding:14px; margin-bottom:10px; cursor:pointer; text-decoration:none; display:block;
  transition:border-color .15s, transform .15s, background .15s;
  width:100%; color:var(--text); font-family:var(--font-body); text-align:left;
  appearance:none; -webkit-appearance:none;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}
.match-card:link,
.match-card:visited,
.match-card:hover,
.match-card:focus { color:var(--text); text-decoration:none; }
button.match-card { font:inherit; }
.match-card:active { opacity:.85; transform:scale(.99); }
.match-card.live-card  { border-color:rgba(255,68,68,.4); }
.match-card.sched-card { border-color:rgba(51,170,255,.3); }
.match-card.done-card  { border-color:var(--border); }

.mc-top {
  display:flex; align-items:center; gap:8px; margin-bottom:10px;
}
.mc-sport {
  font-size:11px; color:var(--muted); font-weight:600; letter-spacing:.5px; flex:1;
  display:flex; align-items:center; gap:5px; flex-wrap:wrap; min-width:0;
}
.mc-badge {
  font-family:var(--font-display); font-size:10px; font-weight:800; letter-spacing:1px;
  padding:3px 8px; border-radius:10px;
}
.mc-badge.live  { background:rgba(255,68,68,.15); color:var(--red); border:1px solid rgba(255,68,68,.4); animation:livePulse 2s ease-in-out infinite; }
.mc-badge.sched { background:rgba(51,170,255,.1); color:var(--B); border:1px solid rgba(51,170,255,.3); }
.mc-badge.done  { background:rgba(0,230,118,.08); color:var(--green); border:1px solid rgba(0,230,118,.2); }
.mc-badge.incomplete { background:rgba(255,204,0,.1); color:var(--gold); border:1px solid rgba(255,204,0,.35); }
.mc-badge.cancelled { background:rgba(144,144,184,.08); color:var(--sub); border:1px solid var(--border); }
@keyframes livePulse { 0%,100%{opacity:1}50%{opacity:.6} }

.mc-body {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:6px;
}
.mc-team {
  display:flex; align-items:center; gap:8px;
}
.mc-team.away {
  flex-direction:row-reverse; text-align:right;
}
.mc-tlogo {
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:12px; font-weight:900;
  color:#fff;
  border:1.5px solid rgba(255,255,255,.1); overflow:hidden;
  position:relative;
}
.mc-tlogo img { width:80%; height:80%; object-fit:contain; }
.mc-tlogo .mc-abbr { line-height:1; }
.mc-tlogo img + .mc-abbr { display:none; }
.mc-tlogo[data-show-abbr="1"] img { display:none; }
.mc-tlogo[data-show-abbr="1"] .mc-abbr { display:inline; }
.mc-tlogo.light-text { color:#111827; border-color:rgba(0,0,0,.18); }
.mc-tmeta { min-width:0; }
.mc-team.away .mc-tmeta { align-items:flex-end; display:flex; flex-direction:column; }
.mc-tname {
  font-family:var(--font-display); font-size:15px; font-weight:800;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width:110px;
  color:var(--text);
}
.mc-tage { font-size:10px; color:var(--sub); }

.mc-score {
  text-align:center;
}
.mc-score-nums {
  font-family:var(--font-display); font-size:28px; font-weight:900;
  line-height:1; letter-spacing:1px;
  display:flex; align-items:center; gap:4px; justify-content:center;
}
.mc-score-nums .sa { color:var(--A); }
.mc-score-nums .sb { color:var(--B); }
.mc-score-nums .sep { color:var(--muted); font-size:20px; }
.mc-score-nums .sa.w, .mc-score-nums .sb.w { filter:drop-shadow(0 0 8px currentColor); }
.mc-score-label { font-size:9px; color:var(--muted); letter-spacing:.5px; text-align:center; margin-top:2px; font-weight:600; }
.mc-vs { font-family:var(--font-display); font-size:14px; color:var(--muted); font-weight:700; }

.mc-footer {
  display:flex; align-items:center; gap:6px; margin-top:10px;
  padding-top:8px; border-top:1px solid var(--border);
  font-size:11px; color:var(--muted);
}
.mc-footer .mf-loc { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mc-footer .mf-date { white-space:nowrap; }
.mc-footer .mf-scorer { color:var(--muted); }
.mc-tags {
  display:flex; flex-wrap:wrap; gap:6px;
  margin-top:8px;
}
.mc-tag {
  font-size:10px; font-weight:700; line-height:1;
  color:var(--sub);
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:999px;
  padding:5px 8px;
}
.mc-winner-tag {
  font-size:10px; font-weight:700; color:var(--gold); margin-top:4px; text-align:center;
}
.mc-countdown {
  font-family:var(--font-display); font-size:13px; font-weight:800;
  color:var(--B); letter-spacing:.5px; text-align:center; margin-top:2px;
}
.mc-period {
  font-size:10px; color:var(--gold); font-weight:600; text-align:center; margin-top:2px;
}

/* ── EMPTY ── */
.empty-section {
  text-align:center; padding:20px 16px; color:var(--muted);
  font-size:13px; line-height:1.45;
  background:var(--card); border:1px dashed var(--border); border-radius:16px;
}

/* ── CTA FOOTER ── */
.cta-footer {
  position:fixed; bottom:0; left:0; right:0; z-index:10;
  background:linear-gradient(to top, var(--bg) 70%, transparent);
  padding:16px 14px 20px;
  display:flex; flex-direction:column; align-items:center;
}
.cta-footer-inner {
  max-width:520px; width:100%;
  display:flex; flex-direction:column; gap:10px;
}
.cta-back-btn {
  display:none;
  width:100%; box-sizing:border-box;
  font-family:var(--font-display); font-size:16px; font-weight:800;
  letter-spacing:.9px; padding:14px 18px; border-radius:14px;
  border:1.5px solid var(--border2); background:var(--card);
  color:var(--text); cursor:pointer;
  align-items:center; justify-content:center;
}
.cta-footer.board-active .cta-back-btn { display:flex; }
.cta-back-btn:active { opacity:.85; }
.cta-btn {
  width:100%;
  background:linear-gradient(135deg,var(--A),var(--brand-orange-deep)); color:#fff; border:none; border-radius:14px;
  padding:14px; cursor:pointer;
  font-family:var(--font-display); font-size:17px; font-weight:900; letter-spacing:1px;
  text-decoration:none; display:flex; align-items:center; justify-content:center; gap:8px;
}
.cta-btn:active { opacity:.85; }

/* ── LAST REFRESH ── */
.refresh-row {
  text-align:center; font-size:10px; color:var(--muted);
  margin-top:8px; margin-bottom:4px;
}

.fixture-detail-modal {
  position:fixed; inset:0; z-index:40; display:none;
  align-items:flex-end; justify-content:center; padding:16px 12px;
  background:rgba(0,0,0,.62);
}
.fixture-detail-modal.open { display:flex; }
.fixture-detail-panel {
  width:100%; max-width:520px; max-height:88dvh; overflow:auto;
  background:var(--surface); border:1.5px solid var(--border2);
  border-radius:18px 18px 14px 14px; padding:18px;
  box-shadow:0 -18px 60px rgba(0,0,0,.5); position:relative;
}
.fixture-detail-close {
  position:absolute; top:12px; right:12px; width:32px; height:32px;
  border-radius:50%; border:1.5px solid var(--border2);
  background:var(--card); color:var(--sub); cursor:pointer;
  font-family:var(--font-display); font-size:18px; font-weight:900;
}
.fixture-detail-kicker {
  font-family:var(--font-display); font-size:11px; font-weight:800;
  letter-spacing:1.3px; color:var(--muted); padding-right:40px;
}
.fixture-detail-title {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px;
  margin:8px 40px 10px 0;
}
.fixture-detail-team {
  display:flex; align-items:center; gap:9px; min-width:0;
}
.fixture-detail-team.away {
  flex-direction:row-reverse; text-align:right;
}
.fixture-detail-team.away .fixture-detail-team-copy {
  align-items:flex-end;
}
.fixture-detail-team-copy {
  display:flex; flex-direction:column; min-width:0;
}
.fixture-detail-team-name {
  font-family:var(--font-display); font-size:18px; font-weight:900;
  line-height:1; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width:150px;
}
.fixture-detail-team-tag {
  min-height:12px; margin-top:3px; font-size:10px; color:var(--sub);
}
.fixture-detail-vs {
  font-family:var(--font-display); font-size:12px; font-weight:900;
  color:var(--muted); letter-spacing:.8px;
}
.fixture-detail-score {
  display:flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-display); font-size:46px; font-weight:900;
  line-height:1; margin:10px 0 4px;
}
.fixture-detail-score .team-a { color:var(--A); }
.fixture-detail-score .team-b { color:var(--B); }
.fixture-detail-score .score-sep { color:var(--muted); font-size:28px; }
.fixture-detail-result {
  text-align:center; color:var(--gold); font-size:13px; font-weight:800;
  min-height:18px; margin-bottom:8px;
}
.fixture-detail-meta {
  color:var(--sub); font-size:12px; line-height:1.45; text-align:center;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:10px 0; margin:10px 0;
}
.fixture-detail-org-links {
  display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px;
  margin:10px 0 12px;
}
.fixture-detail-org-link {
  min-width:0; display:grid; gap:2px; align-items:center;
  text-decoration:none; color:var(--text);
  background:var(--card); border:1px solid var(--border); border-radius:12px;
  padding:10px 12px; text-align:center;
}
.fixture-detail-org-link span {
  font-family:var(--font-display); font-size:10px; font-weight:900;
  letter-spacing:1px; color:var(--muted);
}
.fixture-detail-org-link strong {
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-family:var(--font-display); font-size:14px; font-weight:900; letter-spacing:.5px;
}
.fixture-detail-org-link:active { opacity:.85; }
.fixture-detail-stats {
  display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin:12px 0;
}
.fixture-detail-stat {
  background:var(--card); border:1px solid var(--border); border-radius:10px;
  padding:9px 6px; text-align:center; min-width:0;
}
.fixture-detail-stat strong {
  display:block; font-family:var(--font-display); font-size:20px; line-height:1;
  color:var(--text);
}
.fixture-detail-stat.team-a strong { color:var(--A); }
.fixture-detail-stat.team-b strong { color:var(--B); }
.fixture-detail-stat span {
  display:block; color:var(--muted); font-size:9px; font-weight:700;
  letter-spacing:.5px; margin-top:4px;
}
.fixture-detail-log-wrap { margin-top:12px; }
.fixture-detail-log-head {
  font-family:var(--font-display); font-size:11px; font-weight:800;
  letter-spacing:1.2px; color:var(--muted); margin-bottom:7px;
}
.fixture-detail-log { display:flex; flex-direction:column; gap:6px; }
.fixture-log-item {
  display:grid; grid-template-columns:58px 1fr auto auto; gap:8px;
  align-items:center; background:var(--card); border:1px solid var(--border);
  border-radius:10px; padding:8px 9px; font-size:12px;
}
.fixture-log-time { color:var(--muted); font-weight:700; }
.fixture-log-team { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:800; color:var(--text); }
.fixture-log-delta { color:var(--gold); font-weight:900; }
.fixture-log-score { color:var(--sub); font-weight:800; }
.fixture-detail-empty {
  color:var(--muted); text-align:center; font-size:12px; padding:14px 0;
  border:1px dashed var(--border); border-radius:10px;
}
.fixture-detail-live {
  display:none; margin-top:14px; text-align:center; text-decoration:none;
  font-family:var(--font-display); font-size:13px; font-weight:900;
  letter-spacing:.8px; color:#fff; background:var(--A); border-radius:12px;
  padding:12px;
}
body.fixture-detail-open { overflow:hidden; }

@media (min-width: 640px) {
  .fixture-detail-modal { align-items:center; }
  .fixture-detail-panel { border-radius:18px; }
}

@media (max-width: 380px) {
  .fixture-detail-title { gap:6px; margin-right:36px; }
  .fixture-detail-team-name { max-width:105px; font-size:16px; }
  .fixture-detail-score { font-size:40px; }
  .fixture-detail-org-links { grid-template-columns:1fr; }
  .fixture-detail-stats { grid-template-columns:repeat(2, 1fr); }
  .fixture-log-item { grid-template-columns:48px 1fr auto; }
  .fixture-log-score { display:none; }
}

