/* Football-day dates: Bangkok noon to the following noon. */
.football-day-range {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 20px;
  padding: 12px 15px;
  border: 1px solid #53432a;
  border-radius: 9px;
  background: linear-gradient(110deg, #30271980, #15171b 72%);
}
.football-day-range > .icon {
  width: 21px;
  height: 21px;
  color: var(--gold, #d8b66b);
}
.football-day-range > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
  min-width: 0;
}
.football-day-title {
  color: #aaa393;
  font-size: 11px;
  white-space: nowrap;
}
.football-day-range [data-football-day-label] {
  color: #eddbb7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.football-day-range > small {
  margin-left: auto;
  color: #a19c90;
  font-size: 10px;
  white-space: nowrap;
}
.match-kickoff {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  color: #b9b5ab;
  font-size: 11px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.match-kickoff .kickoff-date,
.match-kickoff .kickoff-time { white-space: nowrap; }
.match-kickoff .kickoff-time { color: #e5cf9f; font-weight: 600; }
.match-kickoff .kickoff-separator { color: #706957; white-space: pre; }
.match-card-kickoff { padding: 0 14px 2px; }
.match-card-kickoff .match-kickoff { font-size: 10px; }
.match-card.is-live .match-card-kickoff { text-shadow: 0 1px 4px #000; }
.featured-date .match-kickoff { justify-content: center; font-size: 11px; }

/* A row keeps the kickoff first and the current match state at the end. */
.score-row.football-score-row {
  grid-template-columns: 105px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 14px;
  padding: 13px 16px;
  min-height: 84px;
}
.football-score-row > .score-kickoff { grid-column: 1; grid-row: 1; min-width: 0; }
.football-score-row .score-kickoff .match-kickoff {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 11px;
  gap: 1px;
}
.football-score-row .score-kickoff .kickoff-separator { display: none; }
.football-score-row .score-kickoff .kickoff-time { font-size: 15px; }
.football-score-row > .score-match-content { grid-column: 2; grid-row: 1; min-width: 0; }
.football-score-row .score-league {
  margin-bottom: 7px;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  max-height: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.football-score-row .score-teams {
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  gap: 10px;
}
.football-score-row .score-team { font-size: 12px; min-width: 0; }
.football-score-row .score-team strong { font-size: inherit; overflow-wrap: anywhere; }
.football-score-row > .score-row-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 3;
  grid-row: 1;
  min-width: 85px;
}
.football-score-row .score-row-end .score-state,
.football-score-row .score-row-end .score-action { grid-column: auto; grid-row: auto; }
.football-score-row .score-state { display: flex; align-items: center; justify-content: center; }
.football-score-row .score-state .finished-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid #41434a;
  border-radius: 5px;
  background: #22242a;
  color: #c6c7ce;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.football-score-row .score-state .upcoming-tag { font-size: 11px; white-space: nowrap; }

@media (max-width: 800px) {
  .score-row.football-score-row { grid-template-columns: 77px minmax(0, 1fr) 64px; gap: 10px; padding-inline: 12px; }
  .football-score-row > .score-row-end { min-width: 0; flex-direction: column; gap: 7px; }
  .football-score-row .score-teams { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 7px; }
  .football-score-row .score-team { font-size: 11px; gap: 6px; }
  .football-score-row .score-kickoff .kickoff-time { font-size: 13px; }
}
@media (max-width: 600px) {
  .football-day-range { gap: 8px; padding: 10px 11px; margin: 12px 0 16px; }
  .football-day-range > .icon { width: 18px; height: 18px; }
  .football-day-range > div { display: block; }
  .football-day-title { display: block; font-size: 10px; }
  .football-day-range [data-football-day-label] { display: block; font-size: 11px; }
  .football-day-range > small { font-size: 9px; align-self: flex-start; }
  .match-card-kickoff { padding-inline: 10px; }
  .match-card-kickoff .match-kickoff { font-size: 9px; }
  .date-tabs > button { min-width: 0; gap: 3px; flex-direction: column; }
  .date-tabs > button > span { font-size: 10px; }
  .score-row.football-score-row { grid-template-columns: 59px minmax(0, 1fr) 51px; gap: 7px; padding: 11px 9px; }
  .football-score-row .score-kickoff .match-kickoff { font-size: 10px; }
  .football-score-row .score-kickoff .kickoff-time { font-size: 12px; }
  .football-score-row .score-league { font-size: 9px; line-height: 1.5; margin-bottom: 8px; }
  .football-score-row .score-teams { grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr); gap: 5px; }
  .football-score-row .score-team { flex-direction: column; gap: 4px; font-size: 10px; text-align: center; align-self: start; }
  .football-score-row .score-team.home { flex-direction: column-reverse; }
  .football-score-row .score-team > .team-mark { width: 22px; height: 22px; flex-shrink: 0; }
  .football-score-row .score-team strong { line-height: 1.5; }
  .football-score-row .score-number { font-size: 20px; gap: 4px; align-self: center; }
  .football-score-row .score-state .finished-tag { font-size: 10px; padding: 3px 6px; }
  .football-score-row .score-action { width: 25px; height: 25px; }
}
@media (max-width: 360px) {
  .football-day-range { gap: 7px; padding-inline: 9px; }
  .football-day-range > small { display: none; }
  .match-card-kickoff { padding-inline: 8px; }
  .score-row.football-score-row { grid-template-columns: 54px minmax(0, 1fr) 46px; gap: 5px; padding-inline: 7px; }
  .football-score-row .score-teams { grid-template-columns: minmax(0, 1fr) 31px minmax(0, 1fr); gap: 3px; }
  .football-score-row .score-team { font-size: 9px; }
  .football-score-row .score-kickoff .match-kickoff { font-size: 9px; }
  .football-score-row .score-kickoff .kickoff-time { font-size: 11px; }
  .football-score-row .score-state .finished-tag { padding-inline: 5px; font-size: 9px; }
}
/* Equal status choices on the live listing, independent of label length. */
body[data-page="live"] .filter-bar .status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 1 420px;
  width: 420px;
  max-width: 100%;
  min-width: 0;
  gap: 5px;
}
body[data-page="live"] .filter-bar .status-tabs > button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 600px) {
  body[data-page="live"] .filter-bar .status-tabs {
    flex: none;
    width: 100%;
    gap: 4px;
  }
}
