.rpv4-h2h-page {
  padding: 0 0 96px;
}

.rpv4-h2h-page__hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 32px;
}

.rpv4-h2h-page__intro {
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #5f6368;
}

.rpv4-h2h-selector-card,
.rpv4-h2h-battle-card,
.rpv4-h2h-rounds-card,
.rpv4-h2h-stories-card,
.rpv4-h2h-perf-card,
.rpv4-h2h-share-card-wrap {
  border: 1px solid #e7e2d8;
  border-radius: 24px;
  background: #fff;
}

.rpv4-h2h-selector-card {
  padding: 28px;
  margin-bottom: 28px;
}

.rpv4-h2h-selector-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.rpv4-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-field__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #d8d2c6;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
}

.rpv4-h2h-selector-action {
  display: flex;
  align-items: end;
}

.rpv4-btn--primary {
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #bf2f1f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.rpv4-h2h-battle-card {
  padding: 32px;
  border-radius: 28px;
}

.rpv4-h2h-battle-card__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.rpv4-h2h-battle-card__label,
.rpv4-h2h-battle-card__season {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-h2h-battle-card__riders {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.rpv4-h2h-rider {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
}

.rpv4-h2h-rider--a {
  background: linear-gradient(180deg, #0d1016 0%, #151922 100%);
}

.rpv4-h2h-rider--b {
  background: linear-gradient(180deg, #10141b 0%, #171c27 100%);
}

.rpv4-h2h-rider::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 30%);
  pointer-events: none;
}

.rpv4-h2h-rider__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
}

.rpv4-h2h-rider__avatar {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpv4-h2h-rider__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rpv4-h2h-rider__avatar span {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
}

.rpv4-h2h-rider__identity {
  min-width: 0;
}

.rpv4-h2h-rider__badge {
  margin-bottom: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.rpv4-h2h-rider__num {
  margin-bottom: 6px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 0.95;
}

.rpv4-h2h-rider--a .rpv4-h2h-rider__num {
  color: #d9a441;
}

.rpv4-h2h-rider--b .rpv4-h2h-rider__num {
  color: #7aa6ff;
}

.rpv4-h2h-rider__name {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.rpv4-h2h-rider__meta {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-rider__summary {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.rpv4-h2h-rider__summary span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.rpv4-h2h-rider__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  gap: 6px;
}

.rpv4-h2h-rider__vs-mark {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: #9f988c;
}

.rpv4-h2h-rider__vs-sub {
  max-width: 90px;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f887d;
}

.rpv4-h2h-verdict {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f7f3ec;
}

.rpv4-h2h-verdict strong {
  font-size: 1rem;
  color: #1c1815;
}

.rpv4-h2h-verdict span {
  line-height: 1.6;
  color: #5f6368;
}

.rpv4-h2h-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rpv4-h2h-metric-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 18px;
  align-items: center;
}

.rpv4-h2h-metric-row__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #8e8779;
}

.rpv4-h2h-metric-row__value.is-right {
  text-align: right;
}

.rpv4-h2h-metric-row__value.is-winner {
  color: #151310;
}

.rpv4-h2h-metric-row__sub {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: #7a7468;
}

.rpv4-h2h-metric-row__label {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-h2h-metric-row__bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.rpv4-h2h-metric-row__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece4d8;
}

.rpv4-h2h-metric-row__fill {
  height: 100%;
  border-radius: 999px;
}

.rpv4-h2h-metric-row__track--a .rpv4-h2h-metric-row__fill {
  margin-left: auto;
  background: #c43a2b;
}

.rpv4-h2h-metric-row__track--b .rpv4-h2h-metric-row__fill {
  background: #4f7cff;
}

.rpv4-h2h-rounds-card,
.rpv4-h2h-stories-card,
.rpv4-h2h-perf-card,
.rpv4-h2h-share-card-wrap {
  margin-top: 28px;
  padding: 28px 30px;
}

.rpv4-h2h-rounds-card__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.rpv4-h2h-rounds-card__title-wrap {
  max-width: 720px;
}

.rpv4-h2h-rounds-card__title,
.rpv4-h2h-stories-card__title,
.rpv4-h2h-perf-card__title,
.rpv4-h2h-share-card-wrap__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.rpv4-h2h-rounds-card__intro {
  max-width: 420px;
  margin: 0;
  justify-self: end;
  line-height: 1.55;
  color: #6f685d;
}

.rpv4-h2h-rounds-table-wrap {
  overflow-x: auto;
}

.rpv4-h2h-rounds-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.rpv4-h2h-rounds-table thead tr {
  background: #11151d;
}

.rpv4-h2h-rounds-table th {
  padding: 15px 12px;
  text-align: left;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  border-bottom: 0;
}

.rpv4-h2h-rounds-table th:first-child {
  border-top-left-radius: 12px;
}

.rpv4-h2h-rounds-table th:last-child {
  border-top-right-radius: 12px;
}

.rpv4-h2h-rounds-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #f0eadf;
  vertical-align: middle;
}

.rpv4-h2h-rounds-table__row--a-win {
  background: rgba(191, 47, 31, 0.025);
}

.rpv4-h2h-rounds-table__row--b-win {
  background: rgba(32, 61, 122, 0.03);
}

.rpv4-h2h-rounds-table__row--tie {
  background: rgba(140, 130, 115, 0.08);
}

.rpv4-h2h-rounds-table__event {
  font-weight: 500;
  color: #1f1a17;
}

.rpv4-h2h-rounds-table__finish,
.rpv4-h2h-rounds-table__points {
  font-weight: 700;
  color: #1f1a17;
}

.rpv4-h2h-rounds-table__lap {
  font-variant-numeric: tabular-nums;
  color: #3e3933;
}

.rpv4-h2h-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rpv4-h2h-result-pill.is-a {
  background: rgba(191, 47, 31, 0.12);
  color: #bf2f1f;
}

.rpv4-h2h-result-pill.is-b {
  background: rgba(32, 61, 122, 0.12);
  color: #203d7a;
}

.rpv4-h2h-result-pill.is-tie {
  background: rgba(140, 130, 115, 0.12);
  color: #6f685d;
}

.rpv4-h2h-result-pill.is-neutral {
  background: rgba(180, 170, 150, 0.12);
  color: #8b8377;
}

.rpv4-h2h-empty {
  padding: 22px 24px;
  border-radius: 16px;
  background: #f8f4ed;
  color: #6f685d;
}

.rpv4-h2h-stories-card__head,
.rpv4-h2h-perf-card__head,
.rpv4-h2h-share-card-wrap__head {
  margin-bottom: 20px;
}

.rpv4-h2h-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rpv4-h2h-story-card {
  min-height: 180px;
  padding: 22px 22px 24px;
  border-radius: 18px;
  border: 1px solid #ece5d9;
  background: #faf7f1;
}

.rpv4-h2h-story-card--edge {
  background: linear-gradient(180deg, #fbf6ef 0%, #f7efe4 100%);
}

.rpv4-h2h-story-card--control {
  background: linear-gradient(180deg, #f7f8f4 0%, #edf3ea 100%);
}

.rpv4-h2h-story-card--pressure {
  background: linear-gradient(180deg, #f8f6fb 0%, #f0edf7 100%);
}

.rpv4-h2h-story-card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1d1916;
}

.rpv4-h2h-story-card__body {
  margin: 0;
  line-height: 1.65;
  color: #5d574d;
}

.rpv4-h2h-perf-card__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.rpv4-h2h-perf-card__score {
  padding: 18px 20px;
  border-radius: 16px;
  background: #f8f4ed;
}

.rpv4-h2h-perf-card__score span {
  display: block;
  margin-bottom: 6px;
  color: #6f685d;
}

.rpv4-h2h-perf-card__score strong {
  font-size: 2rem;
  line-height: 1;
}

.rpv4-h2h-perf-card__note {
  color: #6f685d;
  line-height: 1.6;
}

.rpv4-h2h-share-card {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #101216 0%, #161a22 100%);
  color: #fff;
}

.rpv4-h2h-share-card__stripe {
  height: 4px;
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 50%, #4f79d8 100%);
}

.rpv4-h2h-share-card__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 28px 20px;
}

.rpv4-h2h-share-card__rider {
  min-height: 140px;
}

.rpv4-h2h-share-card__rider--b {
  text-align: right;
}

.rpv4-h2h-share-card__identity {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
}

.rpv4-h2h-share-card__avatar {
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpv4-h2h-share-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rpv4-h2h-share-card__avatar span {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
}

.rpv4-h2h-share-card__rider-label {
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.rpv4-h2h-share-card__number {
  margin-bottom: 6px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
}

.rpv4-h2h-share-card__rider--a .rpv4-h2h-share-card__number {
  color: #d9a441;
}

.rpv4-h2h-share-card__rider--b .rpv4-h2h-share-card__number {
  color: #7aa6ff;
}

.rpv4-h2h-share-card__name {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.7rem);
  font-weight: 800;
  line-height: 0.95;
}

.rpv4-h2h-share-card__meta {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
}

.rpv4-h2h-share-card__vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.rpv4-h2h-share-card__vs {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-share-card__advantage {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}

.rpv4-h2h-share-card__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rpv4-h2h-share-card__metric {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.rpv4-h2h-share-card__metric:last-child {
  border-right: 0;
}

.rpv4-h2h-share-card__metric-a {
  text-align: left;
  font-size: 1.2rem;
  font-weight: 800;
  color: #d9a441;
}

.rpv4-h2h-share-card__metric-b {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 800;
  color: #7aa6ff;
}

.rpv4-h2h-share-card__metric-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.rpv4-h2h-share-card__footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 28px 22px;
}

.rpv4-h2h-share-card__summary {
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.rpv4-h2h-share-card__brand {
  text-align: right;
}

.rpv4-h2h-share-card__brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.rpv4-h2h-share-card__brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 1100px) {
  .rpv4-h2h-page__hero,
  .rpv4-h2h-rounds-card__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rpv4-h2h-rounds-card__intro {
    justify-self: start;
    max-width: 100%;
  }

  .rpv4-h2h-selector-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rpv4-h2h-selector-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .rpv4-h2h-battle-card__riders {
    grid-template-columns: 1fr;
  }

  .rpv4-h2h-rider__vs {
    min-width: auto;
    padding: 6px 0;
  }

  .rpv4-h2h-rider__vs-sub {
    max-width: none;
  }

  .rpv4-h2h-stories-grid {
    grid-template-columns: 1fr;
  }

  .rpv4-h2h-share-card__top {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .rpv4-h2h-share-card__rider--b {
    text-align: left;
  }

  .rpv4-h2h-share-card__vs-block {
    align-items: flex-start;
  }

  .rpv4-h2h-share-card__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .rpv4-h2h-share-card__footer {
    grid-template-columns: 1fr;
  }

  .rpv4-h2h-share-card__brand {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-page__inner {
    padding: 0 20px;
  }

  .rpv4-h2h-selector-grid {
    grid-template-columns: 1fr;
  }

  .rpv4-h2h-rider__head {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .rpv4-h2h-rider__avatar {
    width: 64px;
    height: 64px;
  }

  .rpv4-h2h-metric-row {
    grid-template-columns: 100px 1fr 100px;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .rpv4-h2h-share-card__metrics {
    grid-template-columns: 1fr;
  }

  .rpv4-h2h-share-card__metric {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .rpv4-h2h-share-card__metric:last-child {
    border-bottom: 0;
  }
}



.rpv4-h2h-hero__copy {
  max-width: 760px;
}


.rpv4-h2h-hero__chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #ddd5c8;
  border-radius: 999px;
  background: #f8f4ed;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f685d;
}

.rpv4-h2h-hero__season-strip {
  position: relative;
  z-index: 1;
}

.rpv4-h2h-hero__panel-label {
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.rpv4-h2h-hero__matchup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.rpv4-h2h-hero__rider {
  min-width: 0;
}

.rpv4-h2h-hero__rider-badge {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}

.rpv4-h2h-hero__rider-number {
  margin-bottom: 4px;
  font-size: 2.2rem;
  line-height: 0.95;
  font-weight: 900;
}

.rpv4-h2h-hero__rider--a .rpv4-h2h-hero__rider-number {
  color: #d9a441;
}

.rpv4-h2h-hero__rider--b .rpv4-h2h-hero__rider-number {
  color: #7aa6ff;
}

.rpv4-h2h-hero__rider-name {
  margin-bottom: 6px;
  font-size: 1.7rem;
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.rpv4-h2h-hero__rider-meta {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

.rpv4-h2h-hero__vs {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.74);
}

.rpv4-h2h-hero__season-strip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 1100px) {
  .rpv4-h2h-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-hero__title {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  .rpv4-h2h-hero__matchup {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rpv4-h2h-hero__vs {
    text-align: left;
  }
}

.rpv4-h2h-hero-dark {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  background: #0e1015;
}

.rpv4-h2h-hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(191,47,31,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(79,124,255,0.10) 0%, transparent 58%);
  pointer-events: none;
}

.rpv4-h2h-hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -68deg,
    transparent 0,
    transparent 52px,
    rgba(255,255,255,0.025) 52px,
    rgba(255,255,255,0.025) 54px
  );
  pointer-events: none;
}

.rpv4-h2h-hero-dark__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(
    180deg,
    #bf2f1f 0% 25%,
    #2ea44f 25% 50%,
    #d9a441 50% 75%,
    #4f7cff 75% 100%
  );
  z-index: 2;
}

.rpv4-h2h-hero-dark__inner {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 44px;
}

.rpv4-h2h-hero-dark__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: end;
}

.rpv4-h2h-hero-dark__copy {
  max-width: 760px;
}

.rpv4-h2h-hero-dark__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-hero-dark__eyebrow-bars {
  display: inline-flex;
  gap: 3px;
}

.rpv4-h2h-hero-dark__eyebrow-bars i {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
}

.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(1) { background: #bf2f1f; }
.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(2) { background: #2ea44f; }
.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(3) { background: #d9a441; }
.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(4) { background: #4f7cff; }

.rpv4-h2h-hero-dark__title {
  margin: 0 0 16px;
  font-size: clamp(4.2rem, 8vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.rpv4-h2h-hero-dark__title em {
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,0.36);
}

.rpv4-h2h-hero-dark__intro {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-hero-dark__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rpv4-h2h-hero-dark__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.rpv4-h2h-hero-dark__match-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.rpv4-h2h-hero-dark__match-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rpv4-h2h-hero-dark__match-label,
.rpv4-h2h-hero-dark__match-season {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.44);
}

.rpv4-h2h-hero-dark__match-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.rpv4-h2h-hero-dark__rider-tag {
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-hero-dark__rider-num {
  margin-bottom: 4px;
  font-size: 2.1rem;
  line-height: 0.95;
  font-weight: 900;
}

.rpv4-h2h-hero-dark__rider--a .rpv4-h2h-hero-dark__rider-num {
  color: #d9a441;
}

.rpv4-h2h-hero-dark__rider--b .rpv4-h2h-hero-dark__rider-num {
  color: #7aa6ff;
}

.rpv4-h2h-hero-dark__rider-name {
  margin-bottom: 6px;
  font-size: 1.6rem;
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #fff;
}

.rpv4-h2h-hero-dark__rider-meta {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

.rpv4-h2h-hero-dark__vs {
  font-size: 1.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-hero-dark__match-footer {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 1100px) {
  .rpv4-h2h-hero-dark__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-hero-dark__inner {
    padding: 32px 20px 30px;
  }

  .rpv4-h2h-hero-dark__title {
    font-size: clamp(3.2rem, 12vw, 5.2rem);
  }

  .rpv4-h2h-hero-dark__match-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rpv4-h2h-hero-dark__vs {
    text-align: left;
  }
}

.rpv4-h2h-selector-dark {
  margin-top: -6px;
  margin-bottom: 28px;
  padding: 24px 28px 28px;
  border: 1px solid #1f232d;
  border-radius: 24px;
  background: linear-gradient(180deg, #11141b 0%, #171b24 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rpv4-h2h-selector-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(79,124,255,0.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(191,47,31,0.08), transparent 35%);
  pointer-events: none;
}

.rpv4-h2h-selector-dark__top,
.rpv4-h2h-selector-dark__form {
  position: relative;
  z-index: 1;
}

.rpv4-h2h-selector-dark__top {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.rpv4-h2h-selector-dark__eyebrow {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-selector-dark__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.rpv4-h2h-selector-dark__intro {
  margin: 0;
  max-width: 520px;
  justify-self: end;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
}

.rpv4-h2h-selector-dark__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.rpv4-h2h-selector-dark__field {
  min-width: 0;
}

.rpv4-h2h-selector-dark__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.rpv4-h2h-selector-dark__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.98rem;
  outline: none;
  appearance: none;
  box-shadow: none;
}

.rpv4-h2h-selector-dark__input:focus {
  border-color: rgba(122,166,255,0.6);
  background: rgba(255,255,255,0.08);
}

.rpv4-h2h-selector-dark__input option {
  color: #111;
  background: #fff;
}

.rpv4-h2h-selector-dark__action {
  display: flex;
  align-items: end;
}

.rpv4-h2h-selector-dark__button {
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.rpv4-h2h-selector-dark__button:hover {
  filter: brightness(1.06);
}

@media (max-width: 1100px) {
  .rpv4-h2h-selector-dark__top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rpv4-h2h-selector-dark__intro {
    justify-self: start;
    max-width: 100%;
  }

  .rpv4-h2h-selector-dark__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rpv4-h2h-selector-dark__action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-selector-dark {
    padding: 20px;
  }

  .rpv4-h2h-selector-dark__grid {
    grid-template-columns: 1fr;
  }
}

.rpv4-h2h-selector-dark__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rpv4-h2h-selector-dark__season-form,
.rpv4-h2h-selector-dark__compare-form {
  margin: 0;
}

.rpv4-h2h-selector-dark__season-row {
  display: grid;
  grid-template-columns: minmax(320px, 520px);
  gap: 14px;
}

.rpv4-h2h-selector-dark__compare-form .rpv4-h2h-selector-dark__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

@media (max-width: 1100px) {
  .rpv4-h2h-selector-dark__compare-form .rpv4-h2h-selector-dark__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rpv4-h2h-selector-dark__action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-selector-dark__season-row,
  .rpv4-h2h-selector-dark__compare-form .rpv4-h2h-selector-dark__grid {
    grid-template-columns: 1fr;
  }
}

.rpv4-h2h-selector-dark {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 24px 28px 28px;
  border: 1px solid #1f232d;
  border-radius: 24px;
  background: linear-gradient(180deg, #11141b 0%, #171b24 100%);
  color: #fff;
}

.rpv4-h2h-selector-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(79,124,255,0.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(191,47,31,0.08), transparent 35%);
  pointer-events: none;
}

.rpv4-h2h-selector-dark__top,
.rpv4-h2h-selector-dark__stack {
  position: relative;
  z-index: 1;
}

.rpv4-h2h-selector-dark__top {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.rpv4-h2h-selector-dark__eyebrow {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-selector-dark__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.rpv4-h2h-selector-dark__intro {
  margin: 0;
  max-width: 520px;
  justify-self: end;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
}

.rpv4-h2h-selector-dark__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rpv4-h2h-selector-dark__row {
  display: grid;
  gap: 14px;
  align-items: end;
}

.rpv4-h2h-selector-dark__row--series {
  grid-template-columns: 1fr 1fr;
}

.rpv4-h2h-selector-dark__row--riders {
  grid-template-columns: 1fr 1fr auto;
}

.rpv4-h2h-selector-dark__field {
  min-width: 0;
}

.rpv4-h2h-selector-dark__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.rpv4-h2h-selector-dark__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.98rem;
  appearance: none;
  outline: none;
}

.rpv4-h2h-selector-dark__input:focus {
  border-color: rgba(122,166,255,0.60);
  background: rgba(255,255,255,0.08);
}

.rpv4-h2h-selector-dark__input option {
  background: #fff;
  color: #111;
}

.rpv4-h2h-selector-dark__action {
  display: flex;
  align-items: end;
}

.rpv4-h2h-selector-dark__button {
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.rpv4-h2h-selector-dark__button:hover {
  filter: brightness(1.06);
}

@media (max-width: 1100px) {
  .rpv4-h2h-selector-dark__top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rpv4-h2h-selector-dark__intro {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-selector-dark {
    padding: 20px;
  }

  .rpv4-h2h-selector-dark__row--series,
  .rpv4-h2h-selector-dark__row--riders {
    grid-template-columns: 1fr;
  }
}

.rpv4-h2h-hero-dark__match-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.rpv4-h2h-hero-dark__match-card.is-bike {
  box-shadow: inset 0 0 0 1px rgba(191,47,31,0.10);
}

.rpv4-h2h-hero-dark__match-card.is-bike::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 100%);
}

.rpv4-h2h-hero-dark__match-card.is-car {
  box-shadow: inset 0 0 0 1px rgba(79,124,255,0.10);
}

.rpv4-h2h-hero-dark__match-card.is-car::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #4f7cff 0%, #72a8ff 100%);
}

.rpv4-h2h-hero-dark__match-card.is-kart {
  box-shadow: inset 0 0 0 1px rgba(46,164,79,0.10);
}

.rpv4-h2h-hero-dark__match-card.is-kart::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #2ea44f 0%, #d9a441 100%);
}

.rpv4-h2h-hero-dark__rider--a.is-bike .rpv4-h2h-hero-dark__rider-num,
.rpv4-h2h-hero-dark__rider--b.is-bike .rpv4-h2h-hero-dark__rider-num {
  color: #ff8b7a;
}

.rpv4-h2h-hero-dark__rider--a.is-car .rpv4-h2h-hero-dark__rider-num,
.rpv4-h2h-hero-dark__rider--b.is-car .rpv4-h2h-hero-dark__rider-num {
  color: #7aa6ff;
}

.rpv4-h2h-hero-dark__rider--a.is-kart .rpv4-h2h-hero-dark__rider-num,
.rpv4-h2h-hero-dark__rider--b.is-kart .rpv4-h2h-hero-dark__rider-num {
  color: #7ee08d;
}

/* === Selector Theme Layer === */

.rpv4-h2h-selector-dark.is-bike {
  border-color: rgba(191,47,31,0.25);
  background: linear-gradient(180deg, #121318 0%, #191b22 100%);
}

.rpv4-h2h-selector-dark.is-bike::before {
  background:
    radial-gradient(circle at top right, rgba(191,47,31,0.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(217,164,65,0.10), transparent 40%);
}

/* Cars */
.rpv4-h2h-selector-dark.is-car {
  border-color: rgba(79,124,255,0.25);
}

.rpv4-h2h-selector-dark.is-car::before {
  background:
    radial-gradient(circle at top right, rgba(79,124,255,0.14), transparent 35%),
    radial-gradient(circle at bottom left, rgba(140,170,255,0.10), transparent 40%);
}

/* Karting */
.rpv4-h2h-selector-dark.is-kart {
  border-color: rgba(46,164,79,0.25);
}

.rpv4-h2h-selector-dark.is-kart::before {
  background:
    radial-gradient(circle at top right, rgba(46,164,79,0.14), transparent 35%),
    radial-gradient(circle at bottom left, rgba(217,164,65,0.10), transparent 40%);
}

.rpv4-h2h-page {
  padding: 0 0 96px;
}

.rpv4-h2h-page__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* HERO */

.rpv4-h2h-hero-dark {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  background: #0e1015;
}

.rpv4-h2h-hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(191,47,31,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(79,124,255,0.10) 0%, transparent 58%);
  pointer-events: none;
}

.rpv4-h2h-hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -68deg,
    transparent 0,
    transparent 52px,
    rgba(255,255,255,0.025) 52px,
    rgba(255,255,255,0.025) 54px
  );
  pointer-events: none;
}

.rpv4-h2h-hero-dark__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #bf2f1f 0% 25%, #2ea44f 25% 50%, #d9a441 50% 75%, #4f7cff 75% 100%);
  z-index: 2;
}

.rpv4-h2h-hero-dark__inner {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 44px;
}

.rpv4-h2h-hero-dark__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: end;
}

.rpv4-h2h-hero-dark__copy {
  max-width: 760px;
}

.rpv4-h2h-hero-dark__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-hero-dark__eyebrow-bars {
  display: inline-flex;
  gap: 3px;
}

.rpv4-h2h-hero-dark__eyebrow-bars i {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
}

.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(1) { background: #bf2f1f; }
.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(2) { background: #2ea44f; }
.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(3) { background: #d9a441; }
.rpv4-h2h-hero-dark__eyebrow-bars i:nth-child(4) { background: #4f7cff; }

.rpv4-h2h-hero-dark__title {
  margin: 0 0 16px;
  font-size: clamp(4.2rem, 8vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.rpv4-h2h-hero-dark__title em {
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,0.36);
}

.rpv4-h2h-hero-dark__intro {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-hero-dark__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rpv4-h2h-hero-dark__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.rpv4-h2h-hero-dark__match-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.rpv4-h2h-hero-dark__match-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rpv4-h2h-hero-dark__match-label,
.rpv4-h2h-hero-dark__match-season {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.44);
}

.rpv4-h2h-hero-dark__match-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.rpv4-h2h-hero-dark__rider-tag {
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-hero-dark__rider-num {
  margin-bottom: 4px;
  font-size: 2.1rem;
  line-height: 0.95;
  font-weight: 900;
}

.rpv4-h2h-hero-dark__rider--a .rpv4-h2h-hero-dark__rider-num {
  color: #d9a441;
}

.rpv4-h2h-hero-dark__rider--b .rpv4-h2h-hero-dark__rider-num {
  color: #7aa6ff;
}

.rpv4-h2h-hero-dark__rider-name {
  margin-bottom: 6px;
  font-size: 1.6rem;
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #fff;
}

.rpv4-h2h-hero-dark__rider-meta {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.68);
}

.rpv4-h2h-hero-dark__vs {
  font-size: 1.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-hero-dark__match-footer {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

/* SELECTOR */

.rpv4-h2h-selector-dark {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 24px 28px 28px;
  border: 1px solid #1f232d;
  border-radius: 24px;
  background: linear-gradient(180deg, #11141b 0%, #171b24 100%);
  color: #fff;
}

.rpv4-h2h-selector-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(79,124,255,0.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(191,47,31,0.08), transparent 35%);
  pointer-events: none;
}

.rpv4-h2h-selector-dark__top,
.rpv4-h2h-selector-dark__stack {
  position: relative;
  z-index: 1;
}

.rpv4-h2h-selector-dark__top {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.rpv4-h2h-selector-dark__eyebrow {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.rpv4-h2h-selector-dark__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.rpv4-h2h-selector-dark__intro {
  margin: 0;
  max-width: 520px;
  justify-self: end;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
}

.rpv4-h2h-selector-dark__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rpv4-h2h-selector-dark__row {
  display: grid;
  gap: 14px;
  align-items: end;
}

.rpv4-h2h-selector-dark__row--series {
  grid-template-columns: 1fr 1fr;
}

.rpv4-h2h-selector-dark__row--riders {
  grid-template-columns: 1fr 1fr auto;
}

.rpv4-h2h-selector-dark__field {
  min-width: 0;
}

.rpv4-h2h-selector-dark__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.rpv4-h2h-selector-dark__input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1rem;
  appearance: none;
  outline: none;
}

.rpv4-h2h-selector-dark__input:focus {
  border-color: rgba(122,166,255,0.60);
  background: rgba(255,255,255,0.08);
}

.rpv4-h2h-selector-dark__input option {
  background: #fff;
  color: #111;
}

.rpv4-h2h-selector-dark__action {
  display: flex;
  align-items: end;
}

.rpv4-h2h-selector-dark__button {
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

/* BATTLE CARD */

.rpv4-h2h-battle-card {
  padding: 32px;
  border: 1px solid #e7e2d8;
  border-radius: 28px;
  background: #fff;
}

.rpv4-h2h-battle-card__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.rpv4-h2h-battle-card__label,
.rpv4-h2h-battle-card__season {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-h2h-battle-card__riders {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.rpv4-h2h-battle-card__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rpv4-h2h-battle-card__vs-mark {
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 900;
  color: #8f887d;
}

.rpv4-h2h-battle-card__vs-sub {
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f887d;
}

.rpv4-h2h-racer-card {
  min-width: 0;
  min-height: 230px;
  padding: 26px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f1014 0%, #171922 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.rpv4-h2h-racer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 30%);
  pointer-events: none;
}

.rpv4-h2h-racer-card--b {
  background: linear-gradient(180deg, #11151d 0%, #171c27 100%);
}

.rpv4-h2h-racer-card__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.rpv4-h2h-racer-card__avatar {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.rpv4-h2h-racer-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rpv4-h2h-racer-card__avatar span {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
}

.rpv4-h2h-racer-card__identity {
  min-width: 0;
}

.rpv4-h2h-racer-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.76);
}

.rpv4-h2h-racer-card__number {
  margin-bottom: 6px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 0.95;
}

.rpv4-h2h-racer-card--a .rpv4-h2h-racer-card__number {
  color: #d9a441;
}

.rpv4-h2h-racer-card--b .rpv4-h2h-racer-card__number {
  color: #7aa6ff;
}

.rpv4-h2h-racer-card__name {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.rpv4-h2h-racer-card__meta {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
}

.rpv4-h2h-racer-card__statline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 72px;
  align-items: flex-end;
}

.rpv4-h2h-racer-card__statline-item {
  text-align: right;
}

.rpv4-h2h-racer-card__statline-item span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.rpv4-h2h-racer-card__statline-item small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* METRICS */

.rpv4-h2h-verdict {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f7f3ec;
}

.rpv4-h2h-verdict strong {
  font-size: 1rem;
  color: #1c1815;
}

.rpv4-h2h-verdict span {
  line-height: 1.6;
  color: #5f6368;
}

.rpv4-h2h-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rpv4-h2h-metric-row {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 18px;
  align-items: center;
}

.rpv4-h2h-metric-row__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #8e8779;
}

.rpv4-h2h-metric-row__value.is-right {
  text-align: right;
}

.rpv4-h2h-metric-row__value.is-winner {
  color: #151310;
}

.rpv4-h2h-metric-row__sub {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: #7a7468;
}

.rpv4-h2h-metric-row__label {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-h2h-metric-row__bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.rpv4-h2h-metric-row__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece4d8;
}

.rpv4-h2h-metric-row__fill {
  height: 100%;
  border-radius: 999px;
}

.rpv4-h2h-metric-row__track--a .rpv4-h2h-metric-row__fill {
  margin-left: auto;
  background: #c43a2b;
}

.rpv4-h2h-metric-row__track--b .rpv4-h2h-metric-row__fill {
  background: #4f7cff;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .rpv4-h2h-page__inner,
  .rpv4-h2h-hero-dark__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rpv4-h2h-hero-dark__grid,
  .rpv4-h2h-selector-dark__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rpv4-h2h-selector-dark__intro {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .rpv4-h2h-selector-dark__row--series,
  .rpv4-h2h-selector-dark__row--riders {
    grid-template-columns: 1fr;
  }

  .rpv4-h2h-battle-card__riders {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rpv4-h2h-battle-card__vs {
    order: 2;
  }

  .rpv4-h2h-racer-card__head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .rpv4-h2h-racer-card__statline {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 14px;
  }
}

@media (max-width: 820px) {
  .rpv4-h2h-hero-dark__title {
    font-size: clamp(3.2rem, 12vw, 5.2rem);
  }

  .rpv4-h2h-hero-dark__match-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rpv4-h2h-metric-row {
    grid-template-columns: 100px 1fr 100px;
    gap: 12px;
  }
}

.rpv4-ledger-page {
  background: #fff;
}

.rpv4-ledger-hero {
  position: relative;
  overflow: hidden;
  background: #0e1015;
  color: #fff;
}

.rpv4-ledger-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(191,47,31,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(79,124,255,0.10) 0%, transparent 58%);
  pointer-events: none;
}

.rpv4-ledger-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -68deg,
    transparent 0,
    transparent 52px,
    rgba(255,255,255,0.025) 52px,
    rgba(255,255,255,0.025) 54px
  );
  pointer-events: none;
}

.rpv4-ledger-hero__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #bf2f1f 0% 25%, #2ea44f 25% 50%, #d9a441 50% 75%, #4f7cff 75% 100%);
  z-index: 2;
}

.rpv4-ledger-hero__inner,
.rpv4-ledger-controls,
.rpv4-ledger-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.rpv4-ledger-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: 48px;
  padding-bottom: 36px;
}

.rpv4-ledger-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
}

.rpv4-ledger-hero__title {
  margin: 0 0 10px;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.rpv4-ledger-hero__title em {
  font-style: normal;
  color: rgba(255,255,255,0.38);
}

.rpv4-ledger-hero__subtitle {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

.rpv4-ledger-hero__leader-card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.rpv4-ledger-hero__leader-label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.rpv4-ledger-hero__leader-name {
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 800;
}

.rpv4-ledger-hero__leader-name span {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  margin-left: 6px;
}

.rpv4-ledger-hero__leader-points {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  color: #d9a441;
}

.rpv4-ledger-hero__leader-gap {
  margin-top: 8px;
  color: rgba(255,255,255,0.65);
}

.rpv4-ledger-controls {
  position: relative;
  z-index: 3;
  padding-bottom: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rpv4-ledger-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.rpv4-ledger-chip.is-active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.rpv4-ledger-shell {
  padding-top: 32px;
  padding-bottom: 80px;
}

.rpv4-ledger-podium__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 28px;
}

.rpv4-ledger-podium-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #e7e2d8;
  background: #fff;
}

.rpv4-ledger-podium-card__position {
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-ledger-podium-card__name {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.rpv4-ledger-podium-card__number {
  color: #7a7468;
  margin-bottom: 14px;
}

.rpv4-ledger-podium-card__points {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.rpv4-ledger-podium-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #6f685d;
  font-size: 0.9rem;
}

.rpv4-ledger-standings,
.rpv4-ledger-table {
  margin-top: 28px;
  padding: 28px 30px;
  border: 1px solid #e7e2d8;
  border-radius: 24px;
  background: #fff;
}

.rpv4-ledger-standings__table {
  margin-top: 16px;
}

.rpv4-ledger-standings__head,
.rpv4-ledger-standings__row {
  display: grid;
  grid-template-columns: 60px 60px 2fr 1.5fr 80px 80px 80px 90px 80px;
  gap: 12px;
  align-items: center;
}

.rpv4-ledger-standings__head {
  padding: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b7468;
}

.rpv4-ledger-standings__row {
  min-height: 56px;
  padding: 12px 0;
  border-top: 1px solid #f0eadf;
}

.rpv4-ledger-standings__racer-name {
  font-weight: 700;
}

.rpv4-ledger-standings__racer-meta {
  font-size: 0.78rem;
  color: #7a7468;
}

.rpv4-ledger-standings__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece4d8;
}

.rpv4-ledger-standings__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 100%);
}

.rpv4-ledger-table__wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #e7e2d8;
  border-radius: 16px;
}

.rpv4-ledger-table__table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rpv4-ledger-table__table th,
.rpv4-ledger-table__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee6da;
  text-align: center;
  white-space: nowrap;
}

.rpv4-ledger-table__table thead th {
  background: #10131a;
  color: rgba(255,255,255,0.82);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rpv4-ledger-table__table tbody td {
  background: #fff;
}

.rpv4-ledger-table__table .sticky-col,
.rpv4-ledger-table__table .sticky-col-2 {
  position: sticky;
  background: inherit;
  z-index: 2;
}

.rpv4-ledger-table__table .sticky-col {
  left: 0;
}

.rpv4-ledger-table__table .sticky-col-2 {
  left: 72px;
  text-align: left;
}

.rpv4-ledger-table__table thead .sticky-col,
.rpv4-ledger-table__table thead .sticky-col-2 {
  background: #10131a;
}

.rpv4-ledger-table__table .round-total {
  background: #f7f2ea;
  font-weight: 700;
}

.rpv4-ledger-table__table .season-total {
  background: #fbf5e8;
  font-weight: 900;
  color: #bf2f1f;
}

@media (max-width: 980px) {
  .rpv4-ledger-hero__grid,
  .rpv4-ledger-podium__grid {
    grid-template-columns: 1fr;
  }

  .rpv4-ledger-hero__inner,
  .rpv4-ledger-controls,
  .rpv4-ledger-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rpv4-ledger-standings__head,
  .rpv4-ledger-standings__row {
    grid-template-columns: 50px 50px 1.5fr 1fr 70px 70px;
  }

  .rpv4-ledger-standings__head > :nth-child(n+7),
  .rpv4-ledger-standings__row > :nth-child(n+7) {
    display: none;
  }
}

.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: 140px minmax(420px, 1fr) 140px;
  align-items: center;
  gap: 18px;
}

.mv-a,
.mv-b {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mv-a {
  text-align: left;
}

.mv-b {
  text-align: right;
}

.mv-a-num,
.mv-b-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

.mv-a-sub,
.mv-b-sub {
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
}

.metric-bars {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
  gap: 10px;
}

.metric-half {
  display: flex;
  align-items: center;
}

.metric-half--left {
  justify-content: flex-end;
}

.metric-half--right {
  justify-content: flex-start;
}

.metric-track {
  width: 100%;
  height: 8px;
  background: #dfdbd2;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 999px;
}

.metric-fill--left {
  margin-left: auto;
  background: #a12a23;
}

.metric-fill--right {
  background: #3156f5;
}

.metric-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
}

.metric-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.metric-badge--left {
  background: rgba(161, 42, 35, 0.12);
  color: #a12a23;
}

.metric-badge--right {
  background: rgba(49, 86, 245, 0.12);
  color: #3156f5;
}

.metric-badge--tie {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.rpv4-h2h-duel-control-card {
  background: #fff;
  border: 1px solid #e7dccd;
  border-radius: 22px;
  padding: 1.6rem;
  margin-top: 1.5rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.rpv4-h2h-duel-control-card__title {
  margin: 0.65rem 0 1.1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.rpv4-h2h-duel-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rpv4-h2h-duel-control-rider {
  border-radius: 16px;
  padding: 1rem;
  background: #f7f2ea;
}

.rpv4-h2h-duel-control-rider span {
  display: block;
  color: #6f6a60;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.rpv4-h2h-duel-control-rider strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
  color: #101827;
  letter-spacing: -0.05em;
}

.rpv4-h2h-duel-control-rider small {
  display: block;
  margin-top: 0.4rem;
  color: #6f6a60;
  font-weight: 700;
}

.rpv4-h2h-duel-control-bar {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9dfd1;
  margin-top: 1rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.rpv4-h2h-duel-control-bar__a {
  height: 100%;
  background: #cf352c;
  min-width: 0;
}

.rpv4-h2h-duel-control-bar__b {
  height: 100%;
  background: #4f7cff;
  min-width: 0;
}

.rpv4-h2h-duel-control-card__note {
  margin: 0.9rem 0 0;
  color: #6f6a60;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .rpv4-h2h-duel-control-grid {
    grid-template-columns: 1fr;
  }
}

.rpv4-h2h-duel-control-rider.is-a {
  border-left: 5px solid #cf352c;
}

.rpv4-h2h-duel-control-rider.is-b {
  border-left: 5px solid #4f7cff;
}

.rpv4-h2h-duel-control-rider.is-leading {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}