@font-face {
  font-family: "FormulaGrid";
  src: url("/web/fonts/Formula1-Regular-1.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "FormulaGridBold";
  src: url("/web/fonts/Formula1-Bold_web.ttf") format("truetype");
  font-display: swap;
}

:root {
  --timeline-center-x: 1.5px;
  --timeline-line-width: 3px;
  --page: #000000;
  --content: #15151e;
  --graphite: #29292c;
  --gray: #66666b;
  --text: #ffffff;
  --muted: #d0d0d0;
  --red: #e80000;
  --red-bright: #ef0000;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 68px rgba(0, 0, 0, 0.46);
  --header-height: 82px;
  --strip-height: 92px;
  --content-width: 1220px;
  --news-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(232, 0, 0, 0.19), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.08), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--page);
  background-size: auto, auto, 38px 38px, auto;
  font-family: "FormulaGrid", "Arial Narrow", "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 34px;
  background:
    linear-gradient(90deg, rgba(232, 0, 0, 0.18), transparent 42%),
    rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -1px;
  width: min(540px, 48vw);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-bright));
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: min(380px, 34vw);
  height: 66px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 24px rgba(232, 0, 0, 0.24));
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.nav-link {
  appearance: none;
  position: relative;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "FormulaGrid", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: auto 12px 7px 12px;
  height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(232, 0, 0, 0.45);
  background: linear-gradient(135deg, rgba(232, 0, 0, 0.3), rgba(41, 41, 44, 0.42));
  color: var(--text);
}

.nav-link:hover::before,
.nav-link.is-active::before {
  transform: scaleX(1);
}

.next-race-strip {
  position: sticky;
  top: var(--header-height);
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: var(--strip-height);
  padding: 12px 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(232, 0, 0, 0.24), transparent 42%),
    linear-gradient(180deg, #1d1d27, var(--content));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.next-race-strip__main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.next-race-strip__label {
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-race-strip__title {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.next-race-strip:hover .next-race-strip__title {
  color: var(--text);
}

.next-race-strip__map {
  display: none;
  justify-self: end;
  width: 142px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000000;
  overflow: hidden;
}

.next-race-strip__map.is-visible {
  display: block;
}

.next-race-strip__map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.next-race-strip__time {
  justify-self: end;
  min-width: 178px;
  border: 1px solid rgba(232, 0, 0, 0.78);
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0%, rgba(239, 0, 0, 0.34), transparent 62%), #000000;
  color: var(--text);
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 13px 17px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 0 24px rgba(232, 0, 0, 0.13), 0 10px 26px rgba(0, 0, 0, 0.28);
}

.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 34px 26px 58px;
}

.view {
  display: none;
}

.view.is-active {
  animation: viewIn 0.28s ease both;
  display: block;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-hero,
.news-tools,
.news-layout {
  width: min(var(--news-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

.news-hero {
  margin-bottom: 18px;
}

.news-hero h1 {
  margin: 0;
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  text-transform: uppercase;
}

.news-hero p {
  margin: 9px 0 0;
  color: var(--red-bright);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-tools {
  margin-bottom: 22px;
}

.search-box,
.season-picker {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-box input,
.season-picker select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 48%),
    #000000;
  color: var(--text);
  outline: none;
  padding: 0 18px;
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.86;
}

.search-box input:focus,
.season-picker select:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(232, 0, 0, 0.18);
}

.section-heading {
  margin: 0 0 24px;
}

.section-heading--inline {
  display: flex;
  align-items: end;
  gap: 20px;
  justify-content: space-between;
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h1,
.standings-layout h2,
.schedule-card h3,
.news-card h2,
.news-dialog h2,
.event-dialog h2 {
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
}

.section-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  text-transform: uppercase;
}

.season-picker {
  min-width: 180px;
}

.season-picker select {
  appearance: none;
  padding-right: 56px;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 48%),
    linear-gradient(45deg, transparent 50%, var(--red-bright) 50%),
    linear-gradient(135deg, var(--red-bright) 50%, transparent 50%);
  background-position: 0 0, calc(100% - 34px) 22px, calc(100% - 26px) 22px;
  background-size: auto, 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(280px, 360px);
  gap: 28px;
  align-items: start;
  justify-content: center;
}

.news-feed {
  display: grid;
  gap: 15px;
}

.news-card {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  height: 164px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 52%),
    var(--content);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.news-card:hover {
  border-color: rgba(239, 0, 0, 0.72);
  background:
    linear-gradient(135deg, rgba(232, 0, 0, 0.16), transparent 58%),
    var(--content);
  transform: translateY(-2px);
}

.news-card__image-frame {
  align-self: stretch;
  margin: 13px 0 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--graphite);
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--graphite);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 17px 18px;
}

