/* ══════════════════════════════════════════════════════
   Stacey West Prediction League — Styled to match staceywest.net
   Red background, dark navy nav, white cards, red accents
   ══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #c8102e;
  color: #1a1a2e;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

/* ── App wrapper (white card in centre like SW site) ── */
#app {
  max-width: 1060px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,.3);
}

/* ── Banner ── */
.banner {
  width: 100%;
  background: #1c1c2e;
  border-bottom: 4px solid #c8102e;
  height: 90px;
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.banner-fallback {
  height: 90px;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: #1c1c2e;
}
.crest {
  width: 44px; height: 44px;
  background: #c8102e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff; flex-shrink: 0;
}
.hdr-title { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.hdr-sub   { color: #aaa; font-size: 11px; margin-top: 2px; }

/* ── Top bar (sync + theme toggle) ── */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px;
  background: #1c1c2e;
  border-bottom: 1px solid #2e2e48;
  flex-wrap: wrap; gap: 8px;
}
.sync-bar {
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: none; padding: 0;
}
.sync-bar.connecting { color: #888; }
.sync-bar.live       { color: #22c47a; }
.sync-bar.err        { color: #ff6688; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }
.dot.pulse { animation: pulse 1.4s infinite; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; gap: 7px;
  cursor: pointer; user-select: none;
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid #3a3a52; background: #13131f;
}
.theme-toggle:hover { border-color: #c8102e; }
.theme-toggle-label { font-size: 11px; font-weight: 600; color: #888; }
.toggle-track {
  width: 36px; height: 20px;
  background: #3a3a52; border-radius: 20px;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #888; transition: transform .2s, background .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
/* Dark mode overrides */
[data-theme="dark"] body          { background: #0f0f1a; color: #e8e8f8; }
[data-theme="dark"] #app          { background: #1a1a2e; box-shadow: none; }
[data-theme="dark"] .toggle-track { background: #c8102e; }
[data-theme="dark"] .toggle-thumb { transform: translateX(16px); background: #fff; }
[data-theme="dark"] .theme-toggle-label { color: #ccc; }

/* ── Auth bar ── */
.auth-bar {
  background: #f8f8fb;
  border-bottom: 2px solid #e0e0e6;
  padding: 8px 16px;
}
[data-theme="dark"] .auth-bar { background: #13131f; border-bottom-color: #2a2a42; }
.auth-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.auth-user { display: flex; align-items: center; gap: 8px; }
.auth-name { font-size: 13px; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .auth-name { color: #e8e8f8; }
.auth-tag  { font-size: 11px; color: #888; margin-left: 2px; }
.auth-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-footer-inner {
  display: flex;
  justify-content: center;
  padding: 14px 16px 20px;
}

/* Auth login form */
.auth-login-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth-login-form input {
  padding: 6px 10px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #1a1a2e; width: 155px;
}
[data-theme="dark"] .auth-login-form input { background: #161626; color: #e8e8f8; border-color: #2a2a42; }
.auth-login-form input::placeholder { color: #aaa; }
.auth-login-form input:focus { outline: none; border-color: #c8102e; }

/* ── TABS — dark navy like SW nav ── */
.tabs {
  display: flex;
  background: #1c1c2e;
  border-bottom: 3px solid #c8102e;
  overflow-x: auto;
}
.auth-tabs {
  background: transparent;
  border-bottom: none;
  gap: 6px;
  overflow: visible;
  margin-left: auto;
}
.tab-btn {
  padding: 13px 18px;
  font-size: 12px; font-weight: 700;
  color: #666;
  cursor: pointer; border: none; background: none;
  text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  white-space: nowrap; transition: color .15s;
}
.tab-btn:hover  { color: #bbb; }
.tab-btn.active { color: #fff; border-bottom-color: #c8102e; }
.auth-tabs .tab-btn {
  padding: 10px 12px;
  color: #555;
  border-radius: 999px;
  border-bottom: none;
  margin-bottom: 0;
  background: transparent;
}
.nav-admin {
  opacity: .9;
}
.auth-tabs .tab-btn:hover {
  color: #1a1a2e;
  background: rgba(200,16,46,.06);
}
.auth-tabs .tab-btn.active {
  color: #fff;
  background: #1c1c2e;
}
[data-theme="dark"] .auth-tabs .tab-btn {
  color: #b7b7ca;
}
[data-theme="dark"] .auth-tabs .tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
[data-theme="dark"] .auth-tabs .tab-btn.active {
  background: #c8102e;
  color: #fff;
}

.panel { display: none; }
.panel.active { display: block; }

/* ── Toolbar ── */
.toolbar {
  padding: 10px 16px;
  background: #f8f8fb;
  border-bottom: 1px solid #e0e0e6;
  display: flex; gap: 8px; align-items: center;
}
[data-theme="dark"] .toolbar { background: #13131f; border-bottom-color: #2a2a42; }
.toolbar input {
  flex: 1; min-width: 160px;
  padding: 7px 11px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #1a1a2e;
}
[data-theme="dark"] .toolbar input { background: #161626; color: #e8e8f8; border-color: #2a2a42; }
.toolbar input::placeholder { color: #aaa; }
.toolbar input:focus { outline: none; border-color: #c8102e; }

/* ── Stats bar ── */
.stats-bar {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: #777;
  padding: 7px 16px;
  background: #fff;
  border-bottom: 1px solid #e0e0e6;
}
[data-theme="dark"] .stats-bar { background: #1a1a2e; color: #6666aa; border-bottom-color: #2a2a42; }
.stats-bar strong { color: #1a1a2e; font-weight: 700; }
[data-theme="dark"] .stats-bar strong { color: #e8e8f8; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: #1c1c2e;
  color: #666;
  padding: 9px 10px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; user-select: none; white-space: nowrap;
  border-bottom: 3px solid #c8102e;
}
thead th:hover  { color: #fff; }
thead th.sorted { color: #c8102e; }
.num { text-align: right; }
tbody tr { border-bottom: 1px solid #e8e8f0; background: #fff; }
tbody tr:nth-child(even) { background: #f8f8fb; }
tbody tr:hover { background: #fff0f2; }
tbody tr.podium { background: rgba(200,16,46,.05) !important; }
[data-theme="dark"] tbody tr            { background: #1e1e30; border-bottom-color: #2a2a42; }
[data-theme="dark"] tbody tr:nth-child(even) { background: #191928; }
[data-theme="dark"] tbody tr:hover      { background: #252540; }
[data-theme="dark"] tbody tr.podium     { background: rgba(200,16,46,.1) !important; }
td { padding: 9px 10px; vertical-align: middle; }
td.pos  { color: #bbb; font-size: 12px; font-weight: 700; width: 34px; }
td.name { font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] td.name { color: #e8e8f8; }
td.pts  { font-weight: 700; color: #c8102e; font-size: 16px; }
td.cr   { color: #1a7a4a; font-weight: 700; }
td.ex   { color: #1560a8; font-weight: 700; }
[data-theme="dark"] td.cr { color: #22c47a; }
[data-theme="dark"] td.ex { color: #4da6ff; }
.medal {
  display: inline-flex; width: 20px; height: 20px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  align-items: center; justify-content: center; margin-right: 4px;
}
.gold   { background: #ffd700; color: #7a5c00; }
.silver { background: #c0c0c0; color: #333; }
.bronze { background: #cd7f32; color: #3a1800; }
.empty, .loading  { text-align: center; padding: 40px; color: #aaa; }
[data-theme="dark"] .empty, [data-theme="dark"] .loading { color: #6666aa; }

.user-avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 8px; object-fit: cover; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 16px; font-size: 13px; font-weight: 700;
  border: none; border-radius: 6px; cursor: pointer;
  text-decoration: none; transition: opacity .15s; white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn-red     { background: #c8102e; color: #fff; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; opacity: 1; }
.btn-ghost  { background: transparent; color: #888; border: 1px solid #ddd; }
.btn-ghost:hover { border-color: #c8102e; color: #c8102e; opacity: 1; }
[data-theme="dark"] .btn-ghost { border-color: #2a2a42; color: #6666aa; }
.btn-danger { background: #5a0a0a; color: #ff8888; border: 1px solid #8a2a2a; }
.btn-sm     { padding: 4px 10px; font-size: 12px; }
.btn-block  { width: 100%; }

/* ── Section box ── */
.sbox { padding: 14px 16px; background: #fff; border-top: 1px solid #e0e0e6; }
[data-theme="dark"] .sbox { background: #1e1e30; border-top-color: #2a2a42; }
.sbox h3 { font-size: 11px; font-weight: 700; margin-bottom: 10px; color: #888; text-transform: uppercase; letter-spacing: .8px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.form-row input, .form-row select {
  padding: 7px 10px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #1a1a2e;
}
[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row select { background: #161626; color: #e8e8f8; border-color: #2a2a42; }
.form-row input::placeholder { color: #aaa; }
.form-row input:focus, .form-row select:focus { outline: none; border-color: #c8102e; }
.form-row .grow { flex: 1; min-width: 130px; }
.form-row input[type=number] { width: 72px; }
.ok-msg  { font-size: 12px; color: #1a7a4a; margin-top: 8px; display: none; }
.err-msg { font-size: 12px; color: #c8102e; margin-top: 8px; display: none; }
[data-theme="dark"] .ok-msg { color: #22c47a; }

/* ── Fixtures ── */
.month-head {
  padding: 8px 16px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: #888; background: #f2f2f5;
  border-bottom: 1px solid #e0e0e6; border-top: 1px solid #e0e0e6; margin-top: 4px;
}
[data-theme="dark"] .month-head { background: #13131f; color: #6666aa; border-color: #2a2a42; }
.fixture-row {
  display: flex; align-items: center;
  padding: 10px 16px; gap: 10px;
  background: #fff; border-bottom: 1px solid #e8e8f0; flex-wrap: wrap;
}
.fixture-row:hover { background: #fff5f5; }
.fixture-row.next-up { background: rgba(200,16,46,.05); border-left: 4px solid #c8102e; }
[data-theme="dark"] .fixture-row { background: #1e1e30; border-bottom-color: #2a2a42; }
[data-theme="dark"] .fixture-row:hover { background: #252540; }
[data-theme="dark"] .fixture-row.next-up { background: rgba(200,16,46,.08); }
.fix-date { min-width: 88px; }
.fix-date strong { display: block; font-size: 13px; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .fix-date strong { color: #e8e8f8; }
.fix-date span { font-size: 10px; color: #888; }
.badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px;
}
.badge-home { background: rgba(200,16,46,.12); color: #c8102e; }
.badge-away { background: #f2f2f5; color: #888; border: 1px solid #ddd; }
[data-theme="dark"] .badge-away { background: rgba(255,255,255,.06); border-color: #2a2a42; }
.fix-opponent { flex: 1; font-weight: 700; color: #1a1a2e; min-width: 120px; }
[data-theme="dark"] .fix-opponent { color: #e8e8f8; }
.result-pill { padding: 3px 10px; border-radius: 5px; font-weight: 700; font-size: 12px; }
.res-w { background: rgba(26,122,74,.1); color: #1a7a4a; }
.res-d { background: rgba(100,100,170,.1); color: #666; }
.res-l { background: rgba(200,16,46,.1); color: #c8102e; }
[data-theme="dark"] .res-w { color: #22c47a; }

/* ── Predict card ── */
.pred-wrap { padding: 14px; background: #f2f2f5; }
[data-theme="dark"] .pred-wrap { background: #0f0f1a; }
.pred-card {
  background: #fff; border: 1px solid #e0e0e6; border-radius: 10px;
  overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pred-card-xl { border-radius: 16px; box-shadow: 0 10px 32px rgba(0,0,0,.08); }
[data-theme="dark"] .pred-card { background: #1e1e30; border-color: #2a2a42; box-shadow: none; }
.pred-extra-card {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e0e0e6;
  border-radius: 14px;
  overflow: hidden;
}
[data-theme="dark"] .pred-extra-card {
  background: #1e1e30;
  border-color: #2a2a42;
}
.pred-extra-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1a2e;
}
.pred-extra-toggle::-webkit-details-marker {
  display: none;
}
[data-theme="dark"] .pred-extra-toggle {
  color: #e8e8f8;
}
.pred-extra-meta {
  font-size: 10px;
  color: #888;
}
.pred-extra-body {
  padding: 0 14px 14px;
}
.pred-card-body  { padding: 14px; }
.league-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #f8f8fb;
  border: 1px solid #e0e0e6;
  border-radius: 12px;
}
[data-theme="dark"] .league-strip {
  background: #161626;
  border-color: #2a2a42;
}
.league-strip-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.league-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e0e6;
  padding: 6px;
}
.league-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #c8102e;
}
.pred-topline {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pred-topline strong {
  color: #1a1a2e;
  font-weight: 800;
}
[data-theme="dark"] .pred-topline strong {
  color: #e8e8f8;
}
.pred-topstatus {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.league-strip-badge {
  flex-shrink: 0;
}

/* Countdown */
.countdown { display: flex; gap: 5px; align-items: center; }
.league-countdown {
  justify-content: center;
  flex-wrap: nowrap;
}
.cd-block {
  background: #1c1c2e; border: 1px solid #2e2e48;
  border-radius: 6px; padding: 4px 8px; text-align: center; min-width: 40px;
}
.cd-num { font-size: 16px; font-weight: 700; color: #fff; display: block; line-height: 1.2; }
.cd-lbl { font-size: 9px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.cd-sep { font-size: 16px; font-weight: 700; color: #ccc; }
.closed-banner {
  background: rgba(200,16,46,.08); border: 1px solid rgba(200,16,46,.2);
  border-radius: 7px; padding: 10px 14px;
  font-size: 13px; color: #c8102e; font-weight: 700;
  text-align: center; margin-bottom: 14px;
}

/* Score picker */
.score-picker {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin: 20px 0; flex-wrap: wrap;
}
.matchup-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0 16px;
}
.matchup-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid #e0e0e6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8fb 100%);
}
[data-theme="dark"] .matchup-team {
  background: linear-gradient(180deg, #24243a 0%, #1a1a2e 100%);
  border-color: #2a2a42;
}
.matchup-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
}
.matchup-centre-logo {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.matchup-centre-logo .league-logo,
.matchup-centre-logo .league-logo-fallback {
  width: 68px;
  height: 68px;
}
.matchup-versus {
  font-size: 28px;
  font-weight: 800;
  color: #c8102e;
  letter-spacing: .12em;
}
.matchup-note {
  font-size: 11px;
  color: #888;
  text-align: center;
}
.matchup-logo-wrap {
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.matchup-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e0e0e6;
  padding: 12px;
}
[data-theme="dark"] .matchup-logo {
  background: #fff;
  border-color: #2a2a42;
}
.matchup-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #c8102e;
}
.matchup-team-role {
  font-size: 12px;
  color: #888;
}
.score-control {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.team-side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; min-width: 100px; }
.team-name { font-size: 12px; font-weight: 700; color: #888; text-align: center; text-transform: uppercase; letter-spacing: .5px; }
.team-name.linc { color: #c8102e; }
.score-input {
  width: 96px;
  height: 78px;
  border: 2px solid #e0e0e6;
  border-radius: 14px;
  background: #fff;
  color: #1a1a2e;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  padding: 0 10px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.score-input:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 4px rgba(200,16,46,.1);
}
[data-theme="dark"] .score-input {
  background: #161626;
  color: #e8e8f8;
  border-color: #2a2a42;
}
.score-vs { font-size: 30px; font-weight: 700; color: #ccc; flex-shrink: 0; }
.pred-submit {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 700;
  background: #c8102e; color: #fff; border: none; border-radius: 6px; cursor: pointer; margin-top: 4px;
}
.pred-submit:hover { background: #a50d25; }
.existing-pred { font-size: 11px; color: #1a7a4a; text-align: center; margin-top: 6px; }
[data-theme="dark"] .existing-pred { color: #22c47a; }
.pred-flash { font-size: 12px; text-align: center; margin-top: 8px; display: none; }
.pred-flash.ok  { color: #1a7a4a; }
.pred-flash.err { color: #c8102e; }

/* Predictions list */
.preds-list { margin-top: 16px; background: #f8f8fb; border-radius: 8px; border: 1px solid #e0e0e6; overflow: hidden; }
[data-theme="dark"] .preds-list { background: #161626; border-color: #2a2a42; }
.pl-header {
  padding: 9px 13px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: #888;
  border-bottom: 1px solid #e0e0e6; background: #f2f2f5;
  display: flex; justify-content: space-between; align-items: center;
}
[data-theme="dark"] .pl-header { background: #13131f; border-bottom-color: #2a2a42; }
.pl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 13px; border-bottom: 1px solid #e8e8f0; font-size: 13px;
}
[data-theme="dark"] .pl-row { border-bottom-color: #2a2a42; color: #e8e8f8; }
.pl-row:last-child { border: none; }
.pl-name { font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .pl-name { color: #e8e8f8; }
.pl-score { color: #888; font-family: 'Courier New', monospace; font-size: 12px; }
.pl-you   { font-size: 10px; color: #c8102e; margin-left: 4px; }
.pl-empty { padding: 16px 13px; font-size: 13px; color: #aaa; text-align: center; }
.pl-footer {
  padding: 7px 13px; font-size: 12px; color: #888;
  text-align: center; border-top: 1px solid #e0e0e6; background: #f2f2f5;
}
[data-theme="dark"] .pl-footer { background: #13131f; border-top-color: #2a2a42; }

/* Login prompt */
.login-prompt { text-align: center; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.login-prompt p { font-size: 13px; color: #888; }
.no-fixture { padding: 48px 20px; text-align: center; color: #888; }
.no-fixture h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
[data-theme="dark"] .no-fixture h3 { color: #e8e8f8; }

/* ── Settings ── */
.pw-gate {
  padding: 48px 20px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; min-height: 280px; justify-content: center;
  background: #f8f8fb;
}
[data-theme="dark"] .pw-gate { background: #1e1e30; }
.pw-gate h2 { font-size: 18px; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .pw-gate h2 { color: #e8e8f8; }
.pw-gate p  { font-size: 13px; color: #888; }
.pw-icon    { font-size: 36px; margin-bottom: 6px; }
.pw-row     { display: flex; gap: 8px; width: 100%; max-width: 320px; }
.pw-row input {
  flex: 1; padding: 10px 14px; font-size: 15px;
  border: 2px solid #e0e0e6; border-radius: 6px;
  background: #fff; color: #1a1a2e; text-align: center; letter-spacing: 4px;
}
[data-theme="dark"] .pw-row input { background: #161626; color: #e8e8f8; border-color: #2a2a42; }
.pw-row input:focus { outline: none; border-color: #c8102e; }
.pw-err { font-size: 12px; color: #c8102e; display: none; }
.sw { padding: 16px; max-width: 600px; }
.sw-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e0e0e6;
}
[data-theme="dark"] .sw-hdr { border-bottom-color: #2a2a42; }
.sw-hdr h2 { font-size: 14px; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .sw-hdr h2 { color: #e8e8f8; }
.lock-btn {
  font-size: 12px; color: #888; cursor: pointer;
  border: 1px solid #ddd; border-radius: 6px; padding: 4px 12px; background: none;
}
.lock-btn:hover { border-color: #c8102e; color: #c8102e; }
.sg { margin-bottom: 12px; }
.sg label {
  display: block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: #888; margin-bottom: 4px;
}
.sg input, .sg select {
  width: 100%; padding: 8px 12px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #1a1a2e;
}
[data-theme="dark"] .sg input,
[data-theme="dark"] .sg select { background: #161626; color: #e8e8f8; border-color: #2a2a42; }
.sg input::placeholder { color: #aaa; }
.sg input:focus, .sg select:focus { outline: none; border-color: #c8102e; }
.sg select option { background: #fff; color: #1a1a2e; }
[data-theme="dark"] .sg select option { background: #1e1e30; color: #e8e8f8; }
.sdiv { border: none; border-top: 1px solid #e0e0e6; margin: 16px 0; }
[data-theme="dark"] .sdiv { border-top-color: #2a2a42; }
.stitle { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: #1a1a2e; }
[data-theme="dark"] .stitle { color: #e8e8f8; }
.csv-fmt {
  font-size: 10px; color: #888; margin-bottom: 6px;
  background: #f2f2f5; padding: 7px 10px; border-radius: 6px;
  font-family: 'Courier New', monospace; line-height: 1.5; border: 1px solid #e0e0e6;
}
[data-theme="dark"] .csv-fmt { background: #13131f; border-color: #2a2a42; }
.csv-ta {
  width: 100%; min-height: 65px; padding: 7px 9px; font-size: 11px;
  font-family: 'Courier New', monospace;
  border: 1px solid #ddd; border-radius: 6px;
  background: #fff; color: #1a1a2e; resize: vertical; margin-bottom: 7px;
}
[data-theme="dark"] .csv-ta { background: #161626; color: #e8e8f8; border-color: #2a2a42; }
.csv-ta::placeholder { color: #aaa; }
.csv-ta:focus { outline: none; border-color: #c8102e; }
.logo-preview {
  margin-top: 8px;
  width: 72px;
  height: 72px;
  border: 1px solid #e0e0e6;
  border-radius: 12px;
  background: #f8f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="dark"] .logo-preview {
  background: #161626;
  border-color: #2a2a42;
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1a1a2e;
  font-weight: 600;
}
[data-theme="dark"] .toggle-row {
  color: #e8e8f8;
}
.toggle-row input {
  width: 16px;
  height: 16px;
}
.logo-library-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.logo-lib-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e0e0e6;
  border-radius: 10px;
  background: #fff;
}
[data-theme="dark"] .logo-lib-card {
  background: #1e1e30;
  border-color: #2a2a42;
}
.logo-lib-thumb .logo-preview {
  margin-top: 0;
}
.logo-lib-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.logo-lib-meta strong {
  color: #1a1a2e;
  font-size: 13px;
}
[data-theme="dark"] .logo-lib-meta strong {
  color: #e8e8f8;
}
.logo-lib-meta span {
  color: #888;
  font-size: 11px;
  word-break: break-all;
}
.logo-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, .72);
  z-index: 9998;
  padding: 24px;
  align-items: center;
  justify-content: center;
}
.logo-picker-modal {
  width: min(900px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
[data-theme="dark"] .logo-picker-modal {
  background: #1a1a2e;
}
.logo-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.logo-picker-head h3 {
  font-size: 16px;
  color: #1a1a2e;
}
[data-theme="dark"] .logo-picker-head h3 {
  color: #e8e8f8;
}
.logo-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.logo-pick-card {
  border: 1px solid #e0e0e6;
  border-radius: 12px;
  background: #f8f8fb;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: center;
}
.logo-pick-card:hover {
  border-color: #c8102e;
  background: #fff5f6;
}
[data-theme="dark"] .logo-pick-card {
  background: #161626;
  border-color: #2a2a42;
}
[data-theme="dark"] .logo-pick-card:hover {
  background: #22223a;
  border-color: #c8102e;
}
.logo-pick-card .logo-preview {
  margin-top: 0;
}
.logo-pick-card strong {
  color: #1a1a2e;
  font-size: 13px;
}
[data-theme="dark"] .logo-pick-card strong {
  color: #e8e8f8;
}
.fixture-logo-admin {
  display: grid;
  grid-template-columns: 56px minmax(220px, 1fr);
  gap: 10px;
  align-items: start;
}
.fixture-logo-admin .logo-preview {
  width: 56px;
  height: 56px;
}
.fixture-logo-admin input[type="text"],
.fixture-logo-admin input:not([type]) {
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #1a1a2e;
}
[data-theme="dark"] .fixture-logo-admin input[type="text"],
[data-theme="dark"] .fixture-logo-admin input:not([type]) {
  background: #161626;
  color: #e8e8f8;
  border-color: #2a2a42;
}
.fixture-logo-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Result entry */
.rs-section { background: #f8f8fb; border: 1px solid #e0e0e6; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
[data-theme="dark"] .rs-section { background: #161626; border-color: #2a2a42; }
.rs-head { padding: 10px 13px; background: #1c1c2e; color: #aaa; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.rs-row { display: flex; align-items: center; padding: 10px 13px; border-bottom: 1px solid #e0e0e6; gap: 12px; flex-wrap: wrap; }
[data-theme="dark"] .rs-row { border-bottom-color: #2a2a42; }
.rs-row:last-child { border: none; }
.rs-game { flex: 1; min-width: 130px; }
.rs-game strong { display: block; font-size: 13px; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .rs-game strong { color: #e8e8f8; }
.rs-game span { font-size: 11px; color: #888; }
.rs-inputs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rs-inputs label { font-size: 11px; color: #888; }
.rs-inputs input {
  width: 44px; padding: 5px 6px; font-size: 14px; text-align: center;
  border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #1a1a2e;
}
[data-theme="dark"] .rs-inputs input { background: #1e1e30; color: #e8e8f8; border-color: #2a2a42; }
.rs-inputs input:focus { outline: none; border-color: #c8102e; }
.rs-inputs .sep { font-weight: 700; color: #ccc; font-size: 16px; }

/* Scoring grid */
.scoring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.scoring-card {
  background: #f8f8fb; border: 1px solid #e0e0e6; border-radius: 8px;
  padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
[data-theme="dark"] .scoring-card { background: #161626; border-color: #2a2a42; }
.scoring-card label { font-size: 12px; color: #888; font-weight: 600; }
.scoring-card input {
  width: 52px; padding: 5px 8px; font-size: 16px; font-weight: 700;
  text-align: center; border: 2px solid #c8102e; border-radius: 6px;
  background: #fff; color: #c8102e;
}
.scoring-card input:focus { outline: none; border-color: #a50d25; }
[data-theme="dark"] .scoring-card input { background: #1c1c2e; border-color: #c8102e; }

/* Danger zone */
.danger-zone {
  background: rgba(200,16,46,.05); border: 1px solid rgba(200,16,46,.2);
  border-radius: 8px; padding: 14px;
}
.danger-zone h3 { font-size: 12px; font-weight: 700; color: #c8102e; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.danger-zone p  { font-size: 12px; color: #888; margin-bottom: 10px; line-height: 1.5; }
.danger-zone p strong { color: #c8102e; }
.reset-options { display: flex; flex-direction: column; gap: 14px; }
.reset-options input {
  width: 100%; padding: 7px 10px; font-size: 13px;
  border: 1px solid rgba(200,16,46,.3); border-radius: 6px;
  background: #fff; color: #1a1a2e; margin-bottom: 6px;
}
[data-theme="dark"] .reset-options input { background: #161626; color: #e8e8f8; }
.reset-options input:focus { outline: none; border-color: #c8102e; }

/* Flash messages */
.flash {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 12px 16px; font-size: 13px; font-weight: 700;
  text-align: center; z-index: 9999;
  animation: slideDown .3s ease;
}
.flash.ok  { background: #d4edda; color: #155724; border-bottom: 2px solid #1a7a4a; }
.flash.err { background: #f8d7da; color: #721c24; border-bottom: 2px solid #c8102e; }
@keyframes slideDown { from{transform:translateY(-100%)} to{transform:translateY(0)} }

@media (max-width: 480px) {
  .scoring-grid { grid-template-columns: 1fr; }
  .auth-login-form input { width: 130px; }
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ── Fixture sub-tabs ── */
.fix-tabs { display:flex; background:#f2f2f5; border-bottom:1px solid #e0e0e6; }
[data-theme="dark"] .fix-tabs { background:#13131f; border-bottom-color:#2a2a42; }
.fix-tab-btn { padding:9px 18px; font-size:12px; font-weight:700; color:#888; cursor:pointer; border:none; background:none; text-transform:uppercase; letter-spacing:.7px; border-bottom:3px solid transparent; margin-bottom:-1px; }
.fix-tab-btn:hover { color:#c8102e; }
.fix-tab-btn.active { color:#c8102e; border-bottom-color:#c8102e; }
.ftab { display:none; }
.ftab.active { display:block; }

/* ── Trend indicators ── */
.trend-up   { color:#1a7a4a; font-size:11px; font-weight:700; }
.trend-down { color:#c8102e; font-size:11px; font-weight:700; }
.trend-same { color:#ccc; font-size:12px; }
.trend-new  { color:#f59e0b; font-size:12px; }
[data-theme="dark"] .trend-up   { color:#22c47a; }
[data-theme="dark"] .trend-same { color:#444; }

/* ── Registered badge ── */
.badge-registered {
  font-size:10px; font-weight:600;
  background:rgba(200,16,46,.1); color:#c8102e;
  padding:1px 7px; border-radius:10px; margin-left:6px;
  vertical-align:middle;
}

/* ── Undo bar ── */
.undo-bar {
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 13px; background:rgba(245,158,11,.1);
  border-bottom:1px solid rgba(245,158,11,.3);
  font-size:12px; color:#92400e; flex-wrap:wrap; gap:8px;
}
[data-theme="dark"] .undo-bar { color:#fcd34d; background:rgba(245,158,11,.08); }
.undo-bar strong { font-weight:700; }

/* ── Personal stats ── */
.personal-stats { margin-top:16px; padding:14px; background:#f8f8fb; border-radius:8px; border:1px solid #e0e0e6; }
[data-theme="dark"] .personal-stats { background:#161626; border-color:#2a2a42; }
.ps-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.7px; color:#888; margin-bottom:10px; }
.ps-grid  { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.ps-card  { background:#fff; border:1px solid #e0e0e6; border-radius:6px; padding:10px 8px; text-align:center; }
[data-theme="dark"] .ps-card { background:#1e1e30; border-color:#2a2a42; }
.ps-num   { display:block; font-size:20px; font-weight:700; color:#c8102e; line-height:1.2; }
.ps-lbl   { display:block; font-size:10px; color:#888; margin-top:2px; }
@media(max-width:480px) { .ps-grid { grid-template-columns:repeat(2,1fr); } }

/* ── Your prediction highlight ── */
.pl-row-you { background:rgba(200,16,46,.04); }
[data-theme="dark"] .pl-row-you { background:rgba(200,16,46,.08); }

/* ── Mobile auth bar ── */
@media(max-width:600px) {
  .auth-bar-inner { flex-direction:column; align-items:stretch; gap:4px; }
  .auth-login-form { flex-direction:column; }
  .auth-login-form input { width:100%; }
  .auth-login-form .btn { width:100%; justify-content:center; }
}

/* ── Export / share buttons ── */
.toolbar .btn-ghost { font-size:12px; white-space:nowrap; }

/* ── Number input no spinners ── */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
input[type=number] { -moz-appearance:textfield; appearance:textfield; }

/* ── Admin panel sub-navigation ── */
.admin-wrap { display: flex; flex-direction: column; min-height: 400px; }
.admin-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px; border-bottom: 2px solid #e0e0e6;
  background: #fff;
}
[data-theme="dark"] .admin-hdr { background: #1a1a2e; border-bottom-color: #2a2a42; }
.admin-hdr h2 { font-size: 15px; font-weight: 700; color: #1a1a2e; }
[data-theme="dark"] .admin-hdr h2 { color: #e8e8f8; }
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px;
  background: #f8f8fb;
  border-bottom: 1px solid #e0e0e6;
}
[data-theme="dark"] .admin-summary {
  background: #13131f;
  border-bottom-color: #2a2a42;
}
.admin-summary-card {
  background: #fff;
  border: 1px solid #e0e0e6;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-theme="dark"] .admin-summary-card {
  background: #1e1e30;
  border-color: #2a2a42;
}
.admin-summary-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #888;
}
.admin-summary-card strong {
  font-size: 24px;
  color: #1a1a2e;
}
[data-theme="dark"] .admin-summary-card strong {
  color: #e8e8f8;
}

.admin-nav {
  display: flex; flex-wrap: wrap; gap: 2px;
  background: #1c1c2e; padding: 8px 10px;
  border-bottom: 3px solid #c8102e;
}
.admin-nav-btn {
  padding: 7px 14px; font-size: 12px; font-weight: 600;
  color: #666; background: none; border: none; border-radius: 5px;
  cursor: pointer; white-space: nowrap; transition: all .15s;
  text-transform: uppercase; letter-spacing: .5px;
}
.admin-nav-btn:hover  { color: #fff; background: rgba(255,255,255,.08); }
.admin-nav-btn.active { color: #fff; background: #c8102e; }

.admin-content { flex: 1; background: #f8f8fb; }
[data-theme="dark"] .admin-content { background: #0f0f1a; }

.admin-section { display: none; padding: 20px 16px; max-width: 620px; }
.admin-section.active { display: block; }

.asec-title {
  font-size: 15px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 6px; padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e6;
}
[data-theme="dark"] .asec-title { color: #e8e8f8; border-bottom-color: #2a2a42; }
.asec-desc { font-size: 12px; color: #888; margin-bottom: 14px; line-height: 1.5; }

/* Admin player table */
.admin-player-list { background: #fff; border: 1px solid #e0e0e6; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
[data-theme="dark"] .admin-player-list { background: #1e1e30; border-color: #2a2a42; }
.admin-player-table { width: 100%; border-collapse: collapse; }
.admin-player-table thead th {
  background: #1c1c2e; color: #666; padding: 8px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; text-align: left; border-bottom: 2px solid #c8102e;
}
.admin-player-table thead th.num { text-align: right; }
.admin-player-table tbody td { padding: 8px 12px; border-bottom: 1px solid #e8e8f0; font-size: 13px; }
[data-theme="dark"] .admin-player-table tbody td { border-bottom-color: #2a2a42; color: #e8e8f8; }
.admin-player-table tbody tr:hover td { background: #f8f0f0; }
[data-theme="dark"] .admin-player-table tbody tr:hover td { background: #252540; }
.admin-player-table .num { text-align: right; }
.archive-admin-list { margin-top: 14px; }
.archive-admin-head {
  padding: 10px 12px;
  background: #1c1c2e;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  border-bottom: 2px solid #c8102e;
}

/* Archive timeline */
.archive-box {
  padding: 16px;
  background: #f8f8fb;
  border-top: 1px solid #e0e0e6;
}
[data-theme="dark"] .archive-box {
  background: #13131f;
  border-top-color: #2a2a42;
}
.archive-box h3 {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.archive-timeline {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.archive-card {
  background: #fff;
  border: 1px solid #e0e0e6;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
[data-theme="dark"] .archive-card {
  background: #1e1e30;
  border-color: #2a2a42;
  box-shadow: none;
}
.archive-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.archive-season {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
[data-theme="dark"] .archive-season { color: #e8e8f8; }
.archive-meta,
.archive-date,
.archive-summary {
  font-size: 11px;
  color: #888;
}
.archive-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.archive-podium {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.archive-podium-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.archive-rank {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200,16,46,.1);
  color: #c8102e;
  font-weight: 700;
}
.archive-player {
  font-weight: 700;
  color: #1a1a2e;
}
[data-theme="dark"] .archive-player { color: #e8e8f8; }
.archive-points {
  color: #c8102e;
  font-weight: 700;
}
.archive-empty {
  font-size: 12px;
  color: #888;
}

/* Danger zone spacing fix for sub-menu version */
.danger-zone input {
  width: 100%; padding: 7px 10px; font-size: 13px;
  border: 1px solid rgba(200,16,46,.3); border-radius: 6px;
  background: #fff; color: #1a1a2e;
}
[data-theme="dark"] .danger-zone input { background: #161626; color: #e8e8f8; }
.danger-zone input:focus { outline: none; border-color: #c8102e; }

@media (max-width: 600px) {
  .admin-nav { gap: 4px; padding: 6px 8px; }
  .admin-nav-btn { padding: 6px 10px; font-size: 11px; }
  .admin-section { padding: 14px 12px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  #app {
    min-height: 100dvh;
  }

  .banner,
  .banner-fallback {
    height: 72px;
  }

  .top-bar {
    padding: 8px 12px;
  }

  .sync-bar,
  .theme-toggle-label {
    font-size: 10px;
  }

  .auth-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-left: 0;
  }

  .auth-tabs .tab-btn {
    padding: 10px 8px;
    font-size: 11px;
    text-align: center;
  }

  .auth-tabs .nav-admin {
    display: none;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .toolbar input,
  .toolbar .btn,
  .toolbar a.btn {
    width: 100%;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .stats-bar span {
    min-width: 0;
  }

  .stats-bar span:last-child {
    grid-column: 1 / -1;
    margin-left: 0 !important;
  }

  .fixture-row {
    align-items: flex-start;
    padding: 12px;
    gap: 8px;
  }

  .fix-date,
  .fix-opponent {
    min-width: 0;
    width: 100%;
  }

  .pred-wrap {
    padding: 10px;
  }

  .pred-card-body {
    padding: 14px 12px;
  }

  .league-strip {
    padding: 10px 12px;
  }

  .pred-topline {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .league-countdown {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .score-picker {
    gap: 14px;
    margin: 16px 0;
  }

  .matchup-box {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 10px;
  }

  .matchup-centre {
    min-width: 56px;
  }

  .matchup-centre-logo {
    width: 54px;
    height: 54px;
  }

  .matchup-centre-logo .league-logo,
  .matchup-centre-logo .league-logo-fallback {
    width: 54px;
    height: 54px;
  }

  .matchup-team {
    padding: 16px 12px;
  }

  .matchup-versus {
    font-size: 20px;
    letter-spacing: .08em;
  }

  .matchup-note {
    font-size: 10px;
  }

  .team-side {
    min-width: 0;
  }

  .score-input {
    width: 86px;
    height: 70px;
    font-size: 40px;
  }

  .pl-row {
    gap: 8px;
    align-items: flex-start;
  }

  .archive-box {
    padding: 12px;
  }

  .archive-timeline {
    grid-template-columns: 1fr;
  }

  .sbox {
    display: none;
  }

  .logo-lib-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    padding: 10px;
  }

  .table-wrap tr {
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #fff;
  }

  [data-theme="dark"] .table-wrap tr {
    border-color: #2a2a42;
    background: #1e1e30;
  }

  .table-wrap td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    padding: 6px 0;
    text-align: left !important;
  }

  .table-wrap td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #888;
  }

  .table-wrap td.name,
  .table-wrap td.pos {
    padding-top: 2px;
  }

  .table-wrap td.name {
    align-items: flex-start;
  }

  .table-wrap td.name::before {
    margin-top: 2px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .ko-info {
    width: 100%;
  }

  .matchup-logo,
  .matchup-logo-wrap {
    width: 96px;
    height: 96px;
  }

  .score-control {
    gap: 6px;
  }

  .score-input {
    width: 72px;
    height: 60px;
    font-size: 34px;
    border-radius: 12px;
  }
}

/* ── WC admin sub-nav ── */
.wc-admin-nav-btn { padding:7px 14px; font-size:12px; font-weight:600; color:#888; cursor:pointer; border:none; background:transparent; border-radius:6px; margin-right:4px; margin-bottom:8px; }
.wc-admin-nav-btn:hover { color:#c8102e; background:rgba(200,16,46,.06); }
.wc-admin-nav-btn.active { color:#fff; background:#c8102e; }
[data-theme="dark"] .wc-admin-nav-btn { color:#888; }
[data-theme="dark"] .wc-admin-nav-btn.active { color:#fff; }

/* ── World Cup ── */
.wc-tab-btn, .wc-fix-tab-btn { padding:9px 18px; font-size:12px; font-weight:700; color:#888; cursor:pointer; border:none; background:none; text-transform:uppercase; letter-spacing:.7px; border-bottom:3px solid transparent; margin-bottom:-1px; }
.wc-tab-btn:hover, .wc-fix-tab-btn:hover { color:#c8102e; }
.wc-tab-btn.active, .wc-fix-tab-btn.active { color:#c8102e; border-bottom-color:#c8102e; }
.wc-matchup-row {
  display: flex; align-items: center; gap: 6px;
  flex: 1; font-weight: 600; overflow: hidden; flex-wrap: wrap;
}
.fix-team-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.vs-sep { color: #888; font-size: 11px; margin: 0 2px; flex-shrink: 0; }
.wtab { display: none; }
.wtab.active { display: block; }
