/* 自定义视频控制样式 */

.video-box {
    position: relative;
}

/* 暂停图标 */
.video-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 50;
    animation: pauseIconAppear 0.2s ease;
    pointer-events: none;
}

.pause-symbol {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pauseIconAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.custom-video-controls {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-box:hover .custom-video-controls {
    opacity: 1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.volume-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
    cursor: pointer;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

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

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

.play-hint {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
    border-left: 1px solid #777;
    padding-left: 10px;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .custom-video-controls {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        gap: 8px;
    }

    .volume-control {
        min-width: 120px;
        gap: 6px;
    }

    .volume-slider {
        width: 60px;
        height: 3px;
    }

    .play-hint {
        font-size: 11px;
        margin-left: 8px;
        padding-left: 8px;
    }
}
