*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#eee9df;color:#1b1b1b;font-family:"Arial Narrow","Microsoft YaHei",Arial,sans-serif}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.film-shell{min-height:100vh}.film-head{min-height:92px;padding:14px max(5vw,24px);display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(280px,.8fr);align-items:center;gap:28px;background:#f7f3e9;border-bottom:5px solid #171717}.film-logo{display:flex;align-items:center;gap:13px;min-width:0}.film-logo>span{display:grid;place-items:center;width:52px;height:52px;background:#171717;color:#f2a100;font-size:24px;font-weight:900;border-radius:50%}.film-logo b{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.film-logo small{display:block;font:10px/1.4 monospace;letter-spacing:2px;color:#777}.film-head nav{display:flex;gap:4px}.film-head nav a{padding:9px 12px;font-weight:800;border-bottom:3px solid transparent}.film-head nav a:hover{border-color:#f2a100}.film-head form{display:flex;border-bottom:2px solid #171717}.film-head input{width:100%;border:0;background:transparent;padding:10px;outline:0}.film-head button{border:0;background:#171717;color:#f2a100;font-weight:900;padding:0 18px}.film-perf{height:24px;background:#171717;display:flex;justify-content:space-around;align-items:center;padding:0 3%}.film-perf i{display:block;width:28px;height:12px;background:#eee9df;border-radius:2px}.film-main{width:min(1540px,calc(100% - 48px));margin:0 auto;padding:30px 0 54px}.story-hero{display:grid;grid-template-columns:120px minmax(0,1fr);gap:0;margin-bottom:26px}.hero-label{background:#171717;color:#fff;padding:25px 18px;writing-mode:vertical-rl;display:flex;align-items:center;gap:15px}.hero-label b{color:#f2a100;letter-spacing:2px}.hero-screen{min-height:300px;border:12px solid #171717;background:#262626;overflow:hidden}.hero-screen>*{margin:0!important}.reel-nav{display:grid;grid-template-columns:repeat(4,1fr);border:3px solid #171717;margin:28px 0}.reel-nav a{display:grid;grid-template-columns:50px 1fr;grid-template-rows:auto auto;padding:18px;border-right:3px solid #171717;background:#f7f3e9}.reel-nav a:last-child{border:0}.reel-nav b{grid-row:1/3;font-size:32px;color:#f2a100}.reel-nav span{font-size:20px;font-weight:900}.reel-nav small{font:10px monospace;color:#777}.film-band{margin:38px 0;border-top:7px solid #171717;border-bottom:2px solid #171717;padding:0 0 22px}.film-band>header{display:flex;align-items:center;gap:18px;padding:13px 0}.film-band>header span{background:#171717;color:#f2a100;padding:7px 11px;font:bold 11px monospace}.film-band h2{margin:0;font-size:28px}.film-band>header a{margin-left:auto;font-weight:800}.frames{display:flex;gap:18px;overflow:hidden;align-items:stretch}.frames>*{min-width:180px;flex:1}.frames img{aspect-ratio:2/3;object-fit:cover}.frames.compact>*{min-width:155px}.split-reel{display:grid;grid-template-columns:minmax(0,2fr) 360px;gap:30px}.cut-list{border:3px solid #171717;background:#f7f3e9;margin:38px 0}.cut-list header{padding:16px;border-bottom:3px solid #171717}.cut-list header span{font:11px monospace;color:#f2a100}.cut-list h2{margin:4px 0}.cut-list>div{padding:14px}.inverted{background:#171717;color:#eee9df;padding:0 18px 22px}.inverted>header span{background:#f2a100;color:#171717}.end-roll{display:grid;grid-template-columns:180px 1fr;gap:20px;border:3px dashed #171717;padding:18px}.end-roll>b{font-size:28px;align-self:center}.end-roll>div{display:flex;gap:14px;overflow:hidden}.list-slate,.search-slate{border-left:18px solid #171717;border-bottom:3px solid #171717;padding:20px 26px;background:#f7f3e9}.list-slate span,.search-slate span{font:bold 11px monospace;color:#d68100}.list-slate h1,.search-slate h1{font-size:42px;margin:4px 0}.list-slate p{margin:0;color:#666}.list-reel{display:grid;grid-template-columns:220px 1fr;gap:28px;margin-top:28px}.list-side{border-right:3px solid #171717;display:flex;flex-direction:column}.list-side b{font:14px monospace;color:#d68100;margin-bottom:18px}.list-side a{padding:13px 0;border-bottom:1px solid #aaa;font-weight:800}.xxf-list-tools{width:100%;margin-bottom:20px}.xxf-subcats{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.xxf-subcats a{display:inline-flex!important;width:auto!important;padding:7px 12px!important;border:1px solid #171717!important}.manual-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 16px}.manual-card{position:relative;padding:9px 9px 13px;background:#f7f3e9;border:1px solid #bbb;box-shadow:4px 4px 0 #171717}.manual-card figure{position:relative;margin:0 0 10px}.manual-card img{width:100%;aspect-ratio:2/3;object-fit:cover;filter:saturate(.9) contrast(1.04)}.manual-card i{position:absolute;right:0;bottom:0;background:#171717;color:#f2a100;padding:5px 7px;font-size:11px;font-style:normal}.manual-card b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manual-card small{display:block;margin-top:5px;font:9px monospace;color:#777}.xxf-page-wrap{grid-column:1/-1;margin-top:28px}.xxf-pagination{display:flex!important;flex-wrap:wrap!important;gap:7px!important;justify-content:center}.xxf-pagination a,.xxf-pagination span{padding:8px 11px!important;border:1px solid #171717!important}.detail-board{display:grid;grid-template-columns:300px minmax(0,1fr) 300px;gap:28px}.detail-poster{background:#171717;color:#eee9df;padding:14px}.detail-poster>span,.detail-script small{font:bold 11px monospace;color:#f2a100}.detail-poster img{width:100%;aspect-ratio:2/3;object-fit:cover;margin:12px 0}.detail-script{border-top:8px solid #171717;padding-top:20px}.detail-script h1{font-size:48px;line-height:1.08;margin:6px 0 24px}.detail-script dl{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid #999}.detail-script dl div{padding:12px}.detail-script dt{font:bold 11px monospace;color:#777}.detail-script dd{margin:5px 0}.script-text{font-size:16px;line-height:1.9;padding:22px 0}.watch-btn{display:inline-block;background:#f2a100;border:3px solid #171717;padding:12px 24px;font-weight:900;box-shadow:4px 4px 0 #171717}.takes{margin-top:28px;border-top:3px dashed #171717;padding-top:15px}.takes>div{display:flex;flex-wrap:wrap;gap:8px}.takes a{padding:8px 11px;background:#171717;color:#fff}.detail-cuts{border-left:3px solid #171717;padding-left:18px}.detail-cuts>b{font:14px monospace;color:#d68100}.projection-room>header{display:grid;grid-template-columns:160px 1fr auto;align-items:end;border-bottom:5px solid #171717;padding-bottom:14px}.projection-room>header span{font:bold 12px monospace;color:#d68100}.projection-room h1{margin:0;font-size:36px}.screen-frame{background:#050505;border:18px solid #171717;padding:10px;margin-top:24px;box-shadow:0 14px 0 #c9c2b5}.screen-frame video,.screen-frame iframe{width:100%!important;max-height:72vh}.player-console{display:grid;grid-template-columns:300px 1fr;gap:30px;margin-top:35px}.player-console>section:first-child{border-right:3px solid #171717;padding-right:20px}.search-grid{margin-top:28px}.film-footer{min-height:90px;background:#171717;color:#eee9df;display:flex;align-items:center;gap:30px;padding:20px max(5vw,24px)}.film-footer b{color:#f2a100}.film-footer span{flex:1}.film-footer a{border-bottom:1px solid #f2a100}@media(max-width:900px){.film-head{grid-template-columns:1fr auto}.film-head nav{order:3;grid-column:1/-1;overflow:auto}.film-head form{display:none}.film-main{width:min(100% - 24px,1540px)}.film-perf i:nth-child(even){display:none}.story-hero{grid-template-columns:54px 1fr}.hero-label{padding:12px 8px}.reel-nav{grid-template-columns:1fr 1fr}.reel-nav a:nth-child(2){border-right:0}.split-reel,.list-reel,.detail-board,.player-console{display:block}.cut-list,.list-side,.detail-cuts{margin-top:24px}.manual-grid{grid-template-columns:repeat(3,1fr)}.detail-poster{max-width:330px;margin:auto}.detail-script h1{font-size:34px}.projection-room>header{display:block}.frames{overflow-x:auto}.frames>*{min-width:150px}.end-roll{display:block}.end-roll>div{margin-top:14px}}@media(max-width:560px){.film-logo b{max-width:210px}.reel-nav{display:block}.reel-nav a{border-right:0;border-bottom:2px solid #171717}.manual-grid{grid-template-columns:repeat(2,1fr)}.detail-script dl{display:block}.film-footer{display:block}.film-footer>*{display:block;margin:7px 0}.screen-frame{border-width:8px}.list-slate h1,.search-slate h1{font-size:32px}}
/* ==========================================================
   XXF_MOVIE007_DYNAMIC_CARD_LAYOUT_V4
   适配 index.php 输出的 portal-card / portal-hero
   ========================================================== */

