:root {
  --asphalt: #16181d;
  --pitwall: #1f2228;
  --kerb: #2b2f37;
  --line: #3a3f49;
  --chalk: #eceef1;
  --mute: #98a0ad;
  --amber: #ffc21a;          /* bandeira amarela: só para "próxima corrida" */
  --team: #00d7b6;           /* trocado via JS pela cor da equipe selecionada */
  --series: #e10600;         /* cor do campeonato atual */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --r-sm: 4px;
  --r-lg: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--chalk);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--team); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .005em; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--asphalt) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--kerb);
}
.topbar-row { display: flex; align-items: center; gap: 28px; padding: 10px var(--gutter); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 26px; flex: none; }
.logo-word { font: 900 27px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; font-style: italic; transform: skewX(-8deg); }
.logo-word b, .wordmark b { font-weight: inherit; color: #e10600; }
.brand:hover .logo-mark rect { animation: chk .5s steps(2) 2; }
@keyframes chk { 50% { opacity: .15; } }
.cat-nav { display: flex; gap: 4px; margin-right: auto; }
.cat { position: relative; }
.cat-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--mute); font-weight: 600; font-size: 15px; transition: color .15s, background .15s;
}
.cat-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.cat-btn .short { display: none; }
.cat-btn:hover, .cat.open .cat-btn { color: var(--chalk); background: var(--pitwall); }
.cat.is-active .cat-btn { color: var(--chalk); }
.cat.is-active .cat-btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; background: var(--series); }
.cat.open .cat-btn svg { transform: rotate(180deg); }
.cat-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 340px; z-index: 60;
  padding: 14px; border-radius: var(--r-lg); background: var(--pitwall); border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0,0,0,.5);
}
.cat.open .cat-panel { display: grid; gap: 4px; animation: panelIn .18s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } }
.cat-panel p { color: var(--mute); font-size: 14px; padding: 2px 8px 10px; }
.cat-panel a {
  --c: #888;
  display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: center;
  padding: 10px 8px; border-radius: 10px; text-decoration: none;
}
.cat-panel a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cat-panel a b { display: block; font: 800 22px/1.05 var(--display); text-transform: uppercase; }
.cat-panel a small { color: var(--mute); font-size: 13px; }
.cat-panel a:hover, .cat-panel a[aria-current] { background: color-mix(in srgb, var(--c) 14%, transparent); }

.next-pill {
  font-size: 14px; color: var(--chalk); white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center;
}
.next-pill b { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 600; }
.next-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.next-pill.off { color: var(--mute); }
.next-pill.off::before { background: var(--mute); }

.subbar {
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  border-top: 1px solid var(--kerb); min-height: 46px;
}
.crumb { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: 14px; }
.crumb a { color: var(--mute); text-decoration: none; }
.crumb a:hover { color: var(--chalk); }
.crumb span { color: var(--line); }
.crumb b { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--chalk); }
.crumb b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--series); margin-right: 8px; vertical-align: 3px; }
.crumb small { color: var(--mute); }
.section-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: none; padding: 12px 10px; text-decoration: none; color: var(--mute); font-weight: 500; font-size: 14px;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.section-nav a:hover { color: var(--chalk); }
.section-nav a.active { color: var(--chalk); border-bottom-color: var(--series); }

/* ---------- Seções ---------- */
section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(48px, 7vw, 96px); text-transform: uppercase; }
.section-head p { color: var(--mute); max-width: 62ch; }

.panel {
  background: var(--pitwall);
  border: 1px solid var(--kerb);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel h4 { font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.panel-sub { color: var(--mute); font-size: 14px; margin-bottom: 20px; }

.btn {
  display: inline-flex; align-items: center; padding: 14px 22px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; font-size: 16px; transition: background .15s, color .15s;
}
.btn-solid { background: var(--team); color: var(--on-team, #0b0d10); }
.btn-solid:hover { background: var(--chalk); color: #0b0d10; }
.btn-ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--asphalt) 50%, transparent); }
.btn-ghost:hover { border-color: var(--chalk); }

/* ======================================================================
   LOBBY
   ====================================================================== */
.lobby-hero {
  position: relative; min-height: calc(100svh - 61px - 50px); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding-top: 48px; padding-bottom: 72px;
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(180deg, var(--asphalt), #0f1114);
}
/* faixa do pit lane no rodapé do banner */
.lobby-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 6px; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 48px, transparent 48px 80px);
}
.lobby-hero > :not(.grid-slots, .fx-contours) { max-width: 46%; }
/* grid de largada: posições alternadas, como no asfalto */
.grid-slots {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: 50%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px;
}
.slot {
  --c: #fff;
  position: relative; display: grid; gap: 10px; padding: 16px 16px 14px; text-decoration: none;
  border: 2px solid rgba(255,255,255,.55); border-bottom: 0; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 75%);
  transition: background .2s, border-color .2s;
}
.slot:nth-child(even) { translate: 0 46%; }
.slot:hover { border-color: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 26%, transparent), transparent 80%); }
.slot-pos { position: absolute; top: -14px; left: 12px; padding: 0 8px; background: #121418; font: 900 22px/1 var(--display); }
.slot img { width: 100%; height: clamp(70px, 8vw, 130px); object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.6)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.slot:hover img { transform: translateX(4%); }
.slot-label { font-size: 13px; color: var(--mute); }
.slot-label b { display: block; font: 800 22px/1 var(--display); color: var(--chalk); text-transform: uppercase; }
.wordmark {
  display: flex; align-items: center; gap: .14em;
  font-size: clamp(56px, 9.4vw, 190px); font-weight: 900; line-height: .78; text-transform: uppercase;
  letter-spacing: .01em;
}
.wordmark span { display: inline-block; transform: skewX(-8deg); }
.wordmark .logo-mark { width: .9em; height: auto; }
.lobby-lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 52ch; color: #c9ced6; }
.lobby-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.lobby-stats div { border-left: 3px solid var(--line); padding-left: 12px; }
.lobby-stats dt { color: var(--mute); font-size: 14px; }
.lobby-stats dd { margin: 0; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.lobby-stats small { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; }
.lobby-stats div:last-child dd { color: var(--amber); }
.lobby-cta { --team: var(--chalk); --on-team: #0b0d10; align-self: flex-start; display: flex; flex-wrap: wrap; gap: 10px; }

.lobby-series { padding-top: 24px; }
.cat-block + .cat-block { margin-top: 56px; }
.cat-block header { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--kerb); }
.cat-block h3 { font-size: clamp(32px, 4vw, 48px); text-transform: uppercase; }
.cat-block header p { color: var(--mute); }

/* cartão de campeonato (lobby e "outros campeonatos") */
.series-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.series-card {
  --c: #888;
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; overflow: hidden;
  border-radius: var(--r-lg); background: var(--pitwall); border: 1px solid var(--kerb); border-top: 4px solid var(--c);
  transition: border-color .2s, transform .2s;
}
.series-card:hover { border-color: var(--c); }
.sc-media {
  height: 220px; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #121418;
}
.sc-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 16px 16px rgba(0,0,0,.5)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.series-card:hover .sc-media img { transform: translateX(3%); }
.series-card.is-tall:hover .sc-media img { transform: translateY(-3%); }
.sc-body { display: grid; gap: 12px; align-content: start; padding: 20px 22px 22px; }
.sc-body h4 { font-size: 40px; text-transform: uppercase; }
.sc-body h4 small { font: 600 15px var(--body); color: var(--mute); text-transform: none; }
.sc-status { color: #c9ced6; }
.sc-leader { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--asphalt); }
.sc-leader img { width: 52px; height: 52px; object-fit: cover; object-position: top; border-radius: 50%; background: color-mix(in srgb, var(--c) 35%, var(--kerb)); }
.sc-leader small { display: block; color: var(--mute); font-size: 12px; }
.sc-leader b { font: 800 22px/1.05 var(--display); text-transform: uppercase; }
.sc-leader em { font-style: normal; color: var(--mute); font-size: 14px; margin-left: 8px; }
.sc-next { font-size: 14px; color: var(--mute); }
.sc-next b { color: var(--chalk); font-weight: 600; }
.sc-cta { justify-self: start; font-weight: 600; border-bottom: 2px solid var(--c); padding-bottom: 2px; }

/* agenda */
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 980px; }
.agenda-list li {
  --c: #888;
  position: relative; display: grid; grid-template-columns: 64px 96px 1fr auto; gap: 18px; align-items: center;
  padding: 12px 18px; border-radius: 12px; background: var(--pitwall); border: 1px solid var(--kerb);
  transition: border-color .2s;
}
.agenda-list li:hover { border-color: var(--c); }
.agenda-list time { display: grid; justify-items: center; color: var(--mute); font-size: 13px; text-transform: uppercase; }
.agenda-list time b { font: 900 34px/1 var(--display); color: var(--chalk); }
.ag-series { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 45%, #fff); }
.ag-gp b { display: block; font-weight: 600; }
.ag-gp small { color: var(--mute); font-size: 14px; }
.ag-when { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda-list a { position: absolute; inset: 0; border-radius: inherit; }

/* ======================================================================
   PÁGINA DO CAMPEONATO
   ====================================================================== */
.hero {
  position: relative; min-height: calc(100svh - 108px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end;
  padding-top: 40px; padding-bottom: 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 72% 55%, color-mix(in srgb, var(--team) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--asphalt), #101215);
}
.hero-number {
  position: absolute; z-index: -1; right: -2vw; bottom: -6vw;
  font: 900 min(64vw, 820px)/.8 var(--display);
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--team) 55%, transparent);
  user-select: none;
  animation: numberIn 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero-copy { align-self: center; padding-bottom: 64px; max-width: 660px; }
.hero-kicker { color: var(--team); font-weight: 600; margin-bottom: 18px; }
.hero-name {
  --fit: 190px;
  font-size: min(clamp(56px, 12vw, 190px), var(--fit)); font-weight: 900; text-transform: uppercase; line-height: .82;
  margin-bottom: 28px; white-space: nowrap;
}
.hero-name span { display: block; white-space: normal; font-size: max(.3em, 26px); font-weight: 700; color: var(--mute); line-height: 1.05; margin-bottom: .1em; }
.hero-lede { font-size: 19px; max-width: 46ch; color: #c9ced6; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 36px; margin: 0 0 36px; }
.hero-stats div { border-left: 3px solid var(--team); padding-left: 12px; }
.hero-stats dt { color: var(--mute); font-size: 14px; }
.hero-stats dd { margin: 0; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-driver {
  justify-self: center; align-self: end;
  height: min(84svh, 900px); width: auto; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
  animation: driverIn 1.1s .15s cubic-bezier(.2,.7,.2,1) both;
}
.hero--wide { grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero--wide .hero-copy { padding-bottom: 24px; }
.hero-car {
  position: absolute; z-index: -1; right: -4vw; bottom: 6%;
  width: min(62vw, 1100px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
  animation: carDrive 1.2s .1s cubic-bezier(.2,.7,.2,1) both;
}
.hero--wide .hero-number { bottom: auto; top: 4%; }
@keyframes numberIn { from { opacity: 0; transform: translateX(8%); } }
@keyframes driverIn { from { opacity: 0; transform: translateY(40px); } }
@keyframes carDrive { from { opacity: 0; transform: translateX(14%); } }

/* ---------- Garagem ---------- */
.garage {
  background:
    radial-gradient(70% 50% at 50% 38%, color-mix(in srgb, var(--team) 22%, transparent), transparent 70%),
    var(--asphalt);
  transition: background .6s;
}
.team-picker {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.team-chip {
  --c: #888;
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--pitwall); border: 1px solid var(--kerb);
  font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s;
}
.team-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.team-chip:hover { border-color: var(--line); }
.team-chip[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--pitwall)); }

.stage { position: relative; display: grid; place-items: center; padding: 24px 0 8px; }
.stage-ghost {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 900 clamp(110px, 22vw, 360px)/1 var(--display); text-transform: uppercase;
  color: color-mix(in srgb, var(--team) 12%, transparent);
  white-space: nowrap; pointer-events: none; user-select: none; overflow: hidden;
}
.stage-media { position: relative; z-index: 2; width: 100%; height: clamp(240px, 36vw, 540px); display: flex; align-items: center; justify-content: center; }

.stage-car {
  max-width: min(calc(100% - 136px), 1500px); max-height: 100%; width: auto; height: auto;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.55));
}
.stage-floor {
  position: absolute; z-index: 1; bottom: 4%; left: 10%; right: 10%; height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 70%);
}
.stage-arrow {
  position: absolute; z-index: 3; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--asphalt) 70%, transparent);
  font-size: 30px; line-height: 1; display: grid; place-items: center;
}
.stage-arrow:hover { border-color: var(--team); }
.stage-arrow.prev { left: 0; }
.stage-arrow.next { right: 0; }

