/* ==========================================================================
   Elementor Video Popup Modal Styles
   ========================================================================== */

/* 1. 视频卡片容器 */
.evpm-card-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.evpm-card {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s ease;
}

.evpm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* 2. 封面遮罩层 */
.evpm-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 17, 23, 0.25);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.evpm-card:hover .evpm-overlay {
    background-color: rgba(15, 17, 23, 0.12);
}

.evpm-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

/* 3. 居中播放按钮 */
.evpm-play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.3, 0, 0, 1), background-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    padding: 0;
}

.evpm-card:hover .evpm-play-btn,
.evpm-play-btn:hover {
    transform: scale(1.12);
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.evpm-play-icon {
    width: 32px;
    height: 32px;
    fill: #131117;
    margin-left: 4px;
    transition: fill 0.25s ease;
    display: block;
}

.evpm-card:hover .evpm-play-icon,
.evpm-play-btn:hover .evpm-play-icon {
    fill: #e8363c;
}

/* 涟漪微动效 */
.evpm-pulse-active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: evpm-pulse-animation 2s cubic-bezier(0.25, 0, 0, 1) infinite;
    pointer-events: none;
}

@keyframes evpm-pulse-animation {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* ==========================================================================
   4. 全局居中半透明毛玻璃弹窗（挂载于 Body 层）
   ========================================================================== */
#evpm-global-modal {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

#evpm-global-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 毛玻璃半透明遮罩 */
#evpm-global-modal .evpm-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

/* 居中对话框 */
#evpm-global-modal .evpm-modal-dialog {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

#evpm-global-modal.is-active .evpm-modal-dialog {
    transform: scale(1);
}

/* 播放器容器 */
#evpm-global-modal .evpm-player-container {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
}

#evpm-global-modal .evpm-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    outline: none;
    background: #000000;
}

/* 右上角关闭按钮 */
#evpm-global-modal .evpm-modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

#evpm-global-modal .evpm-modal-close:hover {
    background-color: #e8363c;
    border-color: #e8363c;
    transform: rotate(90deg);
}

#evpm-global-modal .evpm-modal-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .evpm-card {
        height: 280px;
    }
    .evpm-play-btn {
        width: 66px;
        height: 66px;
    }
    .evpm-play-icon {
        width: 26px;
        height: 26px;
    }
    #evpm-global-modal .evpm-modal-dialog {
        width: 95%;
    }
    #evpm-global-modal .evpm-modal-close {
        top: -42px;
        right: 4px;
    }
}

