/* ===========================================================
 * player.css — 视频播放器公共样式（PC + 手机通用）
 * 从 viewthread_player.htm (PC/touch) 中抽离，跨详情页缓存复用
 * 版本: v20260807a
 * =========================================================== */

/* ====== PC: .czplay_box 播放盒子（PC+手机都用）*/
.czplay_box {
    background: #45423e;
    padding: 20px;
    margin: 0px 0px 30px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 180%;
    overflow: hidden;
}
.czplay_box img {
    max-width: 100%;
}

/* ====== 切换分辨率按钮（PC+手机）*/
.cz_switchbtn {
    color: #d3c09a;
    font-weight: bold;
    line-height: 38px;
    margin: 0 0 0 80px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}
.cz_switchbtn:hover {
    color: #f5ddad;
}

/* ====== PC: DPlayer 容器尺寸 */
#dplayer {
    width: 800px;
    height: 450px;
    margin: 40px auto;
}
.dplayer-controller {
    z-index: 2;
}

/* ====== 防下载：禁止视频元素长按/选择/拖动 ====== */
.czplay_box video,
#cz_dplayer video,
.dplayer video {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    pointer-events: auto !important;
}
.czplay_box,
#cz_dplayer,
#cz_dl_vwvplay,
.dplayer {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.cz-video-protected::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 40px; /* 留出控制栏区域 */
    pointer-events: none;
    z-index: 1;
}

/* ====== PC: 分辨率切换弹层 switchmain ====== */
.switchmain {
    bottom: 0;
    height: 160px;
    position: absolute;
    z-index: 2;
    width: 100%;
    transform: translateY(100%);
    transition: transform .25s ease-in-out, opacity .25s ease-in-out;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
}
.switchmain.show {
    transform: translateY(0);
    opacity: 1;
}
.switchmain .sw_btns {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 80px;
}
.switchmain .sw_btns .sw_bli {
    flex: 1;
}
.sw_btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: linear-gradient(to bottom, rgba(251, 237, 193, 0.8) 0%, rgba(255, 223, 140, 0.8) 100%);
    color: #946941;
    height: 100%;
}
.sw_btn:hover {
    background: linear-gradient(to bottom, rgba(251, 237, 193, 0.9) 0%, rgba(255, 223, 140, 0.9) 100%);
    color: #946941;
}
.sw_btn:active {
    background: linear-gradient(to bottom, hsla(45, 80%, 85%, 1) 0%, hsla(42, 85%, 75%, 1) 100%);
    color: #946941;
}
.btn_a {
    background: linear-gradient(to bottom, rgba(182, 161, 235, 0.8) 0%, rgba(166, 140, 220, 0.8) 100%);
    color: #fff;
}
.btn_a:hover {
    background: linear-gradient(to bottom, rgba(182, 161, 235, 0.9) 0%, rgba(166, 140, 220, 0.9) 100%);
    color: #fff;
}
.btn_a:active {
    background: linear-gradient(to bottom, hsla(260, 60%, 77%, 1) 0%, hsla(260, 65%, 67%, 1) 100%);
    color: #fff;
}
.sw_btt {
    font-size: 18px;
    margin-bottom: 5px;
    color: #946941;
    font-weight: bold;
}
.btn_a .sw_btt {
    color: #fff;
}
.btn_a .sw_btm {
    color: rgba(255, 255, 255, 0.6);
}

/* ====== 旋转按钮样式（PC+手机通用，覆盖手机端移动端前缀）====== */
.dplayer-download {
    display: none !important;
}
.dplayer-rotate-left-icon, .dplayer-rotate-right-icon {
    height: 100%;
    position: relative;
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.dplayer-rotate-left-icon .dplayer-icon-content,
.dplayer-rotate-right-icon .dplayer-icon-content {
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: bold;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    height: 100%;
    width: 40px;
}
/* 手机端：按下态 */
.dplayer-rotate-left-icon:active .dplayer-icon-content,
.dplayer-rotate-right-icon:active .dplayer-icon-content {
    opacity: 0.7;
    transform: scale(0.92);
}
/* PC端：鼠标悬停态 */
@media (hover: hover) {
    .dplayer-rotate-left-icon:hover .dplayer-icon-content,
    .dplayer-rotate-right-icon:hover .dplayer-icon-content {
        transform: scale(1);
    }
}
