/* assets/css/section-video.css */

.section-video-cinema {
    position: relative;
    width: 100%;
    height: 90vh; /* Bioscoop hoogte */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050505; 
}

/* --- ACHTERGROND --- */
.cinema-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Fallback voor als video niet laadt */
.cinema-bg-fallback {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Onder video */
    opacity: 0.6; 
}

.cinema-bg-video {
    position: relative;
    z-index: 2; /* Boven de fallback */
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; 
}

.cinema-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 3;
}

/* --- CONTENT --- */
.cinema-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; 
}

.cinema-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cinema-title {
    font-size: 4.5rem; 
    line-height: 1;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.9);
    font-weight: 300;
}

/* --- MAGNETISCHE KNOP --- */
.magnetic-wrap {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.btn-magnetic-play {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-gold);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
    position: relative;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.btn-magnetic-play:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.6);
    transform: scale(1.1);
}

.magnetic-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.play-icon {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-left: 4px;
    margin-bottom: 2px;
}

.play-text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-white);
}

/* --- ROTERENDE TEKST --- */
.circle-text-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    pointer-events: none;
    animation: rotateText 15s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-text-wrap svg {
    overflow: visible;
}

.circle-text-wrap text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    fill: var(--color-white);
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes rotateText {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- VISUALIZER --- */
.audio-visualizer {
    display: flex;
    gap: 6px;
    height: 40px;
    align-items: center;
    opacity: 0.8;
}

.audio-visualizer span {
    width: 4px;
    background-color: var(--color-gold);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
    animation: visualize 1s infinite ease-in-out alternate;
}

.audio-visualizer span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.audio-visualizer span:nth-child(2) { height: 20px; animation-delay: 0.3s; }
.audio-visualizer span:nth-child(3) { height: 15px; animation-delay: 0.5s; }
.audio-visualizer span:nth-child(4) { height: 25px; animation-delay: 0.2s; }
.audio-visualizer span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes visualize {
    0% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1.2); opacity: 1; }
}

/* --- FULLSCREEN MODAL (CINEMA MODE) - FIXED --- */
.cinema-modal {
    position: fixed; /* ESSENTIEEL: Fixed t.o.v. scherm */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Donkere overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999; /* Boven ALLES */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Start status */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.cinema-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* De Container waar YouTube in zit */
.modal-video-container {
    position: relative;
    width: 80%;
    max-width: 1400px;
    aspect-ratio: 16 / 9; /* Dwing breedbeeld formaat af */
    background: #000;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* De Close Button */
.btn-close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    color: var(--color-gold);
    transform: rotate(90deg) scale(1.1);
    background: rgba(255,255,255,0.1);
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .cinema-title { font-size: 2.8rem; }
    .btn-magnetic-play { width: 90px; height: 90px; }
    .circle-text-wrap { width: 130px; height: 130px; }
    .circle-text-wrap text { font-size: 9px; }
    
    .modal-video-container {
        width: 100%;
        border: none;
    }
    .btn-close-modal {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }
}