/********** RC Championship India 2026 **********/

.championship-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 70, 174, 0.08) 0%, transparent 40%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 8px
    ),
    #0b0f14;
  color: #e8eef7;
  padding: 80px 0;
  overflow-x: clip;
  overflow-y: visible;
}

.championship-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 70, 174, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(0, 86, 214, 0.2), transparent 40%);
  pointer-events: none;
}

.championship-section .container {
  position: relative;
  z-index: 1;
}

.championship-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.championship-header__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.championship-header__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #ffffff 0%, #7eb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.championship-header__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.championship-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.championship-status--live {
  color: #7dffb2;
  box-shadow: 0 0 20px rgba(0, 70, 174, 0.35);
}

.championship-status--loading {
  color: #ffd27d;
}

.championship-status--demo,
.championship-status--error {
  color: #ffb4b4;
}

.championship-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.championship-tab {
  appearance: none;
  border: 1px solid rgba(0, 70, 174, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.championship-tab:hover,
.championship-tab:focus-visible {
  color: #fff;
  border-color: rgba(0, 70, 174, 0.8);
  box-shadow: 0 0 24px rgba(0, 70, 174, 0.35);
  outline: none;
}

.championship-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0056d6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0, 70, 174, 0.45);
}

.championship-tab--soon {
  opacity: 0.55;
  cursor: not-allowed;
}

.championship-tab--soon small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.35rem;
  opacity: 0.85;
}

.championship-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.championship-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.championship-glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.35rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.championship-glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 70, 174, 0.18);
}

.championship-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.championship-card-title i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(0, 70, 174, 0.8));
}

.points-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.points-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

.points-item:hover {
  background: rgba(0, 70, 174, 0.15);
}

