/**
 * MNS Modal Player Styles
 */

/* Modal Overlay */
.mns-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mns-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.mns-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* Modal Content */
.mns-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
    animation: mnsModalSlideIn 0.3s ease;
}

@keyframes mnsModalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.mns-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--mns-close-bg, transparent);
    border: 2px solid var(--mns-close-border, #fff);
    border-radius: 50%;
    color: var(--mns-close-color, #fff);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mns-modal-close:hover {
    background: var(--mns-close-hover-bg, #fff);
    border-color: var(--mns-close-hover-border, #fff);
    color: var(--mns-close-hover-color, #000);
}

/* Video Container - 16:9 Aspect Ratio */
.mns-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mns-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Default Video Button Style */
.mns-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.mns-video-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.mns-video-btn:active {
    transform: translateY(0);
}

/* Play icon for button */
.mns-video-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .mns-modal-content {
        width: 95%;
    }
    
    .mns-modal-close {
        top: -45px;
        right: 5px;
    }
    
    .mns-video-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Body scroll lock when modal is open */
body.mns-modal-open {
    overflow: hidden;
}
