/* ═══════════════════════════════════════════════════════════
   RACE BRIEF — styles.css
   Colors: MotoGP exact palette
   ═══════════════════════════════════════════════════════════ */

:root {
  --red: #ff0005;
  --red-dk: #a00401;
  --teal: #003335;
  --yellow: #faec25;
  --dark: #161616;
  --light: #fafcff;
  --mid: #f0f0f0;
  --white: #ffffff;
  --gray: #606060;
  --gray-lt: #9e9e9e;
  --border: #dedede;
  --font-d: "Barlow Condensed", helvetica, sans-serif;
  --font-b: "Barlow", helvetica, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-b);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
ul {
  list-style: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── LAYOUT ── */
.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.top-bar {
  background: var(--dark);
  padding: 7px 0;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar__left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-bar__date {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.top-bar__divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
}
.top-bar__tag {
  font-family: var(--font-d);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
}
.top-bar__social {
  display: flex;
  gap: 14px;
}
.top-bar__social a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.top-bar__social a:hover {
  color: var(--red);
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  background: #111;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.header .wrap {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}
.header-accent {
  display: none;
}

/* Logo — MotoGP style: solid rounded italic word + outlined rounded box */
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-right: 36px;
  line-height: 1;
}
.logo__word {
  font-family: 'Nunito', sans-serif;
  font-weight: 1000;
  font-style: italic;
  font-size: 28px;
  text-transform: none;
  letter-spacing: -1.5px;
  color: #fff;
  padding-right: 1px;
}
.logo__box {
  font-family: 'Nunito', sans-serif;
  font-weight: 1000;
  font-style: italic;
  font-size: 24px;
  text-transform: none;
  letter-spacing: -0.5px;
  color: transparent;
  -webkit-text-stroke: 1.4px #fff;
  background: transparent;
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: stretch;
  height: 64px;
  flex: 1;
}
.nav__item {
  display: flex;
  align-items: center;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 12px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__item:hover,
.nav__item.active {
  color: #fff;
}
.nav__item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
}

/* ── MORE DROPDOWN — desktop ── */
.nav__more { position:relative; display:flex; align-items:stretch }
.nav__more-btn { background:none; border:none; cursor:pointer; gap:5px }
.nav__dropdown { position:absolute; top:100%; right:0; min-width:150px; background:#111; border-top:2px solid var(--red); padding:6px 0; opacity:0; visibility:hidden; transform:translateY(-8px); transition:opacity .2s,transform .2s,visibility .2s; z-index:500; box-shadow:0 8px 24px rgba(0,0,0,.4) }
.nav__more:hover .nav__dropdown,
.nav__more.open .nav__dropdown { opacity:1; visibility:visible; transform:translateY(0) }
.nav__drop-item { display:block; padding:11px 20px; font-family:var(--font-d); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:rgba(255,255,255,.55); white-space:nowrap; transition:color .2s,background .2s }
.nav__drop-item:hover { color:#fff; background:rgba(255,255,255,.07) }

/* ── MORE TOGGLE — mobile nav ── */
.mob-more { display:flex; flex-direction:column }
.mob-more__btn { display:flex; align-items:center; cursor:pointer; background:none; border:none; text-align:left; width:100% }
.mob-more__sub { display:none; flex-direction:column }
.mob-more.open .mob-more__sub { display:flex }
.mob-nav__item--sub { padding-left:44px; font-size:18px; opacity:.72 }

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* ══════════════════════════════════════
   HEADER COUNTDOWN — compact next-race
   strip shown under the main header on
   internal pages (news/category/post/search)
══════════════════════════════════════ */
.header-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.header-countdown__label {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.header-countdown__name {
  color: #fff;
}
.header-countdown__time {
  display: flex;
  gap: 8px;
}
.header-countdown__unit {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 13px;
  color: var(--red);
}
.header-countdown__unit span:last-child {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   RACE STRIP — next race countdown bar
══════════════════════════════════════ */
.race-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 48px;
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.race-strip__wrap {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  justify-content: space-between;
}

/* Left */
.race-strip__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 1;
  min-width: 0;
}
.race-strip__circuit {
  width: 52px;
  height: 38px;
  flex-shrink: 0;
  opacity: 0.9;
}
.race-strip__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.race-strip__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.race-strip__flag {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.race-strip__dates {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-strip__name {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-strip__name:hover {
  color: var(--red);
}
.race-strip__name span {
  color: var(--red);
  margin-left: 2px;
}

/* Center */
.race-strip__center {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex: 1;
  text-align: center;
}

/* Right */
.race-strip__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.race-strip__countdown {
  display: flex;
  align-items: center;
  gap: 14px;
}
.race-strip__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.race-strip__num {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  line-height: 1;
  min-width: 28px;
  text-align: center;
}
.race-strip__lbl {
  font-family: var(--font-d);
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.race-strip__toggle {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  flex-shrink: 0;
}
.race-strip__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.race-strip__toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ══════════════════════════════════════
   HERO SLIDER
   Height scales fluidly between a small-phone floor (320px) and
   a desktop ceiling (720px) via clamp(), instead of jumping
   between three fixed breakpoint values — smoother on resize/
   rotate, and one fewer place sizes can drift out of sync.
   `.slide` has no height of its own: it's a flex child of
   `.hero__slides`, which stretches it to match automatically.
══════════════════════════════════════ */
.hero {
  position: relative;
  height: clamp(320px, 58vw, 720px);
  overflow: hidden;
  background: var(--dark);
}
.hero__slides {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  touch-action: pan-y;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slides {
    transition: none;
  }
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
}
.slide__image {
  position: absolute;
  inset: 0;
}
.slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 8s ease;
}
.slide.active .slide__image img {
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .slide.active .slide__image img {
    transform: none;
  }
}
.slide__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 6vw, 80px) clamp(18px, 4.5vw, 52px) clamp(18px, 3vw, 32px);
  border: none;
}
.slide__cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 11px;
  margin-bottom: clamp(10px, 2vw, 16px);
  align-self: flex-start;
}
.slide__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(18px, 3.4vw, 38px);
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.slide__date {
  font-family: var(--font-d);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: clamp(14px, 3vw, 24px);
}
.slide__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  transition: background 0.2s;
  align-self: flex-start;
}
.slide__btn:hover {
  background: var(--red-dk);
}
.slide__btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Slider dots — hidden */
.hero__dots {
  display: none;
}
.dot {
  display: none;
}

/* Slider arrows — desktop: large, edge-anchored, vertically centered.
   Re-styled smaller/circular for touch at the 900px breakpoint below. */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  width: 56px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  border: none;
  box-shadow: none;
}
.hero__arrow:hover {
  background: transparent;
  color: #fff;
}
.hero__arrow svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.hero__arrow--prev {
  left: 8px;
}
.hero__arrow--next {
  right: 8px;
}
/* Hidden entirely when there's only one slide to navigate between —
   toggled by JS via .hero--single on the section. */
.hero--single .hero__arrow {
  display: none;
}

/* ══════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════ */
.section {
  padding: 56px 0;
}
.section--mid {
  background: var(--mid);
}
.section--dark {
  background: var(--dark);
}
.section--teal {
  background: var(--teal);
}
.section--white {
  background: var(--white);
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  overflow: visible;
}
.sec-title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1;
  color: var(--dark);
}
.sec-title--white {
  color: var(--white);
}
.sec-title--highlight {
  background: var(--teal);
  color: var(--white);
  padding: 2px 10px;
  display: inline-block;
}

.sec-more {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.sec-more:hover {
  gap: 12px;
}
.sec-more--red {
  color: var(--red);
}
.sec-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════
   GP SECTION — large left + 2×2 right
══════════════════════════════════════ */
.gp {
  padding: 56px 0;
  background: var(--mid);
  box-sizing: border-box;
  overflow: visible;
}

.gp__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4px;
  height: 520px;
}
.gp__featured {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.gp__featured:hover .gf-img {
  transform: scale(1.04);
}
.gf-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
}
.gf-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}
.gf-cat {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.gf-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}
.gf-date {
  font-family: var(--font-d);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 8px;
  text-transform: uppercase;
}

.gp__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.gp__side-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.gp__side-card:hover .gs-img {
  transform: scale(1.06);
}
.gs-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.1) 60%
  );
}
.gs-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
}
.gs-cat {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.gs-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}
.gs-date {
  font-family: var(--font-d);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   LATEST NEWS — "Rider Market" style
   Large card left + 2×2 grid right
══════════════════════════════════════ */
.news {
  padding: 56px 0;
  background: var(--white);
}

.news__layout {
  display: block;
}

.news__featured {
  cursor: pointer;
  display: block;
}
.news__featured:hover .nf-img {
  transform: scale(1.03);
}
.nf-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.nf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.nf-body {
  padding: 16px 0;
}
.nf-cat {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-lt);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.nf-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 22px;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}
.nf-date {
  font-family: var(--font-d);
  font-size: 12px;
  color: var(--gray-lt);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.news__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.news__side-card {
  cursor: pointer;
  display: block;
}
.news__side-card:hover .ns-img {
  transform: scale(1.04);
}
.ns-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.ns-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ns-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-top: 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-date {
  font-family: var(--font-d);
  font-size: 11px;
  color: var(--gray-lt);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 5px;
}

/* ══════════════════════════════════════
   STANDINGS — full table with tabs
══════════════════════════════════════ */
.standings {
  padding: 56px 0;
  background: var(--mid);
}

.standings__tabs {
  display: flex;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}
.st-tab {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  cursor: pointer;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.st-tab:hover {
  color: var(--dark);
}
.st-tab.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

.standings__panel {
  display: none;
}
.standings__panel.active {
  display: block;
}

.st-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.st-table th {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.st-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-d);
  vertical-align: middle;
  white-space: nowrap;
}
.st-table tr.p1 td {
  background: linear-gradient(90deg, #1a0a3e 0%, #0d0520 40%, #050010 100%);
}
.st-table tr.p1:hover td {
  background: linear-gradient(90deg, #220d52 0%, #110628 40%, #070015 100%);
}
.st-table tbody tr:not(.p1):hover td {
  background: #fafafa;
}

.st-pos {
  font-size: 22px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.28);
  min-width: 40px;
}
.st-table tr.p1 .st-pos {
  color: var(--yellow);
}
.st-table tbody tr:nth-child(2) .st-pos {
  color: #c8c8c8;
}
.st-table tbody tr:nth-child(3) .st-pos {
  color: #c06428;
}

.st-rider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.st-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.3);
}
.st-table tr.p1 .st-avatar--placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.st-rname {
  line-height: 1;
}
.st-rfirst {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.st-rlast {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--dark);
}
.st-table tr.p1 .st-rfirst {
  color: rgba(255, 255, 255, 0.45);
}
.st-table tr.p1 .st-rlast {
  color: #fff;
}