.points-item__place {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.points-item__place i {
  width: 18px;
  margin-right: 0.35rem;
  opacity: 0.85;
}

.points-item__pts {
  font-weight: 600;
  color: #7eb4ff;
}

.points-item--gold .points-item__place i { color: #ffd700; }
.points-item--silver .points-item__place i { color: #c0c0c0; }
.points-item--bronze .points-item__place i { color: #cd7f32; }

.points-divider {
  height: 1px;
  margin: 0.65rem 0;
  background: rgba(255, 255, 255, 0.1);
  list-style: none;
}

.points-item--status {
  background: rgba(255, 82, 82, 0.06);
}

.points-item--status .points-item__place {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
  color: #ff5252;
}

.points-item--status .points-item__place strong,
.points-item--status .championship-status-code {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #ff5252;
}

.points-item--status .points-item__place small {
  font-size: 0.68rem;
  color: rgba(255, 82, 82, 0.88);
  font-weight: 400;
}

.points-item--status .points-item__pts,
.points-item--status:hover .points-item__pts {
  color: #ff5252;
}

.championship-status-code {
  color: #ff5252;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-standing-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.team-standing-row:hover {
  background: rgba(0, 70, 174, 0.18);
  transform: translateX(4px);
}

.team-standing-row__pos {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.team-standing-row__name {
  font-weight: 600;
  color: #fff;
}

.team-standing-row__pts {
  font-size: 0.82rem;
  font-weight: 600;
  color: #7eb4ff;
}

.championship-main {
  min-width: 0;
}

.driver-standings-card {
  padding: 0;
  overflow: hidden;
}

.driver-standings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0;
}

.driver-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.driver-search-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
}

.driver-search-input {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.driver-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.driver-search-input:focus {
  outline: none;
  border-color: rgba(0, 70, 174, 0.75);
  box-shadow: 0 0 0 3px rgba(0, 70, 174, 0.25);
}

.driver-table-wrap {
  overflow: auto;
  margin-top: 1rem;
  max-height: 480px;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(0, 70, 174, 0.2);
  background: rgba(0, 0, 0, 0.22);
  scrollbar-width: auto;
  scrollbar-color: rgba(0, 70, 174, 0.55) rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.driver-standings-mobile,
.driver-table-fullview-btn {
  display: none;
}

.driver-standing-mobile-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  margin: 0 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.driver-standing-mobile-row__pos {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.driver-standing-mobile-row__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.driver-standing-mobile-row__team {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

.driver-standing-mobile-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.driver-standing-mobile-row__pts {
  font-size: 0.82rem;
  font-weight: 700;
  color: #7eb4ff;
  white-space: nowrap;
}

.driver-standing-mobile-row .shelf-badge {
  min-width: 58px;
  padding: 0.2rem 0.35rem 0.15rem;
  font-size: 0.62rem;
}

.podium-gold.driver-standing-mobile-row {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), rgba(255, 255, 255, 0.03) 70%);
}

.podium-silver.driver-standing-mobile-row {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(255, 255, 255, 0.03) 70%);
}

.podium-bronze.driver-standing-mobile-row {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(255, 255, 255, 0.03) 70%);
}

.podium-gold.driver-standing-mobile-row .driver-standing-mobile-row__pos {
  color: #ffd700;
}

.podium-silver.driver-standing-mobile-row .driver-standing-mobile-row__pos {
  color: #c0c0c0;
}

.podium-bronze.driver-standing-mobile-row .driver-standing-mobile-row__pos {
  color: #cd7f32;
}

.driver-table-fullview-btn {
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: calc(100% - 2rem);
  margin: 0.85rem 1rem 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(126, 180, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 70, 174, 0.85) 0%, rgba(0, 86, 214, 0.95) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 70, 174, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.driver-table-fullview-btn:hover,
.driver-table-fullview-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 70, 174, 0.42);
  outline: none;
}

.driver-table-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: #0b0f14;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

.driver-table-fullscreen[hidden] {
  display: none !important;
}

.driver-table-fullscreen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.driver-table-fullscreen__title-wrap span {
  display: block;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.driver-table-fullscreen__rotate-hint {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.driver-table-fullscreen__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.driver-table-fullscreen__close:hover,
.driver-table-fullscreen__close:focus-visible {
  background: rgba(0, 70, 174, 0.35);
  border-color: rgba(126, 180, 255, 0.45);
  outline: none;
}

.driver-table-fullscreen__wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.75rem;
}

.driver-table-fullscreen__wrap .driver-standings-table {
  width: max-content;
  min-width: 100%;
  font-size: 0.8rem;
}

body.driver-table-fullscreen-open {
  overflow: hidden;
}

.driver-table-wrap.is-scrolling {
  border-color: rgba(0, 86, 214, 0.55);
  box-shadow:
    inset 0 0 24px rgba(0, 70, 174, 0.12),
    0 0 28px rgba(0, 86, 214, 0.22);
  scrollbar-color: #7eb4ff rgba(0, 70, 174, 0.35);
}

.driver-table-wrap::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.driver-table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  margin: 4px;
}

.driver-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0046ae 0%, #0056d6 55%, #4d9fff 100%);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.driver-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0056d6 0%, #4d9fff 100%);
}

.driver-table-wrap::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.45);
}

.driver-table-wrap.is-scrolling::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4d9fff 0%, #7eb4ff 50%, #0056d6 100%);
  box-shadow:
    0 0 10px rgba(126, 180, 255, 0.95),
    0 0 22px rgba(0, 86, 214, 0.85),
    inset 0 0 6px rgba(255, 255, 255, 0.35);
}

.driver-table-wrap.is-scrolling::-webkit-scrollbar-track {
  background: rgba(0, 70, 174, 0.12);
}

.driver-standings-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.driver-standings-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.driver-standings-table thead th {
  background: rgba(0, 70, 174, 0.92);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.85rem 0.75rem;
  white-space: nowrap;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: bottom;
}

.driver-standings-table thead th.race-col-header {
  height: 132px;
  min-width: 36px;
  max-width: 42px;
  padding: 0.5rem 0.25rem 0.65rem;
  text-align: center;
  white-space: normal;
}

.driver-standings-table thead th.race-col-header .race-col-header__label {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.15;
  max-height: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-standings-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.driver-standings-table tbody td.race-col {
  min-width: 36px;
  max-width: 42px;
  padding: 0.65rem 0.35rem;
  text-align: center;
}

.driver-row {
  transition: background 0.2s ease;
}

.driver-row:hover {
  background: rgba(0, 70, 174, 0.12);
}

.driver-row__pos {
  font-weight: 700;
  width: 48px;
}

.driver-row__total {
  font-weight: 700;
  color: #7eb4ff;
}

.driver-row__shelf {
  min-width: 92px;
}

.round-cell--status,
.round-cell--status .championship-status-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff5252;
}

