* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --navy: #071d49;
  --navy-2: #09285d;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.16);
  --yellow: #ffe45c;
  --cyan: #24d2ff;
  --green: #1ed760;
  --red: #ff3158;
  --purple: #a855f7;
  --gold: #f4c542;
  --silver: #cfd6df;
  --bronze: #c9803b;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(36, 210, 255, 0.16), transparent 28%),
    linear-gradient(160deg, #04142f 0%, var(--navy) 52%, #020815 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.mobile-tracking-back {
  display: none;
}

.results-shell {
  width: min(1760px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.topbar,
.race-strip,
.mode-strip,
.superpole-card,
.results-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 18, 42, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.platform-footer {
  width: min(1760px, calc(100vw - 20px));
  margin: 6px auto 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.platform-footer a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.platform-footer a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.event-header {
  display: grid;
  width: 100%;
  min-height: 96px;
  height: clamp(96px, 17.8vw, 313px);
  max-height: 313px;
  margin: 0 auto 8px;
  place-items: center;
  overflow: visible;
}

.event-header[hidden] {
  display: none !important;
}

.event-header img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(330px, auto) 1fr 150px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.topbar > a,
.topbar-actions a,
.topbar-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  background: rgba(7, 29, 73, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar > a:hover,
.topbar > a:focus-visible,
.topbar-actions a:hover,
.topbar-actions a:focus-visible,
.topbar-actions button:hover,
.topbar-actions button:focus-visible,
.topbar-actions button.is-open {
  color: #07111c;
  background: var(--yellow);
  outline: none;
}

.topbar-actions button {
  appearance: none;
  cursor: pointer;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand img {
  display: block;
  width: min(280px, 52vw);
  max-height: 52px;
  object-fit: contain;
}

.brand-event-banner {
  display: none !important;
}

.brand strong {
  max-width: min(760px, 100%);
  overflow-wrap: anywhere;
  font-size: clamp(16px, 2.2vw, 30px);
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
}

.topbar-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

p,
h1,
h2 {
  margin: 0;
}

.topbar p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.live-page-version {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 10px !important;
  letter-spacing: 0;
}

.archive-search-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(36, 210, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 18, 42, 0.76);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
}

.archive-search-strip[hidden] {
  display: none;
}

.archive-search-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.archive-search-form label {
  display: grid;
  gap: 4px;
}

.archive-search-form span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.archive-search-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 14px;
}

.archive-search-form button,
.archive-open-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--yellow);
  color: #071d49;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  padding: 7px 14px;
}

.archive-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.archive-search-message {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.archive-result-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.archive-result-card span,
.archive-result-card small {
  display: block;
}

.archive-result-card span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.archive-result-card strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
}

.archive-result-card b {
  color: var(--yellow);
  font-size: 14px;
}

.archive-result-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.race-strip {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 0.82fr 0.68fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.race-strip.has-weather {
  grid-template-columns: 1fr 1.25fr minmax(150px, 0.58fr) 0.82fr 0.68fr;
}

.race-strip div,
.mode-strip div {
  min-width: 0;
}

.race-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.race-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

.category-logo-slot {
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 46px;
  place-items: center;
  overflow: hidden;
}

.category-logo-slot[hidden] {
  display: none;
}

.category-logo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.race-strip span,
.mode-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.race-strip small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-strip small[hidden] {
  display: none;
}

.race-strip small a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.race-strip strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(13px, 1.25vw, 20px);
  line-height: 1.06;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-strip > div:not(.clock):not(.weather-card) strong {
  display: -webkit-box;
  max-height: 2.15em;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.race-strip .clock {
  border: 1px solid rgba(255, 228, 92, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 228, 92, 0.08);
  text-align: center;
}

.race-strip .clock strong {
  color: var(--yellow);
  font-size: clamp(18px, 2.6vw, 34px);
}

.weather-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "label temp"
    "main main";
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  row-gap: 4px;
  column-gap: 8px;
  min-height: 54px;
  border: 1px solid rgba(112, 217, 255, 0.35);
  border-radius: 8px;
  padding: 7px 10px;
  overflow: hidden;
  background: rgba(20, 160, 220, 0.12);
  box-shadow: inset 0 0 18px rgba(112, 217, 255, 0.08);
}

.weather-card[hidden] {
  display: none !important;
}

.weather-card > span:first-child {
  grid-area: label;
  padding-right: 0;
  font-size: 10px;
  line-height: 1;
}

.weather-card strong {
  grid-area: main;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-right: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  text-align: left;
}

.weather-card strong > span {
  display: inline;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  text-transform: none;
}

.weather-card strong > span:first-child {
  display: grid !important;
  width: 38px;
  min-width: 38px;
  place-items: center;
  font-size: 0 !important;
}

.weather-card strong > span:last-child {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-card #weatherLabel {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-card .weather-label-main,
.weather-card .weather-label-prob {
  display: inline;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.weather-card .weather-label-prob {
  margin-left: 4px;
  color: var(--yellow);
}

.weather-symbol {
  position: relative;
  display: inline-block !important;
  flex: 0 0 auto;
  width: 34px;
  height: 22px;
  min-width: 34px !important;
  color: inherit;
  font-size: 0 !important;
  line-height: 1;
  vertical-align: middle;
}

.weather-symbol::before,
.weather-symbol::after {
  content: "";
  position: absolute;
  display: block;
}

.weather-symbol-clear::before {
  inset: 2px 5px;
  border-radius: 999px;
  background: #ffe45c;
  box-shadow: 0 0 10px rgba(255, 228, 92, 0.72);
}

.weather-symbol-clouds::before,
.weather-symbol-rain::before,
.weather-symbol-snow::before,
.weather-symbol-storm::before,
.weather-symbol-weather::before {
  left: 2px;
  right: 10px;
  bottom: 4px;
  height: 11px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    6px -6px 0 -1px #ffffff,
    14px -4px 0 0 #ffffff;
}

.weather-symbol-fog::before,
.weather-symbol-fog::after {
  left: 2px;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.76);
}

.weather-symbol-fog::before {
  top: 4px;
}

.weather-symbol-fog::after {
  top: 13px;
  width: 16px;
}

.weather-symbol-rain::after {
  left: 7px;
  bottom: -1px;
  width: 2px;
  height: 7px;
  border-radius: 99px;
  background: #70d9ff;
  box-shadow:
    6px 0 0 #70d9ff,
    12px 0 0 #70d9ff;
  transform: skewX(-16deg);
}

.weather-symbol-snow::after {
  left: 5px;
  bottom: -3px;
  color: #ffffff;
  content: "* *";
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2px;
}

.weather-symbol-storm::after {
  left: 9px;
  bottom: -2px;
  width: 8px;
  height: 12px;
  background: #ffe45c;
  clip-path: polygon(45% 0, 100% 0, 62% 44%, 100% 44%, 26% 100%, 42% 55%, 0 55%);
}

.weather-card small {
  position: static;
  grid-area: temp;
  margin: 0;
  color: var(--yellow);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.race-status-card {
  position: relative;
  overflow: hidden;
}

.race-status-card.race-status-yellow {
  animation: raceStatusYellowPulse 900ms ease-in-out infinite;
}

.race-status-card.race-status-red {
  animation: raceStatusRedPulse 900ms ease-in-out infinite;
}

.race-status-card.race-status-checkered {
  animation: raceStatusCheckeredPulse 1200ms ease-in-out infinite;
}

.race-status-card.race-status-warmup {
  animation: raceStatusWarmupPulse 1000ms ease-in-out infinite;
}

.race-status-value {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  color: #ffffff !important;
  font-size: clamp(14px, 1.45vw, 22px) !important;
}

.race-status-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 34px;
  height: 24px;
}

.race-status-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.race-status-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 25px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px 4px 4px 2px;
  background: #00a650;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  transform-origin: left center;
  animation: raceFlagWave 950ms ease-in-out infinite;
}

.race-status-icon-green::after {
  background: #00a650;
}

.race-status-icon-yellow::after {
  background: #ffd400;
}

.race-status-icon-red::after {
  background: #e00018;
}

.race-status-icon-warmup::after {
  background: #6b1fb1;
}

.race-status-icon-checkered::after {
  background:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%),
    #050505;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.race-status-icon-stop {
  aspect-ratio: 1 / 1;
  width: 34px;
  height: 34px;
}

.race-status-icon-stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: #ffffff;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.race-status-icon-stop::after {
  content: "STOP";
  left: 3px;
  top: 3px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #d8001d;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  color: #ffffff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
  animation: none;
}

