/* ============================================================
   Rádio Munay — Player de Vídeo Personalizado
   Película premium + controles próprios sobre YouTube IFrame
   ============================================================ */

.munay-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0517;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.munay-video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #0d0517;
}

.munay-video-frame iframe,
.munay-video-frame .munay-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.munay-video-placeholder {
    background: radial-gradient(ellipse at center, #2d1450 0%, #1a0a2e 60%, #0d0517 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   PELÍCULA / OVERLAY
   ============================================================ */

.munay-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(180deg,
        rgba(13, 5, 23, 0.85) 0%,
        rgba(26, 10, 46, 0.78) 40%,
        rgba(45, 20, 80, 0.72) 70%,
        rgba(13, 5, 23, 0.85) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.munay-video-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Pattern de partículas sutis */
.munay-video-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(184, 160, 216, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 168, 75, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ============================================================
   BOTÃO PLAY CENTRAL
   ============================================================ */

.munay-video-play-btn {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.15), rgba(90, 45, 158, 0.3));
    border: 2px solid rgba(212, 168, 75, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 0 30px rgba(212, 168, 75, 0.2),
        inset 0 0 20px rgba(255, 184, 77, 0.05);
    z-index: 2;
    animation: munayPlayPulse 3s ease-in-out infinite;
}

.munay-video-overlay:hover .munay-video-play-btn {
    border-color: rgba(255, 184, 77, 0.8);
    box-shadow:
        0 0 40px rgba(255, 184, 77, 0.35),
        inset 0 0 20px rgba(255, 184, 77, 0.1);
    transform: scale(1.05);
}

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

.munay-video-play-btn svg {
    width: 36px;
    height: 36px;
    fill: #f0c75e;
    filter: drop-shadow(0 0 6px rgba(255, 184, 77, 0.4));
    margin-left: 4px;
}

@keyframes munayPlayPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(212, 168, 75, 0.2), inset 0 0 20px rgba(255, 184, 77, 0.05);
    }
    50% {
        box-shadow: 0 0 45px rgba(212, 168, 75, 0.35), inset 0 0 20px rgba(255, 184, 77, 0.1);
    }
}

/* ============================================================
   MENSAGENS DA PELÍCULA
   ============================================================ */

.munay-video-overlay-message {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5f0e8;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 184, 77, 0.3);
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.munay-video-overlay-submessage {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: #c4b0e0;
    letter-spacing: 0.5px;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    opacity: 0.7;
}

/* ============================================================
   CONTROLES PERSONALIZADOS
   ============================================================ */

.munay-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 5, 23, 0.7) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.munay-video:hover .munay-video-controls,
.munay-video.controls-visible .munay-video-controls {
    opacity: 1;
    visibility: visible;
}

.munay-video-controls.visible {
    opacity: 1;
    visibility: visible;
}

.munay-ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.munay-ctrl-btn:hover {
    color: #ffb84d;
    background: rgba(255, 184, 77, 0.1);
}

.munay-ctrl-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.munay-ctrl-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.munay-ctrl-progress:hover {
    height: 10px;
}

.munay-ctrl-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #2196F3;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.munay-ctrl-time {
    display: none;
}

.munay-ctrl-fullscreen {
    margin-left: auto;
}

/* ============================================================
   ESTADO: PAUSADO SOBRE O VÍDEO (sem película)
   ============================================================ */

.munay-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    background: rgba(13, 5, 23, 0.3);
}

.munay-video-play-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.munay-video-play-overlay-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26, 10, 46, 0.7);
    border: 2px solid rgba(212, 168, 75, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.munay-video-play-overlay:hover .munay-video-play-overlay-btn {
    border-color: rgba(255, 184, 77, 0.8);
    transform: scale(1.05);
}

.munay-video-play-overlay-btn svg {
    width: 28px;
    height: 28px;
    fill: #f0c75e;
    margin-left: 3px;
}

/* Top VSL overlay: same activation treatment used on vsl.php. */
.munay-video-top .munay-video-frame iframe,
.munay-video-top .munay-video-frame > div {
    pointer-events: none;
}

.munay-video-top .munay-video-overlay {
    background: radial-gradient(ellipse at center, rgba(13, 5, 23, 0.35) 0%, rgba(13, 5, 23, 0.65) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    gap: 20px;
}

.munay-video-top .munay-video-overlay-submessage {
    display: none;
}

.munay-video-top .munay-video-play-btn {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e8a317, #ffb84d);
    border: 0;
    color: #1a0a2e;
    box-shadow: 0 0 30px rgba(232, 163, 23, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.munay-video-top .munay-video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(232, 163, 23, 0.6), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.munay-video-top .munay-video-play-btn svg {
    width: 78px;
    height: 78px;
    fill: currentColor;
    margin-left: 8px;
}

.munay-video-top .munay-video-overlay-message {
    max-width: calc(100vw - 48px);
    padding: 14px 26px;
    border: 3px solid #000;
    border-radius: 4px;
    background: #f0c75e;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
    color: #000;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 4px 0 #000, 0 8px 22px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .munay-video-top .munay-video-play-btn {
        width: 45px;
        height: 45px;
    }
    .munay-video-top .munay-video-play-btn svg {
        width: 30px;
        height: 30px;
    }
    .munay-video-top .munay-video-overlay-message {
        padding: 10px 14px;
        border-width: 2px;
        font-size: clamp(0.63rem, 3vw, 0.87rem);
        letter-spacing: 1px;
        box-shadow: 0 3px 0 #000, 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 768px) {
    .munay-video-play-btn {
        width: 68px;
        height: 68px;
    }
    .munay-video-play-btn svg {
        width: 30px;
        height: 30px;
    }
    .munay-video-overlay-message {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    .munay-video-overlay-submessage {
        font-size: 0.75rem;
    }
    .munay-video-play-overlay-btn {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .munay-video-play-btn {
        width: 60px;
        height: 60px;
    }
    .munay-video-play-btn svg {
        width: 26px;
        height: 26px;
    }
    .munay-video-overlay-message {
        font-size: 0.85rem;
    }
    .munay-ctrl-btn svg {
        width: 20px;
        height: 20px;
    }
    .munay-ctrl-time {
        font-size: 0.68rem;
        min-width: 32px;
    }
}
