/* Video Module Styles */
.video-module-trigger-container {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.btn-watch-video {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-watch-video:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn-watch-video:active {
    transform: translateY(0);
}

.play-icon {
    font-size: 0.9em;
    width: 24px;
    height: 24px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 2px;
    /* Visual adjustment for triangle */
}

/* Modal Overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    /* 1080p optimized width constraint */
    background: #000;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: visible;
    /* Changed to visible for close button */
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

/* Close Button */
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.2s ease;
    padding: 10px;
    line-height: 1;
}

.video-modal-close:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive specific adjustments */
@media (max-width: 768px) {
    .video-modal-close {
        top: -40px;
        right: 0;
    }

    .btn-watch-video {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 90%;
        justify-content: center;
    }
}