/* Web Vôlei - UOL Layout 2026 v1.1.4 */
.wv-uol26-ad {
    box-sizing: border-box;
    text-align: center;
    clear: both;
}

/* Não altera display, position ou z-index do header/menu do tema. */
.wv-uol26-top {
    box-sizing: border-box;
    text-align: center;
    min-height: 90px;
}

/* Sticky deliberadamente com z-index baixo: o menu/header do tema continua acima. */
.wv-uol26-top-sticky {
    position: sticky;
    top: 0;
    z-index: 1;
}

.wv-uol26-feed-ad {
    grid-column: 1 / -1;
    flex: 0 0 100%;
    width: 100%;
    min-height: 90px;
    margin: 24px 0;
    list-style: none;
}

.wv-uol26-inarticle-ad {
    width: 100%;
    min-height: 250px;
    margin: 28px auto;
}

.wv-uol26-sidebar-ad {
    width: 100%;
    min-height: 600px;
    margin: 0 auto 24px;
}

.wv-uol26-outstream {
    display: block;
    margin: 24px auto;
    clear: both;
}

@media (max-width: 767px) {
    .wv-uol26-top { min-height: 50px; }
    .wv-uol26-feed-ad { min-height: 100px; margin: 18px 0; }
    .wv-uol26-sidebar-ad { display: none !important; }
}

/* DEBUG VISUAL: não força display:flex e não altera a geometria do tema além
   da altura mínima necessária para enxergar um slot vazio. */
.wv-uol26-debug .wv-uol26-debug-slot {
    position: relative !important;
    outline: 3px solid #e00000 !important;
    outline-offset: -3px !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: rgba(224, 0, 0, 0.06) !important;
}

.wv-uol26-debug .wv-uol26-debug-slot::before {
    content: "PUBLICIDADE UOL • " attr(data-uol-debug-label);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    display: block;
    max-width: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
    background: #e00000;
    color: #fff;
    font: 700 11px/1.35 Arial, Helvetica, sans-serif;
    letter-spacing: .2px;
    pointer-events: none;
    white-space: normal;
}

.wv-uol26-debug .wv-uol26-top.wv-uol26-debug-slot { min-height: 90px !important; }
.wv-uol26-debug .wv-uol26-feed-ad.wv-uol26-debug-slot { min-height: 100px !important; }
.wv-uol26-debug .wv-uol26-inarticle-ad.wv-uol26-debug-slot,
.wv-uol26-debug .wv-uol26-outstream.wv-uol26-debug-slot { min-height: 250px !important; }
.wv-uol26-debug .wv-uol26-sidebar-ad.wv-uol26-debug-slot { min-height: 600px !important; }

@media (max-width: 767px) {
    .wv-uol26-debug .wv-uol26-top.wv-uol26-debug-slot { min-height: 50px !important; }
}

.wv-uol26-debug-badge {
    position: fixed !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 2147483646 !important;
    padding: 8px 10px !important;
    background: #e00000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
    font: 700 11px/1.3 Arial, Helvetica, sans-serif !important;
    letter-spacing: .2px !important;
    pointer-events: none !important;
}

/* v1.0.9: o template Kolyoum usa <li> com float em algumas resoluções.
   No Debug o placeholder precisa ser visível mesmo vazio. */
.wv-uol26-debug .wv-uol26-feed-ad.wv-uol26-debug-slot {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 110px !important;
    overflow: visible !important;
}


/* v1.1.0 — homologação/preview: todo slot vazio é visível e identificado. */
.wv-uol26-preview .wv-uol26-preview-slot,
.wv-uol26-debug .wv-uol26-preview-slot {
    position: relative !important;
    outline: 3px solid #e00000 !important;
    outline-offset: -3px !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(224, 0, 0, .04) !important;
}

/* O texto agora é um elemento real, não apenas ::before. */
.wv-uol26-debug .wv-uol26-debug-slot::before { content: none !important; display: none !important; }

.wv-uol26-reserved-label {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    background: rgba(224, 0, 0, .07) !important;
    color: #b40000 !important;
    font: 700 13px/1.35 Arial, Helvetica, sans-serif !important;
    text-align: center !important;
    pointer-events: none !important;
}
.wv-uol26-reserved-label small {
    display: block !important;
    font: 600 11px/1.3 Arial, Helvetica, sans-serif !important;
    word-break: break-word !important;
}

/* Produção: após o tempo de fill, slots realmente vazios são recolhidos. */
.wv-uol26-no-fill {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    overflow: hidden !important;
}

/* Homologação nunca recolhe os slots. */
.wv-uol26-preview .wv-uol26-no-fill,
.wv-uol26-debug .wv-uol26-no-fill {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}


/* v1.1.1 — homologação deve mostrar fisicamente TODOS os slots aplicáveis. */
.wv-uol26-preview .wv-uol26-preview-slot {
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    outline: 3px solid #e00000 !important;
    outline-offset: -3px !important;
    background: rgba(224, 0, 0, .06) !important;
}
.wv-uol26-preview .wv-uol26-top.wv-uol26-preview-slot { min-height: 90px !important; }
.wv-uol26-preview .wv-uol26-feed-ad.wv-uol26-preview-slot { min-height: 110px !important; width: 100% !important; float: none !important; clear: both !important; list-style: none !important; }
.wv-uol26-preview .wv-uol26-inarticle-ad.wv-uol26-preview-slot,
.wv-uol26-preview .wv-uol26-outstream.wv-uol26-preview-slot { min-height: 250px !important; }
.wv-uol26-preview .wv-uol26-sidebar-ad.wv-uol26-preview-slot { min-height: 600px !important; width: 100% !important; }
@media (max-width: 767px) {
    .wv-uol26-preview .wv-uol26-top.wv-uol26-preview-slot { min-height: 50px !important; }
}


/* v1.1.3 — slot superior fica dentro da caixa publicitária nativa do Kolyoum. */
.bdaia-header-e3-desktop > .wv-uol26-theme-header-slot,
.bdaia-header-e3-mobile > .wv-uol26-theme-header-slot,
.bdaia-header-e3 > .wv-uol26-theme-header-slot {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* O host já tem a altura/localização correta do tema; não o transformamos em sticky. */
.wv-uol26-theme-header-slot.wv-uol26-top-sticky {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
}


/* v1.1.5 — menu inicia abaixo do header e fica fixo no topo durante o scroll. */
@media (min-width: 768px) {
    [data-wv-uol26-nav-fix="1"] {
        clear: both !important;
    }
    .wv-uol26-nav-spacer {
        display: none;
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
    }
    [data-wv-uol26-nav-stuck="1"] {
        z-index: 2147482000 !important;
    }

    /* Se houve troca de viewport pelo DevTools, um slot mobile residual nunca aparece no desktop. */
    [id^="banner-horintal-home-entreosblocos-mobile-"] {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* E o inverso: slots desk residuais nunca aparecem no mobile. */
    [id^="banner-horintal-home-entreosblocos-desk-"] {
        display: none !important;
    }
}
