/* Moto Hub — estilos extraídos do index.html (para cache eficiente) */

/* Tipografia: moto sans (headlines) + Gotham (body) — Brand VI section 06 */
@font-face { font-family: 'moto sans'; src: url('../fonts/MotoSans-Regular.woff2') format('woff2'), url('../fonts/MotoSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'moto sans'; src: url('../fonts/MotoSans-Italic.woff2') format('woff2'), url('../fonts/MotoSans-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
/*
  Moto Sans Bold (peso 700): copie MotoSans-Bold.woff2/.woff da pasta Web do pacote para fonts/ e descomente:
@font-face {
    font-family: 'moto sans';
    src: url('../fonts/MotoSans-Bold.woff2') format('woff2'), url('../fonts/MotoSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
  Sem este ficheiro, font-weight: 600/700 usa negrito sintético (menos nítido que o Bold real).
*/
/* Gotham: pacote local trouxe só WOFF + TTF (não existe WOFF2 nesse pacote).
   Browser tenta cada src em ordem e usa o primeiro que existe.
   Pra adicionar WOFF2 no futuro: converter via cwebp/woff2 tools e reintroduzir
   a linha url('../fonts/gotham-medium.woff2') format('woff2'), no topo. */
@font-face {
    font-family: 'Gotham Medium';
    src:
        url('../fonts/gotham-medium.woff') format('woff'),
        url('../fonts/GothamMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Motorola Global Brand Identity — Core palette (Nov 2025) */
:root {
    --moto-black: #131417;
    --white: #FFFFFF;
    --frost: #E9EAF2;
    --pearl: #F0EDE9;
    --slate-blue: #636880;
    /* Texto secundário ligeiramente mais escuro (contraste sobre vidro branco). */
    --text-secondary: #545a72;
    --sandstone: #7A7670;
    --moto-indigo: var(--slate-blue); /* alias: destaque = Slate Blue */
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --stroke: rgba(99, 104, 128, 0.12);
    --stroke-strong: rgba(99, 104, 128, 0.18);
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: 'Gotham Medium', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--frost);
    color: var(--moto-black);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    isolation: isolate;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 85% at 50% -25%, rgba(99, 104, 128, 0.16), transparent 58%),
        radial-gradient(ellipse 80% 55% at 100% 5%, rgba(99, 104, 128, 0.09), transparent 52%),
        radial-gradient(ellipse 70% 50% at -5% 85%, rgba(255, 255, 255, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 95%, rgba(99, 104, 128, 0.06), transparent 50%),
        linear-gradient(168deg, #eceef5 0%, var(--frost) 42%, #e2e5ee 100%);
}
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--slate-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Headlines e subheadlines: moto sans (Brand VI — primary typeface); sempre minúsculas */
h1, h2, h3, h4, .moto-headline {
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    letter-spacing: -0.01em;
    line-height: 0.84;
}

/* Body, captions, links, CTAs: Gotham (Brand VI — secondary typeface) */
p, pre, footer {
    font-family: 'Gotham Medium', system-ui, sans-serif !important;
    line-height: 1.15;
}

/* UI em destaque: moto sans (títulos de card, abas, botões); sempre minúsculas */
.moto-sans-text, button, a {
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
}

.home-page {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    /* Larguras assimétricas (ex.: Dynamic Island / fold) + margens confortáveis em telemóveis estreitos */
    --hub-pad-l: max(clamp(12px, 3.8vw, 32px), env(safe-area-inset-left, 0px));
    --hub-pad-r: max(clamp(12px, 3.8vw, 32px), env(safe-area-inset-right, 0px));
    /* Mesmo limite do grid de cards (centrado): alinha o logo com a orla esquerda do 1.º card */
    --hub-cards-max: 1040px;
    padding: 0 var(--hub-pad-r) max(8px, env(safe-area-inset-bottom, 0px)) var(--hub-pad-l);
}

/* Hero + logo — escala global do bloco “moto hub” via --hero-scale (1.3 = +30%). */
.home-hero {
    --hero-scale: 1.3;
    /* Subtítulo mais discreto em relação ao título “moto hub” (1 = igual ao factor do hero). */
    --hero-subline-ratio: 0.86;
    margin: 0;
    padding: calc(22px * var(--hero-scale)) 0 calc(12px * var(--hero-scale));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-glass {
    width: fit-content;
    max-width: min(calc(38rem * var(--hero-scale)), 100%);
    min-width: 0;
    margin: calc(4px * var(--hero-scale)) auto 0;
    padding:
        calc(0.58rem * var(--hero-scale))
        calc(1.1rem * var(--hero-scale))
        calc(0.65rem * var(--hero-scale));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: calc(0.28rem * var(--hero-scale));
    border-radius: calc(22px * var(--hero-scale));
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0.32) 100%);
    backdrop-filter: blur(26px) saturate(1.45);
    -webkit-backdrop-filter: blur(26px) saturate(1.45);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 1px rgba(255, 255, 255, 0.4) inset,
        0 -1px 0 rgba(99, 104, 128, 0.06) inset,
        0 28px 56px rgba(99, 104, 128, 0.09),
        0 10px 24px rgba(19, 20, 23, 0.05);
}

.logo-container {
    align-self: stretch;
    width: 100%;
    text-align: left;
    margin-bottom: calc(14px * var(--hero-scale));
    box-sizing: border-box;
    padding-left: max(0px, calc((100% - min(var(--hub-cards-max), 100%)) / 2));
}

.logo-container img {
    height: 32px;
    width: auto;
    max-width: min(168px, 46vw);
    margin: 0;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.home-cards-wrap {
    padding: 4px 0 26px;
}

.videos-jump-wrap {
    display: flex;
    justify-content: center;
    margin-top: clamp(16px, 3.5vw, 28px);
    padding-bottom: 2px;
}

.videos-jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 28px;
    box-sizing: border-box;
    border-radius: 999px;
    background: linear-gradient(155deg, rgba(35, 37, 44, 0.92) 0%, rgba(19, 20, 23, 0.95) 50%, rgba(30, 32, 40, 0.92) 100%);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    color: var(--white) !important;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 12px rgba(19, 20, 23, 0.12),
        0 16px 32px rgba(19, 20, 23, 0.2);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.22s ease;
}

.videos-jump-btn:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 8px 20px rgba(19, 20, 23, 0.12),
        0 22px 44px rgba(99, 104, 128, 0.22);
}

.videos-jump-btn:active {
    transform: translateY(-1px);
}

.card,
.videos-jump-btn,
.video-fs-btn {
    touch-action: manipulation;
}

.home-videos {
    padding: 28px 0 max(28px, env(safe-area-inset-bottom, 0px));
    margin-top: 2px;
    border-top: 1px solid rgba(99, 104, 128, 0.12);
    scroll-margin-top: max(24px, env(safe-area-inset-top, 0px));
}

#recursos {
    scroll-margin-top: max(12px, env(safe-area-inset-top, 0px));
}

.videos-section-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 600;
    text-align: center;
    margin: 0 auto 18px;
    max-width: min(28rem, 100%);
    box-sizing: border-box;
    width: 100%;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    color: var(--moto-black);
    letter-spacing: -0.02em;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

/* Alinha o bleed horizontal ao padding real da página (incl. safe-area) */
/* Container das trilhas (legado). Empilha shorts (vertical) e vídeos. */
.video-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Home — destaques LADO A LADO (shorts à esquerda, vídeos à direita).
   Cada coluna é um .video-group (bloco escuro). Mobile empilha. */
.home-videos-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 980px) {
    .home-videos-featured:not(.home-videos-featured--single) {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
/* Destaques da home SEM bloco escuro — cards direto na página, igual à
   biblioteca (consistência home × /videos). Rótulos em escuro (saíram do fundo
   escuro) e alinhados com os cards. */
.home-videos-featured .video-group {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    /* Item de grid: min-width:0 deixa o card encolher pra largura da coluna
       (sem isso, min-width:auto força o tamanho do conteúdo e estoura). */
    min-width: 0;
}
/* Home não usa setas (autoplay/scroll dão conta); só a biblioteca tem. */
.home-videos-featured .video-nav { display: none !important; }
/* Especificidade extra (.home-videos ...) pra vencer .home-videos .video-group-label
   (que deixa o rótulo branco pro bloco escuro) — aqui o fundo é claro. */
.home-videos .home-videos-featured .video-group-label {
    color: var(--moto-black, #131417);
    font-size: 1.1rem;
    padding-left: 0;
    margin: 0 0 10px;
}
/* Sem safe center: cards alinhados à esquerda, na mesma borda do rótulo. */
.home-videos-featured .video-rail {
    padding: 2px 4px 12px !important;
}

/* Vídeo horizontal em destaque ocupa 100% do espaço (a coluna no desktop, a
   largura toda no mobile) — fica centralizado e do mesmo tamanho do rodapé. */
.home-videos-featured .video-card--horizontal {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Botão "acesse a biblioteca de vídeos" abaixo dos destaques. */
.home-videos-cta {
    text-align: center;
    margin-top: 22px;
}
.home-videos-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--moto-black, #131417);
    background: var(--frost, #E9EAF2);
    border: 1px solid rgba(99, 104, 128, 0.25);
    border-radius: 999px;
    padding: 12px 22px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.home-videos-link:hover {
    background: #fff;
    border-color: var(--slate-blue, #636880);
    transform: translateY(-1px);
}

/* Cada módulo é um bloco escuro independente, com respiro entre eles.
   Sem overflow:hidden — o próprio rail (overflow-x:auto) recorta os cards, e
   deixar visível permite que as setas de navegação não sejam cortadas. */
.video-group {
    background: linear-gradient(180deg, #131417 0%, #0a0a0c 100%);
    border-radius: 24px;
    padding: 16px 0 12px;
    box-shadow: 0 14px 40px rgba(19, 20, 23, 0.16);
}

/* Rótulo de cada trilha (só aparece quando há os dois formatos). */
.video-group-label {
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    margin: 0 0 10px;
    padding-left: 18px;
}

/* Dentro do bloco o rail rola na própria área (sem full-bleed pra tela). */
.video-rail-wrap {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Setas de navegação — só no desktop (ponteiro fino). No mobile usa swipe. */
.video-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
    .video-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(99, 104, 128, 0.18);
        border-radius: 50%;
        background: #fff;
        color: var(--moto-black, #131417);
        cursor: pointer;
        box-shadow:
            0 4px 14px rgba(19, 20, 23, 0.12),
            0 1px 3px rgba(19, 20, 23, 0.08);
        opacity: 1;               /* sempre visíveis */
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .video-nav:hover {
        background: var(--slate-blue, #636880);
        color: #fff;
        border-color: var(--slate-blue, #636880);
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 6px 18px rgba(99, 104, 128, 0.32);
    }
    .video-nav:active { transform: translateY(-50%) scale(0.96); }
    .video-nav:focus-visible { outline: 2px solid var(--slate-blue, #636880); outline-offset: 2px; }
    .video-nav--prev { left: -10px; }
    .video-nav--next { right: -10px; }
    /* Nas pontas (início/fim) somem. */
    .video-nav:disabled { opacity: 0; pointer-events: none; }

    /* Biblioteca (coluna única, com folga lateral): setas FORA dos vídeos. */
    .videos-page .video-nav--prev { left: -56px; }
    .videos-page .video-nav--next { right: -56px; }
}
/* Desktop estreito (sem folga lateral): setas voltam pra borda, pra não cortar. */
@media (hover: hover) and (pointer: fine) and (max-width: 1264px) {
    .videos-page .video-nav--prev { left: -8px; }
    .videos-page .video-nav--next { right: -8px; }
}

.video-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 104, 128, 0.35) transparent;
    scroll-padding-left: var(--hub-pad-l);
    scroll-padding-right: var(--hub-pad-r);
}
/* Sentinela do scroll infinito (paginação): item invisível no fim do rail. */
.video-rail-sentinel { flex: 0 0 1px; width: 1px; align-self: stretch; pointer-events: none; }

/* ── Faixa rotativa de DESTAQUES (banner 16:9) — compartilhada entre a home e a
   biblioteca (MotoHubVideos.renderBanner). Largura limitada pra o 16:9 não ficar
   alto demais no desktop; no mobile ocupa tudo. ── */
/* overflow visível: deixa as setas saírem pra margem (fora da arte). O
   arredondamento é feito na arte (topo) e na legenda (base) separadamente. */
.vid-banner { position: relative; max-width: 880px; margin: 0 auto; border-radius: 18px; box-shadow: 0 14px 40px rgba(19, 20, 23, 0.18); background: #0a0a0c; }
.vid-banner-track { position: relative; aspect-ratio: 16 / 9; } /* arte 16:9; slides absolutos p/ crossfade */
/* Slides empilhados (crossfade da arte). O texto fica numa legenda separada
   ABAIXO da arte (não sobrepõe) — desktop e mobile. */
.vid-banner-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; padding: 0; margin: 0; cursor: pointer; background: #0a0a0c; overflow: hidden; text-align: left;
    border-radius: 18px 18px 0 0; /* arredonda o topo da arte (o banner não clipa mais) */
    opacity: 1; visibility: visible; transition: opacity 0.6s ease;
}
.vid-banner-slide.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.6s ease, visibility 0s 0.6s; }
@media (prefers-reduced-motion: reduce) { .vid-banner-slide { transition: none; } }
.vid-banner-media { position: absolute; inset: 0; overflow: hidden; }
.vid-banner-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-banner-thumb--bg { filter: blur(26px) brightness(0.5); transform: scale(1.15); } /* vídeo vertical sem thumb 16:9 */
.vid-banner-thumb--fit { object-fit: contain; }
.vid-banner-grad { display: none; }
/* Legenda enxuta abaixo da arte: título (1 linha) + "assistir" numa única faixa. */
.vid-banner-info {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 12px;
    padding: 1px clamp(12px, 1.8vw, 18px) 9px; background: #0a0a0c; border-radius: 0 0 18px 18px; /* arredonda a base */
}
.vid-banner-title {
    flex: 1 1 auto; min-width: 0; margin: 0;
    color: #fff; font-family: 'moto sans', system-ui, sans-serif !important; text-transform: lowercase !important;
    font-weight: 700; font-size: clamp(0.9rem, 1.3vw, 1.05rem); line-height: 1.2; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vid-banner-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: #131417; background: #fff; border: 1px solid #fff; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; text-transform: lowercase !important; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.vid-banner-cta i { font-size: 0.85em; }
.vid-banner-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
/* Mesmo visual das setas dos rails (.video-nav): círculo branco, chevron escuro, sombra suave. */
.vid-banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(99, 104, 128, 0.18); border-radius: 50%; background: #fff; color: var(--moto-black, #131417); cursor: pointer; box-shadow: 0 4px 14px rgba(19, 20, 23, 0.12), 0 1px 3px rgba(19, 20, 23, 0.08); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.vid-banner-arrow:hover { background: var(--slate-blue, #636880); color: #fff; border-color: var(--slate-blue, #636880); transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 18px rgba(99, 104, 128, 0.32); }
.vid-banner-arrow:active { transform: translateY(-50%) scale(0.96); }
.vid-banner-prev { left: -52px; } /* FORA da arte, na margem (igual aos rails) */
.vid-banner-next { right: -52px; }
/* Dots abaixo da arte (faixa escura) — compactos, não sobrepõem a arte. */
.vid-banner-dots { position: static; display: flex; gap: 5px; justify-content: center; padding: 7px 0 0; background: #0a0a0c; }
.vid-banner-dot { width: 5px; height: 5px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; padding: 0; transition: width 0.2s ease, background 0.2s ease; }
.vid-banner-dot.is-active { background: rgba(255, 255, 255, 0.95); width: 14px; }
.vid-banner-slide:focus-visible,
.vid-banner-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vid-banner-arrow:focus-visible { outline: 2px solid var(--slate-blue, #636880); outline-offset: 2px; }
.vid-banner-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Telas médias: sem margem pra seta fora — traz pra dentro, sobre a arte. */
@media (max-width: 1024px) {
    .vid-banner-prev { left: 10px; }
    .vid-banner-next { right: 10px; }
}
/* Mobile: sem setas (navegação por swipe + dots). */
@media (max-width: 640px) {
    .vid-banner-arrow { display: none; }
}
/* Telas pequenas: aperta um tico mais. */
@media (max-width: 480px) {
    .vid-banner-info { padding: 7px 12px; gap: 10px; }
    .vid-banner-cta { padding: 4px 10px; font-size: 0.76rem; }
}

.video-rail::-webkit-scrollbar {
    height: 6px;
}

.video-rail::-webkit-scrollbar-thumb {
    background: rgba(99, 104, 128, 0.35);
    border-radius: 99px;
}

.video-rail-msg {
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    padding: 1.1rem 1rem 0.5rem;
    max-width: 28rem;
    line-height: 1.4;
}

.video-rail-msg--empty {
    opacity: 0.92;
}

.video-card {
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #0a0a0c;
    box-shadow:
        0 4px 12px rgba(19, 20, 23, 0.1),
        0 16px 40px rgba(99, 104, 128, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

/* Miniatura do card (preenche sem tarjas pretas; cobre o fundo #0a0a0c). */
.video-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    z-index: 0;
}

/* Orientação do vídeo (admin escolhe por item). Trilhas SEPARADAS: verticais e
   horizontais ficam em rails independentes, cada um no seu tamanho ideal — sem
   conflito de proporção. As larguras dos horizontais cabem no viewport mobile
   (peek do próximo card). height explícito = fallback pra navegadores sem
   aspect-ratio; aspect-ratio mantém a proporção nos modernos. */
.video-card--vertical { width: 148px; height: 263px; aspect-ratio: 9 / 16; }
.video-card--horizontal { width: 300px; height: 169px; aspect-ratio: 16 / 9; }

@media (min-width: 480px) {
    .video-card--vertical { width: 168px; height: 298px; }
    .video-card--horizontal { width: 400px; height: 225px; }
}

@media (min-width: 900px) {
    .video-card--vertical { width: 180px; height: 320px; }
    .video-card--horizontal { width: 480px; height: 270px; }
}

.video-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 0;
}

.video-fs-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 9px;
    background: rgba(10, 10, 14, 0.62);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.15s ease;
}

.video-fs-btn:hover {
    background: rgba(10, 10, 14, 0.82);
}

.video-fs-btn:active {
    transform: scale(0.96);
}

.video-fs-btn:focus-visible {
    outline: 2px solid var(--slate-blue);
    outline-offset: 2px;
}

.hub-notif-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; }
.hub-notif-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: auto; }
.hub-notif-card { position: relative; width: 100%; max-width: 520px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.66) 100%); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.74); border-radius: 24px; padding: 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset; pointer-events: auto; z-index: 10; display: flex; flex-direction: column; }
.hub-notif-kicker { font-size: 0.85rem; font-weight: 700; color: var(--moto-indigo, #0014C7); text-transform: lowercase; margin-bottom: 8px; font-family: 'moto sans', sans-serif; }
.hub-notif-body { flex: 1; }
.hub-notif-text { font-size: 1.05rem; color: var(--moto-black, #131417); margin-bottom: 24px; line-height: 1.5; font-family: 'moto sans', sans-serif; }
.hub-notif-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-notif-btn { padding: 14px 28px; border-radius: 99px; font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: center; transition: all 0.2s; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-family: 'moto sans', sans-serif; }

@media (max-width: 390px) {
    .hub-notif-card { width: 100%; max-width: 520px; border-radius: 18px; padding: 16px 14px 14px; max-height: 76dvh; }
    .hub-notif-text { font-size: 0.96rem; }
    .hub-notif-subtitle { font-size: 0.86rem; }
}

@media (max-width: 430px) and (max-height: 480px) { .hub-notif-card { max-height: 82dvh; } }

.hub-notif-bell {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 1200;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 10px 28px rgba(19, 20, 23, 0.14);
    color: rgba(19, 20, 23, 0.92);
    cursor: pointer;
    touch-action: manipulation;
}
.hub-notif-btn-primary {
    background: linear-gradient(155deg, rgba(35, 37, 44, 0.92) 0%, rgba(19, 20, 23, 0.95) 50%, rgba(30, 32, 40, 0.92) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 10px 24px rgba(19, 20, 23, 0.18);
}
.hub-notif-btn-primary:active { transform: translateY(1px); }
.hub-notif-btn-ghost {
    background: rgba(255, 255, 255, 0.55);
    color: rgba(19, 20, 23, 0.92);
    border-color: rgba(99, 104, 128, 0.18);
}
.hub-notif-btn-subtle { opacity: 0.88; }
.hub-notif-btn-subtle:hover { opacity: 1; }
.hub-notif-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(19, 20, 23, 0.04);
    color: rgba(19, 20, 23, 0.6);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.hub-notif-close:hover {
    background: rgba(19, 20, 23, 0.08);
    color: rgba(19, 20, 23, 0.9);
}
.hub-notif-close:active { transform: scale(0.98); }
@media (max-width: 390px) {
    .hub-notif-card { width: 100%; max-width: 520px; border-radius: 18px; padding: 16px 14px 14px; max-height: 76dvh; }
    .hub-notif-text { font-size: 0.96rem; }
}
.hub-notif-bell:active { transform: none !important; opacity: 0.8; }
.hub-notif-bell:focus-visible {
    outline: 2px solid var(--slate-blue);
    outline-offset: 3px;
}
.hub-notif-bell-ic { font-size: 1.1rem; line-height: 1; }
.hub-notif-bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #131417;
    color: #fff;
    font-family: 'moto sans', system-ui, sans-serif !important;
    font-size: 0.72rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* display:grid acima quebra o atributo hidden */
.hub-notif-bell-badge[hidden] {
    display: none !important;
}
.hub-notif-list[hidden] {
    display: none !important;
}
.hub-notif-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    justify-items: center;
    align-content: center;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding:
        max(14px, env(safe-area-inset-top, 0px))
        max(14px, env(safe-area-inset-right, 0px))
        max(14px, env(safe-area-inset-bottom, 0px))
        max(14px, env(safe-area-inset-left, 0px));
}
.hub-notif-panel-card {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    min-width: 0;
    max-height: min(78dvh, 680px);
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.66) 100%);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 16px 42px rgba(19, 20, 23, 0.18),
        0 48px 90px rgba(19, 20, 23, 0.22);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    color: var(--moto-black);
    display: flex;
    flex-direction: column;
}
.hub-notif-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(99, 104, 128, 0.14);
}
.hub-notif-panel-title {
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
}
.hub-notif-tabs {
    display: flex;
    gap: 10px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid rgba(99, 104, 128, 0.12);
}
.hub-notif-tab {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(99, 104, 128, 0.18);
    background: rgba(255, 255, 255, 0.55);
    color: rgba(19, 20, 23, 0.88);
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    font-weight: 700;
    cursor: pointer;
}
.hub-notif-tab.is-active {
    background: rgba(19, 20, 23, 0.92);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.hub-notif-panel-bd { padding: 12px 16px 16px; overflow: auto; }
.hub-notif-list { display: grid; gap: 10px; }
.hub-notif-item {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(99, 104, 128, 0.16);
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}
.hub-notif-item-msg { font-size: 0.95rem; line-height: 1.25; color: rgba(19, 20, 23, 0.92); overflow-wrap: anywhere; }
.hub-notif-item-sub { margin-top: 4px; font-size: 0.78rem; color: rgba(99, 104, 128, 0.92); letter-spacing: 0.02em; }
.hub-notif-item-cta { flex-shrink: 0; font-family: 'moto sans', system-ui, sans-serif !important; text-transform: lowercase !important; font-weight: 700; color: rgba(99, 104, 128, 0.95); }
.hub-notif-empty { padding: 18px 8px; color: rgba(99, 104, 128, 0.95); font-family: 'moto sans', system-ui, sans-serif !important; text-transform: lowercase !important; }

/* Opt-in de push (rodapé do painel do sino) */
.hub-notif-push { padding: 12px 16px 14px; border-top: 1px solid rgba(99, 104, 128, 0.12); }
.hub-notif-push-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid rgba(99, 104, 128, 0.22);
    border-radius: 12px;
    background: #fff;
    color: var(--moto-black, #131417);
    font-family: 'moto sans', system-ui, sans-serif;
    text-transform: lowercase;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hub-notif-push-btn:hover:not(:disabled) { border-color: var(--moto-indigo, #636880); }
.hub-notif-push-btn:disabled { cursor: default; }
.hub-notif-push-btn.is-on { background: rgba(37, 211, 102, 0.10); border-color: rgba(37, 211, 102, 0.40); color: #1a7f4b; }
@media (max-width: 390px) {
    .hub-notif-bell { width: 44px; height: 44px; border-radius: 13px; }
    .hub-notif-panel-card { border-radius: 18px; width: 100%; max-width: 560px; max-height: 82dvh; }
    .hub-notif-item-msg { font-size: 0.9rem; }
}


/* Forca moto sans sempre em minusculo globalmente */
.moto-sans-text, [style*="moto sans"] { text-transform: lowercase !important; }

*[style*='moto sans'] { text-transform: lowercase !important; }

/* force-lowercase-moto-sans */
*[style*='moto sans'], .moto-sans-text, .moto-headline, [class*='moto-sans'] { text-transform: lowercase !important; }

/* Font fix for notif popup */
.hub-notif-card .hub-notif-kicker, .hub-notif-card .hub-notif-text, .hub-notif-card .hub-notif-btn { font-family: 'moto sans', system-ui, sans-serif !important; text-transform: lowercase !important; }


.hub-notif-bell:focus, .hub-notif-bell:focus-visible { outline: none !important; box-shadow: 0 10px 28px rgba(19, 20, 23, 0.14) !important; }
.hub-notif-bell { outline: none !important; border-color: transparent !important; }.hub-notif-bell * { outline: none !important; }
.hub-notif-bell { -webkit-tap-highlight-color: transparent !important; }* { -webkit-tap-highlight-color: transparent !important; }


@media (min-width: 768px) { .hub-notif-bell { right: 32px; } }
@media (min-width: 1200px) { .hub-notif-bell { right: calc(50vw - 576px + 24px); } }

/* ============================================================
   Premium Hero, cards, vídeos e dropdown de busca
   (extraído de \3c style> inline do index.html — mantém ordem
   de cascade original, então pode sobrescrever regras acima)
   ============================================================ */
.premium-hero {
    padding: 7rem 20px 40px; /* topo folgado pro header fixo (72-80px) */
    background: radial-gradient(circle at 50% 0%, rgba(0, 20, 199, 0.05) 0%, transparent 60%);
    text-align: center;
    position: relative;
    z-index: 100;
}

/* ── Header compartilhado na home ──────────────────────────────
 * O hero tem z-index:100; o header precisa ficar ACIMA dele.
 * (regra injetada do hub-header.js usa z-index:50 sem !important.) */
.hub-header-wrapper {
    z-index: 200 !important;
    /* No topo da home: transparente, sem faixa/borda — blenda com o gradiente
       do hero. O fundo translúcido aparece só ao rolar (.scrolled). */
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.hub-header-wrapper.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Sino de avisos montado DENTRO do header (.hub-header-right): só muda a
 * posição pra ficar em fluxo ao lado do menu — MANTÉM o glass original
 * (fundo translúcido, blur, borda e sombra do .hub-notif-bell). */
.hub-notif-bell.hub-notif-bell--in-header {
    position: relative;
    top: auto;
    right: auto;
    z-index: auto;
    width: 44px;
    height: 44px;
}

/* Indicador "role pra ver mais" — só desktop; some ao rolar */
.scroll-hint {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 8px 24px rgba(19, 20, 23, 0.12);
    color: var(--slate-blue, #636880);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) { .scroll-hint { display: flex; } }
.scroll-hint svg { animation: scrollHintBounce 1.8s ease-in-out infinite; }
.scroll-hint:hover { color: var(--moto-black, #131417); }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
@keyframes scrollHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-hint svg { animation: none; }
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--moto-black, #131417);
    line-height: 1.1;
    margin: 0 auto 0.8rem;
    max-width: none;
    letter-spacing: -0.03em;
}
.hero-moto { color: var(--moto-black, #131417); }
.hero-hub { color: var(--slate-blue, #636880); font-weight: 400; }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--slate-blue, #636880);
    margin: 0 auto 2.5rem;
    max-width: 600px;
    font-family: 'Gotham Medium', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}
.hero-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.hero-search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 20, 199, 0.12);
}
.hero-search-input {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'moto sans', sans-serif;
    font-size: 1rem;
    color: var(--moto-black);
    text-align: center;
    text-transform: lowercase;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: normal;
}
.hero-search-input:focus {
    border-color: var(--moto-indigo, #0014C7);
    background: #ffffff;
}

/* Premium Widgets (Cards) */
.home-cards-wrap {
    padding: 0 20px 80px;
    max-width: 1152px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* mobile-first: 2x2 compacto */
    gap: 12px;
}
@media (min-width: 600px) {
    .cards-grid { gap: 20px; } /* tablet: 2x2 com descrição */
}
@media (min-width: 1000px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); } /* 4 destinos lado a lado */
}

/* Mobile (<600px): tiles de navegação compactos — só ícone + título.
 * Usa .cards-grid (especificidade 0,2,0) pra vencer as regras-base de .card-*
 * que aparecem mais abaixo no arquivo (mesma especificidade venceriam por ordem). */
@media (max-width: 599px) {
    .cards-grid .card {
        padding: 16px 10px;
        border-radius: 16px;
        justify-content: center;
        min-height: 118px;
    }
    .cards-grid .card-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
        border-radius: 13px;
    }
    .cards-grid .card-icon svg { width: 20px; height: 20px; }
    .cards-grid .card-title {
        font-size: 0.82rem;
        line-height: 1.18;
        letter-spacing: -0.01em;
        margin: 0;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }
    .cards-grid .card-description,
    .cards-grid .card-arrow { display: none; }
}
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
    border-color: rgba(0, 20, 199, 0.08);
}
.card-icon {
    width: 56px;
    height: 56px;
    background: var(--frost, #E9EAF2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moto-indigo, #0014C7);
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}
.card-icon svg {
    width: 24px;
    height: 24px;
}
.card:hover .card-icon {
    transform: scale(1.1) rotate(4deg);
    background: var(--moto-indigo, #0014C7);
    color: white;
}
.card-title {
    font-size: 1.35rem;
    margin: 0 0 10px;
    color: var(--moto-black);
    line-height: 1.2;
}
.card-description {
    font-size: 0.95rem;
    color: var(--slate-blue);
    flex-grow: 1;
    margin: 0 0 24px;
    line-height: 1.5;
}
.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'moto sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--moto-indigo, #0014C7);
    text-transform: lowercase;
}
.card-arrow svg {
    transition: transform 0.3s ease;
}
.card:hover .card-arrow svg {
    transform: translateX(4px);
}

/* Seção de vídeos: container transparente (cada módulo tem seu próprio bloco
   escuro em .video-group). Antes era um único bloco preto gigante. */
.home-videos {
    background: none;
    padding: 24px 0 40px;
    color: var(--moto-black, #131417);
    position: relative;
    max-width: 1152px;
    width: calc(100% - 2rem);
    margin: 12px auto 24px;
    overflow: visible;
}

.videos-section-title {
    text-align: center;
    color: var(--moto-black, #131417) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin-bottom: 40px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    letter-spacing: -0.03em !important;
    max-width: none !important;
}

/* ===== Cards de vídeo — título sobreposto + facade premium.
   Inspirado nas "rows" da Netflix/Disney+ e no overlay de legibilidade do
   TikTok/Reels. Camada final do arquivo: vence o bloco base por cascata.
   Mantém o modelo facade→player (o overlay some quando o player entra). ===== */
.home-videos .video-card {
    background-color: #0a0a0c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    cursor: pointer;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.25s ease;
}

/* Hover-expand sóbrio — só desktop com ponteiro fino (não "prende" no toque). */
@media (hover: hover) and (pointer: fine) {
    .home-videos .video-card:hover {
        transform: translateY(-5px);
        border-color: rgba(233, 234, 242, 0.30);   /* --frost translúcido */
        box-shadow:
            0 10px 24px rgba(19, 20, 23, 0.30),
            0 26px 56px rgba(99, 104, 128, 0.32);   /* slate-blue (sem azul-elétrico) */
    }
}
.home-videos .video-card:focus-visible {
    outline: 2px solid var(--frost, #E9EAF2);
    outline-offset: 3px;
}

/* Botão play central — disco sóbrio translúcido (estilizado via CSS, sem inline).
   pointer-events:none → o clique chega no card (.facade-video). */
.home-videos .facade-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10, 10, 14, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    pointer-events: none;
}
.home-videos .video-card--vertical .facade-play-btn { width: 48px; height: 48px; }
@media (hover: hover) and (pointer: fine) {
    .home-videos .video-card:hover .facade-play-btn {
        background: rgba(99, 104, 128, 0.92);   /* slate-blue */
        border-color: rgba(255, 255, 255, 0.55);
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* Camada de legibilidade + título ancorado na base (sempre visível). */
.home-videos .video-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 26px 12px 11px;
    background: linear-gradient(
        to top,
        rgba(10, 10, 14, 0.90) 0%,
        rgba(10, 10, 14, 0.55) 46%,
        rgba(10, 10, 14, 0) 100%);
    pointer-events: none;
}
.home-videos .video-card-title {
    margin: 0;
    color: #fff;
    font-family: 'moto sans', system-ui, sans-serif !important;
    text-transform: lowercase !important;
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-videos .video-card--horizontal .video-card-title { font-size: 0.92rem; }

/* Rail: padding-left alinhado com os rótulos/títulos (4px) — sem os blocos
   escuros, os cards começam na mesma borda do texto (home e biblioteca). */
.home-videos .video-rail {
    padding: 2px 0 12px !important;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* Rótulo da trilha (shorts / vídeos) sobre o fundo escuro do bloco. */
.home-videos .video-group-label {
    color: rgba(233, 234, 242, 0.80);
}

@media (prefers-reduced-motion: reduce) {
    .home-videos .video-card,
    .home-videos .facade-play-btn { transition: none; }
    .home-videos .video-card:hover { transform: none; }
}

/* ===== Lightbox de vídeo — player grande que preenche a largura da tela em
   retrato (sem girar o celular), igual ao YouTube no modo retrato. ===== */
html.video-lightbox-open { overflow: hidden; }

.video-lightbox {
    position: fixed;
    inset: 0;
    /* Acima do FAB do WhatsApp (9999) — com o vídeo aberto, o player cobre o
       botão e o balão do chat (antes o botão vazava por cima do blur). */
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 10, 14, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.video-lightbox.is-open { opacity: 1; visibility: visible; }

/* Palco: horizontal ocupa a largura; vertical ocupa a altura. */
.video-lightbox-stage {
    position: relative;
    width: min(96vw, 1100px);
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 86dvh;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.video-lightbox--vertical .video-lightbox-stage {
    width: auto;
    height: min(86dvh, 900px);
    aspect-ratio: 9 / 16;
    max-width: 96vw;
}
.video-lightbox-stage iframe,
.video-lightbox-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
.video-lightbox-stage video { object-fit: contain; }

/* Card "próximo vídeo" (autoplay-next): sobre o palco quando um vídeo termina. */
.video-next-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    text-align: center;
    background: rgba(10, 10, 14, 0.86);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.video-next-label { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; letter-spacing: 0.04em; }
.video-next-title { margin: 0; color: #fff; font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.5rem); line-height: 1.2; max-width: 80%; }
.video-next-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.video-next-now,
.video-next-cancel {
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.video-next-now { color: #fff; background: var(--slate-blue, #636880); border: 1px solid var(--slate-blue, #636880); }
.video-next-now:hover { background: #545a73; border-color: #545a73; }
.video-next-cancel { color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); }
.video-next-cancel:hover { background: rgba(255, 255, 255, 0.2); }
.video-next-now:focus-visible,
.video-next-cancel:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.video-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.video-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.video-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Navegadores sem aspect-ratio: garante altura mínima pro palco horizontal. */
@supports not (aspect-ratio: 1) {
    .video-lightbox-stage { height: 56.25vw; max-height: 86dvh; }
    .video-lightbox--vertical .video-lightbox-stage { width: 48.6dvh; height: min(86dvh, 900px); }
}

.videos-jump-wrap { display: none; }

/* Search Dropdown Styles */
#hero-search-dropdown {
    position: absolute;
    width: 100%;
    margin-top: 8px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 50;
    text-align: left;
}
#hero-search-dropdown.hidden { display: none; }
.search-dropdown-header {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background-color: #f9fafb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Gotham Medium', sans-serif;
    border-bottom: 1px solid #e5e7eb;
}
.search-dropdown-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}
.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #1f2937;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    font-family: 'moto sans', sans-serif;
    font-size: 15px;
    text-transform: lowercase;
    transition: background-color 0.2s;
}
.search-dropdown-item:hover { background-color: #f3f4f6; }
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-icon { color: var(--moto-indigo, #0014C7); width: 24px; text-align: center; margin-right: 12px; font-size: 18px; }

/* ============================================================
   Rail "últimas atualizações" (novidades) — extraído de inline
   ============================================================ */
.novidades-rail-wrap {
    margin-left: calc(-1 * var(--hub-pad-l));
    margin-right: calc(-1 * var(--hub-pad-r));
    padding: 0 var(--hub-pad-r) 8px var(--hub-pad-l);
}
.novidades-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 104, 128, 0.25) transparent;
    scroll-padding-left: var(--hub-pad-l);
    scroll-padding-right: var(--hub-pad-r);
}
.novidades-rail::-webkit-scrollbar { height: 4px; }
.novidades-rail::-webkit-scrollbar-thumb { background: rgba(99, 104, 128, 0.25); border-radius: 99px; }
.novidade-card {
    flex: 0 0 auto;
    width: 180px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(99, 104, 128, 0.12);
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 6px 18px rgba(19, 20, 23, 0.05);
    transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease;
}
.novidade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(19, 20, 23, 0.10);
}
.novidade-card:active { transform: translateY(-1px); }
.novidade-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--moto-black, #131417);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Gotham Medium', system-ui, sans-serif;
}
.novidade-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}
.novidade-img {
    height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.novidade-img-placeholder {
    width: 44px;
    height: 90px;
    background: var(--frost, #E9EAF2);
    border-radius: 10px;
}
.novidade-card-body { text-align: center; width: 100%; }
.novidade-card-title {
    font-size: 0.82rem;
    margin: 0 0 2px;
    color: var(--moto-black, #131417);
    line-height: 1.15;
}
.novidade-card-vs {
    font-size: 0.72rem;
    color: var(--text-secondary, #545a72);
    margin: 0;
    font-weight: 500;
    font-family: 'Gotham Medium', system-ui, sans-serif;
}
@media (max-width: 640px) {
    .novidade-card { width: 150px; padding: 16px 12px 14px; border-radius: 16px; }
    .novidade-card-img { height: 72px; }
    .novidade-img { height: 72px; }
    .novidade-card-title { font-size: 0.76rem; }
    .novidade-card-vs { font-size: 0.68rem; }
    /* Fade na borda direita: sinaliza que dá pra deslizar (carrossel moderno) */
    .novidades-rail-wrap { position: relative; }
    .novidades-rail-wrap::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 10px;
        width: 40px;
        background: linear-gradient(to right, rgba(233, 234, 242, 0), var(--frost, #E9EAF2));
        pointer-events: none;
        z-index: 2;
    }
}
@media (min-width: 768px) {
    .novidades-rail-wrap {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    .novidades-rail {
        overflow: visible;
        scroll-snap-type: none;
        justify-content: center;
    }
    .novidade-card {
        flex: 1 1 0;
        width: auto;
        min-width: 140px;
        max-width: 210px;
    }
    .novidade-card-img { height: 100px; }
    .novidade-img { height: 100px; }
}

/* ─────────────────────────────────────────────
 * Radar do blog (home) — lista estilo feed
 * (linhas largura cheia: thumb + título + fonte)
 * ───────────────────────────────────────────── */
.blogradar-wrap {
    max-width: 720px; /* coluna de leitura confortável (estilo portal) */
    margin: 0 auto;
    padding: 0 16px;
}

.blogradar-grid {
    display: flex;
    flex-direction: column;
}

/* Item estilo portal de notícias. MOBILE: imagem no topo (largura total) +
 * texto embaixo — título e resumo respiram. DESKTOP: thumb à esquerda.
 * Itens separados por divisória editorial (flat, sem card flutuante). */
.blogradar-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(99, 104, 128, 0.16);
    text-decoration: none;
    color: var(--moto-black, #131417);
    text-transform: lowercase;
}
.blogradar-row:first-child { padding-top: 2px; }
.blogradar-row:last-child { border-bottom: none; }
.blogradar-row:hover .blogradar-row-title { color: var(--moto-indigo, #636880); }

.blogradar-row-thumb {
    position: relative;
    aspect-ratio: 16 / 9; /* imagem larga no topo (mobile) */
    background: #0b0e13;
    border-radius: 12px;
    overflow: hidden;
}

.blogradar-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blogradar-row-content { min-width: 0; }

/* Meta: categoria + tempo (hoje / ontem / há X dias) */
.blogradar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.blogradar-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-blue, #636880);
}
.blogradar-time::before {
    content: "·";
    margin-right: 8px;
    color: rgba(99, 104, 128, 0.55);
}

.blogradar-row-title {
    font-family: 'moto sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.blogradar-resumo {
    font-size: 0.88rem;
    color: var(--slate-blue, #636880);
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* mobile: largura total dá pra mostrar mais do gist */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blogradar-fonte {
    font-size: 0.76rem;
    color: var(--slate-blue, #636880);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blogradar-fonte strong { color: var(--moto-black, #131417); }

.blogradar-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.4rem;
}

.blogradar-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.22);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}
.blogradar-play--sm { font-size: 0.8rem; }

.blogradar-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.16rem 0.5rem;
    border-radius: 99px;
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}
.blogradar-badge--video {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.blogradar-more-wrap { text-align: center; margin: 18px 0 0; }
.blogradar-more {
    font-family: 'moto sans', sans-serif;
    text-transform: lowercase;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--moto-indigo, #636880);
    text-decoration: none;
}
.blogradar-more:hover { text-decoration: underline; }
.blogradar-more i { font-size: 0.75em; margin-left: 0.2rem; }

/* Desktop: thumb à esquerda (coluna larga), tipografia mais generosa */
@media (min-width: 768px) {
    .blogradar-row {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: start;
        padding: 22px 0;
    }
    .blogradar-row-thumb { aspect-ratio: 16 / 11; border-radius: 10px; }
    .blogradar-row-title { font-size: 1.18rem; line-height: 1.25; -webkit-line-clamp: 2; }
    .blogradar-resumo { font-size: 0.92rem; -webkit-line-clamp: 2; }
}