.shelf-col-header i {
  margin-right: 0.25rem;
  opacity: 0.85;
}

.shelf-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  min-width: 72px;
  padding: 0.35rem 0.45rem 0.25rem;
  border-radius: 10px 10px 6px 6px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.shelf-badge::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  margin-top: 0.1rem;
  background: rgba(255, 255, 255, 0.12);
}

.shelf-badge__icon {
  font-size: 1rem;
  line-height: 1;
}

.shelf-badge__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.shelf-badge--gold {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
}

.shelf-badge--gold::after {
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
}

.shelf-badge--silver {
  color: #d8d8d8;
  border-color: rgba(192, 192, 192, 0.35);
  box-shadow: 0 0 16px rgba(192, 192, 192, 0.15);
}

.shelf-badge--silver::after {
  background: linear-gradient(90deg, #8a8a8a, #e8e8e8, #8a8a8a);
}

.shelf-badge--bronze {
  color: #cd7f32;
  border-color: rgba(205, 127, 50, 0.35);
  box-shadow: 0 0 16px rgba(205, 127, 50, 0.15);
}

.shelf-badge--bronze::after {
  background: linear-gradient(90deg, #8b5a2b, #cd7f32, #8b5a2b);
}

.shelf-badge--copper {
  color: #d9875a;
  border-color: rgba(217, 135, 90, 0.35);
  box-shadow: 0 0 14px rgba(217, 135, 90, 0.14);
}

.shelf-badge--copper::after {
  background: linear-gradient(90deg, #9c5a34, #d9875a, #9c5a34);
}

.shelf-badge--iron {
  color: #9aa3ad;
  border-color: rgba(154, 163, 173, 0.35);
  box-shadow: 0 0 12px rgba(154, 163, 173, 0.12);
}

.shelf-badge--iron::after {
  background: linear-gradient(90deg, #5f6670, #9aa3ad, #5f6670);
}

.shelf-badge--none {
  color: rgba(255, 255, 255, 0.25);
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 0;
}

.shelf-badge--none::after {
  display: none;
}

.driver-standings-table tbody td.driver-row__name {
  min-width: 8.5rem;
  max-width: 14rem;
  white-space: normal;
  line-height: 1.35;
}

.driver-standing-mobile-row__main .driver-name-btn {
  word-break: break-word;
}

.driver-name-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.driver-name-btn:hover,
.driver-name-btn:focus-visible {
  color: #7eb4ff;
  border-bottom-color: rgba(126, 180, 255, 0.6);
  outline: none;
}

.team-name-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.team-name-btn:hover,
.team-name-btn:focus-visible {
  color: #7eb4ff;
  border-bottom-color: rgba(126, 180, 255, 0.6);
  outline: none;
}

.driver-row__team {
  min-width: 7rem;
}

.podium-gold {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), transparent 60%);
}

.podium-gold .driver-row__pos,
.podium-gold .team-standing-row__pos {
  color: #ffd700;
}

.podium-silver {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent 60%);
}

.podium-silver .driver-row__pos,
.podium-silver .team-standing-row__pos {
  color: #c0c0c0;
}

.podium-bronze {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent 60%);
}

.podium-bronze .driver-row__pos,
.podium-bronze .team-standing-row__pos {
  color: #cd7f32;
}

.podium-gold.team-standing-row {
  border-left: 3px solid #ffd700;
}

.podium-silver.team-standing-row {
  border-left: 3px solid #c0c0c0;
}

.podium-bronze.team-standing-row {
  border-left: 3px solid #cd7f32;
}

.driver-hover-card {
  position: absolute;
  z-index: 1000;
  width: min(248px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.97);
  border: 1px solid rgba(0, 70, 174, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

.driver-hover-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.driver-hover-card__photo {
  position: relative;
  width: 100%;
  height: 128px;
  overflow: hidden;
  background: rgba(0, 40, 100, 0.25);
}

.driver-hover-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(12, 16, 24, 0.85) 100%);
  pointer-events: none;
}

