/* 沉浸式视频播放器样式 */
.immersive-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.immersive-video-player:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(139, 69, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.1) 0%,
        rgba(160, 82, 45, 0.05) 50%,
        rgba(139, 69, 19, 0.1) 100%
    );
    pointer-events: none;
    border-radius: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.immersive-video-player:hover .video-overlay {
    opacity: 0.3;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.immersive-video-player:hover .video-controls {
    transform: translateY(0);
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.control-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

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

.control-button:active {
    transform: scale(0.95);
}

.play-pause-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
    background: rgba(139, 69, 19, 0.8);
}

.play-pause-btn:hover {
    background: rgba(139, 69, 19, 0.9);
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-display {
    color: white;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    min-width: 80px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(139, 69, 19, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.play-button-large:hover {
    transform: scale(1.1);
    background: rgba(139, 69, 19, 1);
    box-shadow: 
        0 12px 40px rgba(139, 69, 19, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.play-button-large:active {
    transform: scale(0.95);
}

/* 全屏模式样式 */
.immersive-video-player.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.immersive-video-player.fullscreen .video-element {
    border-radius: 0;
}

.immersive-video-player.fullscreen .video-overlay {
    border-radius: 0;
}

.immersive-video-player.fullscreen .video-controls {
    border-radius: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-controls {
        padding: 15px 10px 10px;
    }
    
    .controls-row {
        gap: 8px;
    }
    
    .control-button {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .play-pause-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .volume-slider {
        width: 40px;
    }
    
    .time-display {
        font-size: 10px;
        min-width: 60px;
        padding: 2px 6px;
    }
    
    .play-button-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* 加载状态 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 错误状态 */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* 音量指示器 */
.volume-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.volume-indicator.show {
    opacity: 1;
}