.view-bar { display: grid; justify-items: center; gap: 10px; margin-bottom: 8px; }
.view-switch { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pitwall); border: 1px solid var(--kerb); }
.view-switch button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--mute); }
.view-switch button:hover { color: var(--chalk); }
.view-switch button[aria-pressed="true"] { background: var(--team); color: var(--on-team, #0b0d10); }
.view-note { font-size: 13px; color: var(--mute); }
.view-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.engine-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid var(--team); background: color-mix(in srgb, var(--team) 14%, var(--pitwall)); font-weight: 600; font-size: 14px;
}
.engine-btn span { width: 22px; height: 22px; border-radius: 50%; background: var(--team); position: relative; }
.engine-btn span::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--on-team, #0b0d10); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.engine-btn:hover { background: color-mix(in srgb, var(--team) 26%, var(--pitwall)); }

/* galeria do veículo */
.gallery { margin: 28px 0 8px; }
.gallery-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.gallery-head h4 { font-size: 28px; text-transform: uppercase; }
.gallery-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pitwall); border: 1px solid var(--kerb); }
.gallery-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mute); }
.gallery-tabs button[aria-selected="true"] { background: var(--chalk); color: var(--asphalt); }
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 12px;
  overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.g-tile { display: grid; gap: 8px; align-content: start; padding: 0; border: 0; background: none; text-align: left; scroll-snap-align: start; }
