/*
 * Next Race countdown widget — fully self-contained styles.
 * Scoped entirely to .next-race-* classes so it cannot affect any other page element.
 */

.next-race-section {
  padding-top: 0;
}

.next-race-card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.next-race-badge {
  display: inline-block;
  margin-bottom: 16px;
  background: #e10600;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
}

.next-race-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.next-race-flag {
  font-size: 32px;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.next-race-name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.next-race-sprint {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.next-race-venue {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #888888;
}

.next-race-venue-sep {
  color: #555555;
  padding: 0 4px;
}

.next-race-countdown {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
}

.next-race-box {
  background: #0a0a0a;
  border-radius: 8px;
  padding: 16px 24px;
  text-align: center;
  min-width: 90px;
}

.next-race-number {
  display: block;
  font-size: 52px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
}

.next-race-label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #888888;
}

.next-race-complete {
  margin: 0;
  font-size: 15px;
  color: #888888;
  text-align: center;
  padding: 8px 0;
}

/* Keep the three boxes in a horizontal row on small screens — never stack. */
@media (max-width: 600px) {
  .next-race-card {
    padding: 24px 16px;
    max-width: 100%;
  }

  .next-race-name {
    font-size: 22px;
  }

  .next-race-countdown {
    flex-direction: row;
    gap: 10px;
  }

  .next-race-box {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 8px;
  }

  .next-race-number {
    font-size: 36px;
  }
}
