/* =========================================================
 * Destiny 主题 · 视频/音乐播放器样式
 * 1) 平台 iframe 响应式包裹（B站/腾讯/抖音等）
 * 2) Plyr 自定义浮层：logo 水印 / loading 缓冲 / 暂停广告
 * ========================================================= */

/* ---------- 1. 平台 iframe 响应式包裹 ---------- */
.zezemedia iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-color: rgba(120, 120, 120, 0.1);
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}
.zezemedia {
    position: relative;
    display: block;
    padding: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    overflow: hidden;
    margin-bottom: 12px;
}
.zezemedia:after {
    content: '';
    display: block;
    padding-top: 100%;
}
.zezemedia-16x9:after {
    padding-top: 56.25%;
}
.zezemedia-douyin {
    width: 324px;
    margin-left: auto;
    margin-right: auto;
}
.zezemedia-10x16:after {
    padding-top: 159%;
}
/* 兼容其它主题的内容容器 */
.post-content .video-container.video-4-3 {
    padding: 0 !important;
    position: initial !important;
}

/* ---------- 2. Plyr 基础 ---------- */
.destiny-player {
    margin-bottom: 12px;
    background: #000;
}
.destiny-player:empty {
    min-height: 1px;
}

/* Plyr 容器相对定位，便于浮层定位 */
.plyr {
    position: relative;
}

/* ---------- 3. 自定义浮层 ---------- */

/* 浮层统一容器（绝对定位，不拦截播放器控制条，但广告/logo 需可点） */
.dt-plyr-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none; /* 默认透传，仅具体元素开启点击 */
    z-index: 20;
}

/* Logo 水印：右下角 */
.dt-plyr-logo {
    position: absolute;
    right: 12px;
    bottom: 46px; /* 避开底部控制条 */
    z-index: 22;
    pointer-events: auto;
    display: block;
    max-width: 22%;
    opacity: 0.9;
    transition: opacity .2s;
}
.dt-plyr-logo:hover { opacity: 1; }
.dt-plyr-logo img {
    max-width: 100%;
    max-height: 48px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
    display: block;
}

/* Loading 缓冲图：居中 */
.dt-plyr-loading {
    position: absolute;
    inset: 0;
    z-index: 21;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    pointer-events: none;
}
.dt-plyr-loading img {
    width: 56px;
    height: 56px;
    max-width: 30%;
    object-fit: contain;
}

/* 暂停广告：覆盖视频区，可点击跳转 */
.dt-plyr-ad {
    position: absolute;
    inset: 0;
    z-index: 23;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: auto;
    overflow: hidden;
}
.dt-plyr-ad img,
.dt-plyr-ad video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.dt-plyr-ad-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 24;
    user-select: none;
}
.dt-plyr-ad-close:hover { background: rgba(0,0,0,.8); }