.news-card time,
.news-dialog time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h2 {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  font-size: clamp(14px, 1.22vw, 17px);
  line-height: 1.16;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.load-more {
  width: 100%;
  min-height: 54px;
  margin-top: 17px;
  border: 1px solid rgba(232, 0, 0, 0.72);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), #820000);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.load-more:disabled {
  cursor: default;
  opacity: 0.45;
}

.news-timeline {
  position: sticky;
  top: calc(var(--header-height) + var(--strip-height) + 22px);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  background: rgba(21, 21, 30, 0.88);
  box-shadow: var(--shadow);
  padding: 18px 0 18px 20px;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-center-x) - (var(--timeline-line-width) / 2));
  top: 0;
  bottom: 0;
  width: var(--timeline-line-width);
  border-radius: 999px;
  background: var(--red-bright);
}

.news-timeline__head {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-item {
  display: grid;
  gap: 5px;
  padding: 0 16px 18px 18px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-center-x) - 20px);
  top: 3px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border: 2px solid var(--red-bright);
  border-radius: 50%;
  background: var(--content);
  box-shadow: 0 0 18px rgba(239, 0, 0, 0.72);
  z-index: 1;
}

.timeline-item time {
  color: var(--gray);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.schedule-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 230px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--content);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  padding: 20px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.schedule-card:hover {
  border-color: rgba(239, 0, 0, 0.72);
  transform: translateY(-2px);
}

.schedule-card.is-next {
  border-color: rgba(239, 0, 0, 0.9);
  background:
    linear-gradient(135deg, rgba(232, 0, 0, 0.34), rgba(41, 41, 44, 0.36) 48%),
    var(--content);
}

.schedule-card__round {
  color: var(--red-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-card h3 {
  margin: 14px 0 12px;
  font-size: 20px;
  line-height: 1.08;
  text-transform: uppercase;
}

.schedule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.schedule-card__next {
  align-self: end;
  min-height: 58px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  padding-top: 14px;
}

.standings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
}

.standings-layout h2 {
  margin: 0 0 14px;
  font-size: 26px;
  text-transform: uppercase;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--content);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "FormulaGrid", sans-serif;
  text-align: left;
}

th {
  background: #000000;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  padding: 18px;
}

.news-dialog,
.event-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 0;
  background: var(--content);
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
  overflow: auto;
}

.news-dialog::backdrop,
.event-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.news-dialog img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: var(--graphite);
}

.news-dialog__body {
  padding: 26px;
}

.news-dialog h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
}

.news-dialog p {
  color: var(--muted);
  line-height: 1.68;
  white-space: pre-line;
}

.event-dialog {
  width: min(1080px, calc(100vw - 28px));
}

.event-dialog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  padding: 30px;
}

.event-dialog h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.event-dialog__circuit {
  margin: 0 0 22px;
  color: var(--muted);
}

.event-dialog__side img {
  width: 100%;
  min-height: 220px;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #000000;
  object-fit: contain;
  padding: 14px;
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  padding: 13px 15px;
}

.session-item strong {
  color: var(--text);
  text-transform: uppercase;
}

.session-item time {
  color: var(--red-bright);
  font-weight: 900;
  white-space: nowrap;
}

.track-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.track-stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
}

.track-stat span {
  display: block;
  color: var(--gray);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--text);
  cursor: pointer;
}