/* ---------- HERO ---------- */

.story-hero {
    width: 100%;
}

.hero-screen {
    position: relative;
    min-width: 0;
    min-height: 360px;
}

.hero-screen .portal-hero {
    position: relative;
    min-height: 360px;
    height: 100%;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.55) 43%,
            rgba(0,0,0,.12) 100%
        ),
        var(--hero) center 28% / cover no-repeat;
    color: #fff;
}

.hero-screen .hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.72),
            rgba(0,0,0,.20) 70%
        );
}

.hero-screen .hero-copy {
    position: relative;
    z-index: 2;
    width: min(680px, 70%);
    padding: 58px 54px;
}

.hero-screen .hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #f2a100;
    color: #171717;
    font-size: 12px;
    font-weight: 900;
}

.hero-screen .hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(32px,4vw,58px);
    line-height: 1.08;
    color: #fff;
}

.hero-screen .hero-copy p {
    max-width: 620px;
    margin: 0;
    color: #eee;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 2px solid #fff;
    font-weight: 900;
}

.hero-actions .primary {
    background: #f2a100;
    border-color: #f2a100;
    color: #171717;
}


/* ---------- 横向胶片影视卡 ---------- */

.frames {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 18px;
    overflow: visible;
}

.frames > .portal-card {
    min-width: 0;
    width: 100%;
}

