.anuncio-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10500; /* acima das modais do Bootstrap padrão (1050) */
}

.anuncio-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 35px 28px 28px;
    text-align: center;
    animation: anuncioPop 0.25s ease-out;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

@keyframes anuncioPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.anuncio-modal__close {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

    .anuncio-modal__close:hover {
        color: #4b5563;
        background: #f3f4f6;
    }

    .anuncio-modal__close:focus-visible {
        outline: 2px solid #6366f1;
        outline-offset: 2px;
    }

.anuncio-modal__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 20px;
    cursor: pointer;
}

.anuncio-modal__media-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(2px) brightness(0.8);
    transform: scale(1.1); /* esconde a borda esbranquiçada que o blur deixa nas bordas */
}

.anuncio-modal__media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none; /* clique passa direto pro container (data-acao) */
}

.anuncio-modal__play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.21);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
}

.anuncio-modal__media:hover .anuncio-modal__play {
    background: rgba(26, 26, 46, 0.92);
    transform: scale(1.08);
}

.anuncio-modal__play svg {
    margin-left: 3px;
}

.anuncio-modal__media-label {
    font-size: 15px;
    font-weight: 600;
}

.anuncio-modal__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.anuncio-modal__text {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* acoes: false no anuncio-config.js - card só com mídia + texto */
.anuncio-modal--sem-acoes {
    padding-bottom: 24px;
}

    .anuncio-modal--sem-acoes .anuncio-modal__text {
        margin-bottom: 0;
    }

.anuncio-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anuncio-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.15s, transform 0.05s;
}

    .anuncio-btn:active {
        transform: scale(0.98);
    }

.anuncio-btn--primary {
    background: #1a1a2e;
    color: #ffffff;
}

    .anuncio-btn--primary:hover {
        background: #2d2d4a;
    }

    .anuncio-btn--primary:focus-visible {
        outline: 2px solid #6366f1;
        outline-offset: 2px;
    }

.anuncio-btn--ghost {
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    padding: 4px;
}

    .anuncio-btn--ghost:hover {
        color: #1a1a2e;
        text-decoration: underline;
    }

.anuncio-icone-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: -2px;
    margin-left: -2px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 20px;
    vertical-align: middle;
    transition: background 0.15s, color 0.15s;

}

    .anuncio-icone-btn:hover {
        background: #f3f4f6;
        color: #4b5563;
    }

    .anuncio-icone-btn:focus-visible {
        outline: 2px solid #6366f1;
        outline-offset: 2px;
    }

.anuncio-icone-dot {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e0554a;
    border: 1.5px solid #ffffff;
}

/* Lightbox - gif ampliado ao clicar em "Ver como funciona" */
.anuncio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 10600; /* acima do anuncio-overlay */
    cursor: zoom-out;
}

.anuncio-lightbox__media {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.anuncio-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

    .anuncio-lightbox__close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .anuncio-lightbox__close:focus-visible {
        outline: 2px solid #6366f1;
        outline-offset: 2px;
    }

/* Animação em canvas (Anuncio-animacoes.js) - campo animacao no anuncio-config.js */
.anuncio-animacao {
    position: relative;
    background: #2b2140;
    overflow: hidden;
}

    /* scanlines + vinheta pra dar o ar de "fita" lofi */
    .anuncio-animacao::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.10) 0, rgba(0, 0, 0, 0.10) 1px, transparent 1px, transparent 3px), radial-gradient(ellipse at center, transparent 55%, rgba(10, 5, 20, 0.45) 100%);
    }

.anuncio-animacao__canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: saturate(1.05) contrast(1.02);
}

/* animações desenhadas em alta resolução (cartoon), sem pixelar */
.anuncio-animacao__canvas--liso {
    image-rendering: auto;
}

/* animações de fundo branco: sem scanline/vinheta */
.anuncio-animacao--limpo {
    background: #ffffff;
}

    .anuncio-animacao--limpo::after {
        display: none;
    }

.anuncio-modal__media-anim {
    width: 100%;
    height: 100%;
}

/* no card a animação fica nítida, o convite pra ampliar só aparece no hover */
.anuncio-modal__media--animacao .anuncio-modal__media-overlay {
    opacity: 0;
    background: rgba(15, 10, 30, 0.35);
    transition: opacity 0.2s;
}

.anuncio-modal__media--animacao:hover .anuncio-modal__media-overlay {
    opacity: 1;
}

.anuncio-lightbox__media--animacao {
    width: min(92vw, 122vh, 960px);
    aspect-ratio: 4 / 3;
}

@media (prefers-reduced-motion: reduce) {
    .anuncio-modal {
        animation: none;
    }
}
/* Animação do selo AUDESP (animacao: 'selo-audesp'): HTML real do selo num palco fixo, escalado pelo JS */
.anuncio-selos {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: inherit;
}

.anuncio-selos__linha {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.anuncio-selos__item {
    width: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    opacity: .4;
    transition: opacity .3s ease;
}

    .anuncio-selos__item.is-ativo {
        opacity: 1;
    }

.anuncio-selos__selo {
    pointer-events: none; /* ilustração: sem a dica do hover */
    transform: scale(2.4);
    transform-origin: center;
    height: 28px;
    display: flex;
    align-items: center;
}

    .anuncio-selos__selo .selo-audesp-slot {
        margin: 0;
        width: 28px;
    }

        .anuncio-selos__selo .selo-audesp-slot::after {
            display: none;
        }

.anuncio-selos__rotulo {
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
}

.anuncio-selos__item.is-ativo .anuncio-selos__rotulo {
    color: #111827;
    font-weight: 600;
}