.dialog-close span,
.dialog-close span::before {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  content: "";
}

.dialog-close span {
  transform: rotate(45deg);
}

.dialog-close span::before {
  transform: rotate(90deg);
}

.dialog-close:hover {
  border-color: rgba(239, 0, 0, 0.75);
  background: rgba(232, 0, 0, 0.88);
}

.footer-note {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 26px 42px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1020px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 18px;
  }

  .brand__logo {
    width: min(360px, 86vw);
  }

  .main-nav {
    justify-content: flex-start;
  }

  .next-race-strip {
    top: 136px;
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 13px 18px;
  }

  .next-race-strip__map {
    display: none !important;
  }

  .news-layout,
  .standings-layout,
  .event-dialog__grid {
    grid-template-columns: 1fr;
  }

  .news-timeline {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand__logo {
    height: 58px;
  }

  .nav-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .next-race-strip {
    top: 144px;
    grid-template-columns: 1fr;
  }

  .site-main {
    padding: 26px 16px 42px;
  }

  .section-heading--inline {
    display: grid;
  }

  .news-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .news-card__image-frame {
    height: 188px;
    margin: 12px 12px 0;
  }

  .track-stats,
  .session-item {
    grid-template-columns: 1fr;
  }
}


.season-picker select option {
  background: #15151e;
  color: #ffffff;
}

.schedule-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-card__flag {
  flex: 0 0 auto;
  width: 42px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #000000;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}

.session-item strong {
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-weight: 900;
}

.event-dialog__side img,
.next-race-strip__map img {
  filter: none;
  mix-blend-mode: normal;
}

.track-map--invert {
  filter: none;
}


.schedule-card__session {
  display: block;
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-card__session-time {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-weight: 900;
}



.schedule-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-card__date {
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.results-list {
  display: grid;
  gap: 12px;
}

.race-card {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 96px minmax(230px, 1.35fr) minmax(190px, 1fr) 96px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 45%),
    var(--content);
  color: var(--text);
  cursor: pointer;
  padding: 16px 18px;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.race-card:hover {
  border-color: rgba(239, 0, 0, 0.72);
  background:
    linear-gradient(135deg, rgba(232, 0, 0, 0.16), transparent 58%),
    var(--content);
  transform: translateY(-2px);
}

.race-card__country,
.race-card__winner,
.race-card__team,
.race-result-row__driver,
.race-result-row__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.race-card__country img {
  width: 42px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
}

.race-card__country span,
.race-card__team strong,
.race-card__winner strong,
.standing-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-card__date {
  color: var(--red-bright);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-card small,
.race-result-row__laps small {
  display: block;
  color: var(--gray);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-avatar,
.team-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.driver-avatar {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.2), transparent 42%), #050506;
}

.team-badge {
  border: 1px solid color-mix(in srgb, var(--team-color) 68%, white 8%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 74%, black 26%), #050506 72%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--team-color) 24%, transparent);
}

.race-card__laps strong {
  color: var(--text);
  font-size: 20px;
}

.results-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 0;
  background: var(--content);
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
  overflow: auto;
}

.results-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.results-dialog__body {
  padding: 30px;
}

.results-dialog h2 {
  margin: 0 0 22px;
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.race-results-list {
  display: grid;
  gap: 9px;
}

.race-result-row {
  display: grid;
  grid-template-columns: 54px minmax(190px, 1.3fr) minmax(170px, 1fr) 92px 88px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px 12px;
}

.race-result-row__position {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #000000;
  color: var(--red-bright);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-weight: 900;
}

.race-result-row__points,
.standing-row__points {
  justify-self: end;
  min-width: 68px;
  border: 1px solid rgba(239, 0, 0, 0.62);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 0, 0, 0.92), #650000);
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.standings-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000000;
  padding: 6px;
}

.standings-tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 18px;
  text-transform: uppercase;
}

.standings-tab.is-active {
  border-color: rgba(239, 0, 0, 0.72);
  background: linear-gradient(135deg, var(--red), #740000);
  color: var(--text);
}

.standings-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}

.standings-list {
  display: grid;
  gap: 8px;
}

.standing-row {
  display: grid;
  grid-template-columns: 48px 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 44%),
    var(--content);
  padding: 11px 12px;
}