.frames .portal-card {
    position: relative;
    background: #f7f3e9;
    border: 2px solid #171717;
    padding: 7px 7px 12px;
    box-shadow: 4px 4px 0 rgba(23,23,23,.95);
    overflow: hidden;
}

.frames .portal-card a {
    display: block;
}

.frames .posterbox {
    position: relative;
    overflow: hidden;
    background: #171717;
}

.frames .posterbox img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}

.frames .portal-card:hover .posterbox img {
    transform: scale(1.035);
}

.frames .remark {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 88%;
    padding: 5px 7px;
    background: #f2a100;
    color: #171717;
    font-size: 11px;
    font-weight: 900;
}

.frames .hover-play {
    display: none;
}

.frames .portal-card h3 {
    margin: 10px 2px 0;
    font-size: 15px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frames .card-meta {
    margin: 5px 2px 0;
    color: #777;
    font: 10px/1.4 monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------- ROLL B ---------- */

.split-reel {
    align-items: start;
}

.split-reel > .film-band {
    min-width: 0;
}

.frames.compact {
    grid-template-columns: repeat(5,minmax(0,1fr));
}

.frames.compact > .portal-card:nth-child(n+11) {
    display: none;
}


/* ---------- CUT LIST ---------- */

.cut-list {
    align-self: start;
    overflow: hidden;
}

.cut-list > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cut-list .portal-card {
    min-width: 0;
    overflow: hidden;
}

.cut-list .portal-card:nth-child(n+7) {
    display: none;
}

.cut-list .portal-card a {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
}

.cut-list .posterbox {
    grid-row: 1 / 3;
    position: relative;
}

.cut-list .posterbox img {
    width: 64px;
    height: 88px;
    object-fit: cover;
}

.cut-list .remark,
.cut-list .hover-play {
    display: none;
}

.cut-list .portal-card h3 {
    margin: 0;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cut-list .card-meta {
    margin: 4px 0 0;
    color: #777;
    font-size: 10px;
}


/* ---------- ROLL C ---------- */

.film-band.inverted .portal-card {
    background: #292929;
    border-color: #eee9df;
    box-shadow: 4px 4px 0 #f2a100;
}

.film-band.inverted .portal-card h3 {
    color: #fff;
}

.film-band.inverted .card-meta {
    color: #bbb;
}


/* ---------- LATEST CUTS ---------- */

.end-roll {
    align-items: center;
}

.end-roll > div {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 12px;
    overflow: hidden;
}

.end-roll .portal-card:nth-child(n+7) {
    display: none;
}

.end-roll .portal-card {
    min-width: 0;
}

.end-roll .posterbox {
    position: relative;
}

.end-roll .posterbox img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.end-roll .remark,
.end-roll .hover-play,
.end-roll .card-meta {
    display: none;
}

.end-roll .portal-card h3 {
    margin: 6px 0 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------- PC ---------- */

@media (min-width: 1400px) {

    .film-main {
        width: min(1500px,calc(100% - 64px));
    }

    .frames {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }

    .frames.compact {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }

}


/* ---------- TABLET ---------- */

@media (max-width: 1100px) {

    .frames {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .frames.compact {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .split-reel {
        grid-template-columns: minmax(0,1fr) 290px;
        gap: 20px;
    }

    .cut-list > div {
        grid-template-columns: 1fr;
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

    .hero-screen {
        min-height: 310px;
    }

    .hero-screen .portal-hero {
        min-height: 310px;
    }

    .hero-screen .hero-copy {
        width: 100%;
        padding: 38px 28px;
    }

    .split-reel {
        display: block;
    }

    .frames,
    .frames.compact {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        overflow: visible;
    }

    .cut-list > div {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .end-roll > div {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

}

@media (max-width: 560px) {

    .story-hero {
        grid-template-columns: 38px minmax(0,1fr);
    }

    .hero-screen,
    .hero-screen .portal-hero {
        min-height: 270px;
    }

    .hero-screen .hero-copy {
        padding: 28px 18px;
    }

    .hero-screen .hero-copy p {
        display: none;
    }

    .hero-actions {
        margin-top: 15px;
    }

    .frames,
    .frames.compact {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px 10px;
    }

    .cut-list > div {
        grid-template-columns: 1fr;
    }

    .end-roll {
        display: block;
    }

    .end-roll > div {
        grid-template-columns: repeat(2,minmax(0,1fr));
        margin-top: 14px;
    }

}


/* ==========================================================
   XXF_PLAYER_SIZE_FIX_V2
   播放页统一尺寸
   ========================================================== */

.stage,
.player-stage {
    width: 100% !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.stage video,
.stage iframe,
.player-stage video,
.player-stage iframe,
video.mv-player,
iframe.mv-player {
    display: block !important;
    box-sizing: border-box !important;

    width: 100% !important;
    max-width: 960px !important;

    min-height: 0 !important;
    max-height: 540px !important;

    aspect-ratio: 16 / 9 !important;

    margin-left: auto !important;
    margin-right: auto !important;

    object-fit: contain !important;
    background: #000 !important;
}

.stage video,
.player-stage video,
video.mv-player {
    height: auto !important;
}

.stage iframe,
.player-stage iframe,
iframe.mv-player {
    height: min(54vw, 540px) !important;
}

@media (max-width: 700px) {

    .stage,
    .player-stage {
        width: 100% !important;
        max-width: 100% !important;
    }

    .stage video,
    .stage iframe,
    .player-stage video,
    .player-stage iframe,
    video.mv-player,
    iframe.mv-player {
        width: 100% !important;
        max-width: 100% !important;

        min-height: 0 !important;
        max-height: none !important;

        aspect-ratio: 16 / 9 !important;
    }

    .stage video,
    .player-stage video,
    video.mv-player {
        height: auto !important;
    }

    .stage iframe,
    .player-stage iframe,
    iframe.mv-player {
        height: 56.25vw !important;
        max-height: 56.25vw !important;
    }
}

/* XXF_ALL_HOME_LAYOUT_FIX_V31_BEGIN */

/*
 * MOVIE002-080 首页布局安全层
 * 保留各模板主题视觉，只修复失控布局。
 */

body .site-shell{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

body .main{
    width:min(1380px,calc(100% - 40px)) !important;
    max-width:1380px !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

/* 消除栏目整体漂移 */
body .main > .block,
body .main > .gallery-lead,
body .main > .mosaic,
body .main > .dashboard,
body .main > .content-grid{
    transform:none !important;
    left:auto !important;
    right:auto !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
}

/* 普通栏目保持完整宽度 */
body .main > .block{
    width:100% !important;
    max-width:none !important;
    clear:both !important;
}

/* MOVIE035这类错位结构 */
body .gallery-lead{
    display:block !important;
    width:100% !important;
    max-width:none !important;
}

body .gallery-lead > .block{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
}

/* mosaic/dashboard不能把主体压窄 */
body .mosaic,
body .dashboard{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
}

/* 禁止第一张卡片异常跨列 */
body .block .cards > *{
    grid-column:auto !important;
    grid-row:auto !important;
    transform:none !important;
}

body .block > .cards{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

/* 卡片自身不能撑坏网格 */
body .portal-card,
body .card{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

body .posterbox{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
}

body .posterbox img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

/* 热播区安全布局 */
body .hot{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

body .main > .hot > div{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:14px !important;
}

body .main > .hot .portal-card{
    width:auto !important;
    max-width:none !important;
}

/* 空hero禁止制造巨大空白 */
body .hero:empty{
    display:none !important;
    min-height:0 !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
}

@media (min-width:1201px){
    body .main{
        width:min(1380px,calc(100% - 48px)) !important;
    }
}

@media (max-width:1200px){
    body .main{
        width:calc(100% - 32px) !important;
    }

    body .main > .hot > div{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    }
}

@media (max-width:800px){
    body .main{
        width:calc(100% - 24px) !important;
    }

    body .main > .hot > div{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}

@media (max-width:560px){
    body .main{
        width:calc(100% - 20px) !important;
    }

    body .main > .hot > div{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
    }
}

/* XXF_ALL_HOME_LAYOUT_FIX_V31_END */


/* XXF_HOME_LAYOUT_FINAL_V5_BEGIN
 *
 * 首页布局最终安全层。
 *
 * 只解决：
 * - 主体异常变窄
 * - 首页父级容器继续压缩内容
 * - section横向漂移
 * - 首张卡片异常跨列
 *
 * 不统一各模板原始cards列数。
 * 不修改detail/play/list核心结构。
 */

/*
 * site-shell自身不得把页面缩窄。
 * 保留特殊侧栏模板可能存在的正常padding，
 * 这里只阻止宽度和transform造成整体压缩。
 */
body .site-shell {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    transform:none !important;
}

/*
 * main恢复成正常PC内容区域。
 *
 * 不采用固定1360/1440，
 * 这样不同模板仍保留自身视觉差异；
 * 这里只设一个安全上限1380。
 */
body .main {
    width:min(1380px,calc(100% - 40px)) !important;
    max-width:1380px !important;
    min-width:0 !important;

    margin-left:auto !important;
    margin-right:auto !important;

    transform:none !important;
}

/*
 * 首页常见外层结构不能再次限制main宽度。
 */
body .main > .mag-cover,
body .main > .mosaic,
body .main > .dashboard,
body .main > .home-two,
body .main > .home-grid,
body .main > .paper-grid,
body .main > .retro-grid,
body .main > .neon-grid,
body .main > .guide-grid,
body .main > .content-grid,
body .main > .gallery-lead {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin-left:0 !important;
    margin-right:0 !important;

    transform:none !important;
}

/*
 * 这些父级内部元素允许正常收缩，
 * 但不能反过来把父容器撑坏或压窄。
 */
body .main > .mag-cover > *,
body .main > .mosaic > *,
body .main > .dashboard > *,
body .main > .home-two > *,
body .main > .home-grid > *,
body .main > .paper-grid > *,
body .main > .retro-grid > *,
body .main > .neon-grid > *,
body .main > .guide-grid > *,
body .main > .content-grid > *,
body .main > .gallery-lead > * {
    min-width:0 !important;
    max-width:100%;
}

/*
 * 普通栏目块始终使用父容器完整宽度。
 */
body .main > .block,
body .main .gallery-lead > .block {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin-left:0 !important;
    margin-right:0 !important;

    transform:none !important;
}

/*
 * 清除原模板：
 * .block:nth-child(even){transform:translateX(...)}
 *
 * 这是目前电影/电视剧栏目左右漂移的重要来源。
 */
body .main .block:nth-child(n) {
    transform:none !important;
}

/*
 * 清除原模板：
 * .block:nth-child(odd) .cards>*:first-child{
 *     grid-column:span 2
 * }
 *
 * 不改变cards本身的4/5/6/7列设计。
 */
body .main .block .cards > * {
    grid-column:auto !important;
    min-width:0 !important;
}

/*
 * cards仍使用每套模板自己原来的列数。
 * 这里只保证grid不会产生最小内容宽度反撑。
 */
body .main .cards,
body .main .list-grid {
    width:100%;
    max-width:100%;
    min-width:0;
}

/*
 * 首页hot区域不能因为历史补丁留下的
 * max-width / width / transform 再次变窄。
 */
body .main > .hot,
body .main .mosaic .hot,
body .main .mag-cover .hot,
body .main .dashboard .hot {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    transform:none !important;
}

/*
 * 手机和平板只修main宽度。
 * cards列数继续交给各模板原来的media规则。
 */
@media (max-width:1200px) {
    body .main {
        width:calc(100% - 32px) !important;
        max-width:none !important;
    }
}

@media (max-width:800px) {
    body .main {
        width:calc(100% - 24px) !important;
        max-width:none !important;
    }
}

@media (max-width:560px) {
    body .main {
        width:calc(100% - 20px) !important;
        max-width:none !important;
    }
}

/* XXF_HOME_LAYOUT_FINAL_V5_END */
