#lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.4s ease;
}

.lb-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#lb-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.lb-asset {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
    object-fit: contain;
}

.video-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.custom-controls {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    width: 90%;
    max-width: 600px;
    z-index: 10040;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.video-wrapper:hover .custom-controls { 
    opacity: 1;
}

.play-btn { color: #fff; cursor: pointer; font-size: 1.2rem; }

.progress-bar { 
    flex-grow: 1; 
    height: 4px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 2px; 
    cursor: pointer;
    position: relative;
}

.progress-fill { 
    position: absolute;
    height: 100%; 
    background: var(--accent); 
    border-radius: 2px;
    width: 0%;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.lb-nav:hover { background: var(--accent); border-color: #fff; transform: translateY(-50%) scale(1.1); }
.lb-nav.prev { left: -80px; }
.lb-nav.next { right: -80px; }

@media (max-width: 1400px) {
    .lb-nav.prev { left: 20px; }
    .lb-nav.next { right: 20px; }
    .custom-controls { bottom: -70px; width: 95%; }
}

.lb-close, .lb-download {
    position: absolute;
    top: -50px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0.5;
    transition: 0.3s;
}

.lb-close:hover, .lb-download:hover { opacity: 1; color: var(--accent); }
.lb-close { right: 0; }
.lb-download { right: 50px; }

.lb-counter {
    position: absolute;
    top: -50px;
    left: 0;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 12px;
}