.standing-row__position {
  color: var(--red-bright);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.standing-row__team-logo .team-badge {
  width: 36px;
  height: 36px;
  font-size: 10px;
}


.ranking-card {
  position: sticky;
  top: calc(var(--header-height) + var(--strip-height) + 22px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #050810;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ranking-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 0;
}

.ranking-card h2 {
  margin: 0;
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 20px;
}

.ranking-card__head span {
  color: var(--gray);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-chart {
  position: relative;
  min-height: 320px;
  padding: 10px 10px 16px;
}

.ranking-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid text,
.chart-name {
  fill: var(--muted);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 13px;
}

.chart-round line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.chart-round circle {
  fill: var(--red-bright);
  stroke: #ffffff;
  stroke-width: 2;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: none;
  max-width: 360px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #151b29;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  padding: 12px;
  pointer-events: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.chart-tooltip.is-visible {
  display: block;
}

.footer-note {
  font-family: "Segoe UI", Arial, sans-serif;
}

@media (max-width: 1020px) {
  .race-card,
  .race-result-row,
  .standings-board {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    position: static;
  }
}


.list-header {
  display: grid;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--gray);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.list-header--results {
  grid-template-columns: minmax(170px, 1fr) 96px minmax(230px, 1.35fr) minmax(190px, 1fr) 96px;
  padding: 0 18px;
}

.list-header--standings {
  grid-template-columns: 48px 52px minmax(0, 1fr) auto;
  padding: 0 12px;
}

.list-header--race-dialog {
  grid-template-columns: 54px minmax(190px, 1.3fr) minmax(170px, 1fr) 92px 88px;
  margin: 0 0 4px;
  padding: 0 12px;
}

.standings-panel {
  display: grid;
  gap: 8px;
}

.driver-avatar--image,
.team-badge--image {
  overflow: hidden;
  background: #000000;
}

.driver-avatar img,
.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-badge--image img {
  object-fit: contain;
  padding: 5px;
}

.race-card__winner > strong,
.race-card__team > strong {
  min-width: 0;
}

@media (max-width: 1020px) {
  .list-header--results,
  .list-header--standings,
  .list-header--race-dialog {
    display: none;
  }
}

/* Formula Grid refinements: plain media, centered close icons, chart hover states. */
.dialog-close {
  line-height: 0;
}

.dialog-close span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  transform: rotate(45deg);
  transform-origin: center;
}

.dialog-close span::before {
  position: absolute;
  inset: 0;
  transform: rotate(90deg);
  transform-origin: center;
}

.team-logo {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.team-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-logo--fallback {
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #050506;
  color: var(--text);
  font-family: var(--font-display);
}

.standing-row__team-logo .team-logo,
.race-result-row .team-logo,
.result-card .team-logo {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.chart-tooltip-row .team-logo {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.driver-avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-card__session-time,
.session-item time {
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  letter-spacing: -0.02em;
}

.list-header--race-dialog span:last-child,
.list-header--results span:last-child,
.race-result-row__points {
  text-align: center;
  justify-self: center;
}

.race-result-row__laps {
  font-weight: 900;
}

.chart-hover-line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.chart-hover-line.is-visible {
  opacity: 1;
}

.chart-hover-zone {
  cursor: crosshair;
}

.chart-point {
  transition: fill 0.12s ease, stroke-width 0.12s ease;
  pointer-events: none;
}

.chart-point.is-active {
  fill: var(--red-bright);
  stroke-width: 2;
}

.chart-flag {
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45));
}

.chart-tooltip {
  min-width: 300px;
  max-width: 380px;
  padding: 0;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
}

.chart-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(232, 0, 0, 0.16);
  font-weight: 800;
}

.chart-tooltip-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart-tooltip-head img {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.chart-tooltip-table {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
}

.chart-tooltip-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 2px;
}

.chart-tooltip-row span:not(.team-logo) {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-tooltip-row strong {
  color: var(--text);
  font-weight: 900;
}

/* Formula Grid ranking chart scroll refinements. */
.ranking-card {
  position: static;
  overflow: visible;
}

.ranking-chart {
  max-height: calc(100vh - 190px);
  overflow: auto;
  scrollbar-color: rgba(232, 0, 0, 0.7) rgba(255, 255, 255, 0.08);
}

.ranking-chart svg {
  min-width: 920px;
}

.chart-tooltip {
  position: sticky;
  top: 0;
  left: auto;
  z-index: 5;
  width: min(420px, 100%);
  margin: 0 0 12px 0;
}

.team-logo img {
  filter: none;
  mix-blend-mode: normal;
}

/* Formula Grid result avatars and ranking chart hover v2. */
.race-card__winner .driver-avatar,
.race-result-row__driver .driver-avatar {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.race-card__winner .driver-avatar img,
.race-result-row__driver .driver-avatar img {
  object-fit: contain;
}

.race-card__laps,
.list-header--results span:last-child,
.race-result-row__laps,
.list-header--race-dialog span:nth-child(4) {
  justify-self: center;
  text-align: center;
}

.team-logo img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.28));
}

.ranking-chart {
  overflow-x: hidden;
  overflow-y: auto;
}

.ranking-chart svg {
  min-width: 0;
}

.chart-tooltip {
  display: block;
  visibility: hidden;
  opacity: 0;
  min-height: 142px;
  transition: opacity 0.12s ease;
}

.chart-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
}

.chart-stage-line {
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1;
  transition: stroke-width 0.12s ease, stroke 0.12s ease;
  pointer-events: none;
}

.chart-stage-line.is-active {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 2.5;
}

.chart-flag,
.chart-x-axis {
  display: none;
}

/* Formula Grid avatar/logo/tooltip adjustments v3. */
.race-card__winner .driver-avatar,
.race-result-row__driver .driver-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.18), transparent 42%), #050506;
  box-shadow: none;
  overflow: hidden;
}

