/* Video Popup Styles */
.video-button {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #009688, #00796b);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 150, 136, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    top: 6px;
    /* Ajuste conforme necessário */
    right: 6px;
    /* Ajuste conforme necessário */
}

.video-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.6);
}

.video-button:active {
    transform: scale(0.95);
}

/* Ícone de play */
.play-icon {
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

/* Efeito de explosão - ondas concêntricas */
.explosion-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(0, 150, 136, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: explode 2s infinite ease-out;
}

.wave:nth-child(2) {
    animation-delay: 0.4s;
    border-color: rgba(0, 121, 107, 0.7);
}

.wave:nth-child(3) {
    animation-delay: 0.8s;
    border-color: rgba(0, 150, 136, 0.6);
}

.wave:nth-child(4) {
    animation-delay: 1.2s;
    border-color: rgba(0, 121, 107, 0.5);
}

.wave:nth-child(5) {
    animation-delay: 1.6s;
    border-color: rgba(0, 150, 136, 0.4);
}

@keyframes explode {
    0% {
        width: 8px;
        height: 8px;
        opacity: 1;
        border-width: 2px;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        width: 70px;
        height: 70px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Efeito de pulso no botão */
@keyframes pulse {
    0% {
        box-shadow: 0 3px 10px rgba(0, 150, 136, 0.4);
    }

    50% {
        box-shadow: 0 3px 10px rgba(0, 150, 136, 0.7);
    }

    100% {
        box-shadow: 0 3px 10px rgba(0, 150, 136, 0.4);
    }
}

.video-button {
    animation: pulse 3s infinite;
}

/* Partículas adicionais */
.particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #009688;
    border-radius: 50%;
    animation: particleExplode 2.5s infinite ease-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 50%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 35%;
    left: 80%;
    animation-delay: 0.3s;
}

.particle:nth-child(3) {
    top: 65%;
    left: 80%;
    animation-delay: 0.6s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 50%;
    animation-delay: 0.9s;
}

.particle:nth-child(5) {
    top: 65%;
    left: 20%;
    animation-delay: 1.2s;
}

.particle:nth-child(6) {
    top: 35%;
    left: 20%;
    animation-delay: 1.5s;
}

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: scale(0);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0) translateY(-15px);
    }
}

.container {
    position: relative;
}

.label {
    margin-top: 30px;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}




/* Estilos do popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-out;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    max-height: 800px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.close-btn:active {
    transform: scale(1.05);
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsividade otimizada */
@media (max-width: 1200px) {
    .popup-content {
        width: 90vw;
        height: 90vh;
    }
}

@media (max-width: 768px) {
    .popup-content {
        width: 95vw;
        height: 60vh;
        min-height: 300px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 98vw;
        height: 50vh;
        min-height: 250px;
    }

    .close-btn {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .video-container {
        border-radius: 10px;
    }

    .video-container iframe {
        border-radius: 10px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .popup-content {
        height: 85vh;
        width: 80vw;
    }
}

/* Loading indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #009688;
    font-size: 18px;
    z-index: 1;
}

.spinner {
    border: 3px solid rgba(0, 150, 136, 0.3);
    border-top: 3px solid #009688;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}