.st-team {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 7px;
}
.st-table tr.p1 .st-team {
  color: rgba(255, 255, 255, 0.55);
}
.st-flag {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
}

.st-pts {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
}
.st-table tr.p1 .st-pts {
  color: #fff;
}
.st-gap,
.st-wins,
.st-pods {
  font-size: 14px;
  color: var(--gray);
  text-align: center;
}
.st-table tr.p1 .st-gap,
.st-table tr.p1 .st-wins,
.st-table tr.p1 .st-pods {
  color: rgba(255, 255, 255, 0.7);
}
.st-wins,
.st-pods {
  font-weight: 700;
  color: var(--dark);
}

.st-l3 {
  display: flex;
  gap: 4px;
  align-items: center;
}
.l3-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
}
.l3-dot--1 {
  background: var(--yellow);
  color: #000;
}
.l3-dot--2 {
  background: #c8c8c8;
  color: #333;
}
.l3-dot--3 {
  background: #c06428;
  color: #fff;
}
.l3-dot--top {
  background: #333;
  color: #fff;
}
.l3-dot--off {
  background: rgba(0, 0, 0, 0.08);
  color: var(--gray);
}

/* ══════════════════════════════════════
   NEWS TEXT GRID — 4×2 text-only cards
══════════════════════════════════════ */
.ntg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 4px 2px;
}
.ntc {
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.ntc:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}
.ntc:hover .ntc__img {
  transform: scale(1.06);
}
.ntc__img-wrap {
  height: 195px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.ntc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ntc__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ntc__cat {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 9px;
}
.ntc__title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
  line-height: 1.3;
  flex: 1;
}
.ntc__date {
  font-family: var(--font-d);
  font-size: 11px;
  color: var(--gray-lt);
  text-transform: uppercase;
  margin-top: 14px;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════
   RIDERS — horizontal portrait scroll
══════════════════════════════════════ */
.riders {
  padding: 56px 0;
  background: var(--white);
}
.riders__scroll {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 0 24px;
  scrollbar-width: none;
  cursor: grab;
}
.riders__scroll:active {
  cursor: grabbing;
}
.riders__scroll::-webkit-scrollbar {
  display: none;
}

.rp-card {
  flex-shrink: 0;
  width: 220px;
  height: 360px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.rp-card:hover .rp-photo,
.rp-card:hover .rp-bg {
  transform: scale(1.05);
}
.rp-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
  z-index: 0;
}
.rp-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
  z-index: 1;
}
.rp-num {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 76px;
  color: rgba(255, 255, 255, 0.18);
  line-height: 0.9;
  pointer-events: none;
  z-index: 3;
}
.rp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.08) 55%,
    transparent 100%
  );
  z-index: 2;
}
.rp-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 3;
}
.rp-first {
  font-family: var(--font-d);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rp-last {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 19px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.rp-team {
  font-family: var(--font-d);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   HALL OF FAME — horizontal B&W scroll
══════════════════════════════════════ */
.hof {
  padding: 56px 0;
  background: #fff;
}
.hof__scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 24px;
  scrollbar-width: none;
  cursor: grab;
}
.hof__scroll:active {
  cursor: grabbing;
}
.hof__scroll::-webkit-scrollbar {
  display: none;
}

.hof-card {
  flex-shrink: 0;
  width: 240px;
  height: 340px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #e8e8e8;
  display: block;
}
.hof-card:hover .hof-img {
  transform: scale(1.06);
}
.hof-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition:
    transform 0.45s;
}
.hof-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.12) 55%,
    transparent 100%
  );
}
.hof-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
}
.hof-years {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.hof-name {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 19px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.hof-titles {
  font-family: var(--font-d);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* Scroll arrow button */
.scroll-btn {
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background 0.2s;
}
.scroll-btn:hover {
  background: var(--red);
  border-color: var(--red);
}
.scroll-btn:hover svg {
  stroke: #fff;
}
.scroll-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════
   DOCUMENTARIES — portrait poster scroll
══════════════════════════════════════ */
.docs {
  padding: 56px 0;
  background: #fff;
}
.docs__scroll {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 0 24px;
  scrollbar-width: none;
  cursor: grab;
}
.docs__scroll:active {
  cursor: grabbing;
}
.docs__scroll::-webkit-scrollbar {
  display: none;
}

.dp-card {
  flex-shrink: 0;
  width: 230px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: #111;
}
.dp-card__aspect {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}
.dp-card:hover .dp-img {
  transform: scale(1.06);
}
.dp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.dp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
}
.dp-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px;
}
.dp-cat {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.dp-title {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.15;
}

/* ══════════════════════════════════════
   NEWSLETTER BANNER
══════════════════════════════════════ */
.banner {
  background: #111;
  border-top: 2px solid var(--red);
  padding: 56px 0;
  text-align: center;
}
.banner__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 44px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.banner__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}
.banner__form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.banner__input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
}
.banner__btn {
  background: var(--red);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.banner__btn:hover {
  background: #a00300;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: #0d0d0d;
  padding: 56px 0 28px;
}
.footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding-bottom: 36px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__main .logo {
  transform: scale(1.25);
  margin-bottom: 4px;
}
.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 460px;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__soc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
}
.footer__soc svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer__soc:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__copy {
  color: rgba(255, 255, 255, 0.22);
}
.footer__credit {
  color: rgba(255, 255, 255, 0.22);
}
.footer__credit a {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  transition: color 0.2s;
}
.footer__credit a:hover {
  color: var(--red);
}

