/* ==========================================================================
   Dedicated Hero Video Modal Styles
   Location: css/hero-video-modal.css
   STRICTLY HIDDEN BY DEFAULT - OPENS ONLY ON CLICK - ZERO LEAKS
   ========================================================================== */

/* 1. Modal Backdrop: HIDDEN BY DEFAULT */
.tc-video-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(9, 9, 11, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    z-index: 999999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    
    /* 🚀 DEFAULT IS STRICTLY HIDDEN */
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.3s ease !important;
}

/* 2. Modal Backdrop: ACTIVE ONLY ON TRIGGER */
.tc-video-modal-backdrop.is-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 3. Close Button (Top-Right) */
.tc-video-modal-close {
    position: absolute !important;
    top: 24px !important;
    right: 32px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    z-index: 1000000001 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tc-video-modal-close svg {
    width: 36px !important;
    height: 36px !important;
    stroke-width: 1.5 !important;
    transition: transform 0.3s ease !important;
}

.tc-video-modal-close:hover {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.tc-video-modal-close:hover svg {
    transform: rotate(90deg) !important;
}

/* 4. 16:9 Video Box */
.tc-video-modal-content {
    width: 90% !important;
    max-width: 1100px !important;
    aspect-ratio: 16/9 !important;
    background-color: #000000 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 
                0 0 0 1px rgba(255, 255, 255, 0.12) !important;
    transform: scale(0.95) translateY(20px) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tc-video-modal-backdrop.is-open .tc-video-modal-content {
    transform: scale(1) translateY(0) !important;
}

.tc-video-modal-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    .tc-video-modal-close {
        top: 15px !important;
        right: 15px !important;
    }
    
    .tc-video-modal-content {
        width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
    }
}