/*
 * Layout "experience" do tema default (home_layout = experience).
 * Visual escuro portado do prototipo "FKart Racing Experience" (Marcos Takuma,
 * FKART, 10/2026) e alimentado por HomeExperienceService.
 *
 * Tudo escopado em body.xp: o arquivo so e carregado pelo experience/_layout,
 * mas o escopo protege o banner de cookies e o NPS, que sao injetados na pagina.
 * Cores do campeonato entram por --xp-red (vem de THEME_COLOR_ACCENT no layout).
 */

body.xp {
    --xp-red: #e10600;
    --xp-red-hover: #fe1610;
    --xp-bg: #0b0b0d;
    --xp-surface: #141417;
    --xp-surface-2: #17171b;
    --xp-surface-3: #19191d;
    --xp-line: #303036;
    --xp-line-2: #27272c;
    --xp-text: #f6f6f7;
    --xp-muted: #a6a8ae;
    --xp-muted-2: #8e8e98;
    --xp-heading: 'Rajdhani', Arial, sans-serif;
    --xp-body: 'Titillium Web', Arial, sans-serif;
    margin: 0;
    background: var(--xp-bg);
    color: var(--xp-text);
    font-family: var(--xp-body);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

/* Base em :where() = especificidade zero: qualquer classe do layout ganha
   (sem isso "body.xp a" apagava a cor do .xp-btn-white). */
:where(body.xp) *, :where(body.xp) *::before, :where(body.xp) *::after { box-sizing: border-box; }
:where(body.xp) a { color: inherit; text-decoration: none; }
:where(body.xp) a, :where(body.xp) button { transition: color .2s, background .2s, border-color .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
:where(body.xp) button, :where(body.xp) select { font: inherit; }
:where(body.xp) button { cursor: pointer; }
:where(body.xp) a:focus-visible, :where(body.xp) button:focus-visible, :where(body.xp) select:focus-visible { outline: 2px solid #ff5750; outline-offset: 3px; }
:where(body.xp) :is(h1, h2, h3, h4, p) { margin-top: 0; }
:where(body.xp) :is(h1, h2, h3, h4) { font-family: var(--xp-heading); font-weight: 700; line-height: 1.03; color: #fff; }
:where(body.xp) h2 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.8px; margin-bottom: 0; }
:where(body.xp) h3 { font-size: 26px; margin-bottom: 12px; }
:where(body.xp) p { line-height: 1.6; }
:where(body.xp) img { max-width: 100%; display: block; }
:where(body.xp) svg { flex-shrink: 0; vertical-align: middle; }

.xp-container { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }
.xp-section { padding-top: 80px; padding-bottom: 80px; }
.xp-red { color: var(--xp-red); }
.xp-muted { color: var(--xp-muted); }
.xp-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; color: #a8a9b0; line-height: 1.5; margin-bottom: 12px; text-transform: uppercase; }
.xp-link { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.xp-link:hover { color: #ff4d45; }
.xp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.xp-skip { position: fixed; left: 12px; top: -60px; background: var(--xp-red); padding: 14px; z-index: 200; color: #fff; }
.xp-skip:focus { top: 10px; }

/* ---------- botoes e selos ---------- */
.xp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 12px 22px; text-transform: uppercase; font-size: 12px; letter-spacing: .8px; font-weight: 700; border: 1px solid transparent; border-radius: 3px; color: #fff; white-space: nowrap; line-height: 1.2; }
.xp-btn:hover { transform: translateY(-2px); }
.xp-btn-red { background: var(--xp-red); border-color: var(--xp-red); }
.xp-btn-red:hover { background: var(--xp-red-hover); color: #fff; }
.xp-btn-outline { background: transparent; border-color: #49494f; }
.xp-btn-outline:hover { border-color: #92959c; background: #202025; color: #fff; }
.xp-btn-glass { background: rgba(17, 17, 17, .35); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(5px); }
.xp-btn-glass:hover { background: rgba(17, 17, 17, .6); color: #fff; }
.xp-btn-white { background: #fff; color: #b30500; }
.xp-btn-white:hover { color: #b30500; }
.xp-btn-small { min-height: 36px; padding: 7px 12px; font-size: 11px; gap: 10px; }
.xp-badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #46464c; border-radius: 2px; letter-spacing: .8px; font-size: 9px; font-weight: 700; white-space: nowrap; text-transform: uppercase; color: #d4d4da; }
.xp-badge-live { border-color: var(--xp-red); color: #fff; background: rgba(225, 6, 0, .18); }

/* ---------- header ---------- */
.xp-header { position: sticky; top: 0; z-index: 30; background: rgba(12, 12, 15, .94); backdrop-filter: blur(18px); border-top: 3px solid var(--xp-red); }
.xp-header-top { height: 65px; display: flex; align-items: center; gap: 20px; }
.xp-logo { width: 150px; height: auto; }
.xp-logo.is-arte-escura { mix-blend-mode: lighten; } /* arte com fundo preto: some no header escuro */
.xp-logo-link { display: flex; align-items: center; }
.xp-brand-divider { height: 22px; width: 1px; background: #4f4f53; }
.xp-brand-tagline { font-family: var(--xp-heading); font-size: 14px; letter-spacing: 2px; font-weight: 600; color: #b8b8bf; text-transform: uppercase; }
.xp-header-tools { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.xp-season { font-size: 10px; letter-spacing: 2px; color: #a0a0a7; text-transform: uppercase; }
.xp-driver-access { display: flex; gap: 10px; align-items: center; background: var(--xp-red); padding: 10px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 2px; color: #fff; }
.xp-driver-access:hover { background: var(--xp-red-hover); color: #fff; }
.xp-menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; }
.xp-nav { border-top: 1px solid #27272b; border-bottom: 1px solid #27272b; }
.xp-nav .xp-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xp-nav a { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 15px 0; text-transform: uppercase; position: relative; color: #c8c8ce; white-space: nowrap; }
.xp-nav a:hover, .xp-nav a.is-active { color: #fff; }
.xp-nav a.is-active::after { content: ''; position: absolute; height: 3px; background: var(--xp-red); bottom: -1px; left: 0; right: 0; }
.xp-nav .xp-nav-mobile { display: none; }

/* ---------- hero ---------- */
.xp-hero { position: relative; min-height: 620px; overflow: hidden; }
.xp-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: xp-hero-in 1.5s ease-out; }
.xp-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 9, 13, .94) 0%, rgba(11, 11, 13, .78) 30%, rgba(11, 11, 13, .1) 67%), linear-gradient(0deg, #0b0b0d 0%, transparent 30%); }
.xp-hero-content { position: relative; padding-top: 70px; padding-bottom: 50px; }
.xp-hero-eyebrow { font-size: 10px; letter-spacing: 3px; display: flex; align-items: center; gap: 11px; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; }
.xp-hero-eyebrow > span { width: 26px; height: 2px; background: var(--xp-red); }
.xp-hero h1 { font-size: clamp(48px, 5.4vw, 78px); letter-spacing: -1px; line-height: .94; margin-bottom: 22px; max-width: 680px; text-transform: uppercase; }
.xp-hero h1 em { font-style: normal; color: #f01610; }
.xp-hero-text { font-size: 15px; color: #c2c1c5; max-width: 520px; margin-bottom: 28px; }
.xp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.xp-hero-bottom { display: flex; align-items: center; gap: 35px; margin-top: 31px; font-size: 11px; letter-spacing: .9px; color: #aaa; text-transform: uppercase; }
.xp-hero-bottom a { color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.xp-hero-bottom a:hover { color: #ff4d45; }
.xp-hero-bottom > span { font-size: 8px; letter-spacing: .7px; color: #8c8c94; }
.xp-hero-side { position: absolute; right: 17px; top: 38%; writing-mode: vertical-rl; letter-spacing: 3px; font-size: 8px; color: #c3bdbe; text-transform: uppercase; }
@keyframes xp-hero-in { from { transform: scale(1.025); } to { transform: scale(1); } }

/* ---------- proxima etapa ---------- */
.xp-race-strip { position: relative; margin-top: -10px; z-index: 2; }
.xp-next { display: flex; align-items: center; gap: 30px; background: var(--xp-surface-3); border: 1px solid #39393f; border-left: 4px solid var(--xp-red); padding: 23px 27px; box-shadow: 0 20px 40px rgba(0, 0, 0, .13); }
.xp-next-label { font-size: 10px; letter-spacing: 1.7px; font-weight: 700; max-width: 150px; text-transform: uppercase; }
.xp-next-label small { display: block; font-size: 9px; color: #93939c; letter-spacing: .6px; margin-top: 10px; }
.xp-live-dot { display: inline-block; width: 7px; height: 7px; background: var(--xp-red); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 10px rgba(225, 6, 0, .4); animation: xp-pulse 1.6s infinite; }
@keyframes xp-pulse { 50% { opacity: .35; } }
.xp-next-desc { flex: 1; min-width: 0; }
.xp-next-desc .xp-eyebrow { margin-bottom: 4px; font-size: 10px; }
.xp-next-desc h3 { font-size: 24px; margin-bottom: 8px; }
.xp-next-desc p { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12px; color: #aaa; margin: 0; }
.xp-countdown { display: flex; gap: 20px; margin-right: 4px; }
.xp-countdown > div { text-align: center; min-width: 38px; }
.xp-countdown strong { display: block; font-family: var(--xp-heading); font-size: 36px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.xp-countdown small { display: block; font-size: 8px; letter-spacing: 1.5px; color: #999; margin-top: 6px; text-transform: uppercase; }
.xp-next-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- cabecalho de secao ---------- */
.xp-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 34px; }
.xp-section-heading .xp-eyebrow { margin-bottom: 10px; }
.xp-section-heading .xp-link { margin-bottom: 6px; }

.xp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.xp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- card de campeonato ---------- */
.xp-champ { display: flex; flex-direction: column; border: 1px solid #313137; background: var(--xp-surface); transition: border-color .2s, transform .2s; }
.xp-champ:hover { transform: translateY(-5px); border-color: #72727a; color: inherit; }
.xp-champ-visual { height: 195px; position: relative; overflow: hidden; background: #1c1c20; }
.xp-champ-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.xp-champ-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 23, .85), transparent 55%); }
.xp-champ-number { position: absolute; left: 20px; top: 10px; font-family: var(--xp-heading); font-size: 60px; font-weight: 700; font-style: italic; color: rgba(255, 255, 255, .14); z-index: 1; }
.xp-champ-format { position: absolute; left: 20px; bottom: 18px; background: var(--xp-red); padding: 5px 10px; font-size: 9px; letter-spacing: 1.5px; font-weight: 700; z-index: 1; text-transform: uppercase; }
.xp-track { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; height: 100%; background: repeating-linear-gradient(125deg, #1e1e22, #1e1e22 30px, #1a1a1e 30px, #1a1a1e 32px); color: #85858f; padding: 25px 40px 50px; }
.xp-track span { font-family: var(--xp-heading); font-size: 18px; max-width: 250px; color: #b4b4bc; }
.xp-champ-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.xp-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.xp-card-topline .xp-eyebrow { font-size: 10px; margin: 0; }
.xp-champ-body h3 { margin-top: 14px; font-size: 27px; }
.xp-champ-body p { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 0; }
.xp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.xp-tags span { border: 1px solid #3a3a40; padding: 4px 8px; font-size: 10px; color: #b1b1b8; }
.xp-card-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--xp-line); padding-top: 16px; font-size: 12px; font-weight: 600; margin-top: auto; }
.xp-card-bottom svg { color: var(--xp-red); }
.xp-progress { height: 3px; background: #2a2a30; margin-top: 14px; }
.xp-progress > span { display: block; height: 100%; background: var(--xp-red); }

/* ---------- lideranca ---------- */
.xp-ranking { background: var(--xp-surface); border-top: 1px solid var(--xp-line-2); border-bottom: 1px solid var(--xp-line-2); }
.xp-ranking-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 18px; }
.xp-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.xp-filters label { display: block; }
.xp-filters label[hidden] { display: none; }
.xp-select { background: #101013; color: #ddd; border: 1px solid #43434b; border-radius: 3px; padding: 11px 36px 11px 12px; min-height: 44px; min-width: 200px; font-size: 13px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.xp-table-wrap { overflow-x: auto; max-width: 100%; border-top: 1px solid #34343b; }
.xp-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; text-align: left; }
.xp-table th { font-size: 10px; letter-spacing: 1px; color: #92929e; font-weight: 600; padding: 14px 18px; border-bottom: 1px solid #35353d; text-transform: uppercase; }
.xp-table td { padding: 15px 18px; border-bottom: 1px solid #292930; }
.xp-table tbody tr:hover { background: #202025; }
.xp-table .xp-num { text-align: right; }
.xp-pos { font-family: var(--xp-heading); font-size: 23px; font-weight: 700; min-width: 22px; display: inline-block; }
.xp-top3 .xp-pos { color: var(--xp-red); }
.xp-driver { font-weight: 600; display: flex; align-items: center; gap: 14px; }
.xp-initials { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--xp-heading); font-size: 12px; color: #b1b1ba; border: 1px solid #45454f; background: #2d2d33; flex-shrink: 0; }
.xp-points { font-family: var(--xp-heading); font-weight: 700; font-size: 24px; }
.xp-gap { color: var(--xp-muted); font-size: 12px; }
.xp-footnote { font-size: 11px; color: #96969f; margin: 15px 0 0; }
.xp-ranking-panel[hidden] { display: none; }

/* ---------- ultimas etapas ---------- */
.xp-result { background: var(--xp-surface); border: 1px solid var(--xp-line); padding: 25px; display: flex; flex-direction: column; }
.xp-result h3 { font-size: 24px; margin-bottom: 4px; }
.xp-result-meta { font-size: 12px; color: var(--xp-muted); display: flex; gap: 6px; align-items: center; }
.xp-result-list { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid #35353a; }
.xp-result-list li { border-bottom: 1px solid var(--xp-line); }
.xp-result-list a { display: flex; gap: 12px; padding: 12px 0; align-items: center; }
.xp-result-list a:hover strong { color: #ff4d45; }
.xp-result-list strong { font-size: 13px; display: block; color: #fff; }
.xp-result-list small { font-size: 11px; color: #a0a0aa; display: block; margin-top: 2px; }
.xp-result-list svg { margin-left: auto; color: var(--xp-red); }
.xp-flag { color: var(--xp-red); font-family: var(--xp-heading); font-size: 18px; width: 22px; }

/* ---------- numeros ---------- */
.xp-stats { padding: 0 0 80px; }
.xp-stat { border: 1px solid #37373e; background: var(--xp-surface-2); padding: 25px; }
.xp-stat strong { display: block; font-family: var(--xp-heading); font-size: 46px; line-height: 1; color: #fff; margin-bottom: 8px; }
.xp-stat span { font-size: 12px; color: #a0a0ae; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- circuitos (teaser) ---------- */
.xp-media { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; }
.xp-media h2 { font-size: 58px; line-height: 1; margin-bottom: 20px; }
.xp-media p { font-size: 14px; margin-bottom: 26px; }
.xp-media-photo { position: relative; }
.xp-media-photo img { height: 340px; width: 100%; object-fit: cover; }
.xp-media-photo span { position: absolute; bottom: 10px; left: 14px; font-size: 8px; letter-spacing: .5px; color: #ccc; background: rgba(17, 17, 17, .75); padding: 5px 7px; text-transform: uppercase; }
.xp-circuit-mini { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--xp-line); }
.xp-circuit-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--xp-line); font-size: 13px; }
.xp-circuit-mini li span { color: var(--xp-muted); font-size: 12px; text-align: right; }

/* ---------- parceiros ---------- */
.xp-partners { padding-top: 10px; padding-bottom: 60px; text-align: center; }
.xp-partners-row { display: flex; justify-content: space-around; align-items: center; padding: 30px 0; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid #2f2f35; border-top: 1px solid #2f2f35; }
.xp-partners-row a, .xp-partners-row span.xp-partner { font-family: var(--xp-heading); font-size: 26px; font-weight: 700; font-style: italic; color: #bcbcc5; display: inline-flex; align-items: center; gap: 10px; }
.xp-partners-row a:hover { color: #fff; }
.xp-partners-row img { max-height: 48px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .85; }
.xp-partners-row a:hover img { filter: none; opacity: 1; }

/* ---------- chamada final ---------- */
.xp-join { padding: 65px 0; background: #cf0904; overflow: hidden; position: relative; }
.xp-join::after { content: 'FK'; font-family: var(--xp-heading); font-style: italic; font-weight: 700; font-size: 410px; position: absolute; right: 0; top: -105px; color: rgba(255, 255, 255, .06); pointer-events: none; line-height: 1; }
.xp-join .xp-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.xp-join .xp-eyebrow { color: #ffd8d5; }
.xp-join h2 { font-size: 66px; line-height: .96; text-transform: uppercase; }
.xp-join h2 em { font-style: normal; }
.xp-join p { margin: 22px 0 0; font-size: 14px; color: #ffe1df; }
.xp-join-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.xp-join .xp-btn { min-height: 56px; font-size: 13px; gap: 30px; justify-content: space-between; }
.xp-join .xp-btn-outline { border-color: rgba(255, 255, 255, .6); }
.xp-join .xp-btn-outline:hover { background: rgba(0, 0, 0, .15); }

/* ---------- rodape ---------- */
.xp-footer { padding: 65px 0 0; background: #0a0a0c; }
.xp-footer-top { display: grid; grid-template-columns: 1.2fr .8fr .9fr 1.2fr; gap: 45px; padding-bottom: 45px; }
.xp-footer-top > div > a:not(.xp-link) { display: block; font-size: 13px; color: #aaaab3; margin-bottom: 11px; }
.xp-footer-top > div > a:not(.xp-link):hover { color: #fff; }
.xp-footer-top .xp-logo { margin-bottom: 22px; }
.xp-footer-top p { font-size: 13px; color: #93939c; }
.xp-footer-cta h3 { font-size: 31px; }
.xp-footer-cta .xp-link { color: #ee423c; }
.xp-social { display: flex; gap: 10px; margin-top: 18px; }
.xp-social a { width: 38px; height: 38px; border: 1px solid #3a3a42; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #c8c8d0; }
.xp-social a:hover { border-color: var(--xp-red); color: #fff; }
.xp-footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #28282c; padding: 22px 0; gap: 20px; color: #83838d; font-size: 11px; flex-wrap: wrap; }
.xp-footer-bottom > div { display: flex; gap: 23px; flex-wrap: wrap; }
.xp-footer-bottom a:hover { color: #fff; }
.xp-footer-bottom strong { color: #b5b5bd; }

/* ---------- bottom nav (mobile) - classe com "bottom-nav": o banner de cookies mede e sobe ---------- */
.xp-bottom-nav { display: none; }

/* ---------- paginas internas ---------- */
.xp-page-intro { padding-top: 65px; padding-bottom: 40px; }
.xp-breadcrumbs { font-size: 11px; color: #a3a3af; display: flex; gap: 10px; margin-bottom: 26px; text-transform: uppercase; letter-spacing: 1px; }
.xp-breadcrumbs a:hover { color: #fff; }
.xp-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 10px; flex-wrap: wrap; }
.xp-page-heading h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -1.5px; margin-bottom: 14px; }
.xp-page-heading p { max-width: 710px; font-size: 15px; margin-bottom: 0; color: var(--xp-muted); }
.xp-tabs { display: flex; gap: 5px; border-bottom: 1px solid #36363e; margin: 25px 0 30px; overflow-x: auto; }
.xp-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: #aaaab4; padding: 13px 18px; font-size: 13px; white-space: nowrap; }
.xp-tab.is-active, .xp-tab:hover { border-bottom-color: var(--xp-red); color: #fff; background: var(--xp-surface-3); }
.xp-panel { padding: 30px; background: var(--xp-surface-2); border: 1px solid #33333a; margin-bottom: 22px; scroll-margin-top: 140px; }
.xp-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.xp-panel-head h2 { font-size: 38px; }
.xp-panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.xp-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.xp-details > div { border: 1px solid #34343b; padding: 16px; background: #131316; }
.xp-details span { display: block; font-size: 10px; color: #90909f; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.xp-details strong { font-family: var(--xp-heading); font-size: 26px; color: #fff; line-height: 1.1; }
.xp-cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--xp-line); }
.xp-cat-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--xp-line); font-size: 14px; flex-wrap: wrap; }
.xp-cat-list li > span { font-weight: 600; }
.xp-cat-list .xp-cat-links { display: flex; gap: 14px; }
.xp-cat-list .xp-cat-links a { font-size: 12px; font-weight: 700; color: #ff5a53; display: inline-flex; gap: 5px; align-items: center; }
.xp-cat-list .xp-cat-links a:hover { color: #fff; }
.xp-cards-campeonatos { margin-bottom: 60px; }
.xp-card-wrap { display: flex; }
.xp-card-wrap > .xp-champ { flex: 1; }
.xp-card-wrap[hidden], .xp-panel[hidden] { display: none; }
.xp-panel-local { margin-top: 14px; display: flex; gap: 6px; align-items: center; font-size: 13px; }
.xp-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.xp-empty { display: flex; align-items: center; justify-content: center; gap: 12px; flex-direction: column; padding: 35px 25px; color: #b1b1bb; border: 1px dashed #42424b; text-align: center; font-size: 14px; }
.xp-empty p { margin: 0; }

.xp-circuit { display: grid; grid-template-columns: 300px 1fr; border: 1px solid #33333a; background: var(--xp-surface-2); margin-bottom: 22px; scroll-margin-top: 140px; }
.xp-circuit-visual { background: #fff; display: flex; align-items: center; justify-content: center; padding: 30px; min-height: 220px; }
.xp-circuit-visual img { max-height: 150px; width: auto; object-fit: contain; }
.xp-circuit-visual.is-sem-foto { background: #1c1c20; }
.xp-details.xp-details-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xp-circuit-visual.is-photo { padding: 0; background: #1c1c20; }
.xp-circuit-visual.is-photo img { max-height: none; width: 100%; height: 100%; object-fit: cover; }
.xp-circuit-body { padding: 28px 30px; }
.xp-circuit-body h2 { font-size: 34px; margin-bottom: 8px; }
.xp-circuit-body address { font-style: normal; font-size: 14px; color: var(--xp-muted); display: flex; gap: 8px; align-items: flex-start; margin-bottom: 18px; line-height: 1.5; }

.xp-stats-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.xp-sponsor-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.xp-sponsor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.xp-sponsor-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid #34343b; background: #131316; font-size: 14px; line-height: 1.5; }
.xp-sponsor-list li svg { color: var(--xp-red); margin-top: 2px; }
.xp-sponsor-list li strong { display: block; color: #fff; font-size: 15px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
    .xp-container { width: calc(100% - 48px); }
    .xp-nav a { font-size: 10px; }
    .xp-nav .xp-container { gap: 10px; }
    .xp-next { gap: 18px; padding: 20px; }
    .xp-next-label { display: none; }
    .xp-countdown { gap: 12px; }
    .xp-countdown strong { font-size: 31px; }
    .xp-footer-top { gap: 25px; }
    .xp-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xp-panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .xp-container { width: calc(100% - 32px); }
    .xp-logo { width: 132px; }
    .xp-brand-divider, .xp-brand-tagline, .xp-season { display: none; }
    .xp-header-tools { gap: 10px; }
    .xp-driver-access { padding: 9px 12px; font-size: 10px; }
    .xp-driver-access .xp-ico-arrow { display: none; }
    .xp-menu-toggle { display: inline-flex; }
    .xp-nav { display: none; }
    .xp-nav.is-open { display: block; position: absolute; left: 0; right: 0; max-height: calc(100vh - 68px); overflow-y: auto; background: #101014; border-bottom: 1px solid #2e2e34; }
    .xp-nav .xp-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-bottom: 12px; width: 100%; }
    .xp-nav a { font-size: 12px; padding: 16px; border-bottom: 1px solid #2e2e34; }
    .xp-nav a.is-active::after { display: none; }
    .xp-nav a.is-active { color: #fff; background: #19191d; box-shadow: inset 3px 0 0 var(--xp-red); }
    .xp-nav .xp-nav-mobile { display: block; grid-column: 1 / -1; color: #fff; }
    .xp-hero { min-height: 560px; }
    .xp-hero-content { padding-top: 56px; padding-bottom: 35px; }
    .xp-hero h1 { font-size: 60px; }
    .xp-hero-image { object-position: 65% center; }
    .xp-hero-shade { background: linear-gradient(90deg, rgba(8, 8, 14, .9), rgba(11, 11, 13, .58) 55%, rgba(11, 11, 13, .27)), linear-gradient(0deg, #0b0b0d, transparent 30%); }
    .xp-hero-side { display: none; }
    .xp-hero-bottom { gap: 20px; flex-wrap: wrap; }
    .xp-race-strip { margin-top: 0; }
    .xp-next { flex-wrap: wrap; padding: 22px 20px; gap: 20px; }
    .xp-next-desc { flex-basis: 100%; }
    .xp-next-actions { margin-left: auto; }
    .xp-countdown { gap: 20px; }
    .xp-section { padding-top: 56px; padding-bottom: 56px; }
    .xp-section-heading { gap: 15px; }
    .xp-section-heading h2 { font-size: 34px; }
    .xp-section-heading .xp-link { font-size: 11px; }
    .xp-grid-3 { grid-template-columns: 1fr 1fr; gap: 16px; }
    .xp-grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .xp-grid-2 { grid-template-columns: 1fr; }
    .xp-champ-body { padding: 20px; }
    .xp-champ-body h3 { font-size: 25px; }
    .xp-stats { padding-bottom: 56px; }
    .xp-media { grid-template-columns: 1fr; gap: 30px; }
    .xp-media h2 { font-size: 46px; }
    .xp-media-photo img { height: 270px; }
    .xp-join h2 { font-size: 52px; }
    .xp-join .xp-container { flex-direction: column; align-items: flex-start; }
    .xp-join-actions { width: 100%; max-width: 360px; }
    .xp-footer-top { grid-template-columns: 1fr 1fr; gap: 35px; }
    .xp-footer-bottom { padding-bottom: 92px; }
    .xp-ranking-toolbar { flex-wrap: wrap; }
    .xp-circuit { grid-template-columns: 1fr; }
    .xp-circuit-visual { min-height: 170px; }
    .xp-sponsor-hero { grid-template-columns: 1fr; }
    .xp-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: rgba(20, 20, 25, .96); backdrop-filter: blur(12px); border-top: 1px solid #45454e; z-index: 35; padding: 9px 0 max(9px, env(safe-area-inset-bottom)); }
    .xp-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #c1c1cc; min-width: 70px; padding: 2px 4px; }
    .xp-bottom-nav a.is-active { color: #fff; }
    .xp-bottom-nav svg { color: #eb2b25; }
}

@media (max-width: 520px) {
    .xp-hero { min-height: 580px; }
    .xp-hero h1 { font-size: 50px; line-height: .98; }
    .xp-hero-eyebrow { font-size: 9px; letter-spacing: 2px; }
    .xp-hero-text { font-size: 14px; max-width: 320px; line-height: 1.65; }
    .xp-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 320px; }
    .xp-hero-actions .xp-btn { font-size: 11px; justify-content: space-between; }
    .xp-next { gap: 16px; }
    .xp-next-desc h3 { font-size: 22px; }
    .xp-countdown { gap: 14px; width: 100%; justify-content: space-between; }
    .xp-countdown strong { font-size: 30px; }
    .xp-next-actions { width: 100%; margin-left: 0; }
    .xp-next-actions .xp-btn { flex: 1; font-size: 11px; padding: 10px 12px; gap: 8px; min-height: 44px; }
    .xp-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .xp-section-heading h2 { font-size: 31px; }
    .xp-section-heading .xp-link { margin-bottom: 0; }
    .xp-grid-3 { grid-template-columns: 1fr; }
    .xp-champ-visual { height: 180px; }
    .xp-champ-body { padding: 22px; }
    .xp-champ-body h3 { font-size: 27px; }
    .xp-filters { width: 100%; gap: 8px; }
    .xp-filters label { flex: 1; min-width: 0; }
    .xp-select { min-width: 0; width: 100%; font-size: 12px; padding: 10px 30px 10px 10px; }
    .xp-table th { padding: 12px 10px; }
    .xp-table td { padding: 13px 10px; font-size: 13px; }
    .xp-initials { width: 28px; height: 28px; font-size: 10px; }
    .xp-driver { gap: 8px; white-space: normal; }
    .xp-pos { font-size: 21px; }
    .xp-points { font-size: 22px; }
    .xp-hide-sm { display: none; }
    .xp-stat { padding: 18px; }
    .xp-stat strong { font-size: 38px; }
    .xp-stat span { font-size: 10px; }
    .xp-media h2 { font-size: 42px; }
    .xp-media-photo img { height: 230px; }
    .xp-join h2 { font-size: 48px; }
    .xp-join::after { font-size: 260px; top: -30px; }
    .xp-footer-top { grid-template-columns: 1fr; gap: 28px; }
    .xp-footer-cta h3 { font-size: 28px; }
    .xp-footer-bottom { gap: 14px; }
    .xp-panel { padding: 20px; }
    .xp-panel-head h2 { font-size: 30px; }
    .xp-details strong { font-size: 22px; }
    .xp-circuit-body { padding: 22px 20px; }
    .xp-circuit-body h2 { font-size: 28px; }
    .xp-page-intro { padding-top: 40px; }
    .xp-cat-list li { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    body.xp *, body.xp *::before, body.xp *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .xp-header, .xp-footer, .xp-bottom-nav, .xp-btn, .xp-skip { display: none !important; }
    body.xp { background: #fff; color: #000; }
}