.driver-hover-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.driver-hover-card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 40, 100, 0.35);
}

.driver-hover-card__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.35rem;
}

.driver-hover-card__body {
  padding: 0.75rem 0.95rem 0.9rem;
}

.driver-hover-card__body h4 {
  margin: 0 0 0.1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.driver-hover-card__team {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(126, 180, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.driver-hover-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.driver-hover-card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.driver-hover-card__meta-item i {
  flex-shrink: 0;
  width: 14px;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: rgba(0, 70, 174, 0.9);
  text-align: center;
}

.driver-hover-card__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 70, 174, 0.28), rgba(0, 40, 100, 0.15));
  border: 1px solid rgba(0, 70, 174, 0.35);
}

.driver-hover-card__score-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.driver-hover-card__score-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9ec8ff;
  letter-spacing: 0.02em;
}

.team-logo-popup {
  position: absolute;
  z-index: 1001;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  line-height: 0;
}

.team-logo-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.team-logo-popup img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  padding: 0;
  background: none;
  border: 2px solid rgba(0, 70, 174, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 70, 174, 0.2);
}

.driver-hover-card__rounds {
  margin-top: 0.5rem;
}

.driver-hover-card__rounds strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}

.driver-hover-card__rounds ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.registered-drivers-section {
  margin-top: 2.5rem;
}

.registered-drivers-gallery {
  position: relative;
  margin: 0 -0.25rem;
  padding: 0.15rem 0.15rem 0;
  overflow: hidden;
}

.registered-drivers-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.35rem 0.85rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #7eb4ff rgba(0, 70, 174, 0.35);
  cursor: grab;
}

.registered-drivers-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.registered-drivers-grid::-webkit-scrollbar {
  height: 10px;
}

.registered-drivers-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  margin: 2px 0;
}

.registered-drivers-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0046ae 0%, #0056d6 55%, #4d9fff 100%);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.pub-driver-card {
  --pub-blue: #7eb4ff;
  --pub-blue-deep: #0046ae;
  --pub-blue-mid: #0056d6;
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  max-width: min(300px, 88vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #050a14;
  border: 1px solid rgba(77, 159, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 70, 174, 0.2) inset,
    0 0 28px rgba(0, 70, 174, 0.22),
    0 18px 42px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pub-driver-card__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 6;
  box-shadow:
    inset 0 0 0 1px rgba(126, 180, 255, 0.12),
    inset 12px 0 24px -18px rgba(77, 159, 255, 0.18),
    inset -12px 0 24px -18px rgba(77, 159, 255, 0.18);
}

.pub-driver-card:hover {
  border-color: rgba(126, 180, 255, 0.62);
  box-shadow:
    0 0 0 1px rgba(126, 180, 255, 0.14) inset,
    0 0 36px rgba(0, 86, 214, 0.28),
    0 22px 48px rgba(0, 0, 0, 0.52);
  transform: translateY(-2px);
}

/* Hero — full portrait photo */
.pub-driver-card__hero {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: #0a1220;
}

.pub-driver-card__hero-media {
  --photo-x: 50%;
  --photo-y: 50%;
  --photo-zoom: 1;
  position: absolute;
  inset: 0;
}

.pub-driver-card__hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-x) var(--photo-y);
  transform: scale(var(--photo-zoom));
  transform-origin: var(--photo-x) var(--photo-y);
}

.pub-driver-card__hero-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(126, 180, 255, 0.4);
  font-size: 2.5rem;
  object-fit: none;
  transform: none;
  background: linear-gradient(180deg, #0f1a2e 0%, #081018 100%);
}

.pub-driver-card__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.15) 0%, rgba(5, 10, 20, 0.05) 35%, rgba(5, 10, 20, 0.55) 100%),
    linear-gradient(90deg, rgba(5, 10, 20, 0.35) 0%, transparent 42%);
  pointer-events: none;
  z-index: 2;
}

.pub-driver-card__hero-brand {
  position: absolute;
  top: 0.7rem;
  left: 0.75rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  padding-right: 0.25rem;
}

.pub-driver-card__brand-wd {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(77, 159, 255, 0.45);
}

.pub-driver-card__brand-racing {
  margin-top: 0.1rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #8eb8ff;
}