@keyframes raceFlagWave {
  0%, 100% {
    transform: skewY(0deg) scaleX(1);
  }

  50% {
    transform: skewY(-9deg) scaleX(0.94);
  }
}

@keyframes raceStatusYellowPulse {
  0%, 100% {
    border-color: rgba(255, 228, 92, 0.95);
    background: rgba(255, 228, 92, 0.16);
    box-shadow: 0 0 0 rgba(255, 228, 92, 0);
  }

  50% {
    border-color: #ffd400;
    background: rgba(255, 212, 0, 0.42);
    box-shadow: 0 0 18px rgba(255, 212, 0, 0.42);
  }
}

@keyframes raceStatusRedPulse {
  0%, 100% {
    border-color: rgba(255, 49, 88, 0.82);
    background: rgba(224, 0, 24, 0.18);
    box-shadow: 0 0 0 rgba(224, 0, 24, 0);
  }

  50% {
    border-color: #ff3158;
    background: rgba(224, 0, 24, 0.52);
    box-shadow: 0 0 20px rgba(224, 0, 24, 0.5);
  }
}

@keyframes raceStatusCheckeredPulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.24);
  }
}

@keyframes raceStatusWarmupPulse {
  0%, 100% {
    border-color: rgba(168, 85, 247, 0.78);
    background: rgba(107, 31, 177, 0.22);
    box-shadow: 0 0 0 rgba(168, 85, 247, 0);
  }

  50% {
    border-color: #c084fc;
    background: rgba(107, 31, 177, 0.54);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.42);
  }
}

.mode-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
}

.superpole-card {
  margin-top: 12px;
  overflow: hidden;
  border-color: rgba(36, 210, 255, 0.34);
}

.superpole-card[hidden] {
  display: none;
}

.superpole-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(36, 210, 255, 0.18), rgba(255, 228, 92, 0.08));
}

.superpole-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.superpole-title strong {
  display: block;
  margin-top: 2px;
  color: #24d2ff;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.superpole-title p {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.superpole-scroll {
  max-height: min(560px, 58vh);
}

.superpole-row {
  background: rgba(36, 210, 255, 0.08);
}

.superpole-card th {
  padding: 10px 14px;
  font-size: 12px;
}

.superpole-card td {
  padding: 18px 14px;
  font-size: 22px;
}

.superpole-row td:first-child {
  width: 88px;
  color: var(--yellow);
  font-family: "Arial Black", Impact, Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 800;
}

.superpole-row strong {
  font-size: 28px;
  line-height: 1;
}

.run-finish-hold {
  animation: finishRowBlink 500ms steps(2, end) 6;
}

.running-clock {
  display: inline-flex;
  min-width: 238px;
  justify-content: center;
  border: 1px solid rgba(36, 210, 255, 0.48);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(36, 210, 255, 0.14);
  color: #ffffff;
  font-family: "Arial Black", Impact, Arial, Helvetica, sans-serif;
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(36, 210, 255, 0.36);
  animation: runningClockPulse 1100ms ease-in-out infinite;
}

.finish-clock {
  border-color: rgba(255, 228, 92, 0.95);
  background: rgba(255, 228, 92, 0.22);
  color: var(--yellow);
  text-shadow: 0 2px 8px rgba(255, 228, 92, 0.3);
  animation: finishClockBlink 500ms steps(2, end) 6;
}

.run-status {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes runningClockPulse {
  0%, 100% {
    border-color: rgba(36, 210, 255, 0.36);
    box-shadow: 0 0 0 rgba(36, 210, 255, 0);
  }

  50% {
    border-color: rgba(36, 210, 255, 0.9);
    box-shadow: 0 0 18px rgba(36, 210, 255, 0.28);
  }
}

@keyframes finishRowBlink {
  0%, 100% {
    background: rgba(36, 210, 255, 0.08);
  }

  50% {
    background: rgba(255, 228, 92, 0.34);
  }
}

@keyframes finishClockBlink {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 228, 92, 0);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(255, 228, 92, 0.45);
  }
}

.mode-strip strong {
  display: inline-block;
  margin-top: 4px;
  border: 1px solid rgba(36, 210, 255, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(36, 210, 255, 0.12);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-strip p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.category-filter {
  flex: 0 1 300px;
}

.category-filter label {
  display: grid;
  gap: 4px;
}

.category-filter-select {
  position: relative;
  display: block;
}

.category-filter-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--cyan);
  transform: translateY(-35%);
  pointer-events: none;
}

