/* ============================================================
   Racewatch — dark, race-broadcast inspired UI
   ============================================================ */

:root {
  --bg: #07080b;
  --bg-soft: #0b0d12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f7;
  --muted: #99a2b3;
  --muted-2: #6d7688;
  --f1: #ff3b30;
  --mgp: #ff2e88;
  --focus: #7dd3fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 10% -12%, rgba(255, 59, 48, 0.1), transparent 62%),
    radial-gradient(940px 540px at 94% -4%, rgba(255, 46, 136, 0.09), transparent 58%),
    linear-gradient(180deg, #07080b 0%, #07080b 55%, #050609 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(255, 59, 48, 0.35);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: #fff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 14px rgba(255, 46, 136, 0.25));
}

.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text-sm {
  font-size: 18px;
  letter-spacing: 0.1em;
}

/* ---------------- condensed header ad strip ---------------- */

/* Hidden until .site-header gets .is-condensed (scrolled past the hero). */
.header-ticker {
  display: none;
}

/* About a third of the viewport height on a phone and on a laptop. */
.site-header.is-condensed .header-ticker {
  display: block;
  width: 100%;
  height: clamp(170px, 33vh, 330px);
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.site-header.is-condensed .header-inner {
  gap: 8px;
  padding-block: 8px;
}

/* The nav and the region/timezone pickers give up their row to the ad. */
.site-header.is-condensed .site-nav,
.site-header.is-condensed .controls {
  display: none;
}

.site-header.is-condensed .brand-text {
  font-size: 19px;
  letter-spacing: 0.04em;
}

.header-ticker {
  position: relative;
}

/* All slides share one box and cross-fade in place — nothing moves. */
.header-ticker-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ticker-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 620ms ease;
  pointer-events: none;
}

.ticker-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ticker-slide-media {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ticker-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev / next, overlaid on the edges of the banner. */
.ticker-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 8, 11, 0.62);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.ticker-arrow:hover,
.ticker-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.ticker-arrow--prev {
  left: 8px;
}

.ticker-arrow--next {
  right: 8px;
}

.ticker-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A single slide needs no controls. */
.header-ticker.is-single .ticker-arrow {
  display: none;
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.controls {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.control {
  display: grid;
  gap: 3px;
}

.control-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-left: 2px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 170px;
  max-width: 230px;
  padding: 9px 34px 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.045);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2399a2b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text);
  font: 500 13px/1.2 var(--font);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

select:hover {
  border-color: var(--line-strong);
  background-color: rgba(255, 255, 255, 0.07);
}

select option,
select optgroup {
  background: #12151c;
  color: var(--text);
}

/* ---------------- hero ---------------- */

.hero {
  padding-block: 26px 6px;
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 55%),
    #0a0c11;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--f1), var(--mgp));
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 46, 136, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--series, var(--f1));
  border-radius: 2px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.hero-venue {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.hero-time {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-time-big {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-tz {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 6px;
}

.hero-day {
  color: var(--muted);
  font-size: 14px;
}

.hero-watch {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-watch strong {
  color: var(--text);
}

.hero-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 8px;
  min-width: 280px;
}

.cd-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cd-label {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
}

.hero-loading,
.hero-empty {
  color: var(--muted);
  font-size: 15px;
}

.hero-meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: right;
}

/* ---------------- layout ---------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-block: 18px 56px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-sub {
  font-size: 12.5px;
  color: var(--muted-2);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Type chips (All types / Two Wheel / Four Wheel) above the series chips. */
.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  /* Always claim a full row of .section-head. Without this the bar shrinks to
     its content width when only a couple of series remain (e.g. Four Wheel),
     so it snaps up next to the heading and the chips jump to the right. */
  flex: 1 1 100%;
}

.type-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* A quiet divider so the two chip rows read as separate groups. */
.type-chips + .filters {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: 500 13px/1 var(--font);
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.chip-ghost {
  border-style: dashed;
}

.chip-ghost[aria-pressed="true"] {
  border-style: solid;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* The "Other" chip is a link to the directory, not a filter. */
.chip-link {
  border-style: solid;
  text-decoration: none;
}

.chip-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-f1 {
  background: var(--f1);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
}

.dot-mgp {
  background: var(--mgp);
  box-shadow: 0 0 10px rgba(255, 46, 136, 0.6);
}

/* ---------------- race list ---------------- */

#schedule {
  scroll-margin-top: 104px;
}

.month {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.month::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.month:first-child {
  margin-top: 0;
}

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

.race-card {
  --series: var(--f1);
  position: relative;
  padding: 16px 20px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.race-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.series-f1 {
  --series: var(--f1);
}

.series-motogp {
  --series: var(--mgp);
}

.race-card.is-past {
  opacity: 0.62;
}

.race-card.is-past:hover {
  opacity: 0.9;
}

.race-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
}

.pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--series, #ff3b30) 32%, transparent);
  color: color-mix(in srgb, var(--series, #ff3b30) 78%, #ffffff);
  background: color-mix(in srgb, var(--series, #ff3b30) 14%, transparent);
  white-space: nowrap;
}

.pill-f1 {
  color: #ff9a93;
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.3);
}

.pill-motogp {
  color: #ff9cc4;
  background: rgba(255, 46, 136, 0.14);
  border-color: rgba(255, 46, 136, 0.3);
}

.round {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.season-tag {
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.race-day {
  margin-left: auto;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.race-name {
  font-size: 19px;
  font-weight: 600;
  margin-top: 8px;
}

.race-name a {
  text-decoration: none;
}

.race-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.race-venue {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
}

.dot-sep {
  color: var(--muted-2);
}

.race-times {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.race-time-big {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.race-tz {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}

.race-rel {
  font-size: 12px;
  color: var(--muted-2);
}

.watch-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted-2);
}

.watch-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.watch-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.watch-streams {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.watch-stream {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.watch-stream:hover {
  color: #fff;
  border-color: #fff;
}

.race-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.session-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 12.5px/1 var(--font);
  cursor: pointer;
  transition: all 0.16s ease;
}

.session-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.session-toggle .caret {
  transition: transform 0.18s ease;
}

.session-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.sessions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sessions-note {
  font-size: 11.5px;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.session-day + .session-day {
  margin-top: 12px;
}

.session-day-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.session-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.session-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
}

.session-list li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.session-list li.is-race {
  background: color-mix(in srgb, var(--series) 13%, transparent);
  color: var(--text);
  font-weight: 600;
}

.session-name {
  color: inherit;
}

.session-time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* class tabs (MotoGP / Moto2 / Moto3 share a weekend) */

.class-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.class-tab {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--font);
  cursor: pointer;
  transition: all 0.16s ease;
}

.class-tab:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.class-tab.is-active {
  background: color-mix(in srgb, var(--series, #ff3b30) 16%, transparent);
  border-color: color-mix(in srgb, var(--series, #ff3b30) 40%, transparent);
  color: var(--text);
}

.class-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.class-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--series, #ff3b30) 75%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--series, #ff3b30) 30%, transparent);
  background: color-mix(in srgb, var(--series, #ff3b30) 10%, transparent);
}

.empty,
.notice {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Shown above a finished season that is being displayed in place of an empty
   upcoming-only list. */
.list-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.status {
  margin-block: 12px 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 196, 0, 0.3);
  background: rgba(255, 196, 0, 0.08);
  color: #ffd97a;
  font-size: 13px;
}

/* ---------------- sidebar ---------------- */

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  align-content: start;
}

/* A viewing guide taller than the viewport can never travel with the calendar:
   a sticky box pins at `top` and everything below the fold is stranded there.
   app.js measures the panel and adds this class when it does not fit, so the
   whole guide simply scrolls with the page instead. */
.sidebar.is-tall {
  position: static;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  padding: 18px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.

.series-section {
  padding-block: 0 70px;
  scroll-margin-top: 90px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}

.directory-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  display: grid;
  gap: 5px;
  align-content: start;
}

.directory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.directory-name {
  font-size: 16px;
  font-weight: 600;
}

.directory-discipline {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
}

.directory-full {
  font-size: 12.5px;
  color: var(--muted);
}

.directory-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  margin-top: 5px;
}watch-rows {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.watch-row {
  display: grid;
  gap: 6px;
}

.watch-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.watch-tv {
  font-size: 13px;
  color: var(--text);
}

.watch-note {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.45;
}

.watch-all {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mgp);
  text-decoration: none;
}

.watch-all:hover {
  text-decoration: underline;
}

/* ---------------- watch section ---------------- */

.watch-section {
  padding-block: 10px 70px;
  scroll-margin-top: 90px;
}

.disclaimer {
  font-size: 12.5px;
  color: var(--muted-2);
  max-width: 78ch;
  margin-bottom: 16px;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.watch-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color 0.18s ease;
}

.watch-card.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.watch-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.watch-market {
  font-size: 16px;
  font-weight: 600;
}

.watch-group {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.watch-series {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.watch-series:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.watch-series-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.watch-lines {
  display: grid;
  gap: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.watch-lines .label {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 6px;
}

.watch-btn {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 11.5px/1 var(--font);
  cursor: pointer;
  transition: all 0.16s ease;
}

.watch-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px 26px;
  background: rgba(0, 0, 0, 0.28);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 18px;
  align-self: flex-start;
  font-size: 13px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-fine {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------------- advertise page ---------------- */

.site-nav a.is-current {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.advertise-section {
  padding-block: 44px 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
}

.spec-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.spec p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}

.booking-copy :is(h1, h2) {
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.booking-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 46ch;
}

.booking-contact a {
  color: var(--mgp);
  text-decoration: none;
}

.booking-contact a:hover {
  text-decoration: underline;
}

.booking-details {
  align-self: start;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.booking-details h2 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.booking-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.booking-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.booking-list li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mgp);
}

/* ---------------- responsive ---------------- */

@media (max-width: 1040px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
  }
}

@media (max-width: 860px) {
  /* Keep the nav usable on small screens: it becomes a scrollable row rather
     than disappearing, so Schedule / Advertise / Visitors stay reachable. */
  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  /* (The condensed header rules live above, outside this query, so the ad row
     appears on laptops too.) */
  .controls {
    width: 100%;
  }

  .control {
    flex: 1 1 160px;
  }

  .control select {
    width: 100%;
    max-width: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-countdown {
    min-width: 0;
  }

  .hero-meta {
    text-align: left;
  }

  .booking {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .booking-details {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1240px, 100% - 28px);
  }

  .hero-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .race-card {
    padding: 14px 16px 12px 18px;
  }

  .race-day {
    margin-left: 0;
    width: 100%;
  }

  .cd-num {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  /* A looping marquee at 0.001ms would strobe, so park it instead and let the
     strip be swiped through. */
  .ticker-slide {
    transition: none !important;
  }
}
