
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark Mode Palette */
  --ink: #f1f5f9;          /* Primary text - Light Slate */
  --muted: #94a3b8;        /* Secondary text - Muted Gray */
  --green: #10b981;        /* Primary Accent - Emerald */
  --lime: #d7fa78;         /* Brand Highlight */
  --line: #334155;         /* Borders and Dividers */
  --paper: #0f172a;        /* Main Body Background */
  --white: #1e293b;        /* Card/Panel Background (Replaces white) */
  --nav: #020617;          /* Header/Footer/Sidebar Deep Dark */
  --card-hover: #26354a;   /* Subtle Hover State */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  font: 14px/1.6 Inter, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button, input, select {
  font: inherit;
}

button, a, input, select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a:hover {
  color: var(--lime);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.mast {
  background: var(--nav);
  color: #ffffff;
  border-bottom: 1px solid var(--line);
}

.top {
  max-width: 1400px;
  padding: 21px 36px;
  display: flex;
  align-items: center;
  gap: 42px;
  margin: auto;
}

.brand {
  font: 800 30px/1 'Barlow Condensed', Arial, sans-serif;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: #ffffff;
}

.brand b {
  color: var(--lime);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--lime);
  color: var(--nav);
  border-radius: 7px;
  font: 800 21px Inter;
  margin-right: 10px;
  transform: skew(-8deg);
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  color: #94a3b8;
  position: relative;
  padding: 10px 0;
}

nav a.active {
  color: #ffffff;
}

nav a.active:after {
  content: '';
  position: absolute;
  height: 3px;
  background: var(--lime);
  bottom: -23px;
  left: 0;
  right: 0;
  border-radius: 3px 3px 0 0;
}

nav a:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 7px;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  gap: 9px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn.lime {
  background: var(--lime);
  color: var(--nav);
}

.btn.lime:hover {
  background: #c3e660;
  box-shadow: 0 4px 12px rgba(215, 250, 120, 0.2);
}

.btn.outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn.outline:hover {
  background: var(--white);
  border-color: var(--muted);
}

.strip {
  background: #422006; /* High contrast warning background */
  border-bottom: 1px solid #78350f;
  padding: 10px 36px;
  font-size: 13px;
  color: #fde047; /* Yellow warning text */
  text-align: center;
}

