/* Kezdőlapi következő futamok: tömör idősor (dátum, forduló, pálya, szimulátor egy sorban) */
.hv-races {
  --hv-red: #e10600;
  --hv-card: #1c1c1c;
  --hv-line: rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hv-race {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  color: inherit;
  text-decoration: none;
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-left: 3px solid transparent;
  border-radius: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hv-race:hover {
  color: inherit;
  background: #222;
  border-color: rgba(225, 6, 0, 0.6);
}

.hv-race:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hv-race--soon {
  border-left-color: var(--hv-red);
}

/* Dátumblokk */
.hv-race__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.hv-race__month {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff5a55;
}

.hv-race__day {
  margin: 2px 0 1px;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hv-race__weekday {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.hv-race__main {
  min-width: 0;
}

.hv-race__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 4px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.hv-race__when {
  color: #fff;
}

.hv-race__when--soon {
  color: #ff5a55;
}

.hv-race__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  color: #fff;
  background: var(--hv-red);
  border-radius: 3px;
}

.hv-race__title {
  margin: 0 0 4px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-race__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-size: 0.9rem;
  color: #bdbdbd;
}

.hv-race__info span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hv-race__info i {
  color: #7f7f7f;
}

.hv-race__info img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hv-race__arrow {
  color: #7f7f7f;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hv-race:hover .hv-race__arrow {
  color: #fff;
  transform: translateX(3px);
}

.hv-races__empty {
  padding: 28px 20px;
  text-align: center;
  color: #bdbdbd;
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-radius: 6px;
}

/* Széles képernyőn két oszlop: időrendben balról jobbra, soronként */
@media (min-width: 1200px) {
  .hv-races {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .hv-race {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    height: 100%;
    padding-right: 14px;
  }

  .hv-race__arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hv-race {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px 10px 10px;
  }

  .hv-race__arrow {
    display: none;
  }

  .hv-race__day {
    font-size: 1.6rem;
  }

  .hv-race__title {
    font-size: 1.08rem;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-race,
  .hv-race__arrow {
    transition: none;
  }

  .hv-race:hover .hv-race__arrow {
    transform: none;
  }
}