/* ══════════════════════════════════════
   MOBILE NAV OVERLAY
══════════════════════════════════════ */
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 300;
  flex-direction: column;
  padding: 24px 28px;
  overflow-y: auto;
}
.mob-nav.open {
  display: flex;
}
.mob-nav__close {
  align-self: flex-end;
  color: #fff;
  padding: 8px;
  margin-bottom: 20px;
}
.mob-nav__close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
.mob-nav__item {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}
.mob-nav__item:hover,
.mob-nav__item.active {
  color: var(--red);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .gp__layout {
    height: 420px;
  }
  .gf-title {
    font-size: 20px;
  }
  .ntg {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── TABLET 900px ── */
@media (max-width: 900px) {
  /* Header */
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .btn-sub {
    display: none;
  }
  .header .wrap {
    padding: 0 16px;
  }

  /* Race strip */
  .race-strip__center {
    display: none;
  }
  .race-strip__circuit {
    display: none;
  }
  .race-strip {
    height: 52px;
  }
  .race-strip__num {
    font-size: 18px;
  }
  .race-strip__countdown {
    gap: 10px;
  }

  /* Top bar */
  .top-bar__left {
    display: none;
  }
  .top-bar .wrap {
    justify-content: flex-end;
  }

  /* Hero — height/panel-padding/title-size now scale fluidly via clamp()
     in the base rules above, so no fixed override is needed here anymore.
     Only the touch-friendly arrow re-style stays breakpoint-specific. */
  .hero__arrow {
    width: 42px;
    height: 42px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.42);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .hero__arrow svg {
    width: 22px;
    height: 22px;
  }
  .hero__arrow--prev {
    left: 14px;
  }
  .hero__arrow--next {
    right: 14px;
  }

  /* GP section */
  .gp__layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gp__featured {
    height: 320px;
  }
  .gp__side {
    grid-template-columns: 1fr 1fr;
    height: 260px;
  }

  /* News */
  .ntg {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Standings — scroll the table */
  .standings__tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .standings__panel {
    overflow-x: auto;
  }
  .st-table {
    min-width: 600px;
  }
  .st-table th:nth-child(n + 6),
  .st-table td:nth-child(n + 6) {
    display: none;
  }

}

/* ── MOBILE 640px ── */
@media (max-width: 640px) {
  /* Layout */
  .wrap {
    padding: 0 14px;
  }

  /* Hero — height/title now handled by clamp() in the base rules;
     hiding the date on small screens is still an intentional call here. */
  .slide__date {
    display: none;
  }

  /* GP */
  .gp__side {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gp__side .gp__side-card {
    height: 160px;
  }

  /* News */
  .ntg {
    grid-template-columns: 1fr 1fr;
  }

  /* Standings — hide more columns */
  .st-table th:nth-child(n + 5),
  .st-table td:nth-child(n + 5) {
    display: none;
  }
  .st-table th:nth-child(3),
  .st-table td:nth-child(3) {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 44px 0 24px;
  }
  .footer__main .logo {
    transform: scale(1.1);
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .banner__form {
    flex-direction: column;
  }
}

/* ── SMALL MOBILE 480px ── */
@media (max-width: 480px) {
  .ntg {
    grid-template-columns: 1fr;
  }
  .ntc__img-wrap {
    height: 160px;
  }
  .gp__side {
    height: auto;
  }

  /* Race strip — guard against overflow on very narrow phones: tighten
     the countdown spacing and drop the schedule-toggle button, since the
     truncating race name (added above) only helps so much once the
     available width gets this tight. */
  .race-strip__countdown {
    gap: 6px;
  }
  .race-strip__num {
    font-size: 15px;
    min-width: 20px;
  }
  .race-strip__right {
    gap: 10px;
  }
  .race-strip__toggle {
    display: none;
  }
}
