/* ========== 视频播放器样式 ========== */

/* 视频缩略图容器 - 固定尺寸 */
.post-video-thumbnail,
.moment-video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    margin: -2px auto 12px; /* 增加底部边距，与下方操作按钮分开 */
    width: 180px;
    height: 101px; /* 16:9 比例 */
    background: var(--background-color);
    display: block;
}

.post-video-poster,
.moment-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 播放按钮 */
.post-video-play-btn,
.moment-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.post-video-play-btn:hover,
.moment-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 视频标签 */
.post-video-badge,
.moment-video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* 视频时长 */
.post-video-duration,
.moment-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    font-family: monospace;
}

/* 视频播放器弹窗遮罩 */
.video-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频播放器容器 */
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 全屏视频 */
.video-player-fullscreen {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    background: #000;
}

/* 关闭按钮 */
.video-player-close {
    position: absolute;
    top: 20px;
    right: 20px;
    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: 10;
    transition: background 0.3s;
}

.video-player-close:hover {
    background: rgba(0, 0, 0, 0.8);
}