.championship-nav-link {
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.98), rgba(168, 85, 247, 0.94));
  border-color: rgba(216, 180, 254, 0.58);
  color: #fff;
}

.championship-page {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.championship-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 91, 46, 0.15), transparent 34%),
    radial-gradient(circle at top right, rgba(126, 34, 206, 0.14), transparent 32%),
    rgba(13, 20, 30, 0.94);
  box-shadow: var(--shadow);
  min-width: 0;
}

.championship-hero h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.championship-hero p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.championship-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.championship-progress-card {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.5);
}

.championship-progress-value {
  color: #fff4cf;
  font-size: 1.5rem;
  font-weight: 950;
}

.championship-progress-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.championship-section {
  margin-top: 0;
  min-width: 0;
}

.championship-page .schedule-event-card-inner {
  background: linear-gradient(135deg, rgba(12, 18, 28, 0.5), rgba(12, 18, 28, 0.28));
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
}

#championship-upcoming .legal-inline-note {
  max-width: 320px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.7rem;
  line-height: 1.35;
}

#championship-upcoming .legal-inline-note a {
  color: #ffd166;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#championship-upcoming .schedule-event-card {
  background:
    var(--schedule-track-photo),
    linear-gradient(118deg, rgba(7, 11, 16, 0.08) 0%, rgba(7, 11, 16, 0.12) 42%, rgba(7, 11, 16, 0.24) 100%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.2), transparent 34%),
    rgba(22, 31, 43, 0.72);
  background-position: center, center, top right, center;
  background-size: cover, cover, auto, cover;
  background-repeat: no-repeat;
}

.championship-page .schedule-event-track {
  background: rgba(241, 245, 249, 0.2);
  overflow-wrap: anywhere;
}

.championship-page .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.championship-page .driver-link,
.championship-page .driver-link:visited {
  color: #fff;
  text-decoration: none;
}

.championship-page .driver-link:hover,
.championship-page .driver-link:focus-visible {
  color: #fff;
}

.championship-standings-table th,
.championship-standings-table td,
.championship-race-table th,
.championship-race-table td {
  white-space: nowrap;
}

.championship-empty {
  padding: 18px;
  color: var(--muted);
}

.championship-prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.championship-prize-thumb {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.46);
  color: var(--text);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.championship-prize-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.championship-winner-card {
  min-height: 160px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 209, 102, 0.12), rgba(9, 14, 21, 0.86)),
    rgba(10, 16, 24, 0.96);
}

.championship-winner-card.is-silver {
  background: linear-gradient(150deg, rgba(214, 226, 240, 0.12), rgba(9, 14, 21, 0.86)), rgba(10, 16, 24, 0.96);
}

.championship-winner-card.is-bronze {
  background: linear-gradient(150deg, rgba(216, 143, 72, 0.14), rgba(9, 14, 21, 0.86)), rgba(10, 16, 24, 0.96);
}

.championship-winner-medal {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.18);
  color: #fff4cf;
  font-size: 1.4rem;
  font-weight: 950;
}

.championship-winner-name {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.championship-winner-points {
  color: var(--muted);
  font-weight: 750;
}

.championship-race-results {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.championship-race-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.38);
  min-width: 0;
}

.championship-race-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.championship-race-card-head > * {
  min-width: 0;
}

.championship-race-card h3 {
  margin-top: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.championship-race-card p {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.championship-race-summary {
  display: grid;
  gap: 6px;
  align-content: center;
  color: #dce8f7;
  font-weight: 750;
  text-align: right;
}

.championship-race-summary span {
  min-width: 0;
}

.championship-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
}

.championship-lightbox.is-open {
  display: flex;
}

.championship-lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.championship-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.86);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

#schedule-modal {
  z-index: 100000;
}

#schedule-modal .modal-card-slot.is-event-details-v2 {
  width: min(960px, calc(100vw - 32px));
  height: 560px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101720;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