.g-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--pitwall); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.g-tile:hover .g-thumb img { transform: scale(1.05); }
.g-tile:focus-visible { outline: none; }
.g-tile:focus-visible .g-thumb { outline: 2px solid var(--team); outline-offset: 2px; }
.g-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10,11,13,.72); border: 2px solid rgba(255,255,255,.85);
}
.g-play::after { content: ""; position: absolute; left: 18px; top: 13px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.g-badge { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--team); color: var(--on-team, #0b0d10); }
.g-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 15px; line-height: 1.3; }
.g-cap small { display: block; margin-top: 2px; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-note { font-size: 13px; color: var(--mute); margin-top: 4px; }

/* janela da galeria */
.media-modal {
  width: min(1180px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 56px 72px 20px; border: 0; border-radius: 18px;
  background: #0d0e11; color: var(--chalk); overflow: visible;
}
.media-modal::backdrop { background: rgba(5,6,8,.88); backdrop-filter: blur(4px); }
.media-modal[open] { animation: modalIn .3s cubic-bezier(.2,.8,.2,1); }
.mm-stage { display: grid; place-items: center; }
.mm-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.mm-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.mm-blocked {
  width: 100%; aspect-ratio: 16 / 9; position: relative; display: grid; align-items: end; border-radius: 10px; overflow: hidden; background: #000;
}
.mm-blocked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.mm-blocked div { position: relative; padding: clamp(20px, 4vw, 40px); display: grid; gap: 10px; justify-items: start; }
.mm-blocked b { font: 800 clamp(24px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.mm-blocked p { color: #c9ced6; }
.mm-blocked .btn { --team: #ff0033; --on-team: #fff; }
.g-ext { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(10,11,13,.82); color: #fff; }
.g-tile.is-ext { text-decoration: none; }
.g-tile.is-ext .g-play { opacity: .6; }
.mm-stage img { max-width: 100%; max-height: calc(100svh - 200px); border-radius: 10px; }
.mm-caption { margin-top: 12px; font-size: 15px; }
.mm-caption span, .mm-caption a { color: var(--mute); }
.mm-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--pitwall); font-size: 28px; line-height: 1;
}
.mm-nav.prev { left: 12px; }
.mm-nav.next { right: 12px; }

.garage-info { margin-top: 24px; }
.car-title { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.team-logo { width: 56px; height: 56px; object-fit: contain; }
.car-title h3 { font-size: clamp(48px, 7vw, 92px); text-transform: uppercase; color: var(--team); transition: color .4s; }
.car-title p { color: var(--mute); font-weight: 500; }
.car-rank { margin-left: auto; text-align: right; }
.car-rank span { display: block; font: 900 56px/1 var(--display); }
.car-rank small { color: var(--mute); font-size: 15px; }
.car-note { max-width: 70ch; color: #c9ced6; margin-bottom: 28px; }

.garage-grid { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 16px; }

.ratings { display: grid; gap: 16px; }
.rating-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.rating-row span { font-weight: 500; }
.rating-row strong { font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.bar i { height: 10px; border-radius: 1px; background: var(--kerb); transition: background .25s calc(var(--k, 0) * 22ms); }
.bar i.on { background: var(--team); }
.overall {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--kerb);
  display: flex; justify-content: space-between; align-items: baseline;
}
.overall span { font-weight: 600; }
.overall strong { font: 900 64px/1 var(--display); color: var(--team); }

.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--kerb); font-size: 15px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--mute); }
.specs dd { margin: 0; font-weight: 600; }
.specs .team-spec dd { color: var(--team); }

.team-drivers { display: grid; gap: 12px; }
.mini-driver {
  display: grid; grid-template-columns: 72px 1fr; align-items: end; gap: 12px;
  background: var(--kerb); border: 0; border-radius: 10px; overflow: hidden; text-align: left; padding: 0 12px 0 0;
}
.mini-driver img { width: 72px; height: 92px; object-fit: cover; object-position: top; }
.mini-driver div { padding-bottom: 12px; }
.mini-driver b { display: block; font: 800 24px/1 var(--display); text-transform: uppercase; }
.mini-driver small { color: var(--mute); font-size: 14px; }
.mini-driver:hover { outline: 1px solid var(--team); }

/* ---------- Pilotos ---------- */
.driver-grid { --card-w: 86%; --card-top: 8%; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.driver-card {
  --c: #888;
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-lg);
  border: 0; padding: 0; text-align: left;
  background:
    linear-gradient(180deg, transparent 45%, rgba(10,11,13,.92) 100%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #000) 0%, color-mix(in srgb, var(--c) 18%, var(--pitwall)) 70%);
  isolation: isolate;
}
.driver-card .num {
  position: absolute; z-index: -1; top: 6px; right: 12px;
  font: 900 150px/1 var(--display); color: rgba(255,255,255,.14);
}
.driver-card > img {
  position: absolute; z-index: -1; left: 50%; top: var(--card-top); translate: -50% 0;
  width: var(--card-w); max-width: none; height: auto; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.driver-card:hover > img, .driver-card:hover .multi { transform: scale(1.04); }
/* tripulação (WEC): até três pilotos lado a lado */
.driver-card .multi {
  position: absolute; z-index: -1; left: 0; right: 0; top: var(--card-top); height: 80%;
  display: flex; justify-content: center; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.driver-card .multi img { width: var(--card-w); height: auto; max-width: none; margin-inline: -16%; align-self: flex-start; }
.driver-card .multi img:nth-child(2) { margin-top: 6%; }
.driver-card .meta { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.driver-card .pos { display: block; font-size: 13px; color: rgba(255,255,255,.72); font-weight: 500; margin-bottom: 4px; }
.driver-card .pos b { display: inline-block; background: var(--chalk); color: var(--asphalt); border-radius: 3px; padding: 0 5px; margin-right: 4px; font-weight: 700; }
.driver-card h3 { font-size: clamp(26px, 2.4vw, 34px); text-transform: uppercase; overflow-wrap: anywhere; }
.driver-card h3 small { display: block; font-size: 18px; font-weight: 600; color: rgba(255,255,255,.75); }
.driver-card.crew h3 small { font-size: 15px; text-transform: none; }
.driver-card:focus-visible { outline-color: var(--c); }

/* Modal */
.driver-modal {
  --c: #888;
  width: min(980px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: 18px; color: var(--chalk);
  background:
    radial-gradient(70% 80% at 25% 60%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%),
    var(--pitwall);
  overflow: auto;
}
.driver-modal::backdrop { background: rgba(5,6,8,.75); backdrop-filter: blur(4px); }
.driver-modal[open] { animation: modalIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--asphalt); font-size: 24px; line-height: 1;
}
.modal-body { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.modal-body .full { height: 560px; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; justify-self: center; align-self: end; margin-top: 24px; }
.modal-body.crew { grid-template-columns: 420px 1fr; }
.modal-body .full.multi { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: auto; min-height: 420px; overflow: hidden; padding-top: 24px; }
.modal-body .full.multi img { width: 46%; height: auto; max-width: none; margin-inline: -7%; }
.modal-body .full.multi img:nth-child(2) { width: 52%; z-index: 1; }
.modal-info { padding: 40px 32px 32px 0; }
.modal-info .big-num { font: 900 96px/.8 var(--display); color: var(--c); }
.modal-info h2 { font-size: clamp(44px, 6vw, 80px); text-transform: uppercase; margin: 8px 0 4px; overflow-wrap: anywhere; }
.modal-info h2 small { display: block; font-size: max(.38em, 22px); font-weight: 700; color: var(--mute); text-transform: none; }
.modal-info .team-line { color: var(--mute); margin-bottom: 20px; }
.modal-info .bio { max-width: 52ch; margin-bottom: 24px; }
.modal-stats { --n: 3; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1px; background: var(--kerb); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.modal-stats div { background: var(--asphalt); padding: 14px; }
.modal-stats dt { color: var(--mute); font-size: 13px; }
.modal-stats dd { margin: 0; font: 800 34px/1.1 var(--display); }
.modal-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; }
.modal-facts dt { color: var(--mute); font-size: 13px; }
.modal-facts dd { margin: 0; font-weight: 600; }

/* ---------- Temporada ---------- */
.standings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel-tabs { display: inline-flex; flex-wrap: wrap; background: var(--asphalt); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.panel-tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--mute); }
.panel-tabs button[aria-selected="true"] { background: var(--chalk); color: var(--asphalt); }
.table { list-style: none; margin: 0; padding: 0; display: grid; }
.table li {
  --c: #888;
  display: grid; grid-template-columns: 32px 4px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--kerb);
  position: relative;
}
.table li:last-child { border-bottom: 0; }
.table .p { font: 800 20px var(--display); color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.table .stripe { height: 22px; border-radius: 2px; background: var(--c); }
.table .who b { font-weight: 600; }
.table .who small { display: block; color: var(--mute); font-size: 13px; line-height: 1.2; }
.table .val { font: 800 22px var(--display); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.table .gap { position: absolute; left: 48px; right: 0; bottom: -1px; height: 1px; }
.table .gap i { display: block; height: 2px; background: var(--c); opacity: .65; }
.table li:first-child .p { color: var(--chalk); }

.calendar { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.calendar li {
  --c: var(--line);
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--kerb); font-size: 15px;
}
.calendar .rnd { font: 800 18px var(--display); color: var(--mute); }
.calendar .gp b { font-weight: 600; }
.calendar .gp small { display: block; color: var(--mute); font-size: 13px; line-height: 1.2; }
.calendar .res { text-align: right; font-size: 14px; }
.calendar .res b { display: block; font-weight: 600; }
.calendar .res b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.calendar .res small { color: var(--mute); }
.calendar li.done .gp b { color: var(--mute); }
.calendar li.next { background: color-mix(in srgb, var(--amber) 10%, transparent); border-radius: 8px; padding-inline: 8px; margin-inline: -8px; border-bottom-color: transparent; }
.calendar li.next .rnd, .calendar li.next .res b { color: var(--amber); }
.calendar li.next .res b::before { display: none; }

/* ---------- Regras ---------- */
.rules-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.rules-grid.cards-only { grid-template-columns: 1fr; }
.rules-grid.cards-only .rules-explain { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th { text-align: left; font: 800 20px var(--display); text-transform: uppercase; color: var(--mute); padding: 0 8px 12px 0; }
.compare th:last-child { color: var(--chalk); }
.compare td { padding: 12px 8px 12px 0; border-top: 1px solid var(--kerb); vertical-align: top; }
.compare td:first-child { color: var(--mute); }
.is-compare .compare td:nth-child(2) { color: #b6bcc6; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.compare td:last-child { font-weight: 600; }
.rules-explain { display: grid; gap: 16px; }
.rules-explain article { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--kerb); }
.rules-explain h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 8px; }
.rules-explain p { color: #c9ced6; }

/* ---------- Curiosidades ---------- */
.fact-list { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 16px; }
.fact-list li {
  break-inside: avoid; margin-bottom: 16px; padding: 24px;
  background: var(--pitwall); border-radius: var(--r-lg); border: 1px solid var(--kerb);
}
.fact-list b { display: block; font: 900 clamp(44px, 5vw, 68px)/1 var(--display); margin-bottom: 10px; overflow-wrap: anywhere; }
.fact-list p { color: #c9ced6; }

.others { padding-top: 0; }
.others .section-head h2 { font-size: clamp(36px, 5vw, 64px); }

.footer { padding: 40px var(--gutter) 56px; color: var(--mute); font-size: 14px; border-top: 1px solid var(--kerb); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .garage-grid { grid-template-columns: 1fr 1fr; }
  .panel-drivers { grid-column: 1 / -1; }
  .team-drivers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .lobby-hero > :not(.grid-slots, .fx-contours) { max-width: none; }
  .wordmark { font-size: clamp(56px, 15vw, 170px); }
  .grid-slots { position: static; translate: none; width: 100%; order: 9; margin-top: 12px; margin-bottom: 40px; }
}
@media (max-width: 860px) {
  .topbar-row { flex-wrap: wrap; gap: 4px 16px; padding-bottom: 6px; }
  .brand { margin-right: auto; }
  .cat-nav { order: 3; width: calc(100% + 12px); margin-left: -12px; }
  .cat { position: static; }
  .cat-panel { left: var(--gutter); right: var(--gutter); width: auto; top: calc(100% - 2px); }
  .cat.is-active .cat-btn::after { bottom: -7px; }
  .subbar { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .section-nav { margin-left: -10px; width: calc(100% + 10px); }
  html { scroll-padding-top: 170px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 0; }
  .hero-driver { height: 70svh; margin-top: 12px; }
  .hero-number { font-size: 100vw; bottom: 10%; }
  .hero--wide { padding-bottom: 46vw; }
  .hero-car { width: 112vw; right: -12vw; bottom: 2%; }
  .standings, .rules-grid, .garage-grid { grid-template-columns: 1fr; }
  .modal-body, .modal-body.crew { grid-template-columns: 1fr; }
  .modal-body .full { height: 340px; }
  .modal-body .full.multi { height: auto; min-height: 0; max-width: 420px; }
  .modal-info { padding: 0 20px 24px; }
  .stage { padding: 24px 0 64px; }
  .stage-media { height: clamp(200px, 60vw, 380px); }
  .stage-car { max-width: 100%; }
  .stage-ghost { font-size: 30vw; }
  .stage-arrow { width: 40px; height: 40px; font-size: 24px; top: auto; bottom: 0; translate: none; }
  .media-modal { padding: 52px 12px 72px; }
  .mm-nav { top: auto; bottom: 14px; translate: none; width: 44px; height: 44px; }
  .agenda-list li { grid-template-columns: 52px 1fr auto; gap: 12px; }
  .ag-series { grid-column: 2; grid-row: 1; }
  .ag-gp { grid-column: 2; grid-row: 2; }
  .agenda-list time { grid-row: span 2; }
  .ag-when { grid-row: span 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .next-pill span { display: none; }
  .cat-btn { padding: 8px 10px; }
  .cat-btn .long { display: none; }
  .cat-btn .short, .cat-btn:not([aria-label]) .long { display: inline; }
  .lobby-stats { gap: 16px 24px; }
  .lobby-stats dd { font-size: 36px; }
  .hero-stats { gap: 18px; }
  .hero-stats dd { font-size: 36px; }
  .car-title { flex-wrap: wrap; }
  .team-drivers { grid-template-columns: 1fr; }
  .driver-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .driver-card h3 { font-size: 22px; }
  .driver-card h3 small { font-size: 14px; }
  .driver-card.crew h3 small { font-size: 12px; }
  .driver-card .num { font-size: 96px; }
  .modal-stats dd { font-size: 26px; }
  .modal-facts { grid-template-columns: 1fr; }
  .sc-media { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ======================================================================
   MOVIMENTO (motion.js)
   Os estados "antes" só valem com html.js-motion (classe posta no <head> quando o
   sistema não pede movimento reduzido). Sem ela, tudo aparece pronto e estático.
   ====================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* grão de filme sobre a página */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain { 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* transição entre páginas (lobby e campeonatos) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vtOut { to { opacity: 0; filter: blur(14px); transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; filter: blur(14px); transform: scale(1.015); } }

/* fundos vivos: linhas de contorno e brilhos que derivam */
.fx-contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.garage { position: relative; isolation: isolate; }
.garage .fx-contours { mask: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%); }
.lobby-hero::before, .hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none; filter: blur(40px);
  animation: drift 24s ease-in-out infinite alternate;
}
.lobby-hero::before {
  background:
    radial-gradient(28% 36% at 22% 30%, rgba(225, 6, 0, .16), transparent 70%),
    radial-gradient(26% 34% at 78% 62%, rgba(0, 178, 227, .13), transparent 70%),
    radial-gradient(22% 30% at 58% 18%, rgba(123, 97, 255, .14), transparent 70%),
    radial-gradient(24% 30% at 40% 80%, rgba(255, 46, 63, .1), transparent 70%);
}
.hero::before { background: radial-gradient(30% 40% at 70% 45%, color-mix(in srgb, var(--team) 26%, transparent), transparent 70%); }
@keyframes drift { from { transform: translate(-3%, -2%) rotate(0deg); } to { transform: translate(3%, 3%) rotate(8deg); } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

/* faixa de últimos vencedores */
.ticker {
  overflow: hidden; border-block: 1px solid var(--kerb); background: #101216; padding-block: 14px;
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: tick 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker li { --c: #888; display: flex; align-items: center; gap: 10px; padding-inline: 22px; white-space: nowrap; font-size: 15px; color: var(--mute); }
.ticker li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--c); margin-right: 10px; }
.ticker li b { font: 800 16px/1 var(--display); text-transform: uppercase; color: var(--c); }
.ticker li span { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--chalk); }
@keyframes tick { to { transform: translateX(-50%); } }

/* faixa quadriculada */
.seam-host { overflow: hidden; background: var(--asphalt); line-height: 0; }
.fx-seam { display: block; image-rendering: pixelated; opacity: .9; }

/* ---------- Títulos palavra por palavra e entradas com desfoque ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .02em .06em; margin: -.12em -.02em -.06em; }
.split .w > span { display: inline-block; transform: translateY(110%); filter: blur(6px); transition: transform 1s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 80ms), filter 1s calc(var(--i) * 80ms); }
.split.in .w > span { transform: none; filter: none; }
[data-reveal] { opacity: 0; translate: 0 40px; filter: blur(10px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms), translate .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms), filter .9s ease var(--d, 0ms); }
[data-reveal].in { opacity: 1; translate: none; filter: none; }

/* ---------- Inclinação 3D com reflexo ---------- */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
[data-tilt].tilting { transition: transform .1s linear; }
.series-card { position: relative; }
.has-glare::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .2), transparent 45%);
  mix-blend-mode: overlay;
}
.has-glare.tilting::after { opacity: 1; }

/* ---------- Hero do campeonato: número desenhado, entrada e paralaxe ---------- */
.hero-number.is-svg { line-height: 0; font-size: 0; -webkit-text-stroke: 0; }
.hero-number.is-svg svg { height: min(56vw, 740px); width: auto; overflow: visible; }
.hero-number.is-svg text {
  font: 900 860px var(--display); fill: transparent; stroke: color-mix(in srgb, var(--team) 60%, transparent); stroke-width: 2.5;
  stroke-dasharray: 5200; stroke-dashoffset: 5200; animation: drawNum 2.6s cubic-bezier(.6, 0, .2, 1) .3s forwards;
}
@keyframes drawNum { to { stroke-dashoffset: 0; } }
@keyframes driverIn { from { opacity: 0; transform: translateY(40px) scale(1.05); filter: blur(18px) drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); } }
.hero-driver.parallax { translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -10px + var(--sp, 0) * 160px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) blur(calc(var(--sp, 0) * 12px)); }
.hero-car.parallax { translate: calc(var(--px, 0) * -34px) calc(var(--sp, 0) * 120px); }
.hero-number.parallax { translate: calc(var(--px, 0) * 40px) calc(var(--py, 0) * 22px - var(--sp, 0) * 140px); }
.hero-copy.parallax { translate: calc(var(--px, 0) * 10px) calc(var(--sp, 0) * -70px); opacity: calc(1 - var(--sp, 0) * 1.3); }

/* ---------- Garagem: o carro entra com desfoque de movimento e rastros ---------- */
.stage-media.drive-r { animation: driveR .8s cubic-bezier(.16, 1, .3, 1) backwards; }
.stage-media.drive-l { animation: driveL .8s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes driveR { from { opacity: 0; transform: translateX(-26%) skewX(-10deg); filter: blur(16px); } 55% { filter: blur(0); } }
@keyframes driveL { from { opacity: 0; transform: translateX(26%) skewX(10deg); filter: blur(16px); } 55% { filter: blur(0); } }
.stage::after {
  content: ""; position: absolute; inset: 14% -10%; z-index: 1; pointer-events: none; opacity: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 17px, color-mix(in srgb, var(--team) 70%, transparent) 17px 18px, transparent 18px 41px),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(255, 255, 255, .5) 29px 30px, transparent 30px 53px);
  mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.stage.rush::after { animation: rush .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes rush {
  from { opacity: .95; transform: translateX(calc(var(--dir, 1) * -35%)) scaleX(1.4); }
  to { opacity: 0; transform: translateX(calc(var(--dir, 1) * 35%)) scaleX(.6); }
}
.stage-ghost.swap { animation: ghostIn 1s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes ghostIn { from { opacity: 0; letter-spacing: .25em; filter: blur(12px); } }

/* ======================================================================
   GUIA DE PISTAS (guide.js)
   ====================================================================== */
.cat-link {
  align-self: center; padding: 8px 12px; border-radius: 8px; color: var(--mute); font-weight: 600; font-size: 15px;
  text-decoration: none; position: relative; transition: color .15s, background .15s;
}
.cat-link:hover { color: var(--chalk); background: var(--pitwall); }
.cat-link.is-active { color: var(--chalk); }
.cat-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; background: var(--amber); }
.kicker { color: var(--c, var(--amber)); font-weight: 600; letter-spacing: .02em; }
.map-loading { display: grid; place-items: center; height: 100%; color: var(--mute); font-size: 14px; }

/* ---------- mapa do traçado (canvas) ---------- */
.track-box {
  --c: #e10600;
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 72svh; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--c) 9%, #121418), #0d0f12 75%);
  border: 1px solid var(--kerb); isolation: isolate;
}
.g-hero .track-box, .ct-hero .track-box { --c: inherit; }
.track-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-trace { z-index: 1; }
.tb-north {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: grid; justify-items: center; gap: 2px;
  font: 800 13px/1 var(--display); color: var(--mute);
}
.tb-north svg { width: 14px; height: 20px; fill: var(--chalk); opacity: .8; }
.tb-scale { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: grid; gap: 4px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.tb-scale i { width: var(--w, 80px); height: 6px; border: 1.5px solid var(--chalk); border-top: 0; opacity: .7; }
.tb-read { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; justify-items: end; text-align: right; }
.tb-read small { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tb-read b { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--chalk); }
.tb-replay {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--asphalt) 70%, transparent);
  font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); transition: border-color .15s;
}
.tb-replay svg { width: 14px; height: 14px; }
.tb-replay:hover { border-color: var(--c); }
.tb-empty { position: absolute; left: 24px; right: 24px; top: 50%; translate: 0 -50%; z-index: 2; text-align: center; color: var(--mute); font-size: 14px; max-width: 34ch; margin-inline: auto; }
.tb-empty b { display: block; font: 800 26px/1.05 var(--display); text-transform: uppercase; color: var(--chalk); margin-bottom: 6px; }
.tb-legend { color: var(--mute); font-size: 13px; margin-top: 10px; max-width: 70ch; }

/* ---------- índice ---------- */
.g-hero, .ct-hero, .ct-local { position: relative; isolation: isolate; overflow: hidden; }
.g-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  min-height: calc(100svh - 108px); padding-top: 40px;
}
.g-copy { display: grid; gap: 22px; align-content: center; }
.g-title { font-size: clamp(88px, 15vw, 220px); text-transform: uppercase; line-height: .82; }
.g-lede { color: var(--mute); max-width: 48ch; font-size: 18px; }
.g-stats div:last-child dd { color: var(--chalk); }
.g-feature { display: grid; gap: 12px; text-decoration: none; min-width: 0; }
.g-feature-tag { justify-self: start; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 40%, #fff); }
.g-feature-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.g-feature-name b { font: 800 34px/1 var(--display); text-transform: uppercase; }
.g-feature-name small { color: var(--mute); }
.g-feature-name em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--c); }
.g-feature:hover .g-feature-name b { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 6px; }

.world-map, .local-map { height: clamp(320px, 52vw, 560px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--kerb); background: #0d0f12; }
.leaflet-container { font: 14px/1.4 var(--body); background: #0d0f12; }
.leaflet-container a { color: var(--chalk); }
.leaflet-control-attribution { background: rgba(13,15,18,.78) !important; color: var(--mute) !important; font-size: 11px; }
.leaflet-control-attribution a { color: var(--chalk) !important; }
.leaflet-bar a { background: var(--pitwall) !important; color: var(--chalk) !important; border-color: var(--line) !important; }
.pit-tip { background: var(--pitwall); color: var(--chalk); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.pit-tip::before { border-top-color: var(--line) !important; }
.leaflet-interactive { cursor: pointer; }

.g-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.g-filters button {
  --c: var(--chalk);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: none; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s;
}
.g-filters i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.g-filters small { color: var(--mute); font-weight: 500; }
.g-filters button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: var(--c); }

.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.c-card {
  --c: #888;
  position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  background: var(--pitwall); border: 1px solid var(--kerb); transition: border-color .2s;
}
.c-card:hover { border-color: var(--c); }
.c-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--chalk) 14%, transparent) 1px, transparent 1.4px) 0 0 / 12px 12px,
    radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--c) 12%, transparent), transparent 75%);
}
.c-outline { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); overflow: visible; }
.c-outline path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.o-base { stroke: color-mix(in srgb, var(--chalk) 35%, transparent); stroke-width: 3; }
.o-run { stroke: var(--c); stroke-width: 1.4; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.c-outline.is-empty circle { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.c-outline.is-empty text { fill: var(--mute); font: 600 8px var(--body); }
.c-next { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--amber); color: #0b0d10; }
.c-body { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--kerb); }
.c-name { font: 800 26px/1 var(--display); text-transform: uppercase; }
.c-place { color: var(--mute); font-size: 14px; }
.c-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-facts em { display: block; font-style: normal; font-weight: 500; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.c-series { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.c-series i { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 45%, #fff); }
/* o traçado do card se desenha ao passar o mouse */
@media (hover: hover) {
  html.js-motion .c-card .o-run { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .25, 1); }
  html.js-motion .c-card:hover .o-run, html.js-motion .c-card:focus-visible .o-run { stroke-dashoffset: 0; }
  html.js-motion .c-card .o-base { stroke: color-mix(in srgb, var(--chalk) 55%, transparent); }
}

.lobby-guide .lg-cta { margin-top: 24px; }
.lobby-guide .c-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lobby-guide .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- página do circuito ---------- */
.ct-hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  min-height: calc(100svh - 108px); padding-top: 32px;
}
.ct-copy { display: grid; gap: 16px; align-content: center; min-width: 0; }
.ct-back { justify-self: start; color: var(--mute); text-decoration: none; font-size: 14px; }
.ct-back:hover { color: var(--chalk); }
.ct-copy { container-type: inline-size; }
.ct-name { font-size: min(140px, calc(100cqi / (var(--n) * .5))); text-transform: uppercase; line-height: .86; overflow-wrap: anywhere; text-wrap: balance; }
.ct-full { color: var(--mute); }
.ct-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 6px 0 0; }
.ct-stats div { border-left: 3px solid var(--c); padding-left: 12px; }
.ct-stats dt { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ct-stats dd { margin: 0; font: 800 48px/1 var(--display); font-variant-numeric: tabular-nums; }
.ct-stats dd small { font-size: .45em; margin-left: 4px; color: var(--mute); }
.ct-stats dd.sm { font-size: 30px; line-height: 1.6; }
.ct-record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-radius: 12px; background: var(--pitwall); border: 1px solid var(--kerb); }
.ct-record span { width: 100%; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ct-record b { font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--c); }
.ct-next { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ct-next i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 25%, transparent); flex: none; }
.ct-next em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-map { min-width: 0; }
.ct-map .track-box { aspect-ratio: 5 / 4; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.ct-sheet { display: grid; margin: 12px 0 16px; }
.ct-sheet div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--kerb); }
.ct-sheet dt { color: var(--mute); font-size: 14px; }
.ct-sheet dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-src { margin: 0; }
.ct-src a { color: var(--chalk); }

