/* 预告模块复用优酷横向滑动 */
.vod-yg-module.is-loaded{
    display:block !important;
}
.vod-yg-module .preview-book{
    pointer-events:auto;
}

/* 首页横向滑动：铺满容器 + 右侧露出约半张 + 优酷式压暗 */
.vod-yk-module.box-width{
    /* 防止 nowrap 子项把 box-width 撑满整屏（刷新时先贴左边再跳回） */
    min-width:0 !important;
    box-sizing:border-box;
    overflow:hidden !important;
    --content-margin-left:64px;
    --content-margin-left-negative:-64px;
    --content-margin-left-min:64px;
    --content-margin-left-max:64px;
    --content-margin-right:64px;
    --content-margin-right-negative:-64px;
    --content-margin-right-min:64px;
    --content-margin-right-max:64px;
}
.vod-yk-module.box-width.is-slide-ready{
    overflow:visible !important;
}
.vod-yk-slide{
    position:relative;
    width:100%;
    max-width:100%;
    min-width:0;
    margin-right:0;
    overflow:hidden;
}
.vod-yk-module.is-slide-ready .vod-yk-slide{
    overflow:visible !important;
}
.vod-yk-track{
    overflow:hidden;
    width:100%;
    max-width:100%;
    min-width:0;
    position:relative;
    box-sizing:border-box;
}
.vod-yk-module.is-slide-ready .vod-yk-track{
    max-width:none;
}
.vod-yk-module .vod-yk-list{
    display:flex;
    flex-wrap:nowrap !important;
    margin-right:0 !important;
    margin-left:0;
    min-width:0;
    will-change:transform;
    transition:transform .35s ease;
}
.vod-yk-module .vod-yk-list .public-list-box,
.vod-yk-module .vod-yk-list .public-pic-b,
.vod-yk-module .vod-yk-list .public-pic-a,
.vod-yk-module .yk-slide-more{
    /* JS 算宽前沿用 common.css 百分比，避免 width:auto 把整行撑出屏外 */
    flex:0 0 auto;
    box-sizing:border-box;
    padding-right:0;
    margin-top:16px;
    margin-bottom:16px;
}
.vod-yk-module.is-slide-ready .vod-yk-list .public-list-box,
.vod-yk-module.is-slide-ready .vod-yk-list .public-pic-b,
.vod-yk-module.is-slide-ready .vod-yk-list .public-pic-a,
.vod-yk-module.is-slide-ready .yk-slide-more{
    width:auto;
    max-width:none;
}
.vod-yk-module .yk-slide-more-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:0;
    padding-top:133%;
    position:relative;
    border-radius:6px;
    background:rgba(255,255,255,.06);
    color:rgba(255,255,255,.55);
    font-size:14px;
    text-decoration:none;
    overflow:hidden;
}
.theme1 .vod-yk-module .yk-slide-more-inner{
    background:rgba(0,0,0,.06);
    color:rgba(0,0,0,.45);
}
.vod-yk-module .yk-slide-more-inner span{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    white-space:nowrap;
}
.vod-yk-module .yk-slide-more-inner:hover{
    background:rgba(255,255,255,.1);
    color:rgba(255,255,255,.85);
}
.theme1 .vod-yk-module .yk-slide-more-inner:hover{
    background:rgba(0,0,0,.1);
    color:rgba(0,0,0,.75);
}
/* 优酷式露出区压暗 */
.yk-slide-edge{
    position:absolute;
    top:16px;
    z-index:5;
    height:180px;
    pointer-events:none;
    opacity:0;
    visibility:hidden;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:rgba(21,22,23,.85);
    transition:opacity .2s ease,visibility .2s ease,background .3s;
}
.yk-slide-edge.is-on{
    opacity:1;
    visibility:visible;
}
.yk-slide-edge-l{
    right:100%;
    left:auto;
    width:calc(var(--content-margin-left) - 10px);
    min-width:calc(var(--content-margin-left-min) - 10px);
    max-width:calc(var(--content-margin-left-max) - 10px);
    border-radius:8px 0 0 8px;
}
.yk-slide-edge-r{
    left:100%;
    right:auto;
    width:calc(var(--content-margin-right) - 10px);
    min-width:calc(var(--content-margin-right-min) - 10px);
    max-width:calc(var(--content-margin-right-max) - 10px);
    border-radius:0 8px 8px 0;
}
.theme1 .yk-slide-edge{
    background:rgba(245,245,245,.85);
    color:#333;
}
.vod-yk-slide:hover .yk-slide-edge.is-on{
    background:rgba(21,22,23,.92);
}
.theme1 .vod-yk-slide:hover .yk-slide-edge.is-on{
    background:rgba(245,245,245,.92);
}
/* 箭头叠在压暗露出区上，悬停才出 */
.yk-slide-btn{
    position:absolute;
    top:16px;
    z-index:7;
    height:180px;
    margin:0;
    padding:0;
    border:0;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
    background:transparent;
    transition:opacity .2s ease,visibility .2s ease;
}
.yk-slide-btn i{
    display:block;
    line-height:1;
    text-shadow:0 1px 6px rgba(0,0,0,.75);
}
.theme1 .yk-slide-btn{color:#333}
.theme1 .yk-slide-btn i{text-shadow:none}
.yk-slide-prev{
    right:100%;
    left:auto;
    justify-content:center;
    width:calc(var(--content-margin-left) - 10px);
    min-width:calc(var(--content-margin-left-min) - 10px);
    max-width:calc(var(--content-margin-left-max) - 10px);
}
.yk-slide-prev i{transform:rotate(180deg)}
.yk-slide-next{
    left:100%;
    right:auto;
    width:calc(var(--content-margin-right) - 10px);
    min-width:calc(var(--content-margin-right-min) - 10px);
    max-width:calc(var(--content-margin-right-max) - 10px);
}
.vod-yk-slide:hover .yk-slide-btn:not(.is-disabled){
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.yk-slide-btn.is-disabled{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
}
/* 移动端：与下方普通列表同一套栅格，避免列对不齐 */
@media (max-width:767px){
    .yk-slide-btn,
    .yk-slide-edge{display:none !important}
    .vod-yg-module.box-width{
        overflow:hidden;
    }
    .vod-yk-track{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        width:100% !important;
        margin-left:0 !important;
    }
    .vod-yk-module .vod-yk-list{
        transform:none !important;
        margin-right:-6px !important;
    }
    .vod-yk-module .vod-yk-list .public-list-box,
    .vod-yk-module .vod-yk-list .public-pic-b,
    .vod-yk-module .vod-yk-list .public-pic-a,
    .vod-yk-module .yk-slide-more{
        padding-right:6px !important;
        margin-top:6px !important;
        margin-bottom:0 !important;
        box-sizing:border-box;
    }
    /* 默认按竖图 3 列（与 common public-pic-b @<=559 一致，560-767 再覆盖） */
    .vod-yk-module .vod-yk-list .public-pic-b,
    .vod-yk-module .vod-yk-list .yk-slide-more.public-pic-b{
        flex:0 0 33.33333333% !important;
        width:33.33333333% !important;
        max-width:33.33333333% !important;
    }
    .vod-yk-module .vod-yk-list .public-pic-a,
    .vod-yk-module .vod-yk-list .yk-slide-more.public-pic-a{
        flex:0 0 49.9999999% !important;
        width:49.9999999% !important;
        max-width:49.9999999% !important;
    }
}
@media (min-width:560px) and (max-width:767px){
    .vod-yk-module .vod-yk-list .public-pic-b,
    .vod-yk-module .vod-yk-list .yk-slide-more.public-pic-b{
        flex:0 0 25% !important;
        width:25% !important;
        max-width:25% !important;
    }
    .vod-yk-module .vod-yk-list .public-pic-a,
    .vod-yk-module .vod-yk-list .yk-slide-more.public-pic-a{
        flex:0 0 33.333333% !important;
        width:33.333333% !important;
        max-width:33.333333% !important;
    }
}

/* 优酷首页：滑到底部才转圈加载；出现时淡入，避免闪烁 */
.vod-yk-module{position:relative}
.vod-yk-module.is-pending{display:none !important}
.vod-yk-module .yk-loading{display:none !important}
.vod-yk-module.yk-fade-in{
    animation:ykFadeIn .32s ease both;
}
.vod-yk-module .lazy1:not(.loaded),
.vod-yk-module .lazy:not(.loaded),
.yk-more-list .lazy1:not(.loaded),
.yk-more-list .lazy:not(.loaded){
    opacity:0;
}
/* 保留 ds3 原有 hover 放大（transform），同时淡入 opacity */
.vod-yk-module .lazy1.loaded,
.vod-yk-module .lazy.loaded,
.yk-more-list .lazy1.loaded,
.yk-more-list .lazy.loaded{
    opacity:1;
    transition:opacity .28s ease,transform .5s ease-in-out;
    -webkit-transition:opacity .28s ease,-webkit-transform .5s ease-in-out;
}
.vod-yk-module .public-list-div,
.yk-more-list .public-list-div{
    overflow:hidden;
    border-radius:6px;
}
.vod-yk-module .public-list-box:hover .gen-movie-img,
.yk-more-list .public-list-box:hover .gen-movie-img{
    -webkit-transform:scale(1.2);
    transform:scale(1.2);
}
.vod-yk-module .public-list-box:hover .public-list-bj .public-list-exp:before,
.vod-yk-module .public-list-box:hover .public-play,
.vod-yk-module .public-list-box:hover .public-play i,
.yk-more-list .public-list-box:hover .public-list-bj .public-list-exp:before,
.yk-more-list .public-list-box:hover .public-play,
.yk-more-list .public-list-box:hover .public-play i{
    opacity:1;
}
.yk-page-loader{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:0;
    min-height:0;
    padding:0;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    box-sizing:border-box;
    transition:opacity .2s ease,visibility .2s ease,min-height .2s ease,padding .2s ease,height .2s ease;
}
.yk-page-loader.is-show{
    height:auto;
    min-height:88px;
    padding:28px 0 40px;
    opacity:1;
    visibility:visible;
}
.yk-page-end{
    display:none;
    width:100%;
    text-align:center;
    padding:28px 16px 40px;
    box-sizing:border-box;
    font-size:14px;
    line-height:1.6;
    color:rgba(255,255,255,.45);
}
.theme1 .yk-page-end{color:rgba(0,0,0,.4)}
.yk-page-end.is-show{display:block}
.yk-spinner{
    display:block;
    width:42px;
    height:42px;
    animation:ykSpin .75s linear infinite;
    transform-origin:50% 50%;
    flex:0 0 auto;
}
.yk-spinner circle{
    fill:none;
    stroke-width:5;
    stroke-linecap:round;
    stroke-dasharray:72 42;
}
@keyframes ykSpin{to{transform:rotate(360deg)}}
@keyframes ykFadeIn{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:none}
}
@media (max-width:767px){
    .yk-spinner{width:34px;height:34px}
    .yk-page-loader.is-show{min-height:72px;padding:20px 0 28px}
}

/* 优酷「查看更多」弹窗：贴底无留白 */
.window.yk-more-window .window-box{
    max-width:none;
}
.window.yk-more-window.yk-more-fill .window-box,
.window.yk-more-window .window-box{
    top:3vh;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    -webkit-transform:translateX(-50%);
    margin:0;
    height:auto;
    max-height:none;
}
.window.yk-more-window .window-box .animated{
    width:min(1520px,98vw);
    max-width:1520px;
    height:100%;
    max-height:none;
    padding:0;
    border-radius:12px 12px 0 0;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    overflow:hidden;
}
.window.yk-more-window .window-title{
    position:relative;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    margin:0;
    padding:14px 56px;
    box-sizing:border-box;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.theme1 .window.yk-more-window .window-title{
    border-bottom-color:rgba(0,0,0,.06);
}
.window.yk-more-window .window-title .subscript{
    display:block;
    width:100%;
    border:0 !important;
    padding:0 !important;
    margin:0 !important;
    font-size: 28px;
    line-height: 28px;
    margin-top: 32px;
    font-weight:600;
    line-height:1.4;
    text-align:center;
    background:transparent;
}
.window.yk-more-window .window-off{
    position:absolute;
    right:16px;
    top:50%;
    left:auto;
    z-index:2;
    width:28px;
    height:28px;
    margin:0;
    padding:0;
    border-radius:50%;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    line-height:1;
    color:rgba(255,255,255,.75);
    background:rgba(255,255,255,.12);
    transform:translateY(-50%);
    -webkit-transform:translateY(-50%);
    transition:background .2s ease,color .2s ease,transform .2s ease;
}
.window.yk-more-window .window-off:hover{
    color:#fff;
    background:rgba(255,255,255,.22);
    -webkit-transform:translateY(-50%) rotate(90deg);
    transform:translateY(-50%) rotate(90deg);
    -webkit-transition:background .2s ease,color .2s ease,-webkit-transform .2s ease;
    transition:background .2s ease,color .2s ease,transform .2s ease;
}
.theme1 .window.yk-more-window .window-off{
    color:rgba(0,0,0,.55);
    background:rgba(0,0,0,.08);
}
.theme1 .window.yk-more-window .window-off:hover{
    color:rgba(0,0,0,.85);
    background:rgba(0,0,0,.14);
}
.window.yk-more-window .window-content{
    flex:1 1 auto;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
    max-height:none;
    padding:8px 20px 0;
    -webkit-overflow-scrolling:touch;
}
.yk-more-box{
    min-height:0;
}
.yk-more-list{
    margin-right:-14px;
    margin-bottom:0;
}
/* 弹窗大屏：一行 7 个，随屏宽像优酷递减（不影响首页原尺寸） */
.yk-more-list .public-list-box{
    width:14.2857%;
    margin-top:4px;
    margin-bottom:10px;
    padding-right:14px;
    box-sizing:border-box;
}
.yk-more-list .public-list-box:nth-last-child(-n+7){
    margin-bottom:4px;
}
.yk-more-list .public-list-div{
    padding-top:133%;
    border-radius:6px;
    overflow:hidden;
}
.yk-more-list .public-list-button{
    margin-top:6px;
    min-height:auto;
    height:auto;
}
.yk-more-list .public-list-button .time-title{
    font-size:13px;
    line-height:1.35;
    font-weight:400;
}
.yk-more-list .public-list-subtitle{
    display:block !important;
    margin-top:2px;
    font-size:12px;
    line-height:1.3;
    opacity:.55;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.yk-more-list .public-list-prb{
    display:block !important;
    right:6px;
    bottom:6px;
    left:auto;
    max-width:90%;
    padding:0;
    font-size:12px;
    line-height:1.2;
    color:hsla(0,0%,100%,.92);
    text-shadow:0 1px 2px rgba(0,0,0,.55);
    background:none;
    text-align:right;
}
.yk-more-loader{
    display:none;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:0;
    padding:0;
    box-sizing:border-box;
}
.yk-more-loader.is-show{
    display:flex;
    min-height:48px;
    padding:12px 0 8px;
}
.yk-more-end{
    display:none;
    width:100%;
    text-align:center;
    padding:28px 16px 24px;
    box-sizing:border-box;
    font-size:14px;
    line-height:1.6;
    color:rgba(255,255,255,.45);
}
.theme1 .yk-more-end{color:rgba(0,0,0,.4)}
.yk-more-end.is-show{display:block}

/* 弹窗优酷式断点 */
@media (max-width:1599px){
    .window.yk-more-window .window-box .animated{
        width:min(1280px,96vw);
        max-width:1280px;
    }
}
@media (max-width:1399px){
    .yk-more-list .public-list-box{width:16.6667%} /* 6 */
}
@media (max-width:1199px){
    .window.yk-more-window .window-box .animated{
        width:min(980px,94vw);
        max-width:980px;
    }
    .yk-more-list .public-list-box{width:20%} /* 5 */
}
@media (max-width:991px){
    .window.yk-more-window .window-box .animated{
        width:min(760px,94vw);
        max-width:760px;
    }
    .window.yk-more-window .window-content{padding:10px 12px 8px}
    .yk-more-list{margin-right:-10px}
    .yk-more-list .public-list-box{width:25%;padding-right:10px} /* 4 */
}
@media (max-width:767px){
    .window.yk-more-window .window-box{
        width:100%;
        left:0;
        top:auto;
        bottom:0;
        transform:none;
        -webkit-transform:none;
    }
    .window.yk-more-window .window-box .animated{
        width:100%;
        max-width:100%;
        height:min(92vh,100%);
        max-height:none;
        border-radius:12px 12px 0 0;
        padding:0;
    }
    .window.yk-more-window .window-title{
        min-height:48px;
        padding:12px 48px;
    }
    .window.yk-more-window .window-title .subscript{font-size:15px}
    .window.yk-more-window .window-off{
        right:12px;
        width:26px;
        height:26px;
        font-size:13px;
    }
    .window.yk-more-window .window-content{
        max-height:none;
        padding:8px 10px 0;
    }
    .yk-more-list{margin-right:-6px}
    .yk-more-list .public-list-box{
        width:33.3333%;
        padding-right:6px;
        margin-top:6px;
        margin-bottom:6px;
    }
}
@media (max-width:419px){
    .yk-more-list .public-list-box{width:50%}
}
