#horse-races {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.race-card { overflow: hidden; }
.race-card .section-head { margin-bottom: 18px; }
.race-card .section-head h3 { font-size: 24px; }

.race-facts,
.reward-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.race-facts span,
.reward-plan span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
}

.reward-plan { margin-top: 10px; }
.reward-plan span { color: #c8dce2; }
.reward-plan b { margin-right: 6px; color: var(--gold); }

.race-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  border-bottom: 1px solid rgba(154, 206, 225, .1);
  padding-bottom: 10px;
}

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

.race-entrants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.race-entrants article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 13, 22, .35);
  padding: 11px;
}

.race-entrants article.self-result {
  border-color: rgba(117, 216, 233, .48);
  background: rgba(117, 216, 233, .08);
}

.race-order {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.race-entrants div { min-width: 0; }
.race-entrants strong,
.race-entrants small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-entrants small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.race-entrants article > b {
  color: var(--mint);
  font-size: 12px;
}

.race-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.race-actions .compact {
  width: auto;
  min-width: 180px;
  margin: 0;
}

.yesterday-result {
  margin: 24px -26px -26px;
  border-top: 1px solid var(--line);
  background: rgba(3, 13, 22, .22);
  padding: 0 26px 24px;
}

.official-winners {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.official-winners article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
}

.official-winners article.self-result { border-color: rgba(117, 216, 233, .48); }
.official-winners span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.official-winners b { flex: 0 0 auto; }

.race-copy {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.race-pot {
  margin: 22px 0;
  text-align: center;
}

.race-pot span,
.race-pot small {
  display: block;
  color: var(--muted);
}

.race-pot strong {
  display: block;
  margin: 5px 0;
  color: var(--gold);
  font-size: 48px;
}

.match-history .history-list { margin-top: 16px; }

@media (max-width: 760px) {
  .race-entrants { grid-template-columns: 1fr; }
  .race-card { padding: 20px; }
  .race-card .section-head { align-items: flex-start; }
  .race-card .section-head h3 { font-size: 21px; }
  .yesterday-result { margin: 22px -20px -20px; padding: 0 20px 20px; }
  .race-subhead { align-items: flex-start; }
  .official-winners article { align-items: flex-start; }
  .official-winners span { white-space: normal; }
}
