/* baller24.st — game list (scores-site layout) */
.listwrap { width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); margin-inline: auto; padding: 18px var(--gutter) 0; }
.matches { display: grid; gap: 14px; padding-bottom: 20px; }

/* League card */
.sport { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.league { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.league-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.league-icon svg { width: 20px; height: 20px; }
.league-text { display: flex; flex-direction: column; line-height: 1.2; }
.league-sub { font-size: .75rem; font-weight: 600; color: var(--muted); }
.league-name { font-size: .9375rem; font-weight: 800; }

/* Match row: [pill] [home name + badge] [time] [badge + away name] */
.match {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 54px; padding: 8px 18px 8px 14px; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.league + .match, .league + .match-list > .match:first-child { border-top: 0; }
.match-list > .match:first-child { border-top: 0; }
@media (hover: hover) { .match:hover { background: var(--surface-2); } }
.match:active { background: var(--surface-2); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 22px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .6875rem; font-weight: 800; letter-spacing: .02em; }
.pill svg { width: 8px; height: 8px; }
@media (hover: hover) { .match:hover .pill { background: var(--ink); color: var(--surface); } }

.team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .875rem; font-weight: 600; line-height: 1.2; }
.team.home { justify-content: flex-end; text-align: right; }
.team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-badge, .national-flag, .f1-icon, .fight-icon, .team-spacer { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.national-flag { border-radius: 3px; }
.team-spacer { display: grid; place-items: center; font-size: 15px; }
:root[data-theme="dark"] .f1-icon { filter: invert(1); }
.fight-icon { filter: grayscale(1); }
.match-time { text-align: center; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* One-title events (fights, F1): title on the left, time on the right */
.match.single { grid-template-columns: 76px minmax(0, 1fr) auto; }
.match.single .team { justify-content: flex-start; text-align: left; font-size: .9375rem; }
.match.single .match-time { order: 3; text-align: right; }

.hidden { display: none !important; }
.empty { display: none; padding: 48px 0; text-align: center; color: var(--muted); }
.empty.show { display: block; }
.empty strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.125rem; }

.notfound { padding-block: clamp(48px, 12vw, 120px); }
.notfound h1 { margin: 0 0 12px; font: 800 clamp(2rem, 7vw, 3rem)/1.05 var(--font-display); letter-spacing: -.03em; }
.notfound p { margin: 0 0 24px; color: var(--muted); }

/* Phones: time on the left, teams stacked, pill on the right */
@media (max-width: 600px) {
  .listwrap { padding-top: 12px; }
  .matches { gap: 12px; }
  .sport { border-radius: 16px; }
  .league { padding: 12px 14px; }
  .match, .match.single {
    grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "time home pill" "time away pill";
    row-gap: 6px; column-gap: 12px; padding: 10px 14px 10px 8px;
  }
  .match-time { grid-area: time; align-self: center; font-size: .8125rem; }
  .team.home { grid-area: home; flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
  .team.away { grid-area: away; }
  .match.single .team { grid-area: home; }
  .match.single .match-time { order: 0; text-align: center; }
  .pill { grid-area: pill; width: 30px; height: 30px; }
  .pill span { display: none; }
  .pill svg { width: 11px; height: 11px; }
  .team { font-size: .875rem; }
  .team-badge, .national-flag, .f1-icon, .fight-icon, .team-spacer { width: 22px; height: 22px; flex-basis: 22px; }
}