#schedule-modal .modal-header.event-details-v2-legacy-header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#schedule-modal .modal-card-slot.is-event-details-v2 .schedule-modal-details { height: 100%; }
#schedule-modal .modal-card-slot.is-event-details-v2 .modal-close { z-index: 4; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(16, 22, 31, 0.52); color: #f5f7fa; font-size: 1.7rem; }
.event-details-v2 { position: relative; isolation: isolate; width: 100%; height: 100%; overflow: hidden; background: #101720; }
.event-details-v2-background, .event-details-v2-shade { position: absolute; inset: 0; }
.event-details-v2-background { z-index: 0; background-image: var(--modal-track-photo); background-position: center; background-size: cover; opacity: 0.92; }
.event-details-v2-shade { z-index: 1; background: linear-gradient(180deg, rgba(8, 13, 19, 0.24) 0%, rgba(8, 13, 19, 0.5) 42%, rgba(8, 13, 19, 0.8) 100%); pointer-events: none; }
.event-details-v2-inner { position: relative; z-index: 2; display: grid; grid-template-rows: 90px 330px 64px; gap: 12px; height: 100%; padding: 20px 28px 16px; }
.event-details-v2-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 52px; }
.event-details-v2-eyebrow { margin-bottom: 6px; color: #f5a21a; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.event-details-v2-title { margin: 0; color: #fff; font-size: 42px; line-height: 0.95; font-weight: 800; }
.event-details-v2-date-time { display: flex; align-items: center; gap: 8px; color: #f4f6f8; font-size: 15px; font-weight: 650; white-space: nowrap; }
.event-details-v2-date-time-icon, .event-details-v2-card-icon { width: 20px; height: 20px; color: #f5a21a; }
.event-details-v2-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 1.2fr); gap: 12px; height: 330px; }
.event-details-v2-card { min-width: 0; height: 330px; padding: 16px 17px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; background: linear-gradient(180deg, rgba(28, 35, 45, 0.56), rgba(14, 19, 26, 0.62)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.event-details-v2-card-header { display: flex; align-items: center; gap: 10px; min-height: 36px; padding-bottom: 7px; margin-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.event-details-v2-card-title { margin: 0; color: #dde4ee; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.event-details-v2-card-body { display: grid; align-content: start; grid-auto-rows: min-content; }
.event-details-v2-info-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 46px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.event-details-v2-info-row:first-child { border-top: 0; }
.event-details-v2-card-conditions .event-details-v2-info-row { min-height: 25px; padding: 2px 0; }
.event-details-v2-divider-row { margin-bottom: 3px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.event-details-v2-info-label { display: inline-flex; align-items: center; gap: 8px; color: rgba(222, 229, 237, 0.8); font-size: 12px; line-height: 1.2; }
.event-details-v2-card-conditions .event-details-v2-info-label { font-size: 11px; }
.event-details-v2-info-value { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.15; text-align: right; white-space: nowrap; }
.event-details-v2-card-conditions .event-details-v2-info-value { font-size: 11.5px; }
.event-details-v2-info-label-accent, .event-details-v2-info-value-accent, .event-details-v2-info-icon-accent { color: #f5a21a; }
.event-details-v2-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.event-details-v2-icon svg { width: 100%; height: 100%; display: block; }
.event-details-v2-info-icon { width: 16px; height: 16px; color: rgba(223, 230, 239, 0.82); }
.event-details-v2-card-conditions .event-details-v2-info-icon { width: 14px; height: 14px; }
.event-details-v2-password-row { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.event-details-v2-password { user-select: all; }
.event-details-v2-copy-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px; background: rgba(255, 255, 255, 0.04); color: #f4f6f8; cursor: pointer; }
.event-details-v2-copy-button .hero-copy-icon-copy,
.event-details-v2-copy-button .hero-copy-icon-done { width: 16px; height: 16px; }
.event-details-v2-copy-button .hero-copy-icon-done { display: none; }
.event-details-v2-copy-button.is-copied .hero-copy-icon-copy { display: none; }
.event-details-v2-copy-button.is-copied .hero-copy-icon-done { display: inline-flex; }
.event-details-v2-class-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 30px; padding: 0 12px; border: 1px solid rgba(242, 126, 52, 0.65); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; }
.event-details-v2-footer { display: grid; grid-template-columns: 190px 44px minmax(145px, auto) 1fr auto; align-items: center; column-gap: 10px; height: 64px; padding: 8px 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 15px; background: rgba(15, 20, 27, 0.88); }
.event-details-v2-participation-button { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 13px; background: linear-gradient(180deg, #1f9c47, #137535); color: #f6fff8; white-space: nowrap; font-size: 14px; font-weight: 800; cursor: pointer; }
.event-details-v2-participation-button.is-voted { background: linear-gradient(180deg, #1da047, #148039); }
.event-details-v2-participation-button:disabled { opacity: 0.72; cursor: default; }
.event-details-v2-participation-icon, .event-details-v2-cancel-icon, .event-details-v2-participant-icon { width: 18px; height: 18px; }
.event-details-v2-cancel-button, .event-details-v2-cancel-placeholder { width: 44px; height: 44px; }
.event-details-v2-cancel-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: linear-gradient(180deg, #c83c2f, #991f18); color: #fff; cursor: pointer; }
.event-details-v2-participant-count { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; font-weight: 750; }
.event-details-v2-voting-notice { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #949ca8; font-size: 10.5px; text-align: right; }
.event-details-v2-details-link { color: #f5a21a; text-decoration: none; }

@media (max-width: 920px) {
  .championship-hero,
  .championship-race-card-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .championship-prizes-grid,
  .championship-progress {
    grid-template-columns: 1fr;
  }

  .championship-race-summary {
    text-align: left;
  }

  .championship-prizes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .championship-standings-table th,
  .championship-standings-table td,
  .championship-race-table th,
  .championship-race-table td {
    padding: 12px 14px;
    font-size: 0.92rem;
  }
}

@media (max-width: 720px) {
  body.championship-body {
    overflow-x: hidden;
  }

  .championship-page {
    width: min(100% - 20px, 1200px);
    gap: 12px;
  }

  .championship-hero {
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .championship-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.65rem);
  }

  .championship-hero p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .championship-section.card {
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .championship-section .section-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  #championship-upcoming.schedule-cards-grid {
    grid-template-columns: 1fr;
  }

  #championship-upcoming .schedule-event-card {
    min-height: 190px;
    border-radius: 18px;
  }

  .championship-page .schedule-event-card-inner {
    max-width: calc(100% - 20px);
    margin: 10px;
    padding: 13px;
    border-radius: 14px;
  }

  .championship-page .schedule-event-track {
    font-size: 1.2rem;
  }

  .championship-page .table-card {
    border-radius: 16px;
  }

  .championship-page .table-wrap {
    margin-inline: -2px;
    padding-bottom: 2px;
  }

  .championship-standings-table,
  .championship-race-table {
    min-width: 560px;
  }

  .championship-standings-table th,
  .championship-standings-table td,
  .championship-race-table th,
  .championship-race-table td {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .championship-standings-table td:nth-child(2),
  .championship-race-table td:nth-child(2) {
    min-width: 152px;
  }

  .championship-progress-card,
  .championship-prize-thumb,
  .championship-race-card {
    border-radius: 14px;
  }

  .championship-prizes-grid {
    grid-template-columns: 1fr;
  }

  .championship-race-card h3 {
    font-size: 1.1rem;
  }

  .championship-race-summary {
    gap: 4px;
    font-size: 0.88rem;
  }

  #schedule-modal.is-open {
    padding-top: 118px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
  }

  #schedule-modal .modal-card-slot {
    max-height: calc(100dvh - 128px);
    overflow: auto;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .schedule-modal-hero {
    grid-template-columns: 1fr;
  }

  .schedule-modal-subtitle-grid {
    grid-template-columns: 1fr;
  }
}
