/* Video player specific styles */
/* Video container */
.video-container {
    min-height: 50vh;
    max-height: calc(100vh - 200px);
    flex: 1;
    display: flex;
    gap: 20px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    transition: all 0.3s ease;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Video screen */
.video-screen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
    height: 100%;
    transition: all 0.3s ease;
}

/* Video element */
video {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
    margin: auto !important;
}

/* Media controls */
.player-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.video-screen:hover .media-controls {
    opacity: 1;
}

/* Progress bar */
.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-current {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 3px;
    position: relative;
    transition: width 0.1s linear;
}

/* Volume control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Custom sliders */
.slider-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
}

.slider {
    width: 200px;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

/* Fullscreen mode */
.video-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #000 !important;
    z-index: 9999;
}

.video-container.fullscreen .video-screen {
    width: 50vw !important;
    height: 100vh !important;
}

/* 外部控制器 */
.outer-controls {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* VR控制器 */
.controls {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.control-group {
    position: relative;
}

.slider-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
}

.slider-container .slider {
    width: 200px;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .controls {
        flex-wrap: wrap;
    }
    
    .video-container:not(.fullscreen) {
        width: 100% !important;
        min-height: 50vh !important;
        max-height: 70vh !important;
        gap: 10px !important;
    }
    
    .video-container.fullscreen {
        flex-direction: row !important;
    }
    
    .outer-controls {
        flex-wrap: wrap;
    }
}