.race-card__winner .driver-avatar img,
.race-result-row__driver .driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-logo {
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  padding: 5px;
}

.chart-tooltip-row .team-logo {
  border-radius: 7px;
  padding: 3px;
}

.team-logo img {
  filter: none;
  mix-blend-mode: normal;
}

.ranking-chart {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 10px;
}

.ranking-chart svg {
  min-width: 0;
}

.ranking-chart .chart-tooltip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 8;
  display: block;
  visibility: hidden;
  opacity: 0;
  width: min(420px, calc(100% - 24px));
  min-height: 0;
  margin: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.ranking-chart .chart-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Formula Grid media cards and chart spacing v4. */
.team-logo,
.race-card__winner .driver-avatar,
.race-result-row__driver .driver-avatar {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.race-card__winner .driver-avatar,
.race-result-row__driver .driver-avatar {
  width: 44px;
  height: 44px;
  padding: 4px;
  overflow: hidden;
}

.race-card__winner .driver-avatar img,
.race-result-row__driver .driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ranking-card__head {
  padding-bottom: 12px;
}

.ranking-chart {
  padding-top: 18px;
}

.ranking-chart .chart-tooltip {
  width: min(336px, calc(100% - 24px));
  min-width: 260px;
}

/* Formula Grid chart tooltip positioning v5. */
.ranking-chart .chart-tooltip {
  width: min(269px, calc(100% - 24px));
  min-width: 216px;
}

.chart-tooltip-head {
  gap: 10px;
  padding: 10px 12px;
}

.chart-tooltip-table {
  padding: 8px 10px 10px;
}

.chart-tooltip-row {
  gap: 8px;
  padding: 4px 2px;
}

/* Formula Grid custom season dropdown v7. */
.season-picker {
  position: relative;
}

.season-picker__native {
  position: absolute;
  inset: auto 0 0 auto;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.season-picker__button {
  position: relative;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%),
    #000000;
  color: var(--text);
  cursor: pointer;
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 52px 0 18px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.season-picker__button::after {
  content: "";
  position: absolute;
  right: 21px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--red-bright);
  border-bottom: 2px solid var(--red-bright);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.season-picker.is-open .season-picker__button {
  border-color: rgba(239, 0, 0, 0.8);
  box-shadow: 0 0 0 3px rgba(232, 0, 0, 0.16), inset 0 0 24px rgba(232, 0, 0, 0.12);
}

.season-picker.is-open .season-picker__button::after {
  transform: translateY(-25%) rotate(225deg);
}

.season-picker__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 30;
  display: none;
  width: 100%;
  max-height: 286px;
  overflow-y: auto;
  border: 1px solid rgba(239, 0, 0, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(232, 0, 0, 0.16), transparent 46%),
    #09090d;
  padding: 7px;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.58);
  scrollbar-color: rgba(239, 0, 0, 0.82) rgba(255, 255, 255, 0.08);
}

