/* Video Player Styles */
.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.controls-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(10px);
}

.controls-content {
    position: relative;
    z-index: 2;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-buttons button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.control-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-play-pause {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
}

.btn-play-pause:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.volume-control:hover .volume-slider {
    opacity: 1;
    transform: translateX(0);
}

.volume-input {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

.volume-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-controls {
        padding: 15px;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-buttons button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .btn-play-pause {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .time-display {
        font-size: 12px;
    }
}

/* Fullscreen styles */
.video-container:-webkit-full-screen {
    border-radius: 0;
}

.video-container:-moz-full-screen {
    border-radius: 0;
}

.video-container:fullscreen {
    border-radius: 0;
}

/* Loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    z-index: 5;
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 