/* 视频播放器样式 */
.video-player {
    display: none;
    position: fixed;
    top: 100px;
    left: 100px;
    width: 800px;
    height: 500px;
    background: #000;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 130;
    flex-direction: column;
}

.video-player .window-titlebar {
    background: linear-gradient(to bottom, #0078d7, #005fb3);
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    flex-shrink: 0;
    z-index: 2;
}

.video-player .window-title {
    font-weight: bold;
    font-size: 14px;
}

.video-player .window-controls {
    display: flex;
    gap: 5px;
}

.video-player .window-controls button {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.video-player .window-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-player .window-controls button:active {
    background: rgba(255, 255, 255, 0.3);
}

.video-player .video-header {
    background: #1a1a1a;
    padding: 8px 12px;
    color: white;
    border-bottom: 1px solid #333;
}

.video-player .video-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player .video-content {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* 视频控制条 */
.video-player .video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    z-index: 2;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 进度条 */
.video-player .video-progress {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.video-player .progress-bar-bg {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2.5px;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

.video-player .progress-bar-fill {
    height: 100%;
    background: var(--win7-blue);
    border-radius: 2.5px;
    width: 0;
}

.video-player .progress-time {
    color: white;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

/* 控制按钮 */
.video-player .control-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.video-player button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    position: relative;
    transition: background 0.2s ease;
}

.video-player button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-player button:active {
    background: rgba(255, 255, 255, 0.3);
}

.video-player .video-play-pause {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.video-player .video-play-pause:hover {
    background: rgba(255, 255, 255, 0.25);
}

.video-player .video-prev-track,
.video-player .video-next-track {
    font-size: 16px;
}

/* 音量控制 */
.video-player .video-volume-control {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
}

.video-player .volume-icon {
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.video-player .video-volume-slider {
    width: 80px;
    height: 5px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2.5px;
    outline: none;
    cursor: pointer;
}

.video-player .video-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    appearance: none;
}

.video-player .video-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

/* 快进快退提示 */
.time-skip-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    transition: opacity 0.5s ease;
}

.time-skip-indicator.rewind {
    left: 20%;
}

.time-skip-indicator.forward {
    right: 20%;
}

.time-skip-indicator.fade-out {
    opacity: 0;
}

/* 工具提示 */
.video-player button .tooltip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.video-player button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 全屏样式 */
.video-player .video-content:fullscreen {
    width: 100%;
    height: 100%;
}

.video-player .video-content:fullscreen video {
    width: 100%;
    height: 100%;
}

/* 视频播放器最大化样式 */
.video-player.maximized {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 40px) !important;
    transform: none !important;
    transition: all 0.3s ease;
    border-radius: 0;
    z-index: 9999;
}

.video-player.minimized {
    display: none;
}

/* 过渡效果 */
.video-player {
    transition: all 0.3s ease;
}

.video-player.maximized .window-titlebar {
    cursor: default;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-player {
        width: 90vw;
        height: 70vh;
        top: 5vh;
        left: 5vw;
    }
}

@media (max-width: 600px) {
    .video-player {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0;
    }
}
