/* Fonte canônica do CSS: edite esta parcial. NÃO é gerado de main.css (legado). Ver docs/SKILLS_CLAUDE.md, "Fonte canônica do CSS". */

/* ============================================================================
   18. POPUP
   ============================================================================ */
#showPopup {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .6);
    width: 100%;
    height: 100%;
    z-index: 99999;
}

#popup {
    width: 100%;
    max-width: 700px;
    height: auto;
    background-color: var(--superficie);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#popup a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#btn-popup {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px;
    font-weight: 100;
    border: 0;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background-color: var(--cor-terciaria);
}

#btn-popup:hover {
    background-color: var(--cor-primaria);
}

/* Vídeo flutuante (YouTube) — canto */
#pn-yt-canto {
    position: fixed;
    bottom: 150px;
    right: 10px;
    margin: 8px;
    z-index: 10001;
    width: 280px;
    height: 158px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

#pn-yt-canto.pn-yt-canto--esquerda {
    right: auto;
    left: 10px;
}

#pn-yt-canto button,
#pn-yt-fechar {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 2px;
    background: var(--cor-nav-secundaria, var(--cor-secundaria));
    color: var(--cor-nav-categorias, var(--cor-terciaria));
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    padding: 4px;
}

#pn-yt-canto iframe,
#pn-yt-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 576px) {
    #pn-yt-canto {
        width: 200px;
        height: 112px;
        bottom: 120px;
    }
}