.race-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.race-list li {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: var(--asphalt); border: 1px solid var(--kerb); border-left: 4px solid var(--c);
  transition: border-color .2s;
}
.race-list li:hover { border-color: var(--c); }
.race-list time { display: grid; justify-items: center; color: var(--mute); font-size: 12px; text-transform: uppercase; }
.race-list time b { font: 900 30px/1 var(--display); color: var(--chalk); }
.rl-gp i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--c) 50%, #fff); }
.rl-gp b { font-weight: 600; }
.rl-res { text-align: right; font-size: 14px; }
.rl-res b { display: block; font-weight: 600; }
.rl-res b.nx { color: var(--amber); }
.rl-res small { color: var(--mute); }
.race-list a { position: absolute; inset: 0; border-radius: inherit; }

.ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ph-grid.n1 { grid-template-columns: minmax(0, 720px); }
.ph-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-grid.n3, .ph-grid.n4 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.ph-grid.n3 .ph-tile:first-child { grid-row: span 2; aspect-ratio: auto; }
.ph-grid.n4 .ph-tile:first-child { grid-row: span 3; aspect-ratio: auto; }
.ph-tile {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--pitwall); text-align: left;
  aspect-ratio: 4 / 3; min-height: 0;
}
.ph-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.ph-tile:hover img { transform: scale(1.05); }
.ph-tile span { position: absolute; inset: auto 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.82)); display: grid; }
.ph-tile b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tile small { font-size: 12px; color: #c9ced6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.local-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.local-side { display: grid; gap: 10px; }
.local-side .btn { justify-content: center; font-size: 15px; padding: 12px 16px; }
.map-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 10px; background: var(--pitwall); border: 1px solid var(--kerb); }
.map-switch button { padding: 9px; border: 0; border-radius: 7px; background: none; font-weight: 600; font-size: 14px; color: var(--mute); }
.map-switch button[aria-pressed="true"] { background: var(--kerb); color: var(--chalk); }