/* Body panel */
.pub-driver-card__body {
  position: relative;
  z-index: 3;
  margin-top: -0.25rem;
  padding: 0 0.55rem 0.55rem;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, rgba(0, 70, 174, 0.08) 0%, transparent 18%),
    #081018;
  border-top: 1px solid rgba(77, 159, 255, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 70, 174, 0.12);
}

.pub-driver-card__name-banner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin: 0 -0.55rem;
  padding: 0;
  min-height: 3.35rem;
  background: linear-gradient(135deg, #0a3d8f 0%, #062654 48%, #041830 100%);
  border-bottom: 1px solid rgba(77, 159, 255, 0.22);
}

.pub-driver-card__name-block {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.6rem 0.75rem;
}

.pub-driver-card__name {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
  word-break: break-word;
}

.pub-driver-card__team {
  margin: 0.15rem 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ff3344;
  line-height: 1.4;
}

.pub-driver-card__name-logo {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  padding: 0.35rem 0.45rem;
  border-left: 1px solid rgba(77, 159, 255, 0.18);
  background: #ffffff;
}

.pub-driver-card__team-logo {
  --logo-x: 50%;
  --logo-y: 50%;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: var(--logo-x) var(--logo-y);
}

.pub-driver-card__team-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 2.5rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px dashed rgba(0, 70, 174, 0.28);
  color: #0046ae;
  font-size: 1.15rem;
}

.pub-driver-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  padding: 0;
}

.pub-driver-card__field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0.45rem 0.45rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 70, 174, 0.22);
}

.pub-driver-card__field--kit-line {
  grid-column: 1 / -1;
  align-items: center;
}

.pub-driver-card__kit-line {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #8eb8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-driver-card__kit-line span {
  color: #ffffff;
  font-weight: 500;
}

.pub-driver-card__field-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 70, 174, 0.18);
  color: #7eb4ff;
  font-size: 0.72rem;
}

.pub-driver-card__field-copy {
  min-width: 0;
  flex: 1;
}

.pub-driver-card__field-copy dt {
  margin: 0 0 0.12rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8eb8ff;
}

.pub-driver-card__field-copy dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
  word-break: break-word;
}

@media (min-width: 1200px) {
  .pub-driver-card__name {
    font-size: 1rem;
  }

  .pub-driver-card__hero {
    height: 185px;
  }
}

.championship-register-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.championship-register-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.championship-register-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}

.championship-register-header p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.championship-register-form {
  max-width: 720px;
  margin: 0 auto;
}

.championship-register-form .form-control,
.championship-register-form .form-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.championship-register-form .form-control:focus,
.championship-register-form .form-select:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 70, 174, 0.75);
  box-shadow: 0 0 0 3px rgba(0, 70, 174, 0.25);
  color: #fff;
}

.championship-register-form .form-select option {
  color: #111;
}

.championship-register-form label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}

.register-optional {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.championship-register-form .register-file-input {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.register-file-hint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
}

.championship-register-form .register-file-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 70, 174, 0.85);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.register-file-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.register-file-preview img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 70, 174, 0.35);
}

.register-file-preview span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  word-break: break-all;
}

.championship-register-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary) 0%, #0056d6 100%);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.championship-register-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 70, 174, 0.45);
}

.championship-register-btn:disabled {
  opacity: 0.65;
}

.registration-success {
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  background: rgba(0, 70, 174, 0.12);
  border: 1px solid rgba(0, 70, 174, 0.35);
}

.registration-success i {
  font-size: 2.5rem;
  color: #7dffb2;
  margin-bottom: 1rem;
}

.registration-success h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.registration-success p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.championship-empty {
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 1rem;
  margin: 0;
}

