body {
  background: linear-gradient(180deg, #0d1018 0%, #141923 100%);
}

.race-weekend {
  padding: 1rem 2rem;
}

.race-hero {
  margin-bottom: 1rem;
}

.result-block,
.session-strip {
  background: #0b0f19;
  border: 1px solid #242b3f;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.race-hero-main {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.race-hero-body {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.race-hero-round-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  margin-right: 1.6rem;
  padding-right: 1.6rem;
  border-right: 1px solid #242b3f;
  flex-shrink: 0;
}

.badge-num {
  font-family: Orbitron, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #d90429;
  letter-spacing: -0.02em;
}

.badge-label {
  font-family: Orbitron, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: #6b7a9e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.race-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.race-kicker,
.track-map-title {
  margin: 0;
  color: #c97a7a;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  text-transform: uppercase;
  font-family: Orbitron, sans-serif;
}

.race-hero-content h1 {
  margin: 0.3rem 0 0.9rem;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.race-hero-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chip-label {
  font-family: Orbitron, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a8a;
}

.chip-val {
  font-size: 0.88rem;
  color: #cdd8f0;
  font-weight: 500;
}

.race-meta {
  margin: 0.45rem 0 0;
  color: #b9c5df;
}

.race-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.38rem 0.9rem;
  border: 1px solid #2a3350;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #9dece2;
  text-decoration: none;
  font-family: Orbitron, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.18s, border-color 0.18s;
}

.race-back:hover {
  background: rgba(157, 236, 226, 0.08);
  border-color: #9dece2;
}

.circuit-section {
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.circuit-heading {
  margin: 2rem 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.circuit-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background-color: #000;
  border-radius: 12px;
  padding: 2rem;
  align-items: center;
}

.circuit-track-side {
  padding-right: 1.5rem;
}

.circuit-track-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
}

.circuit-stats-side {
  border-left: 1px solid #242b3f;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.circuit-stat-primary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #242b3f;
}

.circuit-stat-big {
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.circuit-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.circuit-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.circuit-stat-label {
  color: #9db0d6;
  font-size: 0.72rem;
}

.circuit-stat-value {
  color: #fff;
  font-family: Orbitron, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.circuit-stat-sub {
  color: #a7b3ce;
  font-size: 0.76rem;
  margin-top: 0.1rem;
}

.track-map {
  width: 100%;
  height: 280px;
}

.track-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-outline {
  fill: none;
  stroke: #f4f7ff;
  stroke-width: 19;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-sector {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-sector-1 {
  stroke: #f10f88;
}

.track-sector-2 {
  stroke: #f5b211;
}

.track-sector-3 {
  stroke: #54a8ff;
}

.session-strip,
.result-block {
  margin-top: 1rem;
  padding: 1rem;
}

.podium-block {
  margin-top: 1rem;
}

.podium-block h2 {
  margin: 2rem 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  background-color: #000;
  border-radius: 12px;
  padding: 2rem;
  align-items: end;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid #2d3551;
  background: rgba(34, 45, 71, 0.45);
}

.podium-slot-1 {
  min-height: 170px;
  background: linear-gradient(160deg, rgba(255, 215, 120, 0.28), rgba(34, 45, 71, 0.7));
  border-color: rgba(255, 215, 120, 0.65);
}

.podium-slot-2 {
  min-height: 145px;
  background: linear-gradient(160deg, rgba(210, 221, 247, 0.2), rgba(34, 45, 71, 0.7));
  border-color: rgba(184, 202, 240, 0.48);
}

.podium-slot-3 {
  min-height: 130px;
  background: linear-gradient(160deg, rgba(206, 139, 98, 0.22), rgba(34, 45, 71, 0.7));
  border-color: rgba(206, 139, 98, 0.48);
}

.podium-place {
  margin: 0;
  align-self: flex-start;
  text-align: left;
  width: 100%;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.podium-avatar {
  width: 74px;
  height: 74px;
  margin-top: 0.45rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 0%;
  border: 2px solid rgba(229, 237, 255, 0.72);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
  background: rgba(25, 33, 53, 0.8);
}

.podium-slot-1 .podium-avatar {
  width: 90px;
  height: 90px;
  border-color: rgba(255, 215, 120, 0.95);
}

.podium-slot-2 .podium-avatar {
  border-color: rgba(184, 202, 240, 0.92);
}

.podium-slot-3 .podium-avatar {
  border-color: rgba(206, 139, 98, 0.88);
}

.podium-driver {
  display: block;
  margin-top: 0.35rem;
  color: #eef4ff;
  text-decoration: none;
  font-family: Orbitron, sans-serif;
  font-size: 0.95rem;
}

.podium-team {
  margin: 0.25rem 0 0;
  color: #a7b3ce;
  font-size: 0.82rem;
}

.podium-stats {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.18rem;
  width: 100%;
}

.podium-stats p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
}

.podium-stats .label {
  color: #9db0d6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: Orbitron, sans-serif;
  font-size: 0.62rem;
}

.podium-stats .value {
  color: #eef4ff;
  font-family: Orbitron, sans-serif;
  font-size: 0.72rem;
}

.result-accordion {
  overflow: hidden;
}

.result-accordion > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.result-accordion > summary::-webkit-details-marker {
  display: none;
}

.result-accordion[open] > summary {
  border-bottom-color: #2a3350;
}

.result-accordion > summary h2 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 0.9rem;
}

.result-accordion > summary span {
  color: #95a9d4;
  font-family: Orbitron, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-accordion .result-block {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.session-strip h2,
.result-block h2 {
  margin: 0 0 0.75rem;
  font-family: Orbitron, sans-serif;
  font-size: 1rem;
}

.session-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
}

.session-chip {
  padding: 0.65rem;
  border: 1px solid #2d3551;
  border-radius: 10px;
  background: rgba(34, 45, 71, 0.45);
}

.session-chip p {
  margin: 0;
  color: #a7b3ce;
  font-size: 0.8rem;
}

.session-chip strong {
  display: block;
  margin-top: 0.2rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.result-table th,
.result-table td {
  border-bottom: 1px solid #252d43;
  text-align: left;
  padding: 0.45rem 0.35rem;
  font-size: 0.9rem;
}

.result-table th {
  color: #9db0d6;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: Orbitron, sans-serif;
}

.result-table td a {
  color: #e8f2ff;
}

.result-table tr.pos-1 td {
  background: rgba(255, 215, 120, 0.12);
}

.result-table tr.pos-2 td {
  background: rgba(210, 221, 247, 0.1);
}

.result-table tr.pos-3 td {
  background: rgba(206, 139, 98, 0.1);
}

.pos-pill {
  display: inline-flex;
  min-width: 2.2rem;
  justify-content: center;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 162, 199, 0.5);
  font-family: Orbitron, sans-serif;
  font-size: 0.68rem;
}

.pos-pill-1 {
  border-color: rgba(255, 215, 120, 0.8);
  background: rgba(255, 215, 120, 0.18);
}

.pos-pill-2 {
  border-color: rgba(184, 202, 240, 0.8);
  background: rgba(184, 202, 240, 0.14);
}

.pos-pill-3 {
  border-color: rgba(206, 139, 98, 0.75);
  background: rgba(206, 139, 98, 0.16);
}

.voniwu {
    background-color: #000;
    padding: 2rem;
    border-radius: 12px;
}

@media (max-width: 900px) {
  .race-weekend {
    padding: 1rem;
  }

  .podium-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 1rem;
  }

  .voniwu {
    padding: 1rem;
  }

  .podium-slot-1 { order: 1; }

    .circuit-body {
      grid-template-columns: 1fr;
      padding: 1rem;
    }

    .circuit-track-side {
      padding-right: 0;
      padding-bottom: 1rem;
    }

    .circuit-stats-side {
      border-left: none;
      border-top: 1px solid #242b3f;
      padding-left: 0;
      padding-top: 1rem;
    }

  .podium-slot-2 { order: 2; }
  .podium-slot-3 { order: 3; }

  .podium-slot-1,
  .podium-slot-2,
  .podium-slot-3 {
    min-height: 0;
  }

  .podium-avatar,
  .podium-slot-1 .podium-avatar {
    width: 76px;
    height: 76px;
  }

  .track-map {
    height: 230px;
  }
}