.strip strong {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.shell {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 268px;
  gap: 24px;
  padding: 24px 28px 48px;
}

.sidebar {
  padding-top: 3px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.side-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  margin: 4px 0;
  color: var(--muted);
}

.side-link.active {
  background: var(--white);
  color: var(--lime);
  font-weight: 700;
  border: 1px solid var(--line);
}

.side-link:hover:not(.active) {
  background: var(--white);
  color: var(--ink);
}

.side-link .num {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.side-head {
  margin: 30px 0 12px;
}

.mini-icon {
  color: #64748b;
  font-size: 15px;
}

.side-note {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

main {
  min-width: 0;
}

.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}

h1, h2, h3 {
  line-height: 1.1;
  margin: 0 0 10px;
  color: #ffffff;
}

h1 {
  font: 700 34px/1.1 'Barlow Condensed', Arial, sans-serif;
  letter-spacing: -0.5px;
}

h2 {
  font: 700 21px/1.15 'Barlow Condensed', Arial, sans-serif;
}

h3 {
  font-size: 15px;
}

p {
  margin: 0 0 16px;
}

.sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.stamp {
  font-size: 12px;
  color: var(--muted);
  padding-top: 9px;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
}

.tabs a {
  font-size: 14px;
  padding: 10px 0 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.tabs .selected {
  border-color: var(--lime);
  color: var(--ink);
}

.tabs a:hover:not(.selected) {
  color: var(--ink);
}

.tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tools input, .tools select {
  min-width: 0;
  background: var(--nav);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.tools input:focus, .tools select:focus {
  border-color: var(--lime);
  outline: none;
}

.tools input {
  flex: 1;
  min-width: 160px;
}

.tools select {
  max-width: 220px;
  color: var(--ink);
}

.count-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.group-head a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
}

.tag {
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  background: var(--line);
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.columns, .match-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 172px 73px;
  align-items: center;
  gap: 12px;
}

.columns {
  padding: 12px 16px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.3);
}

.columns .prob-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.match-row {
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
  /* Skip layout/paint for off-screen rows. Huge win on the long results list
     (2,500+ rows) without dropping any row from the HTML. ~66px is the row height. */
  content-visibility: auto;
  contain-intrinsic-size: auto 66px;
}

/* Compact row: both teams on ONE line (full row width so names are readable),
   the most-likely / result tag on a tight second line beneath. */
.rowline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row:hover {
  background: var(--card-hover);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
}
.load-more-wrap[hidden] { display: none; }

.teams {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}

.team {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  flex: 1 1 0;
}

.team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.vs {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.crest {
  width: 26px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.prob {
  padding: 8px 2px;
  background: var(--paper);
  border-radius: 5px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  color: var(--muted);
}

.prob.high {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399; /* Bright Emerald */
  border-color: rgba(16, 185, 129, 0.4);
}

.pick {
  display: block;
  background: var(--green);
  border: 1px solid #059669;
  border-radius: 6px;
  text-align: center;
  padding: 7px;
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pick:hover {
  background: var(--lime);
  color: var(--nav);
  border-color: var(--lime);
}

/* Finished match: the score is DATA, not an action — a neutral chip (like the prob cells),
   clearly different from the green "pick" button on upcoming matches. */
.pick.score {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}
.pick.score:hover {
  background: var(--card-hover);
  color: var(--ink);
  border-color: var(--line);
}

/* Recent form: last-5 W/D/L pills. */
.form { display: inline-flex; gap: 2px; vertical-align: middle; }
.form span {
  width: 15px; height: 15px;
  border-radius: 3px;
  font-size: 9px; font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.form .fw { background: #16a34a; }
.form .fd { background: #64748b; }
.form .fl { background: #dc2626; }

/* League table (standings). */
.table-wrap { overflow-x: auto; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 12px; }
.ltable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ltable th, .ltable td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable tbody tr:last-child td { border-bottom: 0; }
.ltable th { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; background: rgba(15,23,42,0.3); }
.ltable .lt-team { text-align: left; font-weight: 600; color: var(--ink); padding-left: 12px; }
.ltable td:first-child, .ltable th:first-child { padding-left: 12px; color: var(--muted); }
.ltable .lt-pts { font-weight: 800; color: var(--ink); }
.ltable tbody tr:hover { background: var(--card-hover); }
.ltable .form span { width: 13px; height: 13px; font-size: 8px; }

.row-meta {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-meta:empty { display: none; }

.detail-arrow {
  display: inline-block;
  color: inherit;
  margin-left: 5px;
  opacity: 0.7;
}

.aside-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 21px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.premium {
  background: linear-gradient(145deg, var(--white) 0%, #172a3a 100%);
  border: 1px solid #2d4a5c;
  position: relative;
  overflow: hidden;
}

.premium .eyebrow {
  color: var(--lime);
}

.premium h2 {
  font-size: 31px;
  margin: 17px 0 14px;
}

.premium p {
  font-size: 14px;
  color: var(--ink);
}

.premium ul {
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 2.2;
  margin-bottom: 24px;
  color: var(--muted);
}

.premium li:before {
  content: '✓';
  color: var(--lime);
  margin-right: 9px;
}

.premium .btn {
  width: 100%;
}

.micro {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}

.premium .micro {
  text-align: center;
}

.stat-big {
  font: 700 34px/1 'Barlow Condensed', sans-serif;
  letter-spacing: -1px;
  margin: 13px 0 3px;
  color: #ffffff;
}

.stat-big small {
  font: 500 16px Inter;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.text-link {
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.legend p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.legend .line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  margin: 8px 0;
  color: var(--ink);
  font-weight: 500;
}

.empty {
  background: var(--nav);
  border: 1px dashed var(--muted);
  text-align: center;
  padding: 45px 20px;
  border-radius: 10px;
}

.empty h2 {
  color: var(--ink);
}

.empty p {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--nav);
}

.footer-inner {
  max-width: 1400px;
  padding: 28px 36px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner .brand {
  font-size: 23px;
  color: #ffffff;
  margin-bottom: 12px;
  display: block;
}

.footer-inner p {
  max-width: 580px;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: start;
  font-size: 13px;
}

.wide {
  grid-column: 2 / 4;
}

.intro-panel {
  background: linear-gradient(145deg, var(--white) 0%, #172a3a 100%);
  border: 1px solid #2d4a5c;
  color: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 25px;
}

.intro-panel p {
  color: var(--muted);
  max-width: 650px;
  font-size: 16px;
}

.intro-panel .eyebrow {
  color: var(--lime);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat-tile {
  padding: 23px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stat-tile b {
  display: block;
  font: 700 39px 'Barlow Condensed', sans-serif;
  color: #ffffff;
}

.stat-tile span {
  font-size: 13px;
  color: var(--muted);
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.content-card p, .content-card li {
  color: var(--ink);
  line-height: 1.6;
}

.content-card ul {
  padding-left: 20px;
}

.note {
  background: rgba(234, 179, 8, 0.1); /* Subtle yellow tint */
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fde047;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 18px 0;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison th, .comparison td {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}

.comparison th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.league-tile {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.league-tile:hover {
  border-color: var(--lime);
  background: var(--card-hover);
}

.league-tile span {
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}

.breadcrumb a {
  color: var(--ink);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 14px;
}

.back-link:hover {
  color: var(--ink);
}

.fixture-hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px;
  text-align: center;
  margin-bottom: 20px;
}

.fixture-teams {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 10px;
  align-items: center;
  margin: 28px 0;
}

.fixture-teams h2 {
  font-size: 30px;
  margin: 14px 0;
}

.fixture-teams .crest {
  height: 55px;
  width: 50px;
  font-size: 15px;
  margin: auto;
}

.versus {
  font: 700 26px 'Barlow Condensed', sans-serif;
  color: var(--muted);
}

.prob-big {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.prob-big div {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 8px;
  border-radius: 8px;
}

.prob-big strong {
  display: block;
  font: 700 34px 'Barlow Condensed', sans-serif;
  color: #ffffff;
}

.prob-big span {
  font-size: 12px;
  color: var(--muted);
}

.prob-bar {
  display: flex;
  gap: 3px;
  height: 9px;
  overflow: hidden;
  border-radius: 5px;
  margin: 20px 0;
  background: var(--line);
}

.prob-bar span:nth-child(1) {
  background: var(--green);
}

.prob-bar span:nth-child(2) {
  background: var(--muted);
}

.prob-bar span:nth-child(3) {
  background: var(--lime);
}

.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
}

.pass {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.fail {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mobile-title {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1500px) {
  .shell {
    gap: 34px;
  }
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 165px minmax(0, 1fr);
    padding: 25px;
  }
  .right {
    display: none;
  }
  .wide {
    grid-column: 2;
  }
  .top {
    padding: 20px 25px;
    gap: 25px;
  }
  .top nav {
    gap: 18px;
  }
  .columns, .match-row {
    grid-template-columns: minmax(160px, 1fr) 180px 75px;
  }
}

@media (max-width: 760px) {
  .top {
    padding: 18px 18px;
    flex-wrap: wrap;
    gap: 17px;
  }
  .brand {
    font-size: 27px;
  }
  .top > .btn {
    margin-left: auto;
    padding: 9px 12px;
  }
  .top nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 13px;
    overflow: auto;
  }
  .top nav a {
    font-size: 13px;
    white-space: nowrap;
  }
  .top nav a.active:after {
    bottom: -5px;
  }
  .strip {
    padding: 9px 18px;
    text-align: left;
    line-height: 1.5;
  }
  .shell {
    display: block;
    padding: 24px 16px 40px;
  }
  .sidebar {
    display: none;
  }
  .heading h1 {
    font-size: 28px;
  }
  .heading {
    margin-bottom: 15px;
  }
  .stamp {
    display: none;
  }
  .columns, .match-row {
    grid-template-columns: minmax(120px, 1fr) 133px 47px;
    gap: 7px;
  }
  .match-row {
    padding: 8px 10px;
  }
  .columns {
    padding: 9px 10px;
  }
  .rowline {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .row-meta {
    text-align: left;
  }
  .teams {
    font-size: 13px;
  }
  .team {
    gap: 6px;
  }
  .crest {
    width: 21px;
    height: 25px;
    font-size: 8px;
  }
  .prob {
    font-size: 12px;
    padding: 8px 1px;
  }
  .prob-grid {
    gap: 3px;
  }
  .pick {
    font-size: 12px;
    padding: 6px 0;
  }
  .tools {
    gap: 8px;
  }
  .tools input {
    flex-basis: 100%;
  }
  .tools select {
    flex: 1;
    max-width: none;
    width: 45%;
  }
  .group-head {
    padding: 11px 12px;
    font-size: 13px;
  }
  .footer-inner {
    padding: 25px 18px;
    display: block;
  }
  .footer-links {
    margin-top: 22px;
    flex-wrap: wrap;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat-tile {
    padding: 15px 10px;
  }
  .stat-tile b {
    font-size: 31px;
  }
  .stat-tile span {
    font-size: 12px;
  }
  .content-card {
    padding: 19px;
  }
  .league-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fixture-hero {
    padding: 22px 12px;
  }
  .fixture-teams {
    grid-template-columns: 1fr 50px 1fr;
  }
  .fixture-teams h2 {
    font-size: 18px;
  }
  .intro-panel {
    padding: 25px;
  }
  .comparison td, .comparison th {
    padding: 12px 5px;
  }
  .goal-grid {
    gap: 10px;
  }
  .tabs {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .league-tile, .side-link, .match-row, .pick {
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 10px;
  background: var(--nav);
  color: #ffffff;
  border: 1px solid var(--lime);
  z-index: 10;
  border-radius: 6px;
}

.skip:focus {
  top: 10px;
}

/* Readability and narrow-screen refinements. */
:root { color-scheme: dark; }
.btn, .btn:hover, .pick { color: var(--nav); }
.btn.outline, .btn.outline:hover { color: var(--ink); }
.tools input:focus-visible, .tools select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.team, .teams, .fixture-teams > div { min-width: 0; }
.fixture-teams h2 { overflow-wrap: anywhere; }
@media (min-width: 761px) and (max-width: 950px) {
  .columns, .match-row { grid-template-columns: minmax(0, 1fr) 140px 48px; gap: 8px; }
}
@media (max-width: 600px) {
  /* Phones: stack the two teams (home over away, crest on the left) so full club names
     show. On one line at ~360px they get cut to "Centr… - Indep…". */
  .teams { flex-direction: column; align-items: stretch; gap: 3px; }
  .team { flex: none; width: 100%; }
  .team.away { flex-direction: row; text-align: left; }
  .team-name { white-space: normal; }
  .vs { display: none; }
}
@media (max-width: 390px) {
  .columns, .match-row { grid-template-columns: minmax(0, 1fr) 112px 34px; gap: 5px; padding-left: 8px; padding-right: 8px; }
  .group-head { gap: 8px; }
  .group-head a { min-width: 0; overflow-wrap: anywhere; }
  .tag { flex-shrink: 0; }
  .stat-grid, .goal-grid, .league-grid { grid-template-columns: 1fr; }
  .comparison { font-size: 12px; }
  .comparison td:first-child { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Original GlobalScore artwork and banner wordmark colours. */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand b { color: #38bdf8; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-inner .brand { display: inline-flex; }
.footer-inner .brand-logo { width: 38px; height: 38px; }
@media (max-width: 760px) {
  .brand-logo { width: 40px; height: 40px; }
  .brand { gap: 8px; }
}

.match-row.locked .team-name{opacity:.92}
.lock-grid{display:flex;align-items:center;justify-content:center}
.lock-note{font-size:12px;font-weight:600;color:#94a3b8;white-space:nowrap}
.free-tag{display:inline-block;font-size:11px;font-weight:700;color:#0b1a12;background:#d7fa78;border-radius:999px;padding:2px 9px;margin-top:3px}
.free-tag.hc{background:#fde68a}
.lock-teaser{margin:0 0 16px;line-height:1.55}
.lock-card h2{margin-top:6px}
.match-row .status{display:inline-block;max-width:100%;line-height:1.35}
@media (max-width: 760px){.match-row .status .ml-prefix{display:none}.match-row .status{text-transform:none}}
.ml-tag{display:inline-block;max-width:100%;font-size:11px;font-weight:600;line-height:1.35;color:#cbd5e1;background:#1e293b;border:1px solid rgba(255,255,255,.08);border-radius:999px;padding:2px 9px;margin-top:3px;text-transform:none}
@media (max-width: 760px){.match-row .ml-tag .ml-prefix{display:none}}
.crest.has-img{background:transparent;border-color:transparent}
.crest img{display:block;max-width:86%;max-height:86%;width:auto;height:auto;object-fit:contain}
