/* Custom HBO-Style Video Player */
.custom-video-player {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.custom-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hide default controls */
.custom-video-player video::-webkit-media-controls {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Video Overlay - Title */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.video-overlay.show {
    opacity: 1;
}

.video-title-overlay {
    color: #fff;
    font-family: 'Product Sans', 'Outfit', sans-serif;
}

.video-title-overlay h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.video-title-overlay p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Custom Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-controls.show {
    opacity: 1;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-container:hover .progress-bar {
    background: #e50914;
}

/* Control Buttons */
.controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.play-pause {
    font-size: 2rem;
}

.time-display {
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Product Sans', 'Outfit', sans-serif;
    margin-left: auto;
}

/* Volume Control */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 100%;
}

/* Skip Buttons */
.skip-btn {
    position: relative;
}

.skip-btn::after {
    content: '10';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Center Play Button */
.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.center-play-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Loading Spinner */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    z-index: 5;
}

.video-loading.show {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Close Button */
.video-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 15;
}

.video-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .video-title-overlay h1 {
        font-size: 1.5rem;
    }

    .control-btn {
        font-size: 1.2rem;
    }

    .control-btn.play-pause {
        font-size: 1.5rem;
    }

    .volume-slider {
        width: 60px;
    }
}