.ct-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 0 var(--gutter) 72px; }
.ct-pager a { text-decoration: none; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--kerb); background: var(--pitwall); transition: border-color .2s; }
.ct-pager a:hover { border-color: var(--series); }
.ct-pager a:last-child { text-align: right; }
.ct-pager small { display: block; color: var(--mute); font-size: 13px; }
.ct-pager b { font: 800 24px/1 var(--display); text-transform: uppercase; }
.ct-pager .mid { color: var(--mute); font-size: 14px; }

/* calendário dos campeonatos: o circuito leva ao guia */
.calendar .to-track { display: block; color: var(--mute); font-size: 13px; line-height: 1.2; text-decoration: none; }
.calendar .to-track:hover { color: var(--chalk); text-decoration: underline; }

/* entrada da página do guia */
@keyframes guideIn { from { opacity: 0; translate: 0 26px; filter: blur(8px); } }
html.js-motion .ct-copy > *, html.js-motion .g-copy > *, html.js-motion .ct-map, html.js-motion .g-feature { animation: guideIn .9s cubic-bezier(.16, 1, .3, 1) both; }
html.js-motion :is(.ct-copy, .g-copy) > :nth-child(2) { animation-delay: 70ms; }
html.js-motion :is(.ct-copy, .g-copy) > :nth-child(3) { animation-delay: 140ms; }
html.js-motion :is(.ct-copy, .g-copy) > :nth-child(4) { animation-delay: 210ms; }
html.js-motion :is(.ct-copy, .g-copy) > :nth-child(n+5) { animation-delay: 280ms; }
html.js-motion .ct-map, html.js-motion .g-feature { animation-delay: 200ms; animation-duration: 1.2s; }

