/* ========================================
   Match card — boletería mini-ticket horizontal.
   Used in fixture, recent-results lists, etc. Compact form so a
   torneo with 300 partidos doesn't drown the page in vertical
   space. Score in Bebas, teams flanking it, dashed bottom for
   meta/prediction row.
   ======================================== */

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-block {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 150ms, transform 200ms;
}
.match-block:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

/* Top row: 5-column grid so badges + score sit on fixed vertical
   lines across every row (badges align column-to-column even when
   team names differ in length). Names live in the outer flex
   columns and ellipsis when they don't fit.

   Layout: [home-name 1fr] [home-badge auto] [center auto] [away-
   badge auto] [away-name 1fr]. The mobile breakpoint switches the
   names for the short codes so the score still has room. */
.match-block > .matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.match-block > .matchup > .home-name {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.match-block > .matchup > .away-name {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.match-block > .matchup > .home-badge,
.match-block > .matchup > .away-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.match-block > .matchup > .home-code,
.match-block > .matchup > .away-code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}

/* Center column: score (.result) when finished/live, kickoff (.time)
   when scheduled. */
.match-block > .matchup > .center {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
}
.match-block > .matchup > .center > .result {
  font-family: var(--font-scoreboard);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
}
.match-block > .matchup > .center > .time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.match-block.-live > .matchup > .center > .result { color: var(--coral); }

/* Mobile: collapse names to short codes so the badge + score line
   stays readable on a 375px screen. */
@media (max-width: 559px) {
  .match-block > .matchup {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    gap: 6px;
  }
  .match-block > .matchup > .home-name,
  .match-block > .matchup > .away-name {
    font-size: 11px;
  }
}

/* Meta row at the bottom: round / kickoff / prediction status */
.match-block > .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.match-block > .meta .round { color: var(--ink-soft); }
.match-block > .meta .pick.-exact { color: var(--gold); }
.match-block > .meta .pick.-result { color: var(--green); }
.match-block > .meta .pick.-miss { color: var(--coral); }

/* Mobile compaction */
@media (max-width: 480px) {
  .match-block > .matchup .name { font-size: 13px; }
  .match-block > .matchup > .score { font-size: 24px; padding: 0 4px; }
  .match-block > .matchup { padding: 10px 12px; }
  .match-block > .meta { padding: 8px 12px 10px; flex-wrap: wrap; }
}