.season-picker.is-open .season-picker__menu {
  display: grid;
  gap: 5px;
}

.season-picker__option {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 12px;
  text-align: left;
}

.season-picker__option:hover,
.season-picker__option.is-active {
  border-color: rgba(239, 0, 0, 0.62);
  background: linear-gradient(135deg, rgba(232, 0, 0, 0.82), rgba(105, 0, 0, 0.88));
  color: var(--text);
}

/* Formula Grid final UI layer v20. */
body {
  background:
    radial-gradient(circle at 0% 18%, rgba(232, 0, 0, 0.20), transparent 32rem),
    radial-gradient(circle at 100% 12%, rgba(255, 255, 255, 0.075), transparent 28rem),
    linear-gradient(180deg, #050506 0%, #000000 42%, #050506 100%) !important;
  background-attachment: fixed;
}

.site-main {
  background: transparent !important;
}

.site-header {
  background: rgba(7, 7, 11, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26) !important;
}

.site-header::before,
.site-header::after,
.main-nav::before,
.main-nav::after,
.nav-link::before,
.nav-link::after,
.nav-link:hover::before,
.nav-link:hover::after,
.nav-link.is-active::before,
.nav-link.is-active::after {
  content: none !important;
  display: none !important;
}

.brand__logo {
  width: min(380px, 34vw);
  height: 66px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 24px rgba(232, 0, 0, 0.24));
}

.main-nav {
  display: inline-flex !important;
  justify-self: end !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: #000000 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active,
.nav-link.is-active,
.nav-link.is-active:hover,
.nav-link.is-active:focus,
.nav-link.is-active:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transform: none !important;
  translate: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.nav-link:hover:not(.is-active),
.nav-link:focus-visible:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
}

