/* detail_video 页布局约束 */
.video-main {
    max-width: 900px;
    margin: 0 auto;
}

/* 分区间距（与首页 missav-home-section 同体系） */
.video-page .missav-home-section {
    margin-bottom: 28px;
}
.video-page .missav-home-section:last-of-type {
    margin-bottom: 0;
}

/* 有内容的广告区块与相邻 section 之间的间距 */
.video-page .tipsy-ad-zone:not(.tipsy-ad-zone--empty) {
    margin-bottom: 16px;
}

/* missav-detail 统一壳：播放区/信息区/简介区共用 */
.video-page .missav-home-section .missav-detail {
    background: #1a1a1c;
    border: 1px solid #252528;
    border-radius: 12px;
    padding: 20px 24px;
}

/* 播放区 missav-detail 去掉内边距（stage 撑满整个壳） */
.video-page .missav-home-section[data-tipsy-module="video_player"] .missav-detail {
    padding: 0;
    overflow: hidden;
}

/* ===== 播放器运行节点样式（tipsy-player.js 依赖，不可删） ===== */

.tdv-player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

.tdv-poster {
    position: absolute;
    inset: 0;
    background: #111;
}
.tdv-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tdv-video-host {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tdv-video-host video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.tdv-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 12px 28px;
    font-size: 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.tdv-start:hover {
    background: rgba(229, 57, 53, 0.75);
    border-color: transparent;
}

/* state 可见性：loading/playing/ready 时隐藏播放按钮 */
[data-player-state="loading"] .tdv-start,
[data-player-state="playing"] .tdv-start,
[data-player-state="ready"] .tdv-start {
    display: none;
}

.tdv-loading,
.tdv-fail {
    position: absolute;
    inset: 0;
    z-index: 3;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.85);
    display: none;
}

.tdv-loading:not([hidden]),
.tdv-fail:not([hidden]) {
    display: flex;
}

/* [hidden] 语义保险：任何作者样式均不得覆盖 */
.tdv-loading[hidden],
.tdv-fail[hidden],
.tdv-poster[hidden],
.tdv-start[hidden] {
    display: none !important;
}

.tdv-fail p {
    margin: 0;
    font-size: 14px;
}

.tdv-retry {
    padding: 10px 24px;
    font-size: 14px;
    color: #fff;
    background: #e53935;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.tdv-retry:hover {
    background: #c62828;
}

/* 无来源占位 */
.tdv-no-source {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.tdv-no-source-msg {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* 移动端 */
@media (max-width: 768px) {
    .video-page .missav-home-section .missav-detail {
        padding: 16px;
    }
    .video-page .missav-home-section[data-tipsy-module="video_player"] .missav-detail {
        padding: 0;
    }
}