@media (max-width: 1100px) {
  .g-hero, .ct-hero { grid-template-columns: 1fr; min-height: auto; }
  .local-wrap { grid-template-columns: 1fr; }
  .local-side { grid-template-columns: 1fr 1fr; }
  .local-side .map-switch { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ph-grid, .ph-grid.n3, .ph-grid.n4 { grid-template-columns: 1fr 1fr; }
  .ph-grid.n3 .ph-tile:first-child, .ph-grid.n4 .ph-tile:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .ph-grid.n4 .ph-tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .cat-link.is-active::after { bottom: -7px; }
  .track-box, .ct-map .track-box { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .cat-link { padding: 8px 6px; }
  .cat-nav { gap: 0; }
  .cat-btn { padding: 8px 7px; }
  .ct-stats dd { font-size: 38px; }
  .ct-stats dd.sm { font-size: 22px; line-height: 1.7; }
  .tb-read b { font-size: 22px; }
  .c-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-name { font-size: 20px; }
  .c-facts { gap: 4px 10px; font-size: 13px; }
  .c-body { padding: 10px 12px 12px; }
  .c-next { font-size: 11px; top: 6px; left: 6px; }
  .local-side { grid-template-columns: 1fr; }
  .ct-pager { grid-template-columns: 1fr 1fr; }
  .ct-pager .mid { display: none; }
  .ct-pager b { font-size: 18px; }
  .race-list li { grid-template-columns: 46px 1fr; }
  .rl-res { grid-column: 2; text-align: left; }
  .ct-sheet div { grid-template-columns: 1fr; gap: 2px; }
}


/* ======================================================================
   BOLETIM POR E-MAIL
   ====================================================================== */
.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; }
.newsletter {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  border-top: 1px solid var(--kerb);
  background: radial-gradient(60% 80% at 85% 50%, rgba(225, 6, 0, .08), transparent 70%);
}
.nl-copy { display: grid; gap: 18px; max-width: 620px; }
.newsletter h2 { font-size: clamp(48px, 6.4vw, 92px); text-transform: uppercase; text-wrap: balance; }
.nl-lede { color: #c9ced6; font-size: 18px; max-width: 54ch; }
.nl-points { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; }
.nl-points li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; }
.nl-points li::before {
  content: ""; grid-row: span 2; width: 14px; height: 14px; margin-top: 4px; border-radius: 2px;
  background: conic-gradient(var(--chalk) 25%, #e10600 0 50%, var(--chalk) 0 75%, #e10600 0) 0 0 / 7px 7px;
}
.nl-points b { font-weight: 600; }
.nl-points span { color: var(--mute); font-size: 15px; }

.nl-form { display: grid; gap: 10px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: #101216; color: var(--chalk); font: inherit; font-size: 16px;
}
.nl-row input::placeholder { color: #6b7280; }
.nl-row input:focus { outline: 2px solid var(--chalk); outline-offset: 1px; border-color: transparent; }
.nl-row .btn { --team: #e10600; --on-team: #fff; border: 0; cursor: pointer; }
.nl-row .btn:disabled { opacity: .6; cursor: progress; }
.nl-msg:empty { display: none; }
.nl-msg { font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nl-msg.ok { background: rgba(46, 204, 113, .12); color: #8ff0b6; }
.nl-msg.err { background: rgba(255, 194, 26, .1); color: var(--amber); }
.nl-form.done .nl-row { opacity: .5; }
.nl-fine { color: var(--mute); font-size: 13px; max-width: 60ch; }

.nl-sample { margin: 0; display: grid; gap: 10px; }
.nl-sample figcaption { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.nl-mail {
  display: grid; gap: 10px; padding: 22px 22px 18px; border-radius: var(--r-lg);
  background: #f4f5f7; color: #16181d; box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: rotate(-1.5deg); border-top: 6px solid var(--c);
}
.nl-mail p { margin: 0; }
.nl-from { display: flex; justify-content: space-between; font-size: 13px; color: #5b6270; padding-bottom: 8px; border-bottom: 1px solid #dde0e5; }
.nl-from b { color: #16181d; }
.nl-subject { font: 800 24px/1.05 var(--display); text-transform: uppercase; }
.nl-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c); filter: brightness(.85); }
.nl-mail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.nl-mail li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; background: #e8eaee; font-variant-numeric: tabular-nums; }
.nl-more { font-size: 13px; font-weight: 600; color: #b00500; }

.nl-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 40px; align-items: start;
  padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--kerb); color: var(--chalk);
}
.nl-foot > div:first-child { display: grid; gap: 4px; }
.nl-foot b { font: 800 26px/1 var(--display); text-transform: uppercase; }
.nl-foot span { color: var(--mute); font-size: 15px; }

@media (max-width: 860px) {
  .newsletter, .nl-foot { grid-template-columns: 1fr; }
  .nl-mail { transform: none; }
}
@media (max-width: 560px) {
  .nl-row { flex-direction: column; }
  .nl-row .btn { justify-content: center; }
}

/* ---------- convite ao boletim: janela ao sair ---------- */
.nl-modal {
  width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--pitwall); color: var(--chalk); box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.nl-modal::backdrop { background: rgba(5,6,8,.72); backdrop-filter: blur(6px); }
.nl-modal[open] { animation: nlIn .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes nlIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.nlm-band {
  height: 18px;
  background: conic-gradient(var(--chalk) 25%, #0b0d10 0 50%, var(--chalk) 0 75%, #0b0d10 0) 0 0 / 18px 18px;
  mask: linear-gradient(90deg, #000 0 35%, transparent 95%);
}
.nlm-body { display: grid; gap: 14px; padding: 26px 28px 22px; }
.nl-modal h2 { font-size: clamp(36px, 6vw, 52px); text-transform: uppercase; text-wrap: balance; }
.nlm-lede { color: #c9ced6; }
.nlm-next { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #15171c; border: 1px solid var(--kerb); font-size: 15px; }
.nlm-next i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.nlm-next em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nlm-no { justify-self: center; border: 0; background: none; color: var(--mute); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.nlm-no:hover { color: var(--chalk); }
.nl-modal .modal-close { z-index: 2; }

/* ---------- convite ao boletim: balão no canto ---------- */
.nl-bubble {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: grid; justify-items: end; gap: 10px; max-width: min(360px, calc(100vw - 32px));
  opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.nl-bubble.in { opacity: 1; transform: none; pointer-events: auto; }
.nl-bubble.in.away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.nlb-row { display: flex; align-items: center; gap: 6px; }
.nlb-toggle {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: #101216; color: var(--chalk); text-align: left; font-size: 14px; font-weight: 600; line-height: 1.25;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.nlb-toggle:hover { border-color: #e10600; }
.nlb-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #e10600; color: #fff; animation: nlPing 2.6s ease-out 1s 3;
}
.nlb-icon svg { width: 22px; height: 22px; }
@keyframes nlPing { 0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(225, 6, 0, 0); } }
.nl-bubble.open .nlb-text { display: none; }
.nl-bubble.open .nlb-toggle { padding-right: 8px; }
.nlb-close {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #101216; color: var(--mute); font-size: 18px; line-height: 1;
}
.nlb-close:hover { color: var(--chalk); }
.nlb-panel {
  display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); padding: 18px; border-radius: 16px;
  background: var(--pitwall); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55);
  animation: nlIn .35s cubic-bezier(.16, 1, .3, 1);
}
.nlb-panel b { font: 800 24px/1 var(--display); text-transform: uppercase; }
.nlb-panel > p { color: var(--mute); font-size: 14px; }
.nlb-panel .nl-row { flex-direction: column; }
.nlb-panel .nl-row .btn { justify-content: center; }
.nlb-panel .nl-fine { font-size: 12px; }
@media (max-width: 560px) {
  .nl-bubble { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .nlb-toggle { font-size: 13px; }
  .nlm-body { padding: 22px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .nlb-icon { animation: none; } }

.footer-links { display: flex; gap: 10px; margin-top: 10px; font-size: 14px; }
.footer-links a, .nl-fine a { color: var(--chalk); }

/* ======================================================================
   DESTAQUES (destaques.js)
   ====================================================================== */
.highlights { position: relative; }
.hl-races { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.hl-races button {
  flex: none; display: grid; gap: 2px; min-width: 170px; padding: 10px 14px; text-align: left; scroll-snap-align: start;
  border-radius: 12px; border: 1px solid var(--kerb); background: var(--pitwall); transition: border-color .15s, background .15s;
}
.hl-races button small { color: var(--mute); font-size: 12px; }
.hl-races button b { font: 800 20px/1.05 var(--display); text-transform: uppercase; white-space: nowrap; }
.hl-races button span { font-size: 13px; color: #c9ced6; }
.hl-races button:hover { border-color: var(--line); }
.hl-races button[aria-selected="true"] { border-color: var(--series); background: color-mix(in srgb, var(--series) 14%, var(--pitwall)); }

.hl-stage { display: grid; gap: 16px; }
.hl-feature {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 74svh; padding: 0; border: 0;
  border-radius: var(--r-lg); overflow: hidden; background: #000; text-align: left; isolation: isolate;
}
.hl-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.hl-feature:hover img { transform: scale(1.03); }
.hl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85)); }
.hl-feature .g-play { width: 76px; height: 76px; border-width: 3px; }
.hl-feature .g-play::after { left: 28px; top: 20px; border-left-width: 24px; border-top-width: 15px; border-bottom-width: 15px; }
.hl-feature:hover .g-play { background: var(--series); border-color: var(--series); }
.hl-meta { position: absolute; left: clamp(16px, 3vw, 32px); right: 16px; bottom: clamp(14px, 3vw, 28px); display: grid; gap: 4px; color: #fff; }
.hl-meta i { font-style: normal; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--series) 55%, #fff); }
.hl-meta b { font: 900 clamp(34px, 6vw, 76px)/.9 var(--display); text-transform: uppercase; }
.hl-meta small { font-size: 15px; color: #dfe3e8; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hl-kind { max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(10,11,13,.8) !important; color: #fff !important; }

.to-hl { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--series) 60%, #fff); text-decoration: none; }
.to-hl:hover { text-decoration: underline; }
.rl-hl { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--c) 60%, #fff); margin-top: 2px; }

/* lobby */
.lhl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lhl-card { --c: #888; display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--pitwall); border: 1px solid var(--kerb); transition: border-color .2s; }
.lhl-card:hover { border-color: var(--c); }
.lhl-media { position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; }
.lhl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.lhl-card:hover .lhl-media img { transform: scale(1.05); }
.lhl-card:hover .g-play { background: var(--c); border-color: var(--c); }
.lhl-badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--c); color: #fff; }
.lhl-body { display: grid; gap: 2px; padding: 14px 16px 16px; }
.lhl-body small { color: var(--mute); font-size: 13px; }
.lhl-body b { font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.lhl-body span { color: #c9ced6; font-size: 15px; }
.lhl-body a { margin-top: 8px; font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--c) 55%, #fff); text-decoration: none; }
.lhl-body a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .hl-races button { min-width: 150px; }
  .hl-feature { aspect-ratio: 4 / 3; }
  .hl-feature .g-play { width: 60px; height: 60px; }
  .hl-feature .g-play::after { left: 22px; top: 15px; border-left-width: 20px; border-top-width: 12px; border-bottom-width: 12px; }
  .hl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hl-grid .g-cap b { font-size: 13px; }
}
.hl-feature { cursor: pointer; }
.hl-ext { right: auto; left: clamp(16px, 3vw, 32px); top: clamp(14px, 3vw, 24px); bottom: auto; font-size: 13px; padding: 4px 12px; }
.hl-races { scrollbar-color: var(--line) transparent; }

/* ---------- aviso antes de ir ao YouTube ---------- */
.leave-modal {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--pitwall); color: var(--chalk); box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.leave-modal::backdrop { background: rgba(5,6,8,.72); backdrop-filter: blur(6px); }
.leave-modal[open] { animation: nlIn .35s cubic-bezier(.16, 1, .3, 1); }
.leave-modal .modal-close { z-index: 2; }
.lv-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lv-media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.lv-media img[src=""] { display: none; }
.lv-yt { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.lv-yt svg { width: 100%; display: block; }
.lv-body { display: grid; gap: 12px; padding: 22px 24px 20px; }
.leave-modal h2 { font-size: clamp(30px, 5vw, 40px); text-transform: uppercase; text-wrap: balance; }
.lv-video { font-weight: 600; }
.lv-video:empty { display: none; }
.lv-why { color: #c9ced6; font-size: 15px; }
.lv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lv-actions .btn-solid { --team: #ff0000; --on-team: #fff; }
.lv-skip { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; cursor: pointer; }
.lv-skip input { accent-color: var(--chalk); }
@media (max-width: 560px) { .lv-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- menu: campeonatos direto, sem submenus ---------- */
.cat-nav { align-items: center; }
.series-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.series-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.series-link:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
.series-link.is-active::after { background: var(--c); }
.nav-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--line); }
@media (max-width: 560px) {
  .series-link { gap: 5px; }
  .series-link i { width: 6px; height: 6px; box-shadow: none; }
  .nav-sep { margin: 0 2px; }
}

/* ---------- faixa do topo do lobby: próximas largadas e últimos vencedores ---------- */
.ticker { padding-block: 0; border-top: 0; }
.ticker li { padding-inline: 0; }
.ticker li::before { display: none; }
.ticker li a {
  display: flex; align-items: center; gap: 10px; padding: 13px 22px; color: var(--mute); text-decoration: none;
  transition: background .15s, color .15s;
}
.ticker li a::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--c); margin-right: 4px; }
.ticker li a:hover, .ticker li a:focus-visible { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--chalk); }
.ticker li em { font-style: normal; font: 700 15px/1 var(--body); color: var(--amber); font-variant-numeric: tabular-nums; }
.ticker .tk-next span { display: none; }
.tk-head {
  align-self: center; margin-inline: 18px 4px; padding: 4px 10px; border-radius: 999px;
  font: 700 11px/1 var(--body) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk) !important;
  background: var(--kerb);
}
.tk-head::before { display: none; }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; mask: none; } }

/* ---------- campeonatos lado a lado (lobby e "outros campeonatos") ---------- */
.series-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.series-row .sc-media { height: 170px; padding: 16px; }
.series-row .sc-body { gap: 10px; padding: 16px 18px 18px; }
.series-row .sc-body h4 { font-size: 30px; }
.series-row .sc-body h4 small { font-size: 13px; }
.series-row .sc-status { font-size: 15px; min-height: 2.6em; }
.series-row .sc-leader { padding: 8px 10px; gap: 10px; }
.series-row .sc-leader img { width: 42px; height: 42px; }
.series-row .sc-leader b { font-size: 18px; }
.series-row .sc-leader em { display: block; margin: 2px 0 0; font-size: 13px; }
.series-row .sc-next { font-size: 13px; }
@media (max-width: 1100px) { .series-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .series-row { grid-template-columns: 1fr; } .series-row .sc-media { height: 190px; } }
.series-row .sc-body { display: flex; flex-direction: column; }
.series-row .sc-cta { margin-top: auto; align-self: flex-start; }
.series-row .sc-next { min-height: 2.4em; }

/* ======================================================================
   ESQUELETO DE CARREGAMENTO DAS IMAGENS (script no <head> do index.html)
   ====================================================================== */
:root { --sk-base: #1f2228; --sk-shine: #2c3039; }
img.is-loading {
  color: transparent;                       /* esconde o texto alternativo enquanto carrega */
  background: linear-gradient(100deg, var(--sk-base) 35%, var(--sk-shine) 50%, var(--sk-base) 65%) 0 0 / 300% 100% var(--sk-base);
  animation: skShine 1.3s linear infinite;
}
/* espaço de mídia esperando uma imagem sem tamanho próprio */
.sk-host {
  background-image: linear-gradient(100deg, transparent 35%, rgba(236, 238, 241, .07) 50%, transparent 65%) !important;
  background-size: 300% 100% !important; background-repeat: no-repeat !important;
  animation: skShine 1.3s linear infinite;
}
img.is-loaded { animation: imgIn .5s cubic-bezier(.16, 1, .3, 1) both; }
img.is-broken { color: transparent; background: var(--sk-base); }
@keyframes skShine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes imgIn { from { opacity: 0; filter: blur(8px); } }
@media (prefers-reduced-motion: reduce) {
  img.is-loading { animation: none !important; }
  img.is-loaded { animation: none !important; }
  .sk-host { animation: none !important; }
}

/* cards de vídeo/foto: a capa ocupa a largura do card, não a largura natural da imagem */
.g-tile { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.g-thumb { width: 100%; min-width: 0; }
.g-cap { min-width: 0; }
/* etiquetas da faixa do topo: o espaçamento lateral delas não pode ser zerado pela regra geral dos itens */
.ticker .tk-head { padding: 5px 12px; line-height: 1; white-space: nowrap; }

/* ---------- próximas corridas: lista + destaque da próxima largada ---------- */
.agenda-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 24px; align-items: start; }
.agenda-wrap .agenda-list { max-width: none; grid-column: 1; grid-row: 1; }
.ag-feature {
  --c: #888; grid-column: 2; grid-row: 1; position: sticky; top: 130px;
  display: grid; gap: 12px; padding: 22px; border-radius: var(--r-lg);
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--pitwall);
  border: 1px solid var(--kerb); border-top: 4px solid var(--c);
}
.ag-f-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.ag-f-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); animation: agPulse 1.8s ease-in-out infinite; }
@keyframes agPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--amber) 0%, transparent); } }
.ag-feature h3 { font-size: clamp(32px, 3vw, 44px); text-transform: uppercase; }
.ag-f-place { color: var(--mute); font-size: 15px; margin-top: -6px; }
.ag-f-art { display: grid; border-radius: 12px; border: 1px solid var(--kerb); aspect-ratio: 16 / 10; text-decoration: none; }
.ag-f-art .o-run { stroke-dasharray: 1 1; animation: agDraw 2.6s cubic-bezier(.45, 0, .25, 1) .3s both; }
@keyframes agDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ag-f-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ag-f-count span { display: grid; justify-items: center; padding: 10px 4px 8px; border-radius: 10px; background: var(--asphalt); border: 1px solid var(--kerb); }
.ag-f-count b { font: 900 34px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--chalk); }
.ag-f-count small { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.ag-f-when { font-size: 14px; color: #c9ced6; }
.ag-f-when::first-letter { text-transform: uppercase; }
.ag-f-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-f-actions .btn { padding: 11px 16px; font-size: 15px; }
.ag-f-actions .btn-solid { --team: var(--c); --on-team: #fff; }
@media (max-width: 1100px) {
  .agenda-wrap { grid-template-columns: 1fr; }
  .ag-feature { grid-column: 1; position: static; }
  .agenda-wrap .agenda-list { grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .ag-f-art .o-run { animation: none; } .ag-f-kicker i { animation: none; } }

/* ---------- janela de destaques: vídeo grande + próximos em miniaturas ---------- */
.mm-strip { margin-top: 14px; }
.mm-strip > p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin-bottom: 8px; }
.mm-strip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.mm-s {
  flex: none; width: 190px; display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; color: var(--chalk);
  scroll-snap-align: start; opacity: .72; transition: opacity .15s;
}
.mm-s:hover, .mm-s.is-on { opacity: 1; }
.mm-s-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--pitwall); outline: 2px solid transparent; outline-offset: 2px; }
.mm-s.is-on .mm-s-thumb { outline-color: var(--series, #e10600); }
.mm-s-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-s-thumb .g-play { width: 34px; height: 34px; }
.mm-s-thumb .g-play::after { left: 12px; top: 8px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.mm-s-thumb .g-ext { font-size: 10px; padding: 1px 6px; right: 6px; bottom: 6px; }
.mm-s-cap { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-extcard { position: relative; width: min(100%, 1100px); aspect-ratio: 16 / 9; max-height: calc(100svh - 330px); border-radius: 12px; overflow: hidden; background: #000; }
.mm-extcard img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mm-extcard-body { position: absolute; inset: auto 0 0; display: grid; gap: 8px; justify-items: start; padding: clamp(16px, 3vw, 32px); background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.mm-extcard-body b { font: 800 clamp(24px, 3vw, 36px)/1 var(--display); text-transform: uppercase; }
.mm-extcard-body p { color: #dfe3e8; font-size: 15px; }
.mm-extcard-body .btn-solid { --team: #ff0000; --on-team: #fff; }
@media (max-width: 560px) { .mm-s { width: 150px; } }

/* setas da fileira de próximos */
.mm-strip-wrap { position: relative; }
.mm-strip-arrow {
  position: absolute; top: calc((190px * 9 / 16) / 2); translate: 0 -50%; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(16, 18, 22, .92); color: var(--chalk); font-size: 24px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.5); transition: background .15s, border-color .15s;
}
.mm-strip-arrow:hover { background: var(--kerb); border-color: var(--chalk); }
.mm-strip-arrow.prev { left: -6px; }
.mm-strip-arrow.next { right: -6px; }
@media (max-width: 560px) {
  .mm-strip-arrow { top: calc((150px * 9 / 16) / 2); width: 34px; height: 34px; font-size: 20px; }
}
/* miniatura ativa: a borda fica por dentro da capa (por fora ela era cortada pela fileira com rolagem) */
.mm-s-thumb { outline: 0 !important; }
.mm-s-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; border: 2px solid transparent; pointer-events: none; transition: border-color .15s; }
.mm-s.is-on .mm-s-thumb::after { border-color: var(--series, #e10600); }
.mm-s:focus-visible { outline: none; }
.mm-s:focus-visible .mm-s-thumb::after { border-color: var(--chalk); }
