/**
 * Single Image - 视频功能样式
 * 专门针对视频功能的样式
 */

/* 视频播放器容器 */
.si-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.si-video-container video,
.si-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 视频缩略图样式 */
.si-video-thumbnail {
    position: relative;
}

.si-video-thumbnail:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.si-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.si-video-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 视频预加载动画 */
.si-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 124, 186, 0.3);
    border-top-color: #007cba;
    border-radius: 50%;
    animation: si-video-spin 1s linear infinite;
}

@keyframes si-video-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 视频播放器控制样式 */
.si-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: #000;
}

.si-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 视频播放按钮 */
.si-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.si-video-play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.si-video-play-button svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin-left: 5px; /* 调整播放图标的位置 */
}

/* 视频全屏按钮 */
.si-video-fullscreen-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.3s ease;
}

.si-video-fullscreen-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.si-video-fullscreen-button svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 视频静音按钮 */
.si-video-mute-button {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.3s ease;
}

.si-video-mute-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.si-video-mute-button svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .si-video-icon {
        width: 30px;
        height: 30px;
    }
    
    .si-video-icon svg {
        width: 15px;
        height: 15px;
    }
    
    .si-video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .si-video-play-button svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .si-video-icon {
        width: 24px;
        height: 24px;
    }
    
    .si-video-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .si-video-play-button {
        width: 40px;
        height: 40px;
    }
    
    .si-video-play-button svg {
        width: 20px;
        height: 20px;
    }
} 