.category-filter select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(36, 210, 255, 0.45);
  border-radius: 999px;
  padding: 5px 36px 5px 12px;
  background: rgba(36, 210, 255, 0.12);
  color: var(--cyan);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-filter select::-ms-expand {
  display: none;
}

.category-filter option {
  background: #081a36;
  color: #ffffff;
}

.results-card {
  margin-top: 12px;
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  max-height: calc(100vh - 230px);
  -webkit-overflow-scrolling: touch;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

@media (min-width: 921px) and (min-height: 561px) {
  .results-card > .table-scroll > table {
    min-width: max-content;
  }
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(3, 12, 30, 0.98);
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.results-table-adaptive thead th,
.results-table-adaptive tbody tr.result-row > td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.results-card.results-dense > .table-scroll > table > thead th,
.results-card.results-dense tbody tr.result-row > td {
  padding-right: 8px;
  padding-left: 8px;
  font-size: 13px;
}

.results-card.results-ultra-dense > .table-scroll > table > thead th,
.results-card.results-ultra-dense tbody tr.result-row > td {
  padding-right: 6px;
  padding-left: 6px;
  font-size: 12px;
}

.results-card.results-dense .cell-fullName {
  font-size: 14px;
}

.results-card.results-ultra-dense .cell-fullName {
  font-size: 13px;
}

tbody tr.result-row {
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

tbody tr.result-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

tbody tr.result-row.podium-gold {
  background: linear-gradient(90deg, rgba(244, 197, 66, 0.28), rgba(244, 197, 66, 0.08) 46%, rgba(5, 18, 42, 0.04));
}

tbody tr.result-row.podium-silver {
  background: linear-gradient(90deg, rgba(207, 214, 223, 0.25), rgba(207, 214, 223, 0.075) 46%, rgba(5, 18, 42, 0.04));
}

tbody tr.result-row.podium-bronze {
  background: linear-gradient(90deg, rgba(201, 128, 59, 0.26), rgba(201, 128, 59, 0.075) 46%, rgba(5, 18, 42, 0.04));
}

tbody tr.result-row.podium-gold .cell-position {
  color: #ffe887;
}

tbody tr.result-row.podium-silver .cell-position {
  color: #eef3f8;
}

tbody tr.result-row.podium-bronze .cell-position {
  color: #f1aa68;
}

tbody tr.result-row.is-target {
  outline: 2px solid rgba(255, 228, 92, 0.86);
  outline-offset: -2px;
  background: rgba(255, 228, 92, 0.12);
}

tbody tr.status-group-title td {
  padding: 9px 12px;
  border-top: 2px solid rgba(255, 49, 88, 0.48);
  border-bottom: 1px solid rgba(255, 49, 88, 0.35);
  background: linear-gradient(90deg, rgba(255, 49, 88, 0.34), rgba(255, 49, 88, 0.12));
  border-color: rgba(var(--status-rgb, 255, 143, 163), 0.68);
  background: linear-gradient(90deg, rgba(var(--status-rgb, 255, 143, 163), 0.34), rgba(var(--status-rgb, 255, 143, 163), 0.13));
  border-color: color-mix(in srgb, var(--status-color, #ff8fa3) 68%, rgba(255, 255, 255, 0.14));
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--status-color, #ff8fa3) 38%, rgba(7, 29, 73, 0.90)),
      color-mix(in srgb, var(--status-color, #ff8fa3) 16%, rgba(7, 29, 73, 0.86)));
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr.status-result-row {
  background: rgba(255, 49, 88, 0.12);
  background: rgba(var(--status-rgb, 255, 143, 163), 0.14);
  background: color-mix(in srgb, var(--status-color, #ff8fa3) 14%, rgba(8, 20, 45, 0.96));
}

tbody tr.status-result-row:hover {
  background: rgba(255, 49, 88, 0.2);
  background: rgba(var(--status-rgb, 255, 143, 163), 0.22);
  background: color-mix(in srgb, var(--status-color, #ff8fa3) 24%, rgba(8, 20, 45, 0.96));
}

tbody tr.status-result-row td {
  border-bottom-color: rgba(255, 49, 88, 0.22);
  border-bottom-color: rgba(var(--status-rgb, 255, 143, 163), 0.28);
  border-bottom-color: color-mix(in srgb, var(--status-color, #ff8fa3) 34%, rgba(255, 255, 255, 0.10));
}

.col-visual,
.cell-visual {
  width: clamp(46px, 3.6vw, 66px);
  min-width: 46px;
  text-align: center;
  padding-right: 6px;
  padding-left: 6px;
}

.result-icon {
  display: inline-grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-width: 46px;
  min-height: 32px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 3px 7px 3px 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 16px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-arrow {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1;
}

.icon-label {
  font-variant-numeric: tabular-nums;
}

.icon-plus {
  border-color: rgba(64, 255, 129, 0.62);
  background: linear-gradient(135deg, rgba(20, 186, 92, 0.92), rgba(0, 135, 216, 0.36));
}

.icon-minus {
  border-color: rgba(255, 77, 94, 0.70);
  background: linear-gradient(135deg, rgba(255, 49, 88, 0.92), rgba(255, 137, 54, 0.38));
}

.icon-passing {
  border-color: rgba(36, 210, 255, 0.62);
  background: linear-gradient(135deg, rgba(36, 210, 255, 0.78), rgba(116, 73, 255, 0.44));
}

.icon-stable {
  border-color: rgba(255, 228, 92, 0.38);
  background: linear-gradient(135deg, rgba(255, 228, 92, 0.35), rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.86);
}

.status-result-icon {
  border-color: rgba(255, 49, 88, 0.82);
  background: linear-gradient(135deg, rgba(255, 49, 88, 0.92), rgba(128, 28, 46, 0.66));
  border-color: rgba(var(--status-rgb, 255, 143, 163), 0.86);
  background: linear-gradient(135deg, rgba(var(--status-rgb, 255, 143, 163), 0.92), rgba(var(--status-rgb, 255, 143, 163), 0.46));
  border-color: color-mix(in srgb, var(--status-color, #ff8fa3) 84%, #ffffff 16%);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--status-color, #ff8fa3) 86%, #0b1a34 14%),
      color-mix(in srgb, var(--status-color, #ff8fa3) 46%, #061022 54%));
  color: #ffffff;
}

.status-result-icon .icon-arrow {
  background: rgba(var(--status-rgb, 255, 143, 163), 0.68);
  background: color-mix(in srgb, var(--status-color, #ff8fa3) 68%, #ffffff 20%);
  color: #071d49;
}

.cell-no-position {
  color: transparent;
}

.col-position,
.cell-position {
  width: clamp(50px, 4vw, 70px);
  min-width: 50px;
  text-align: center;
}

.cell-position {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.col-number,
.cell-number {
  width: clamp(66px, 5vw, 88px);
  min-width: 66px;
  text-align: center;
}

.cell-number {
  color: var(--yellow);
  font-size: 21px;
  font-weight: 800;
}

.col-fullName,
.cell-fullName {
  width: clamp(240px, 26vw, 470px);
  min-width: 240px;
  max-width: 470px;
}

.cell-fullName {
  color: var(--ink);
  font-size: 15px;
}

.col-category,
.cell-category {
  width: clamp(106px, 9vw, 185px);
  max-width: 185px;
  padding-right: 7px;
  padding-left: 7px;
  text-align: left;
  white-space: nowrap;
}

.col-fullName,
.cell-fullName,
.col-category,
.cell-category,
.col-subCategory,
.cell-subCategory,
.col-pilot1,
.cell-pilot1,
.col-pilot2,
.cell-pilot2,
.col-pilot3,
.cell-pilot3,
.col-pilot4,
.cell-pilot4,
.col-pilot5,
.cell-pilot5,
.col-pilot6,
.cell-pilot6,
.col-pilot7,
.cell-pilot7,
.col-pilot8,
.cell-pilot8 {
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-subCategory,
.cell-subCategory {
  width: clamp(82px, 7vw, 135px);
  max-width: 135px;
}

.col-id,
.cell-id,
.col-positionCategory,
.cell-positionCategory,
.col-positionGroup,
.cell-positionGroup,
.col-positionClass,
.cell-positionClass,
.col-positionPreviousLap,
.cell-positionPreviousLap,
.col-pitStops,
.cell-pitStops {
  width: clamp(58px, 4.6vw, 78px);
  min-width: 58px;
  text-align: center;
}

.col-group,
.cell-group,
.col-className,
.cell-className,
.col-discipline,
.cell-discipline,
.col-federation,
.cell-federation,
.col-status,
.cell-status,
.col-tires,
.cell-tires,
.col-custom1,
.cell-custom1,
.col-custom2,
.cell-custom2,
.col-custom3,
.cell-custom3,
.col-custom4,
.cell-custom4,
.col-custom5,
.cell-custom5,
.col-custom6,
.cell-custom6 {
  width: clamp(92px, 8vw, 155px);
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-club,
.cell-club,
.col-vehicle,
.cell-vehicle,
.col-team,
.cell-team,
.col-sponsors,
.cell-sponsors {
  width: clamp(135px, 12vw, 225px);
  max-width: 225px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-pilot1,
.cell-pilot1,
.col-pilot2,
.cell-pilot2,
.col-pilot3,
.cell-pilot3,
.col-pilot4,
.cell-pilot4,
.col-pilot5,
.cell-pilot5,
.col-pilot6,
.cell-pilot6,
.col-pilot7,
.cell-pilot7,
.col-pilot8,
.cell-pilot8 {
  width: clamp(112px, 10vw, 190px);
  max-width: 190px;
}

.col-nationality,
.cell-nationality,
.col-nationality1,
.cell-nationality1,
.col-nationality2,
.cell-nationality2,
.col-nationality3,
.cell-nationality3,
.col-nationality4,
.cell-nationality4,
.col-nationality5,
.cell-nationality5,
.col-nationality6,
.cell-nationality6,
.col-nationality7,
.cell-nationality7,
.col-nationality8,
.cell-nationality8 {
  width: 52px;
  text-align: center;
}

.col-laps,
.cell-laps,
.col-positionInter,
.cell-positionInter,
.col-positionInterPrevious,
.cell-positionInterPrevious {
  width: clamp(58px, 4.6vw, 76px);
  min-width: 58px;
  text-align: center;
}

.col-totalTime,
.cell-totalTime,
.col-lastLap,
.cell-lastLap,
.col-bestLap,
.cell-bestLap,
.col-gap,
.cell-gap,
.col-gapPrevious,
.cell-gapPrevious,
.col-raceGap,
.cell-raceGap,
.col-bestLapGap,
.cell-bestLapGap,
.col-categoryGapFirst,
.cell-categoryGapFirst,
.col-categoryGapPrevious,
.cell-categoryGapPrevious,
.col-categoryGap,
.cell-categoryGap,
.col-averageLapSpeed,
.cell-averageLapSpeed,
.col-pitTime,
.cell-pitTime,
.col-trackTime,
.cell-trackTime,
.col-totalPitTime,
.cell-totalPitTime,
.col-totalTrackTime,
.cell-totalTrackTime,
.col-sector1,
.cell-sector1,
.col-sector2,
.cell-sector2,
.col-sector3,
.cell-sector3,
.col-bestSector1,
.cell-bestSector1,
.col-bestSector2,
.cell-bestSector2,
.col-bestSector3,
.cell-bestSector3,
.col-idealLap,
.cell-idealLap {
  width: clamp(86px, 6.6vw, 118px);
  min-width: 82px;
  text-align: right;
}

.cell-bestLap,
.cell-lastLap,
.cell-sector1,
.cell-sector2,
.cell-sector3,
.cell-bestSector1,
.cell-bestSector2,
.cell-bestSector3,
.cell-idealLap {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-bestLap,
.best-sector {
  color: var(--cyan);
}

.has-time-progress {
  min-width: 76px;
}

.time-progress-cell {
  display: inline-grid;
  min-width: 68px;
  gap: 4px;
  vertical-align: middle;
}

.time-progress-value {
  display: block;
}

.time-progress-track {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 228, 92, 0.18);
}

.time-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transform-origin: left center;
  animation: timeProgressFill var(--progress-duration, 1000ms) linear both;
  animation-delay: var(--progress-delay, 0ms);
}

@keyframes timeProgressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.global-best {
  border-radius: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.86), rgba(91, 33, 182, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 16px rgba(168, 85, 247, 0.25);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

.cell-gap,
.cell-gapPrevious {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-laps {
  color: var(--cyan);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.1);
}

.status-pill {
  color: var(--yellow);
}

.result-row.moved-up {
  animation: leaderboardUp 3200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-row.moved-down {
  animation: leaderboardDown 3200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-row.passing-flash td {
  animation: passingCellFlash 900ms ease-out;
}

@keyframes leaderboardUp {
  0% { background: rgba(48, 209, 88, 0.95); transform: translateX(-16px); }
  18% { background: rgba(48, 209, 88, 0.95); transform: translateX(0); }
  70% { background: rgba(48, 209, 88, 0.46); transform: translateX(0); }
  100% { background: rgba(7, 29, 73, 0); transform: translateX(0); }
}

@keyframes leaderboardDown {
  0% { background: rgba(255, 77, 94, 0.95); transform: translateX(16px); }
  18% { background: rgba(255, 77, 94, 0.95); transform: translateX(0); }
  70% { background: rgba(255, 77, 94, 0.46); transform: translateX(0); }
  100% { background: rgba(7, 29, 73, 0); transform: translateX(0); }
}

@keyframes passingCellFlash {
  0%, 24% {
    background: rgba(255, 228, 92, 0.56);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 92, 0.9);
  }

  100% {
    background: transparent;
    box-shadow: inset 0 0 0 rgba(255, 228, 92, 0);
  }
}

.detail-row td {
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
}

.detail-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 14px;
}

.detail-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  background: rgba(4, 14, 32, 0.55);
}

.detail-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-card p,
.detail-card a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-card a {
  color: var(--cyan);
  text-decoration: none;
}

.detail-card a[href*="analytics"] {
  color: var(--yellow);
  font-weight: 950;
}

.nat-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.nat-flag-img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.nat-flag-emoji {
  display: none;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.42));
}

.nat-cell-missing {
  min-width: 0;
}

@media (max-width: 820px), (pointer: coarse) {
  .nat-flag-img {
    display: block;
  }

  .nat-flag-emoji {
    display: none;
  }
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
  margin: 10px 0 12px;
}

.detail-fact {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border: 1px solid rgba(36, 210, 255, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(36, 210, 255, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.detail-fact b {
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
}

.driver-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.driver-list strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-list > .driver-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.driver-list > .driver-pill.is-active,
.lap-driver-flag.is-active {
  border-color: rgba(255, 214, 66, 0.82);
  background: rgba(255, 214, 66, 0.18);
}

.driver-flag,
.lap-active-flag,
.lap-driver-cell .nat-cell,
.lap-driver-flag .nat-cell {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.lap-active-flag {
  margin-left: 8px;
  vertical-align: middle;
}

.lap-driver-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

.lap-driver-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.lap-driver-cell {
  white-space: nowrap;
}

.lap-driver-cell span:not(.nat-cell):not(.nat-flag-emoji) {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.lap-table {
  width: 100%;
  min-width: 0;
}

.lap-table th,
.lap-table td {
  padding: 7px 8px;
  font-size: 12px;
}

.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.orientation-hint {
  display: none;
}

.orientation-hint.is-dismissed {
  display: none !important;
}

.orientation-hint-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(5, 18, 42, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.orientation-hint-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
  pointer-events: auto;
}

.orientation-phone-scene {
  position: relative;
  width: 118px;
  height: 118px;
}

.orientation-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 72px;
  margin: -36px 0 0 -21px;
  border: 4px solid #fff;
  border-radius: 12px;
  background: rgba(7, 29, 73, 0.78);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 0, 0, 0.34);
  transform-origin: center;
  animation: orientationPhoneRotate 2400ms ease-in-out infinite;
}

.orientation-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  transform: translateX(-50%);
}

.orientation-phone span {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  transform: translateX(-50%);
}

.orientation-arrow {
  position: absolute;
  inset: 9px;
  border: 4px solid rgba(255, 228, 92, 0.28);
  border-right-color: var(--yellow);
  border-bottom-color: var(--yellow);
  border-radius: 999px;
  animation: orientationArrowPulse 2400ms ease-in-out infinite;
}

.orientation-arrow::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--yellow);
  transform: rotate(36deg);
}

.orientation-hint p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

@keyframes orientationPhoneRotate {
  0%, 18% {
    transform: rotate(0deg) scale(1);
  }

  52%, 72% {
    transform: rotate(90deg) scale(1.08);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes orientationArrowPulse {
  0% {
    opacity: 0.55;
    transform: rotate(-32deg) scale(0.92);
  }

  45%, 78% {
    opacity: 1;
    transform: rotate(42deg) scale(1);
  }

  100% {
    opacity: 0.55;
    transform: rotate(-32deg) scale(0.92);
  }
}

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .mobile-tracking-back {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    right: 8px;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 9px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    background: rgba(7, 29, 73, 0.94);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
  }

  .live-results-page .mobile-tracking-back {
    display: none;
  }

  .results-shell {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
    padding: 0 4px 4px;
    overflow: hidden;
  }

  body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .mode-strip {
    display: none !important;
  }

  .event-header {
    display: grid !important;
    flex: 0 0 clamp(68px, 17.8vw, 180px);
    width: 100%;
    min-height: 0;
    height: clamp(68px, 17.8vw, 180px);
    max-height: 180px;
    margin: 0 0 3px;
    border-radius: 4px;
    overflow: visible;
  }

  .event-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .topbar {
    flex: 0 0 36px;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 36px;
    padding: 0 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .topbar > a,
  .topbar p,
  .brand strong {
    display: none;
  }

  .topbar-actions {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 5px);
    right: 5px;
    z-index: 1003;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 3px;
    max-width: calc(100vw - 128px);
  }

  .topbar-actions a,
  .topbar-actions button {
    min-height: 20px;
    padding: 3px 5px;
    border-width: 1px;
    border-radius: 5px;
    box-shadow: none;
    font-size: 8px;
    line-height: 1;
  }

  .brand {
    align-items: flex-start;
    gap: 0;
  }

  .topbar-meta {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 28px);
    right: 5px;
    z-index: 1003;
    align-items: flex-end;
    gap: 0;
    pointer-events: none;
  }

  .topbar-meta .live-page-version {
    display: block;
    margin-top: 1px;
    font-size: 7px !important;
    line-height: 1;
  }

  .archive-search-strip {
    flex: 0 0 auto;
    margin-top: 3px;
    padding: 6px;
    border-radius: 5px;
  }

  .archive-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .archive-search-form span {
    font-size: 8px;
  }

  .archive-search-form input {
    min-height: 28px;
    font-size: 11px;
    padding: 4px 9px;
  }

  .archive-search-form button,
  .archive-open-link {
    min-height: 28px;
    font-size: 10px;
    padding: 4px 9px;
  }

  .archive-search-results {
    grid-template-columns: 1fr;
    max-height: min(38vh, 210px);
    overflow: auto;
  }

  .archive-result-card {
    gap: 5px;
    padding: 8px;
  }

  .archive-result-card strong {
    font-size: 15px;
  }

  .brand img {
    width: auto;
    max-width: 256px;
    max-height: 34px;
  }

  .race-strip {
    flex: 0 0 auto;
    grid-template-columns: minmax(116px, 1.12fr) minmax(92px, 0.9fr) minmax(64px, 0.54fr) minmax(88px, 0.86fr);
    gap: 4px;
    min-height: 48px;
    margin-top: 0;
    padding: 4px 6px;
    border-radius: 5px;
    box-shadow: none;
  }

  .race-strip.has-weather {
    grid-template-columns: minmax(104px, 1.02fr) minmax(78px, 0.78fr) minmax(62px, 0.45fr) minmax(60px, 0.52fr) minmax(82px, 0.78fr);
  }

  .race-title-cell {
    gap: 4px;
  }

  .category-logo-slot {
    width: 34px;
    height: 26px;
  }

  .race-strip span {
    font-size: 9px;
    line-height: 1;
  }

  .race-strip strong {
    margin-top: 1px;
    font-size: 18px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .race-strip > div:not(.clock):not(.weather-card) strong {
    max-height: 2.15em;
    font-size: clamp(10px, 2.4vw, 14px);
    line-height: 1.05;
    white-space: normal;
    -webkit-line-clamp: 2;
  }

  .race-strip small {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1;
  }

  .race-strip .clock {
    border-radius: 5px;
    padding: 3px 4px;
  }

  .weather-card {
    row-gap: 1px;
    column-gap: 4px;
    min-height: 40px;
    border-radius: 5px;
    padding: 3px 5px 4px;
  }

  .weather-card > span:first-child {
    font-size: 7.5px;
  }

  .weather-card strong {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 4px;
    font-size: 8.7px;
    line-height: 1.03;
    text-align: center;
  }

  .weather-card strong > span:first-child {
    width: 25px;
    min-width: 25px;
    font-size: 0 !important;
    line-height: 1;
  }

  .weather-symbol {
    width: 23px;
    height: 16px;
    min-width: 23px !important;
    transform: translateY(0);
  }

  .weather-symbol-clear::before {
    inset: 2px 4px;
  }

  .weather-symbol-clouds::before,
  .weather-symbol-rain::before,
  .weather-symbol-snow::before,
  .weather-symbol-storm::before,
  .weather-symbol-weather::before {
    left: 1px;
    right: 6px;
    bottom: 1px;
    height: 7px;
    box-shadow:
      4px -3px 0 -1px #ffffff,
      9px -2px 0 -1px #ffffff;
  }

  .weather-symbol-rain::after {
    left: 3px;
    bottom: -2px;
    width: 1.5px;
    height: 5px;
    box-shadow:
      5px 0 0 #70d9ff,
      10px 0 0 #70d9ff;
  }

  .weather-symbol-storm::after {
    left: 6px;
    bottom: -2px;
    width: 7px;
    height: 9px;
  }

  .weather-card strong > span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weather-card #weatherLabel {
    display: grid;
    gap: 0;
    overflow: hidden;
    line-height: 1.03;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
  }

  .weather-card .weather-label-main,
  .weather-card .weather-label-prob {
    display: block;
    margin-left: 0;
    overflow: hidden;
    line-height: 1.03;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weather-card .weather-label-main {
    text-transform: uppercase;
  }

  .weather-card small {
    font-size: 17px;
  }

  .race-strip .clock strong {
    font-size: 14px;
  }

  .race-strip .clock:last-child strong {
    font-size: 19px;
  }

  .race-status-value {
    gap: 4px;
    font-size: 10px !important;
  }

  .race-status-icon {
    width: 24px;
    height: 18px;
  }

  .race-status-icon::before {
    left: 1px;
    top: 1px;
    width: 2px;
    height: 17px;
  }

  .race-status-icon::after {
    left: 3px;
    top: 1px;
    width: 18px;
    height: 12px;
    background-size: 12px 12px;
  }

  .race-status-icon-stop {
    aspect-ratio: 1 / 1;
    width: 24px;
    height: 24px;
  }

  .race-status-icon-stop::after {
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    font-size: 5.8px;
  }

  .race-status-icon-stop::before {
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
  }

  .superpole-card {
    flex: 1.35 1 0;
    max-height: none;
    margin-top: 3px;
    border-radius: 5px;
  }

  .superpole-title {
    min-height: 40px;
    padding: 5px 7px;
  }

  .superpole-title strong {
    font-size: 18px;
  }

  .superpole-title span,
  .superpole-title p {
    font-size: 9px;
  }

  .superpole-scroll {
    max-height: none;
  }

  .superpole-card th {
    padding: 5px 7px;
    font-size: 8px;
  }

  .superpole-card td {
    padding: 10px 7px;
    font-size: 16px;
  }

  .superpole-row td:first-child {
    width: 52px;
    font-size: 22px;
  }

  .superpole-row strong {
    font-size: 18px;
  }

  .running-clock {
    min-width: 142px;
    padding: 7px 10px;
    font-size: 20px;
  }

  .run-status {
    margin-left: 4px;
    padding: 2px 5px;
    font-size: 8px;
  }

  .results-card {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 3px;
    border-radius: 5px;
  }

  .table-scroll {
    height: 100%;
    max-height: none;
    overflow-x: auto;
  }

  table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  th,
  td {
    padding: 4px 5px;
  }

  tbody tr.status-group-title td {
    height: 15px;
    padding: 1px 8px !important;
    border-top-width: 1px;
    border-bottom-width: 1px;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  th {
    font-size: 8px;
  }

  td {
    font-size: 10px;
  }

  .cell-visual {
    width: 38px;
  }

  .col-visual {
    width: 38px;
  }

  .result-icon {
    grid-template-columns: 13px 1fr;
    min-width: 34px;
    min-height: 22px;
    padding: 2px 5px 2px 3px;
    font-size: 7px;
  }

  .icon-arrow {
    width: 13px;
    height: 13px;
    font-size: 10px;
  }

  .cell-position {
    width: 30px;
    font-size: 11px;
  }

  .col-position {
    width: 30px;
  }

  .cell-number {
    width: 38px;
    font-size: 13px;
  }

  .col-number {
    width: 38px;
  }

  .col-fullName,
  .cell-fullName {
    width: auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .col-laps,
  .cell-laps {
    width: 38px;
    text-align: center;
  }

  .col-gap,
  .cell-gap {
    width: 58px;
    text-align: right;
  }

  .col-bestLap,
  .cell-bestLap {
    width: 58px;
    text-align: right;
  }

  .detail-panel {
    grid-template-columns: minmax(170px, 0.86fr) minmax(210px, 1.14fr);
    gap: 4px;
    padding: 4px;
    align-items: start;
  }

  .detail-card {
    border-radius: 5px;
    padding: 5px 6px;
  }

  .detail-card h2 {
    margin-bottom: 3px;
    font-size: 11px;
    line-height: 1.05;
  }

  .detail-card p,
  .detail-card a {
    font-size: 9px;
    line-height: 1.12;
  }

  .detail-card p + p {
    margin-top: 1px;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin: 4px 0 5px;
  }

  .detail-fact {
    border-radius: 7px;
    gap: 3px;
    padding: 2px 4px;
    font-size: 8px;
    line-height: 1.05;
  }

  .detail-fact b {
    font-size: 6.5px;
    line-height: 1;
  }

  .driver-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 4px 0;
  }

  .driver-list strong {
    width: 100%;
    font-size: 7px;
    line-height: 1;
  }

  .driver-list > .driver-pill {
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1.05;
  }

  .driver-flag .nat-flag-img,
  .lap-active-flag .nat-flag-img,
  .lap-driver-cell .nat-flag-img,
  .lap-driver-flag .nat-flag-img {
    width: 16px;
    height: 12px;
  }

  .lap-driver-flags {
    gap: 3px;
    margin-bottom: 4px;
  }

  .lap-driver-flag {
    gap: 3px;
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1;
  }

  .lap-driver-cell span:not(.nat-cell):not(.nat-flag-emoji) {
    margin-left: 2px;
    font-size: 7px;
  }

  .lap-table th,
  .lap-table td {
    padding: 2px 4px;
    font-size: 8px;
    line-height: 1.05;
  }

  .detail-panel .detail-card:nth-child(2) {
    max-height: 160px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-height: 440px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .results-shell {
    padding: 0 3px 3px;
  }

  .event-header {
    flex-basis: clamp(68px, 17.8vw, 180px);
    height: clamp(68px, 17.8vw, 180px);
    max-height: 180px;
    margin-bottom: 2px;
  }

  .race-strip {
    grid-template-columns: minmax(108px, 1.08fr) minmax(82px, 0.82fr) minmax(58px, 0.5fr) minmax(84px, 0.82fr);
    min-height: 44px;
    padding: 4px 5px;
  }

  .category-logo-slot {
    width: 30px;
    height: 24px;
  }

  .race-strip span {
    display: block;
    font-size: 8px;
  }

  .race-strip strong {
    margin-top: 0;
    font-size: 15px;
  }

  .race-strip > div:not(.clock):not(.weather-card) strong {
    font-size: 12px;
  }

  .race-strip .clock strong {
    font-size: 13px;
  }

  .race-strip .clock:last-child strong {
    font-size: 18px;
  }

  th,
  td {
    padding: 3px 5px;
  }
}

@media (orientation: landscape) and (max-width: 920px), (orientation: landscape) and (hover: none) and (pointer: coarse) {
  html,
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .results-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 18px;
  }

  .event-header {
    display: grid !important;
    flex-basis: clamp(68px, 17.8vw, 180px);
    height: clamp(68px, 17.8vw, 180px);
    max-height: 180px;
    margin: 0 0 2px;
    overflow: visible;
  }

  .event-header img {
    object-fit: contain;
  }

  .topbar {
    flex: 0 0 auto;
    padding-right: 4px;
  }

  .topbar-actions {
    position: static;
    max-width: none;
    justify-content: flex-end;
    pointer-events: auto;
  }

  .race-strip,
  .superpole-card,
  .results-card {
    flex: 0 0 auto;
  }

  .results-card {
    min-height: 0;
  }

  .table-scroll,
  .superpole-scroll {
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .col-lastLap,
  .col-sector1,
  .col-sector2,
  .col-sector3,
  .cell-lastLap,
  .cell-sector1,
  .cell-sector2,
  .cell-sector3 {
    width: 1%;
    min-width: 0;
    padding-right: 4px;
    padding-left: 4px;
    text-align: right;
  }

  .cell-lastLap.has-time-progress,
  .cell-sector1.has-time-progress,
  .cell-sector2.has-time-progress,
  .cell-sector3.has-time-progress {
    min-width: 0;
  }

  .time-progress-cell {
    width: max-content;
    min-width: 0;
    max-width: none;
  }

  .brand {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: clamp(8px, 2vw, 14px);
  }

  .brand .brand-logo {
    flex: 0 0 auto;
    max-width: min(160px, 27vw);
    max-height: 34px;
  }

  .brand strong {
    display: -webkit-box;
    flex: 1 1 auto;
    min-width: 72px;
    max-width: none;
    max-height: 2.1em;
    overflow: hidden;
    color: var(--ink);
    font-size: clamp(13px, 2.6vw, 19px);
    font-weight: 950;
    line-height: 1.05;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-transform: uppercase;
  }
}

@media (hover: none) and (pointer: coarse) {
  tbody tr.status-group-title td {
    height: 15px;
    padding: 1px 8px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }
}

@media (orientation: portrait) and (max-width: 820px) {
  .event-header {
    flex: 0 0 auto;
    height: clamp(68px, 17.8vw, 110px);
    max-height: 110px;
  }

  .event-header img {
    object-fit: contain;
  }

  .orientation-hint {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(3, 12, 30, 0.48);
    pointer-events: none;
  }

  .table-scroll {
    overflow-x: hidden;
  }

  table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .col-category,
  .cell-category,
  .col-subCategory,
  .cell-subCategory,
  .col-totalTime,
  .cell-totalTime,
  .col-lastLap,
  .cell-lastLap,
  .col-sector1,
  .cell-sector1,
  .col-sector2,
  .cell-sector2,
  .col-sector3,
  .cell-sector3,
  .col-bestSector1,
  .cell-bestSector1,
  .col-bestSector2,
  .cell-bestSector2,
  .col-bestSector3,
  .cell-bestSector3,
  .col-positionInter,
  .cell-positionInter,
  .col-positionInterPrevious,
  .cell-positionInterPrevious,
  .col-gapPrevious,
  .cell-gapPrevious,
  .col-status,
  .cell-status {
    display: none;
  }

  .detail-panel {
    grid-template-columns: 1fr;
  }

  .detail-panel .detail-card:nth-child(2) {
    max-height: 150px;
  }
}

@media (orientation: portrait) and (max-width: 480px) {
  .col-bestLap,
  .cell-bestLap {
    display: none;
  }

  .col-gap,
  .cell-gap {
    width: 54px;
  }
}

@media (max-width: 920px), (hover: none) and (pointer: coarse) {
  body.live-results-page > .live-footer {
    width: calc(100vw - 12px);
    margin: 2px auto 6px;
    font-size: 5.5px;
    line-height: 1.25;
    opacity: 0.78;
  }

  .mode-strip,
  body.has-category-filter .mode-strip {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding: 4px 6px;
    min-height: 38px;
    gap: 6px;
  }

  body.has-category-filter .mode-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  body.has-category-filter .mode-strip::after {
    content: "";
    display: block;
  }

  .mode-strip > p {
    display: none;
  }

  .mode-strip > div:not(.category-filter) {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
  }

  .mode-strip > div:not(.category-filter) span {
    font-size: 8px;
  }

  .mode-strip > div:not(.category-filter) strong {
    max-width: min(48vw, 190px);
    margin-top: 2px;
    padding: 4px 9px;
    overflow: hidden;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-category-filter .category-filter {
    display: block;
    grid-column: 2;
    flex: 0 0 auto;
    width: min(34vw, 132px);
    margin: 0;
  }

  body.has-category-filter .category-filter label {
    gap: 2px;
  }

  body.has-category-filter .category-filter-select::after {
    right: 12px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 6px;
  }

  body.has-category-filter .category-filter span {
    font-size: 8px;
  }

  body.has-category-filter .category-filter select {
    width: 100%;
    min-height: 30px;
    padding: 4px 24px 4px 10px;
    font-size: 11px;
    text-align: center;
  }
}

.podium-overlay[hidden] {
  display: none !important;
}

.podium-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 7, 20, 0.76);
  backdrop-filter: blur(6px);
}

.podium-modal {
  position: relative;
  width: min(1120px, calc(100vw - 36px));
}

.podium-close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(3, 15, 38, 0.94);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.podium-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: #06142d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.podium-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 12, 32, 0.76) 0%, rgba(3, 12, 32, 0.1) 38%, rgba(3, 12, 32, 0.56) 100%);
  pointer-events: none;
}

.podium-banner,
.podium-heading,
.podium-places,
.podium-disclaimer,
.podium-powered {
  position: absolute;
  z-index: 1;
}

.podium-places {
  inset: 0;
  pointer-events: none;
}

.podium-banner {
  top: 14px;
  left: 50%;
  width: min(60%, 680px);
  height: 58px;
  transform: translateX(-50%);
  object-fit: contain;
}

.podium-heading {
  top: 82px;
  left: 5%;
  right: 5%;
  display: grid;
  gap: 3px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
}

.podium-heading strong {
  color: #fff;
  font-size: clamp(14px, 1.75vw, 23px);
  font-weight: 950;
}

.podium-heading span {
  color: #ffdf42;
  font-size: clamp(12px, 1.45vw, 19px);
  font-weight: 950;
}

.podium-place {
  position: absolute;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(3, 14, 36, 0.76);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.podium-place strong {
  color: #ffdf42;
  font-family: Impact, "Arial Black", "Rockwell Extra Bold", serif;
  font-size: clamp(13px, 1.68vw, 21px);
  font-weight: 950;
  letter-spacing: 0.03em;
}

.podium-place b {
  overflow: hidden;
  font-size: clamp(11px, 1.32vw, 17px);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-place small {
  color: rgba(221, 230, 245, 0.84);
  font-size: clamp(8px, 0.82vw, 10px);
  font-weight: 800;
  line-height: 1.05;
}

.podium-place span {
  font-size: clamp(9px, 0.95vw, 12px);
  font-weight: 850;
}

.podium-time-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.podium-time-row em {
  color: #ffdf42;
  font-style: normal;
  font-weight: 950;
}

.podium-place-1 {
  top: 40%;
  left: 50%;
  width: 24%;
  z-index: 3;
}

.podium-place-2 {
  top: 50%;
  left: 24%;
  width: 26%;
  z-index: 2;
}

.podium-place-3 {
  top: 53%;
  left: 76%;
  width: 26%;
  z-index: 2;
}

.podium-disclaimer {
  left: 5%;
  right: 5%;
  bottom: 40px;
  margin: 0;
  color: #ff3f58;
  font-size: clamp(10px, 1.25vw, 17px);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.podium-powered {
  left: 50%;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.podium-powered img {
  max-width: 170px;
  max-height: 25px;
  object-fit: contain;
}

.podium-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.podium-actions button {
  width: min(460px, calc(100vw - 48px));
  min-height: 54px;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: #ffdf42;
  color: #06142d;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 950;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

@media (max-width: 820px) {
  .podium-overlay {
    padding: 8px;
    align-items: center;
    overflow-y: auto;
  }

  .podium-modal {
    width: min(calc(100vw - 16px), calc((100vh - 86px) * 16 / 9));
    margin-top: 8px;
  }

  .podium-card {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .podium-banner {
    top: 10px;
    width: 84%;
    height: 42px;
  }

  .podium-heading {
    top: 60px;
  }

  .podium-place {
    gap: 1px;
    padding: 4px 5px;
    border-width: 1px;
    border-radius: 9px;
  }

  .podium-heading strong {
    font-size: clamp(10px, 2.35vw, 16px);
  }

  .podium-heading span {
    font-size: clamp(9px, 2vw, 13px);
  }

  .podium-place strong {
    font-size: clamp(8px, 2.1vw, 13px);
  }

  .podium-place b {
    font-size: clamp(7px, 1.85vw, 11px);
  }

  .podium-place small {
    font-size: clamp(5.5px, 1.35vw, 8px);
    line-height: 1;
  }

  .podium-place span {
    font-size: clamp(5.5px, 1.4vw, 8px);
  }

  .podium-time-row {
    gap: 4px;
  }

  .podium-place-1 {
    top: 38%;
    left: 50%;
    width: 23%;
  }

  .podium-place-2 {
    top: 49%;
    left: 23%;
    width: 25%;
  }

  .podium-place-3 {
    top: 52%;
    left: 77%;
    width: 25%;
  }

  .podium-disclaimer {
    bottom: 54px;
    font-size: 12px;
  }

  .podium-actions {
    padding-bottom: 10px;
  }

  .podium-actions button {
    width: min(420px, calc(100vw - 28px));
    min-height: 46px;
    padding: 11px 20px;
    font-size: 15px;
  }
}
