/* ── 视频缩略图（坑位2）── */
.moke-video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.moke-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ▶ 播放按钮叠加层 */
.moke-video-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='9.5,7.5 16.5,12 9.5,16.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.moke-video-thumb:hover::after {
    transform: translate(-50%, -50%) scale(1.12);
    background-color: rgba(0, 0, 0, 0.72);
}

.moke-gallery-thumbs .moke-video-thumb::after {
    width: 22px;
    height: 22px;
    background-size: 13px 13px;
}

/* ── 视频播放器（主图区域内） ── */
.moke-video-player {
    display: none;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.moke-video-player.is-active {
    display: block;
}
.moke-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 关闭按钮（视频播放时） */
.moke-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}
.moke-video-close:hover {
    background: rgba(0, 0, 0, 0.75);
}
.moke-video-close::before,
.moke-video-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.moke-video-close::before { transform: rotate(45deg); }
.moke-video-close::after  { transform: rotate(-45deg); }

/* 主图在视频播放时隐藏 */
.moke-main-image.is-hidden {
    display: none;
}