/* Registered drivers — visible cards per breakpoint */
@media (min-width: 1400px) {
  .pub-driver-card {
    flex: 0 0 calc((100% - 3rem) / 4);
    width: calc((100% - 3rem) / 4);
    max-width: calc((100% - 3rem) / 4);
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .pub-driver-card {
    flex: 0 0 calc((100% - 2rem) / 3);
    width: calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .pub-driver-card {
    flex: 0 0 calc((100% - 1rem) / 2);
    width: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

/* Mobile: stack Points → Team → Driver */
@media (max-width: 991.98px) {
  .championship-grid {
    grid-template-columns: 1fr;
  }

  .championship-section .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .championship-sidebar .championship-glass-card:first-child {
    order: 1;
  }

  .championship-sidebar .championship-glass-card:last-child {
    order: 2;
  }

  .championship-main {
    order: 3;
  }

  .championship-grid {
    display: flex;
    flex-direction: column;
  }

  .championship-section {
    overflow-x: visible;
  }

  .championship-main,
  .driver-standings-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .driver-standings-card {
    overflow: visible;
  }

  .driver-standings-mobile,
  .driver-table-fullview-btn {
    display: block;
  }

  .driver-table-fullview-btn {
    display: inline-flex;
  }

  .driver-table-wrap--desktop {
    display: none;
  }

  .driver-standings-mobile {
    margin-top: 0.85rem;
  }

  .driver-standings-mobile .championship-empty {
    margin: 0 1rem;
  }

  .driver-hover-card {
    position: fixed;
    left: 50% !important;
    top: auto !important;
    bottom: 1rem;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    width: calc(100vw - 2rem);
    max-width: 280px;
  }

  .driver-hover-card.is-visible {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .driver-hover-card__photo {
    height: 140px;
  }

  .team-logo-popup {
    position: fixed;
    left: 50% !important;
    top: auto !important;
    bottom: 1rem;
    transform: translateX(-50%) translateY(10px) scale(0.96);
  }

  .team-logo-popup.is-visible {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .team-logo-popup img {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 575.98px) {
  .championship-section {
    padding: 40px 0;
  }

  .championship-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .championship-header {
    margin-bottom: 1.75rem;
  }

  .championship-header__eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.68rem;
  }

  .championship-glass-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .driver-standings-toolbar {
    padding: 1rem 1rem 0;
    flex-direction: column;
    align-items: stretch;
  }

  .championship-register-section {
    margin-top: 2rem;
  }

  .championship-register-header h3 {
    font-size: 1.35rem;
  }

  .championship-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .championship-tab {
    text-align: center;
  }

  .driver-search-wrap {
    max-width: none;
  }

  .championship-register-form .form-control,
  .championship-register-form .form-select {
    font-size: 16px;
    min-height: 46px;
  }

  .championship-register-btn {
    min-height: 48px;
    font-size: 0.82rem;
  }

  .championship-register-header p {
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 0 0.25rem;
  }

  .registered-drivers-section {
    margin-top: 2rem;
  }

  .pub-driver-card {
    flex-basis: min(290px, 86vw);
    width: min(290px, 86vw);
    max-width: min(290px, 86vw);
  }

  .driver-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 991.98px) and (orientation: landscape) {
  .driver-table-fullscreen__rotate-hint {
    display: none;
  }

  .driver-table-fullscreen__bar {
    padding: 0.55rem 0.85rem;
  }

  .driver-table-fullscreen__wrap {
    padding: 0.5rem 0.65rem;
  }

  .driver-table-fullscreen__wrap .driver-standings-table {
    font-size: 0.74rem;
  }

  .driver-table-fullscreen__wrap .driver-standings-table thead th {
    padding: 0.55rem 0.5rem;
    font-size: 0.62rem;
  }

  .driver-table-fullscreen__wrap .driver-standings-table thead th.race-col-header {
    height: 58px;
    min-width: 30px;
    max-width: 34px;
    padding: 0.35rem 0.2rem 0.45rem;
  }

  .driver-table-fullscreen__wrap .driver-standings-table thead th.race-col-header .race-col-header__label {
    max-height: 50px;
    font-size: 0.58rem;
  }

  .driver-table-fullscreen__wrap .driver-standings-table tbody td {
    padding: 0.5rem 0.45rem;
  }

  .driver-table-fullscreen__wrap .driver-standings-table tbody td.race-col {
    min-width: 30px;
    max-width: 34px;
    padding: 0.45rem 0.25rem;
  }

  .driver-table-fullscreen__wrap .driver-row__shelf {
    min-width: 72px;
  }

  .driver-table-fullscreen__wrap .shelf-badge {
    min-width: 58px;
    font-size: 0.58rem;
  }
}
