@charset "utf-8";
/* ===== 视频播放器弹窗 ===== */

/* 遮罩层 */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.video-modal-overlay.show {
    display: flex;
}

/* 播放器容器 */
#willesPlay {
    width: 80vw;
    max-width: 1000px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

/* 关闭按钮 */
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    color: #fff;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 999999;
    transition: background 0.3s;
}

.video-modal-close:hover {
    background: rgba(154, 17, 26, 0.9);
}

/* 播放器头部 */
#willesPlay .playHeader {
    width: 100%;
    height: 48px;
    background: url(../images/playheader.jpg) repeat-x;
    border-radius: 3px 3px 0px 0px;
}

#willesPlay .playHeader .videoName {
    font-size: 16px;
    width: 400px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    margin: 0 auto;
    color: #7a7f82;
}

/* 视频播放区 */
#willesPlay .playContent {
    position: relative;
    height: auto;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

/* 右侧功能按钮（关灯等） */
#willesPlay .playContent .turnoff {
    position: absolute;
    z-index: 10;
    right: -40px;
    top: 50%;
    margin-top: -90px;
}

#willesPlay .playContent .turnoff li a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

#willesPlay .playContent .turnoff li a:hover {
    color: #666;
}

/* 中心播放/暂停提示图标 */
#willesPlay .playContent .playTip {
    position: absolute;
    width: 90px;
    height: 90px;
    text-align: center;
    line-height: 90px;
    top: 50%;
    left: 50%;
    margin-left: -45px;
    margin-top: -45px;
    background: rgba(239, 106, 108, 0.9);
    font-size: 46px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 5;
}

/* 控制栏 */
#willesPlay .playControll {
    position: absolute;
    z-index: 2147483650;
    width: 100%;
    height: 48px;
    bottom: -48px;
    background: url(../images/playheader.jpg) repeat-x;
    border-radius: 0px 0px 3px 3px;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    transition: bottom 0.25s ease;
}

/* 控制栏显示状态（由JS控制） */
#willesPlay .playControll.show {
    bottom: 0;
}

#willesPlay .fullControll {
    background: rgba(0, 0, 0, 0.5);
}

#willesPlay .fullControll .timebar span {
    color: #FFFFFF;
}

/* 播放/暂停按钮 */
#willesPlay .playControll .playPause {
    float: left;
    width: 20px;
    height: 25px;
    background: url(../images/control_01.png) 0px 0px no-repeat;
    margin: 11px 0px 0px 12px;
    cursor: pointer;
}

#willesPlay .playControll .playIcon {
    background-position: 0px -32px;
}

/* 进度条区域 */
#willesPlay .playControll .timebar {
    float: left;
    width: calc(100% - 145px);
    line-height: 48px;
    overflow: hidden;
    margin: 0px 0px 0px 20px;
}

#willesPlay .playControll .timebar .progress {
    float: left;
    width: 80%;
    margin: 19px 5px;
    height: 10px;
    cursor: pointer;
    background: #ddd;
    border-radius: 4px;
    position: relative;
}

#willesPlay .playControll .timebar .progress .progress-bar {
    height: 100%;
    border-radius: 4px;
    background: #ef6a6c;
    width: 0%;
    transition: none;
}

#willesPlay .playControll .timebar span {
    float: left;
    width: 8%;
    text-align: center;
    font-size: 13px;
    color: #555;
}

/* 右侧控制区 */
#willesPlay .otherControl {
    float: right;
    position: relative;
}

#willesPlay .otherControl span {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    vertical-align: middle;
    font-size: 20px;
    margin: 9px 7px;
    cursor: pointer;
}

#willesPlay .otherControl .volume {
    font-size: 28px;
    color: #ef6a6c;
}

#willesPlay .otherControl .fullScreen {
    color: #919597;
}

/* 音量条弹出 */
#willesPlay .otherControl .volumeBar {
    display: none;
    position: absolute;
    top: -110px;
    left: 4px;
    width: 26px;
    height: 100px;
    background: #f1f2f2;
    border-radius: 4px;
    cursor: pointer;
}

#willesPlay .otherControl .volumeBar:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -7px;
    left: 5px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #f1f2f2;
}

#willesPlay .otherControl .volumeBar .volumewrap {
    background: #a2a7aa;
    width: 8px;
    height: 80px;
    position: absolute;
    bottom: 10px;
    left: 9px;
    border-radius: 4px;
}

#willesPlay .otherControl .volumeBar .progress {
    background: none;
}

#willesPlay .otherControl .volumeBar .progress-bar {
    position: absolute;
    bottom: 0px;
    left: 0px;
    border-radius: 4px;
    width: 8px;
    height: 40%;
    background: #ef6a6c;
}

/* 禁用浏览器原生控制栏 */
video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* 响应式 */
@media (max-width: 768px) {
    #willesPlay {
        width: 96vw;
    }
    #willesPlay .playHeader .videoName {
        width: auto;
        padding: 0 10px;
        font-size: 14px;
    }
    #willesPlay .playControll .timebar {
        width: calc(100% - 110px);
        margin-left: 8px;
    }
    #willesPlay .playControll .timebar .progress {
        width: 65%;
    }
    #willesPlay .playControll .timebar span {
        width: 12%;
        font-size: 11px;
    }
    #willesPlay .playContent .playTip {
        width: 66px;
        height: 66px;
        line-height: 66px;
        margin-left: -33px;
        margin-top: -33px;
        font-size: 34px;
    }
}