.nav-link.is-active,
.nav-link.is-active:hover,
.nav-link.is-active:focus,
.nav-link.is-active:active {
  border-color: rgba(239, 0, 0, 0.72) !important;
  background: linear-gradient(135deg, var(--red), #740000) !important;
  color: var(--text) !important;
}

.next-race-strip {
  background: rgba(16, 16, 22, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.30);
}

.next-race-strip__gp,
.next-race-strip__session {
  color: var(--text);
  font-family: "FormulaGridBold", "FormulaGrid", sans-serif;
  font-weight: 900;
}

.next-race-strip__map {
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: 1px solid rgba(232, 0, 0, 0.24);
  outline-offset: 3px;
  border-radius: 18px;
  background: #030306;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.34);
}

.news-heading,
.news-tools,
.news-layout {
  box-sizing: border-box;
  width: min(var(--news-width), 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.news-heading {
  margin-bottom: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.news-heading .section-kicker {
  margin: 0 0 8px;
  color: #e80000;
}

.news-heading h1 {
  margin: 0;
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.98;
  text-transform: uppercase;
}

.news-card {
  display: grid !important;
  grid-template-columns: 218px minmax(0, 1fr) !important;
  align-items: center !important;
  height: 164px !important;
  min-height: 0 !important;
  overflow: hidden;
}

.news-card > .news-card__image-frame {
  display: block !important;
  align-self: center !important;
  grid-row: auto !important;
  width: auto !important;
  height: 138px !important;
  min-height: 0 !important;
  margin: 0 0 0 13px !important;
  border-radius: 16px;
  overflow: hidden;
}

.news-card > .news-card__image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 17px 18px !important;
}

.news-card__body .news-card__image-frame {
  display: none !important;
}

.news-dialog {
  width: min(1040px, calc(100vw - 28px));
  background: radial-gradient(circle at 18% 0%, rgba(232, 0, 0, 0.20), transparent 27rem), #0b0b10;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 0, 0, 0.85) rgba(21, 21, 30, 0.96);
}

.news-dialog::-webkit-scrollbar {
  width: 10px;
}

.news-dialog::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(21, 21, 30, 0.96);
}

.news-dialog::-webkit-scrollbar-thumb {
  border: 2px solid rgba(21, 21, 30, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, #ef0000, #7a0000);
}

.news-article {
  --article-width: min(720px, calc(100% - 72px));
  display: block;
}

.news-dialog .news-article__header,
.news-article__hero,
.news-dialog .news-dialog__body {
  box-sizing: border-box !important;
  width: var(--article-width) !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.news-dialog .news-article__header {
  padding-top: 30px !important;
  padding-bottom: 0 !important;
}

.news-article__hero {
  height: auto !important;
  max-height: none !important;
  margin-top: 16px !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px !important;
  background: #101016 !important;
  box-shadow: none !important;
}

.news-dialog .news-article__hero img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.news-dialog .news-article__header--title {
  padding-top: 0 !important;
}

.news-dialog .news-article__header--title h2 {
  width: 100% !important;
  max-width: none !important;
  margin: 18px 0 0 !important;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
  text-wrap: balance;
}

.news-dialog .news-dialog__body {
  padding-top: 24px !important;
  padding-bottom: 42px !important;
}

.news-dialog__summary {
  display: grid;
  gap: 18px;
}

.news-dialog__lead {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-left: 4px solid #e80000 !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, rgba(232, 0, 0, 0.16), rgba(255, 255, 255, 0.035)), rgba(21, 21, 30, 0.82) !important;
  color: #ffffff !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.48;
  padding: 18px 20px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.news-dialog__paragraph {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #e7e7ea;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.76;
  padding: 18px 0;
  white-space: normal;
}

.news-dialog__paragraph:last-child {
  border-bottom: 0;
}

.news-dialog__quote {
  margin: 18px 0;
  border: 0;
  border-left: 4px solid var(--red-bright);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  padding: 0 0 0 18px;
}

@media (max-width: 760px) {
  .main-nav {
    justify-self: stretch !important;
    overflow-x: auto !important;
  }

  .nav-link {
    white-space: nowrap !important;
  }
}

@media (max-width: 680px) {
  .brand__logo {
    width: min(360px, 86vw);
    height: 58px;
  }

  .news-card {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .news-card > .news-card__image-frame {
    height: 188px !important;
    margin: 12px 12px 0 !important;
  }

  .news-article {
    --article-width: calc(100% - 28px);
  }

  .news-dialog::-webkit-scrollbar {
    width: 8px;
  }

  .news-dialog .news-article__header h2 {
    font-size: 24px;
  }

  .news-dialog__paragraph {
    font-size: 16px;
  }
}


/* Formula Grid original media rendering fix. */
.team-logo,
.race-card__winner .driver-avatar,
.race-result-row__driver .driver-avatar {
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.30), transparent 46%),
    linear-gradient(145deg, rgba(94, 94, 104, 0.74), rgba(42, 42, 50, 0.82)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
  padding: 5px !important;
}

.team-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.race-card__winner .driver-avatar,
.race-result-row__driver .driver-avatar {
  border-radius: 10px !important;
}

.race-card__winner .driver-avatar img,
.race-result-row__driver .driver-avatar img,
.driver-avatar--image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 7px !important;
  background: transparent !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.event-dialog__side img,
.next-race-strip__map img,
.track-map--invert {
  filter: none !important;
  mix-blend-mode: normal !important;
}
