/* MotoGP 2026 — f1vip-inspired dark editorial skin.
   Palette and type follow f1experiences.com; the red is kept only for
   MotoGP brand marks, everything else is ink + gold. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --ink: #05090d;
  --panel: #0a1017;
  --panel-2: #0d141d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --mist: #a8a8a8;
  --gold: #c6a15b;
  --gold-light: #e2c893;
  --red: #e10600;
  --shell: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.i18n-wait body { visibility: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .shell { padding-inline: 40px; } }

/* ---------- type ---------- */
.overline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.overline-mist {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}
.display {
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 200;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.headline {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.body-lg {
  font-size: 16px;
  line-height: 1.75;
  color: #c9c9c9;
  font-weight: 300;
}
@media (min-width: 768px) { .body-lg { font-size: 17px; } }
.tnum { font-variant-numeric: tabular-nums; }
.hairline { border-bottom: 1px solid var(--line); }

/* ---------- header ---------- */
#hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}
#hdr[data-solid="true"] {
  background: rgba(5, 9, 13, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
@media (min-width: 768px) { .hdr-in { height: 80px; } }

.brand { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand-mark {
  width: 5px; height: 5px; margin-bottom: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  transition: transform 0.7s var(--ease);
  flex: 0 0 auto;
}
.brand:hover .brand-mark { transform: rotate(135deg); }
.brand-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
@media (min-width: 768px) { .brand-name { font-size: 15px; letter-spacing: 0.5em; } }
.brand-sub {
  display: none;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--gold);
}
@media (min-width: 640px) { .brand-sub { display: inline; } }

.nav { display: none; align-items: center; gap: 34px; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.hdr-right { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.lang-btn:hover { border-color: rgba(198, 161, 91, 0.5); color: var(--gold); }
.lang-btn svg { flex: 0 0 auto; }
.lang-menu {
  position: absolute;
  right: 0; top: 48px;
  z-index: 70;
  min-width: 178px;
  max-height: min(68vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(10, 16, 23, 0.98);
  border: 1px solid var(--line);
  padding: 6px 0;
  display: none;
}
.lang[data-open="true"] .lang-menu { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s;
}
.lang-menu button:hover { color: var(--gold-light); }
.lang-menu button[aria-selected="true"] { color: var(--gold); }

/* Arabic (and any RTL locale): mirror the floating menu and numeric cells */
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-menu button { text-align: right; }
html[dir="rtl"] .sx-v, html[dir="rtl"] .rc-val { text-align: left; }
html[dir="rtl"] .flt { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .flt:first-child { border-right: 0; padding-left: 0; }
html[dir="rtl"] .flt:last-child { padding-right: 0; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  color: #fff;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; width: 15px; height: 1px; background: currentColor; }
.burger span + span { margin-top: 4px; }

.drawer {
  display: none;
  background: rgba(5, 9, 13, 0.98);
  border-top: 1px solid var(--line);
}
.drawer[data-open="true"] { display: block; }
@media (min-width: 1000px) { .drawer { display: none !important; } }
.drawer nav { display: flex; flex-direction: column; padding: 10px 20px 22px; }
.drawer nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.drawer .drawer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 4px;
}
.drawer .drawer-lang button {
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.drawer .drawer-lang button[aria-selected="true"] {
  border-color: rgba(198, 161, 91, 0.5);
  color: var(--gold);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 30px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 500; }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { border: 1px solid var(--line-strong); color: #fff; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(5, 9, 13, 0.28) 46%, rgba(5, 9, 13, 0.34) 100%),
    linear-gradient(to right, rgba(5, 9, 13, 0.72), transparent 62%);
}
.hero-in {
  position: relative;
  padding-top: 140px;
  padding-bottom: 84px;
}
@media (min-width: 768px) { .hero-in { padding-bottom: 96px; } }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.hero-tag::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
}
.hero h1 { margin-top: 26px; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .body-lg { margin-top: 30px; max-width: 560px; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* next strip */
.next-strip {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 13, 0.55);
  backdrop-filter: blur(6px);
}
.next-in {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 22px;
}
@media (min-width: 860px) {
  .next-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
}
.next-name {
  margin-top: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  max-width: 100%;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
}
.next-name:hover { color: var(--gold-light); }
.next-name b { font-weight: 400; }
.next-name .arr { color: var(--gold); transition: transform 0.4s var(--ease); }
.next-name:hover .arr { transform: translateX(5px); }
.next-meta { margin-top: 8px; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--mist); }

.cd { flex: 0 0 auto; }
.cd-cap { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mist); }
.cd-row { display: flex; gap: 18px; margin-top: 10px; }
.cd-b { text-align: center; min-width: 44px; }
.cd-v { display: block; font-size: 26px; font-weight: 200; line-height: 1; color: var(--gold-light); }
.cd-l { display: block; margin-top: 7px; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }

/* ---------- sections ---------- */
.section { margin-top: 96px; }
@media (min-width: 768px) { .section { margin-top: 150px; } }
.section-first { margin-top: 54px; }
@media (min-width: 768px) { .section-first { margin-top: 74px; } }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 30px; }
}
.section-head h2 { margin-top: 14px; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.section-link .arr { transition: transform 0.4s var(--ease); }
.section-link:hover .arr { transform: translateX(6px); }

/* stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 54px;
}
@media (min-width: 800px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--panel);
  padding: 26px 24px 22px;
}
.stat b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 200;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- calendar cards ---------- */
.race-grid {
  display: grid;
  gap: 44px 30px;
  margin-top: 44px;
}
@media (min-width: 760px) { .race-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .race-grid { grid-template-columns: repeat(3, 1fr); } }

.race-card { position: relative; }
.race-card a { display: block; }
.race-winner { margin-top: 10px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.race-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.race-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  will-change: transform;
}
.race-card a:hover .race-media img { transform: scale(1.03); }
.race-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 13, 0.62), transparent 58%);
  pointer-events: none;
}
.race-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  transition: border-color 0.6s var(--ease);
  pointer-events: none;
}
.race-card a:hover .race-frame { border-color: rgba(198, 161, 91, 0.32); }
.race-round {
  position: absolute;
  left: 16px; top: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}
.race-flag {
  position: absolute;
  right: 16px; top: 13px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.race-body { padding: 16px 2px 0; display: flex; gap: 16px; justify-content: space-between; }
.race-body > div:first-child { flex: 1 1 auto; min-width: 0; }
.race-title {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #fff;
}
.race-card a:hover .race-title { color: var(--gold-light); }
.race-sub {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}
.race-side { flex: 0 0 auto; text-align: right; }
.race-date {
  font-size: 13px;
  color: var(--gold-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--mist);
  border-radius: 50%;
}
.chip-done::before { background: var(--gold); }
.chip-live::before { background: var(--red); }
.chip-live { color: var(--gold-light); border-color: rgba(198, 161, 91, 0.35); }

/* ---------- calendar grid view ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 40px;
}
@media (min-width: 620px) { .cal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .cal-grid { grid-template-columns: repeat(4, 1fr); } }

.cal-card {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.cal-in { position: absolute; inset: 0; display: block; }
.cal-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.05) brightness(1.12);
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease);
  will-change: transform;
}
.cal-card.is-done .cal-bg { opacity: 0.96; filter: saturate(1) brightness(1.08); }
.cal-in:hover .cal-bg { transform: scale(1.04); opacity: 1; }
.cal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 11, 0) 0%, rgba(6, 8, 11, 0.15) 46%, rgba(6, 8, 11, 0.78) 100%);
  pointer-events: none;
}
.cal-flag {
  position: absolute;
  left: 14px; top: 14px; z-index: 2;
  width: 22px; height: 15px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.cal-fl {
  position: absolute;
  left: 14px; top: 12px; z-index: 2;
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.cal-chip {
  position: absolute;
  right: 0; top: 0; z-index: 2;
  padding: 7px 16px 7px 20px;
  background: rgba(10, 12, 16, 0.92);
  border-left: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}
.cal-chip.is-next { background: var(--gold); color: #0a0a0c; }
.cal-chip.is-upcoming { color: var(--mist); }
.cal-body {
  position: absolute;
  left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.cal-date {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}
.cal-region {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: #fff;
  text-transform: uppercase;
}
.cal-region b { font-size: 11px; font-weight: 400; letter-spacing: 0.16em; color: var(--gold); }
.cal-card.is-done .cal-region { color: rgba(255, 255, 255, 0.74); }
.cal-gp {
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--mist);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cal-card.is-next { border-color: rgba(198, 161, 91, 0.4); }
@media (max-width: 620px) {
  .cal-grid { gap: 10px; }
  .cal-card { aspect-ratio: 16 / 9; }
  .cal-region { font-size: 17px; }
}

/* ---------- tables ---------- */
.table-wrap { margin-top: 40px; overflow-x: auto; }
.tbl { min-width: 640px; }
.tbl th {
  padding: 0 12px 12px;
  text-align: left;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.tbl td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 300;
  vertical-align: middle;
}
.tbl tbody tr { transition: background-color 0.25s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .pos {
  width: 58px;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.tbl tr[data-podium="1"] .pos { color: var(--gold); }
.tbl .who { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.tbl .no {
  flex: 0 0 auto;
  min-width: 30px;
  font-size: 10px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.tbl .who b { font-weight: 400; color: #fff; }
.tbl .team { color: var(--mist); }
.tbl .pts { color: var(--gold-light); font-size: 14px; }
.tbl .cc { color: var(--mist); font-size: 10px; letter-spacing: 0.16em; }
.tbl .dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  background: var(--c, var(--gold));
  transform: rotate(45deg);
}
.tbl td b { font-weight: 400; color: #fff; }

/* ---------- results ---------- */
.res-grid { display: grid; gap: 30px; margin-top: 44px; }
@media (min-width: 1000px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
.res-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px 24px 10px;
  scroll-margin-top: 110px;
}
.res-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.res-card-head h3 { font-size: 14px; font-weight: 400; line-height: 1.45; }
.res-card-head .rno { flex: 0 0 auto; font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.res-card-sub {
  margin-top: 8px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.res-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.res-row:last-child { border-bottom: 0; }
.res-row .p { color: var(--mist); font-size: 11px; font-variant-numeric: tabular-nums; }
.res-row .r { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #fff; }
.res-row .rt { display: flex; flex-direction: column; min-width: 0; }
.res-row .r small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.06em; color: var(--mist); }
.res-row .rav { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #191b1e; }
.res-row .rav img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(2.6); transform-origin: 50% 4%; }
.res-row .rav.av-x { background: #1d2025; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: #8b8d92; }
.res-row .t { font-size: 11px; color: var(--mist); white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-row.is-p1 .r { color: var(--gold-light); }
.res-row.is-dnf .p, .res-row.is-dnf .t { opacity: 0.7; }
.res-row.is-dnf .r { color: var(--mist); }
.res-row.is-more { grid-template-columns: 1fr; color: var(--mist); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.res-sub {
  margin: 18px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.latest .res-sub { margin-top: 8px; border-top: 0; padding-top: 12px; }

.latest {
  margin-top: 40px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 28px 24px 12px;
}
@media (min-width: 768px) { .latest { padding: 38px 38px 14px; } }
.latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.latest-head h3 { font-size: 15px; font-weight: 400; }
.latest-head .overline { display: block; margin-bottom: 9px; }
.latest-head .date { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); }
.latest-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.latest-row:last-child { border-bottom: 0; }
.latest-row .p { color: var(--gold); font-size: 12px; font-variant-numeric: tabular-nums; }
.latest-row .r { font-size: 14px; }
.latest-row .r small { margin-left: 10px; font-size: 10px; color: var(--mist); letter-spacing: 0.05em; }
.latest-row .t { font-size: 11px; color: var(--mist); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .latest-row .r small { display: block; margin-left: 0; margin-top: 3px; }
}

/* ---------- riders / teams ---------- */
.team-grid { display: grid; gap: 34px; margin-top: 46px; }
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.team-bike {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(120% 80% at 50% 0%, var(--panel-2), var(--ink) 78%);
  overflow: hidden;
}
.team-bike img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6% 10% 0; }
.team-stripe { height: 3px; background: var(--team, var(--gold)); }
.team-info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.team-name { font-size: 13px; font-weight: 400; line-height: 1.45; }
.team-bike-name { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); }
.team-riders { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.team-rider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.team-rider img, .team-rider .ph {
  width: 40px; height: 48px;
  object-fit: cover;
  object-position: 50% 0;
  background: var(--panel-2);
  flex: 0 0 auto;
}
.team-rider .rn { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; min-width: 26px; font-variant-numeric: tabular-nums; }
.team-rider .nm { font-size: 12.5px; line-height: 1.35; }
.team-rider .cc { display: block; margin-top: 2px; font-size: 9px; letter-spacing: 0.18em; color: var(--mist); text-transform: uppercase; }

/* top riders strip on home */
.rider-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
@media (min-width: 900px) { .rider-strip { grid-template-columns: repeat(4, 1fr); } }
.rider-cell { background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rider-cell .rk { font-size: 10px; letter-spacing: 0.24em; color: var(--gold); }
.rider-cell .rname { font-size: 14px; line-height: 1.35; }
.rider-cell .rteam { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.rider-cell .rpts { margin-top: auto; font-size: 22px; font-weight: 200; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.rider-cell .rpts span { font-size: 9px; letter-spacing: 0.2em; color: var(--mist); margin-left: 6px; }

/* ---------- footer ---------- */
.ftr { margin-top: 120px; border-top: 1px solid var(--line); padding-block: 50px 42px; }
.ftr-in { display: flex; flex-direction: column; gap: 34px; }
@media (min-width: 860px) { .ftr-in { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.ftr .brand-name { font-size: 12px; letter-spacing: 0.34em; }
.ftr-note { margin-top: 16px; max-width: 420px; font-size: 11.5px; line-height: 1.8; color: var(--mist); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 24px; }
.ftr-links a {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.ftr-links a:hover { color: var(--gold); }
.ftr-copy { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.35); }

/* ---------- page masthead ---------- */
.masthead { padding-top: 128px; padding-bottom: 46px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 12% 0%, #0e1721 0%, var(--ink) 62%); }
@media (min-width: 768px) { .masthead { padding-top: 160px; padding-bottom: 62px; } }
.masthead h1 { margin-top: 20px; }
.masthead .body-lg { margin-top: 24px; max-width: 620px; }
.masthead .kicker { display: flex; align-items: center; gap: 14px; }
.masthead .kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }

/* ---------- page chrome: results / standings / riders ---------- */
.pg-top { padding-top: 104px; padding-bottom: 0; background: var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .pg-top { padding-top: 128px; } }
.pg-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; }
.pg-tabs { display: flex; align-items: center; gap: 30px; margin-top: 24px; flex-wrap: wrap; }
.pg-tab { position: relative; padding: 6px 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #c9c9c9; }
a.pg-tab:hover, button.pg-tab:hover { color: #fff; }
.pg-tab.is-on { color: #fff; }
.pg-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; }
.pg-tab.is-off { color: #545454; cursor: default; }

.flt-bar { background: #08090b; border-bottom: 1px solid var(--line); }
.flt-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flt-in.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flt { position: relative; padding: 11px 16px 12px; border-left: 1px solid var(--line); min-width: 0; }
.flt:first-child { border-left: 0; padding-left: 0; }
.flt:last-child { padding-right: 0; }
.flt-l { display: block; font-size: 10px; letter-spacing: 0.1em; color: #8c8c8c; margin-bottom: 2px; }
.flt-v { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #fff; min-width: 0; }
.flt-v::after { content: ""; width: 6px; height: 6px; flex: 0 0 auto; margin-left: auto; border-right: 1px solid #a5a5a5; border-bottom: 1px solid #a5a5a5; transform: rotate(45deg) translateY(-2px); }
.flt-s { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; padding: 0 4px 0 0; cursor: pointer; text-overflow: ellipsis; }
.flt-s option { background: #101010; color: #fff; }
@media (max-width: 900px) {
  .flt-in, .flt-in.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flt { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0; }
  .flt:first-child { padding-left: 0; }
  .flt:last-child { border-bottom: 0; }
}

/* results: one pane per round */
.gp-pane { display: none; }
.gp-pane.is-on { display: block; }
.gp-hero { position: relative; min-height: 260px; display: flex; align-items: flex-end; overflow: hidden; background: #0a0b0d; }
.gp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.gp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 9, 13, 0.25) 0%, rgba(5, 9, 13, 0.55) 55%, rgba(5, 9, 13, 0.92) 100%); }
.gp-hero-in { position: relative; z-index: 2; width: 100%; padding-top: 90px; padding-bottom: 26px; }
@media (min-width: 768px) { .gp-hero { min-height: 300px; } .gp-hero-in { padding-top: 130px; padding-bottom: 30px; } }
.gp-name { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.005em; text-transform: uppercase; max-width: 960px; }
.gp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #dcdcdc; }
.gp-meta i { font-style: normal; color: #6d6d6d; }
.gp-body { padding-top: 14px; padding-bottom: 48px; }
.gp-ses { display: none; }
.gp-ses.is-on { display: block; }

/* result tables */
.rt { width: 100%; }
.rt thead th { padding: 14px 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9a9a9a; text-align: left; border-bottom: 1px solid var(--line-strong); background: #0a0c10; }
.rt tbody td { padding: 13px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); font-size: 14px; }
.rt .cp { width: 66px; font-weight: 600; color: #d6d6d6; font-variant-numeric: tabular-nums; }
.rt .cr { min-width: 240px; }
.rt .cr .rn { display: inline-block; min-width: 32px; font-size: 12px; color: #8c8c8c; font-variant-numeric: tabular-nums; }
.rt .cr .rav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 9px; border-radius: 50%; overflow: hidden; vertical-align: middle; background: #191b1e; }
.rt .cr .rav img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(2.6); transform-origin: 50% 4%; }
.rt .cr .rav.av-x { background: #1d2025; font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: #8b8d92; }
.rt .cr b { font-weight: 500; color: #fff; }
.rt .cr .fg { display: inline-block; margin-left: 10px; vertical-align: -1px; border-radius: 1px; }
.rt .ct { color: #bdbdbd; }
.rt .cn { width: 150px; text-align: right; color: #e8e8e8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fgx { display: inline-block; padding: 1px 4px; font-size: 9px; line-height: 1.25; letter-spacing: 0.04em; background: #333; color: #cfcfcf; border-radius: 2px; vertical-align: 1px; }
.rt .cr .fgx, .st-row .sr .fgx { margin-left: 10px; }
.rt tr.is-p1 .cp, .rt tr.is-p1 .cr b { color: var(--gold-light); }
.rt tr.is-dnf td, .rt tr.is-dnf .cr b { color: #6f6f6f; }
.rt .rt-canc td { padding: 44px 0 !important; text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 700px) {
  .rt .ct { display: none; }
  .rt .cn { width: 104px; }
  .rt .cr { min-width: 0; }
  .rt tbody td { padding: 11px 8px; }
  .rt thead th { padding: 12px 8px; }
  .rt .cp { width: 44px; }
  .rt .cr .rn { display: none; }
  .rt .cr b { font-size: 13px; }
  .rt .cr .rav { width: 26px; height: 26px; margin-right: 6px; }
  .rt .cr .rav.av-x { font-size: 9px; }
  .rt .cr .fg, .rt .cr .fgx { display: none; }
}

/* standings */
.st-hero { position: relative; min-height: 190px; display: flex; align-items: flex-end; overflow: hidden; background: #0a0b0d; }
.st-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.st-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 9, 13, 0.1) 0%, rgba(5, 9, 13, 0.55) 45%, rgba(5, 9, 13, 0.95) 100%); }
.st-hero .shell { position: relative; z-index: 2; width: 100%; padding-top: 70px; padding-bottom: 24px; }
.st-hero h2 { max-width: 560px; font-size: clamp(1.4rem, 3.1vw, 2.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.005em; text-transform: uppercase; }
@media (min-width: 768px) { .st-hero { min-height: 230px; } .st-hero .shell { padding-bottom: 30px; } }
.st-wrap { padding-top: 8px; padding-bottom: 60px; }
.st-pane { display: none; }
.st-pane.is-on { display: block; }
.st { width: 100%; }
.st thead th { padding: 14px 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #9a9a9a; text-align: left; border-bottom: 1px solid var(--line-strong); background: #0a0c10; }
.st thead th.num { text-align: right; }
.st-row td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; vertical-align: middle; }
.st-row .sp { position: relative; width: 74px; padding-left: 20px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-row .sp .bar { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--c, var(--gold)); }
.st-row .sp .mv { position: absolute; top: 6px; left: 22px; font-size: 8px; line-height: 1; letter-spacing: 0.02em; font-weight: 500; color: #8c8c8c; }
.st-row.is-p1 { background: linear-gradient(90deg, rgba(173, 0, 0, 0.22), rgba(173, 0, 0, 0) 58%); }
.st-row.is-p2 { background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 58%); }
.st-row.is-p3 { background: linear-gradient(90deg, rgba(95, 37, 159, 0.2), rgba(95, 37, 159, 0) 58%); }
.st-row .sr { min-width: 280px; }
.st-row .sr .avw { display: inline-block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; vertical-align: middle; margin-right: 10px; background: #191b1e; }
.st-row .sr .avw .av { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(2.6); transform-origin: 50% 4%; }
.st-row .sr .avw.av-x { background: #1d2025; }
.st-row .sr .no { display: inline-block; min-width: 26px; font-size: 12px; color: #8c8c8c; font-variant-numeric: tabular-nums; }
.st-row .sr b { font-weight: 500; color: #fff; }
.st-row .sr .fg { display: inline-block; margin-left: 10px; vertical-align: -1px; }
.st-row .sr .rlist { display: block; margin: 2px 0 0; font-size: 11px; color: #8c8c8c; }
.st-row .tm { color: #bdbdbd; }
.st-row .num { text-align: right; font-variant-numeric: tabular-nums; color: #dcdcdc; }
.st-row .pts { font-size: 20px; font-weight: 600; color: #fff; }
.st-row .gap { color: #a5a5a5; }
.st-row .l3c { text-align: right; white-space: nowrap; }
.st thead .l3h { white-space: nowrap; }
.l3 { display: inline-block; min-width: 25px; height: 25px; line-height: 25px; padding: 0 3px; margin-left: 4px; border-radius: 3px; text-align: center; font-size: 11px; font-weight: 600; background: #2a2a2a; color: #d5d5d5; }
.l3.v1 { background: #c6a15b; color: #101010; }
.l3.v2 { background: #bd6a3a; color: #fff; }
.l3.v3 { background: #a65a2c; color: #fff; }
.l3.v4 { background: #343845; color: #cfd3da; }
.l3.v9 { background: #343845; color: #cfd3da; }
.l3.v0 { background: #202124; color: #8a8a8a; }
@media (max-width: 980px) { .st-row .tm, .st thead .tm { display: none; } }
@media (max-width: 700px) {
  .pg-top { padding-top: 86px; }
  .pg-tabs { gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .pg-tabs::-webkit-scrollbar { display: none; }
  .pg-tab { flex: 0 0 auto; font-size: 10px; letter-spacing: 0.05em; }
  .pg-tab.is-off { display: none; }
  .flt { padding: 10px 14px; }
  .flt:first-child { padding-left: 0; }
  .flt:last-child { padding-right: 0; }
}
@media (max-width: 660px) {
  .st thead th:nth-child(5), .st thead th:nth-child(6), .st thead th:nth-child(7),
  .st-row td:nth-child(5), .st-row td:nth-child(6), .st-row td:nth-child(7) { display: none; }
  .st-row .sr { min-width: 0; }
  .st-row .sr .avw { width: 28px; height: 28px; margin-right: 6px; }
  .st-row .sr .no { min-width: 18px; font-size: 10.5px; }
  .st-row .sr b { font-size: 12px; }
  .st-row .sr .fg { width: 15px; height: auto; margin-left: 4px; }
  .st-row .sp { width: 34px; padding-left: 9px; font-size: 12.5px; }
  .st-row .sp .mv { left: 10px; top: 5px; font-size: 7px; }
  .st-row .pts { font-size: 15px; }
  .l3h { width: 72px !important; }
  .st thead .l3h { font-size: 9px; letter-spacing: 0.04em; }
  .l3 { min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; margin-left: 3px; }
  .st-row td, .st thead th { padding: 10px 6px; }
  .st thead th { font-size: 9.5px; letter-spacing: 0.06em; }
  .res-row { grid-template-columns: 20px 1fr auto; gap: 8px; }
  .res-row .r { gap: 8px; }
  .res-row .rav { width: 28px; height: 28px; }
  .res-row .rav.av-x { font-size: 9px; }
}

/* riders & teams */
.rd-wrap { padding-top: 28px; padding-bottom: 70px; }
.class-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.cls-chip { appearance: none; -webkit-appearance: none; border: 0; padding: 7px 17px; border-radius: 999px; background: #151515; font: inherit; font-size: 12px; letter-spacing: 0.05em; color: #b9b9b9; cursor: pointer; }
.cls-chip:hover { color: #fff; }
.cls-chip.is-on { background: var(--red); color: #fff; }
.cls-chip.is-off { color: #5f5f5f; }
.cls-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rd-class { display: none; }
.rd-class.is-on { display: block; }
.grp-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1; text-transform: uppercase; margin-bottom: 24px; }
.rd-pane { display: none; }
.rd-pane.is-on { display: block; }
.rd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1120px) { .rd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 840px) { .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-card { position: relative; overflow: hidden; aspect-ratio: 460 / 644; background: linear-gradient(180deg, #1a1b1e 0%, #0b0c0e 72%); }
.rd-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.5) 68%, rgba(0, 0, 0, 0.93) 100%); }
.rd-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rd-fill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 140px; font-weight: 800; color: rgba(255, 255, 255, 0.06); }
.rd-wm { position: absolute; right: 2px; bottom: 13%; z-index: 1; font-size: 150px; font-weight: 800; line-height: 0.8; letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.055); pointer-events: none; }
.rd-info { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.rd-no { display: inline-block; margin-bottom: 7px; padding: 4px 10px 5px; border-radius: 5px; background: rgba(16, 17, 19, 0.72); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
.rd-name { font-size: 20px; font-weight: 800; line-height: 1.03; letter-spacing: -0.01em; text-transform: uppercase; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.rd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; font-size: 11px; color: #e0e0e0; }
.rd-meta .fg { display: inline-block; border-radius: 1px; }
.rd-meta .fgx { font-size: 9px; padding: 1px 4px; background: #333; border-radius: 2px; }
.rd-meta span { color: #d5d5d5; }
.rd-meta small { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #9c9c9c; }
@media (max-width: 560px) { .rd-name { font-size: 16px; } .rd-no { font-size: 14px; } .rd-meta small { font-size: 10px; } .rd-wm { font-size: 110px; } }
.rd-pane[data-tab="teams"] .team-grid { margin-top: 6px; }
.class-chips.is-hide { display: none; }

/* hall of fame / legends */
.hof-pane, .leg-pane { display: none; }
.hof-pane.is-on, .leg-pane.is-on { display: block; }
.hof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1120px) { .hof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 840px) { .hof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hof-card { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: linear-gradient(180deg, #1a1b1e 0%, #0b0c0e 72%); }
.hof-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.94) 100%); }
.hof-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hof-fill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 90px; font-weight: 800; color: rgba(255, 255, 255, 0.07); }
.hof-rank { position: absolute; z-index: 2; top: 12px; left: 14px; padding: 1px 8px 3px; border-radius: 5px; background: rgba(8, 9, 11, 0.5); font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: rgba(219, 188, 128, 0.95); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hof-card[data-top="1"] .hof-rank { color: var(--gold-light); }
.hof-info { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.hof-name { font-size: 19px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.hof-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; font-size: 11px; color: #d5d5d5; }
.hof-meta .fg { display: inline-block; border-radius: 1px; }
.hof-meta .fgx { font-size: 9px; padding: 1px 4px; background: #333; border-radius: 2px; }
.hof-meta small { font-size: 10.5px; letter-spacing: 0.05em; color: #9c9c9c; }
.leg-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1120px) { .leg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 920px) { .leg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .leg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .leg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.leg-card { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: linear-gradient(180deg, #1a1b1e 0%, #0b0c0e 72%); }
.leg-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.93) 100%); }
.leg-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leg-fill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, 0.07); }
.leg-info { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 11px; }
.leg-name { font-size: 15px; font-weight: 800; line-height: 1.06; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.leg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 10px; }
.leg-meta .fg { display: inline-block; border-radius: 1px; }
.leg-meta .fgx { font-size: 8.5px; padding: 1px 4px; background: #333; border-radius: 2px; }
.leg-meta small { font-size: 10px; letter-spacing: 0.05em; color: #9c9c9c; }
@media (max-width: 560px) {
  .hof-name { font-size: 15px; }
  .hof-rank { top: 9px; left: 11px; font-size: 24px; }
  .hof-meta .cc-name { display: none; }
  .leg-name { font-size: 12.5px; }
  .leg-meta .fg { display: none; }
}

/* stats / records tab panels */
.pg-body { display: none; }
.pg-body.is-on { display: block; }
.sx-wrap, .rc-wrap { padding-top: 26px; padding-bottom: 64px; }
.sx-bar, .rc-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 26px; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.sx-bar .flt, .rc-bar .flt { border-left: 0; padding: 0; min-width: 150px; }
.sx-bar .flt-v, .rc-bar .flt-v { min-width: 130px; }
.rc-bar { justify-content: space-between; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; }
.rc-chip { appearance: none; -webkit-appearance: none; border: 0; padding: 7px 16px; border-radius: 999px; background: #151515; font: inherit; font-size: 12px; letter-spacing: 0.05em; color: #b9b9b9; cursor: pointer; }
.rc-chip:hover { color: #fff; }
.rc-chip.is-on { background: var(--red); color: #fff; }
.rc-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.sx-card, .rc-card { background: linear-gradient(180deg, #141518 0%, #0b0c0e 100%); border: 1px solid var(--line); padding: 16px 16px 8px; }
.sx-h, .rc-h { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rc-h b { font-weight: 800; color: var(--gold-light); }
.sx-row, .rc-row { display: grid; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.sx-row { grid-template-columns: 14px 36px minmax(0, 1fr) auto auto; }
.rc-row { grid-template-columns: 14px 32px minmax(0, 1fr) auto auto; }
.sx-row:last-child, .rc-row:last-child { border-bottom: 0; }
.sx-rk, .rc-rk { font-size: 12px; color: #8c8c8c; font-variant-numeric: tabular-nums; }
.sx-row .rav, .rc-row .rav { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #191b1e; }
.sx-row .rav { width: 36px; height: 36px; }
.rc-row .rav { width: 32px; height: 32px; }
.sx-row .rav img, .rc-row .rav img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(2.6); transform-origin: 50% 4%; }
.sx-row .rav.av-x, .rc-row .rav.av-x { font-size: 10px; font-weight: 600; color: #8b8d92; letter-spacing: 0; }
.sx-nm, .rc-nm { font-size: 13px; color: #fff; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-v { font-size: 18px; font-weight: 600; text-align: right; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.rc-val { font-size: 15px; font-weight: 600; text-align: right; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-empty { grid-column: 1 / -1; padding: 24px 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #7d7d7d; }
.sx-card .sx-empty { padding: 20px 0 14px; }
.sx-grid .sx-empty, .rc-grid .sx-empty { padding: 34px 0; }
.rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rc-row.rc-solo { grid-template-columns: 40px minmax(0, 1fr) auto auto; padding: 13px 0; }
.rc-solo .rav { width: 40px; height: 40px; }
@media (max-width: 560px) {
  .sx-bar, .rc-bar { gap: 10px 18px; }
  .sx-bar .flt, .rc-bar .flt { min-width: 128px; }
  .sx-row { grid-template-columns: 12px 30px minmax(0, 1fr) auto auto; gap: 7px; }
  .sx-row .rav { width: 30px; height: 30px; }
  .sx-v { font-size: 15px; }
  .rc-row { grid-template-columns: 12px 28px minmax(0, 1fr) auto auto; gap: 7px; }
  .rc-row .rav { width: 28px; height: 28px; }
  .rc-row.rc-solo { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
  .rc-solo .rav { width: 34px; height: 34px; }
  .rc-val { font-size: 12.5px; }
  .sx-nm, .rc-nm { font-size: 12px; }
  .rc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- soft navigation ---------- */
#__sn_bar {
  position: fixed;
  left: 0; top: 0;
  height: 2px; width: 0;
  z-index: 2147483647;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s linear, width 0.4s ease;
}
#app.is-entering { animation: appIn 0.42s var(--ease) both; }
@keyframes appIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: none; }

/* anchors under the fixed header */
[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
