.header-tools .icon-button{font-size:22px;min-height:44px;min-width:44px}
.cms-rich{font-size:16px;line-height:1.9;overflow-wrap:anywhere}
.cms-rich img{max-width:100%;height:auto}
.cms-rich p{margin:12px 0}
.cms-episodes{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.cms-episodes .button{min-height:44px;font-size:14px;padding:10px 16px}
.cms-player{position:relative;aspect-ratio:16/9;background:#000;width:100%;margin:20px 0}
.cms-player iframe,.cms-player video{width:100%;height:100%;border:0}
.cms-search{margin:24px 0;max-width:720px}
.cms-search input{width:100%;min-width:0;min-height:46px;font:inherit;padding:12px;border:1px solid #cbd5dc}
.cms-search button{min-height:46px;padding:12px 24px;background:#ffad36;white-space:nowrap}
.cms-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;gap:12px;margin:24px 0;align-items:end}
.cms-form{display:grid;gap:14px;max-width:700px}
.cms-form label,.cms-filters label{display:grid;gap:8px;font-size:14px}
.cms-form input,.cms-filters input,.cms-filters select{width:100%;min-width:0;min-height:46px;border:1px solid #cbd5dc;border-radius:7px;padding:10px 12px;font:inherit;background:#fff}
.cms-form textarea{width:100%;min-height:140px;padding:12px;border:1px solid #cbd5dc;border-radius:7px;resize:vertical;font:inherit}
.cms-auth{max-width:600px}
.cms-form [data-form-status]{font-size:14px;line-height:1.8;color:#8b4f00;overflow-wrap:anywhere}
.verify-refresh{width:150px;min-height:50px}
.verify-refresh img{width:150px;height:50px;object-fit:contain}
.cms-comment .utility-card{margin:16px 0}
.cms-comment time{font-size:12px;color:#6c7e89;margin-left:14px}
.cms-comment blockquote{border-left:3px solid #edbc72;margin:16px 0 0;padding-left:16px;background:#fff8ed}
#theme-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:90vw;padding:14px 20px;border-radius:10px;background:#102630;color:#fff;z-index:200;display:none}
#theme-toast.show{display:block}
#theme-image{width:min(92vw,1100px);max-height:95vh;padding:18px;background:#071923;color:white;border:0;border-radius:10px}
#theme-image::backdrop{background:#000c}
#theme-image img{display:block;max-width:100%;max-height:78vh;object-fit:contain;margin:16px auto}
#theme-image a{display:block;text-align:center;min-height:44px}
#main h2{margin-bottom:18px}
#main section[id]{scroll-margin-top:90px}
.actor-profile-hero .actor-hero-caption{max-width:44ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1023px){.cms-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-brand{font-size:20px}.header-inner{gap:12px}.header-tools{margin-left:auto}.nav.open{position:absolute;top:60px;left:0;right:0;background:#061923;padding:18px;z-index:50;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.nav.open a{min-height:44px;padding:12px 6px;font-size:13px}}
@media(max-width:767px){
 .footer{display:none}
 .cms-home-hero{min-height:320px}
 .cms-brand{font-size:19px;max-width:58vw;overflow:hidden;text-overflow:ellipsis}
 .cms-filters{gap:10px}
 .cms-filters .button{min-width:0;min-height:46px}
 .cms-episodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .cms-episodes .button{padding:10px 5px;font-size:13px;overflow-wrap:anywhere;white-space:normal}
 .surface .grid.film-grid:not(.view-list){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}
 .cms-detail-hero .detail-poster{width:100%;aspect-ratio:2/3}
 .cms-detail-hero .detail-poster img{width:100%;height:100%;object-fit:contain}
 #theme-image{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:16px}
 #theme-image img{max-height:calc(100dvh - 150px)}
 .cms-player{aspect-ratio:16/10}
 .cms-rich{font-size:15px;line-height:1.9}
 .cms-comment time{display:block;margin:6px 0}
 .cms-episodes:empty{display:none}
 .personal-films h2{font-size:14px}
}

/* List mode must override the poster grid at every breakpoint. */
body .surface .grid.film-grid.view-list{display:block}body .film-grid.view-list .poster-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 20px;padding:18px 0;text-align:left}body .film-grid.view-list .poster-link{grid-row:1/5;width:110px}body .film-grid.view-list .poster-link>img{width:100%;aspect-ratio:2/3;object-fit:cover}body .film-grid.view-list h3{white-space:normal;align-self:end}body .film-grid.view-list p{margin:0;align-self:start}
@media(max-width:767px){body .film-grid.view-list .poster-card{grid-template-columns:80px minmax(0,1fr);gap:6px 12px}body .film-grid.view-list .poster-link{width:80px}.detail-info>p{font-size:13px;line-height:1.8}}
.cms-tag-filters .filter-options a{display:inline-flex;align-items:center;justify-content:center;padding:.4rem 1.05rem;color:#59606b;border-radius:.35rem;white-space:nowrap;min-height:36px;text-decoration:none}.cms-tag-filters .filter-options a.active{background:linear-gradient(#ffd79f,#ffa522);color:#151515;font-weight:700}.cms-tag-filters .filter-options a:hover{color:#a95e00;background-color:#fff4e4}.cms-tag-filters .filter-options a:focus-visible{outline:2px solid #c06c00;outline-offset:2px}.cms-tag-filters .filter-label{width:5rem}.cms-tag-filters .filter-reset{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #e3e6e9;border-radius:8px}.cms-tag-filters .filter-options{min-width:0}
@media(max-width:767px){.cms-tag-filters .filter-options a{min-height:44px;font-size:13px;padding:9px 12px;border-radius:6px}.cms-tag-filters .filter-label{display:block;width:auto;padding:2px 0 6px}.cms-tag-filters .filter-fields{max-height:65dvh;overflow-y:auto;overscroll-behavior:contain}.cms-tag-filters .filter-row{margin:10px 0 16px}.cms-tag-filters .filter-options{gap:6px}}

/* Match hidden interaction states even when a component declares flex/grid. */
body [hidden]{display:none!important}
.home-hero .hero-copy h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:650px}
.cms-related-grid .poster-link>img{object-fit:cover}
.side-recommendations{display:block}.side-recommendations .poster-card{display:grid;grid-template-columns:66px minmax(0,1fr);gap:4px 12px;padding:8px 0;text-align:left}.side-recommendations .poster-link{grid-row:1/5;width:66px}.side-recommendations .poster-link>img{width:100%;aspect-ratio:2/3;object-fit:cover}.side-recommendations h3{white-space:normal;font-size:14px;line-height:1.5}.side-recommendations p{margin:0;font-size:12px;line-height:1.5}
.rank-name small{display:block;color:#8a9199;font-size:12px;font-weight:400;margin-top:5px}.rank-winner-intro{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.rank-feature>.rank-list{align-self:stretch}.cms-overall-ranking .poster-card h3{font-size:13px}.cms-overall-ranking .poster-card p{font-size:11px}
@media(max-width:767px){.cms-related-grid>.poster-card:nth-child(n+4),.side-recommendations>.poster-card:nth-child(n+4),.cms-overall-ranking>.poster-card:nth-child(n+4){display:none}.side-recommendations .poster-card{display:block;padding:0}.side-recommendations .poster-link{width:auto}.side-recommendations h3{font-size:13px}.side-recommendations p{font-size:11px}.home-hero .hero-copy h1{max-width:100%}}

/* Gallery filters wrap thumbnails; the wrapper owns the masonry grid span. */
.gallery-grid>.cms-gallery-item{grid-column:span 3;min-width:0;overflow:hidden;border-radius:.35rem}.gallery-grid>.cms-gallery-item:first-child{grid-column:span 6}.gallery-grid>.cms-gallery-item>button{display:block;width:100%;height:100%;padding:0}.gallery-grid>.cms-gallery-item>button>img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1.3}.gallery-grid>.cms-gallery-item:nth-child(2)>button>img,.gallery-grid>.cms-gallery-item:nth-child(3)>button>img{aspect-ratio:.74}
@media(max-width:767px){.gallery-grid>.cms-gallery-item,.gallery-grid>.cms-gallery-item:first-child{grid-column:auto}.gallery-grid>.cms-gallery-item>button{aspect-ratio:4/5}.gallery-grid>.cms-gallery-item>button>img,.gallery-grid>.cms-gallery-item:nth-child(n)>button>img{aspect-ratio:auto;object-fit:contain}}


.cms-home-hero{min-height:0}.cms-episodes{display:flex;flex-wrap:wrap}.site-header .header-tools .icon-button{font-size:inherit}.site-header .nav a{white-space:nowrap}.detail-hero .detail-info>p{white-space:normal}.cms-sub-empty{padding:24px;color:#73818b;line-height:1.9}.preview-gallery:empty:after,.gallery-grid:empty:after{content:'暂无已收录图片';padding:24px;color:#73818b}.cms-empty-grid:empty:after{content:'暂无已收录资料';padding:24px;color:#73818b}.cms-hero-slide[hidden]{display:none}.home-hero .hero-copy h1{color:#ffdc9c}.cms-resume{margin:12px 0}.cms-gallery-filter .active{background:#fff0dc;color:#8d4c00}.cms-gallery-item[hidden]{display:none}
@media(min-width:1024px){.site-header .nav{display:flex;gap:20px;overflow:auto;min-width:0}.site-header .header-search{display:flex}.site-header .header-inner{gap:20px}}
@media(max-width:767px){.detail-hero .actions .primary{grid-column:1/-1}.footer{display:none}.surface .grid.film-grid:not(.view-list){grid-template-columns:repeat(3,minmax(0,1fr))}.header-search.open{display:flex}.cms-episodes .button{font-size:13px}}


/* Backend text lengths and image dimensions must not change the layout rhythm. */
.surface .section-header{gap:16px;align-items:center;margin-bottom:18px}.surface .section-header h2{font-size:22px;line-height:1.45}.surface h3{line-height:1.5}.surface .panel{padding:24px}.surface .panel .section:last-child{margin-bottom:0}.surface .intro,.surface .cms-rich{font-size:15px;line-height:1.95;color:#596471}.surface .film-grid{align-items:start}.surface .film-grid .poster-link{display:block;position:relative;overflow:hidden;border-radius:7px;background:#10202a;aspect-ratio:2/3}.surface .film-grid .poster-link>img{display:block;width:100%;height:100%;aspect-ratio:2/3;object-fit:cover}.surface .film-grid .poster-card{min-width:0;text-align:left}.surface .film-grid .poster-card h3{font-size:15px;line-height:1.55;margin:10px 0 5px;min-height:46px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere}.surface .film-grid .poster-card p{font-size:12px;line-height:1.65;margin:0;color:#7b838e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.surface .film-grid .score-label{font-size:13px;font-weight:700;padding:4px 6px;line-height:1.2}.surface .film-grid.view-list .poster-card h3,.surface .side-recommendations .poster-card h3{min-height:0}.surface .side-recommendations .poster-card h3{font-size:13px;margin:2px 0}.surface .side-recommendations .poster-link{width:66px}.surface .side-recommendations .poster-card p{font-size:11px}.surface .sidebar h3{font-size:17px;margin-bottom:14px}.surface .sidebar .panel{padding:18px}.surface .cms-module-empty{padding:18px 0;color:#7c8591;line-height:1.8;font-size:14px;grid-column:1/-1}.cms-hero-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 20px;font-size:13px!important;line-height:1.8!important;max-width:650px}.cms-hero-fact{min-width:0;overflow-wrap:anywhere}.cms-hero-fact b{font-weight:400;color:#dbe1e6}.cms-hero-fact[data-field=vod_actor],.cms-hero-fact[data-field=vod_sub]{grid-column:1/-1}.cms-hero-fact[data-field=vod_actor]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.detail-hero .detail-info h1{line-height:1.35;overflow-wrap:anywhere}.cms-person-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px;align-items:start}.cms-cast-expanded .cms-person-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.cms-person-card{min-width:0}.cms-person-photo{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/5;background:#f0f2f5;border-radius:7px;overflow:hidden}.cms-person-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}.cms-person-no-photo{font-size:12px;color:#89929e;padding:12px;text-align:center}.cms-person-card h3{font-size:16px;margin:10px 0 3px;overflow-wrap:anywhere}.cms-person-role{font-size:13px;color:#9b6524;line-height:1.6}.cms-person-meta,.cms-person-bio{font-size:12px;color:#818a96;line-height:1.75}.cms-person-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-top:6px}.cms-person-grid-compact{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.cms-person-grid-compact .cms-person-photo{aspect-ratio:4/3}.cms-person-grid-compact .cms-person-bio{display:none}.cms-crew-label{font-size:15px;margin:18px 0 12px;color:#67717e}.cms-crew-directory{padding-top:12px}.cms-people-avatars{align-items:flex-start;gap:16px}.cms-people-avatars .avatar-card{width:72px;flex:0 0 72px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.cms-people-avatars .avatar-card img,.cms-avatar-empty{width:56px;height:56px;border-radius:50%;margin:0 auto 8px}.cms-avatar-empty{display:flex;align-items:center;justify-content:center;font-size:10px;color:#89929e;background:#eef1f5}.cms-support-columns{display:grid;grid-template-columns:2fr 1fr;gap:24px}.cms-support-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cms-support-images .thumb{min-width:0;width:100%;padding:0;border-radius:7px;overflow:hidden}.cms-support-images img{width:100%;aspect-ratio:16/10;object-fit:cover}.cms-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 16px;align-items:start}.cms-support-columns .cms-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-media-card{min-width:0}.cms-media-card figure{position:relative;margin:0;aspect-ratio:16/9;background:#10202a;border-radius:7px;overflow:hidden}.cms-media-card figure>img{width:100%;height:100%;object-fit:cover}.cms-media-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0002}.cms-media-play .icon{width:32px;height:32px;filter:invert(1);background:#0007;border-radius:50%;padding:8px}.cms-media-card h3{font-size:14px;line-height:1.55;margin:9px 0 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.cms-media-card p{font-size:12px;color:#818a96;line-height:1.6}.cms-release-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0 28px}.cms-release-stats .release-stat{padding:16px;background:#fafbfc;border-radius:8px;min-width:0;align-items:flex-start}.cms-release-stats .release-stat strong{font-size:16px;line-height:1.6;overflow-wrap:anywhere}.cms-release-stats .release-stat small{font-size:12px;line-height:1.6}.cms-release-table{width:100%;min-width:620px;table-layout:fixed}.cms-release-table th{font-size:13px;text-align:left;font-weight:500;color:#87909b;padding:14px 12px;border-bottom:1px solid #edf0f3}.cms-release-table td{font-size:14px;line-height:1.8;padding:16px 12px;overflow-wrap:anywhere}.cms-release-page .release-head>.thumb{width:135px;flex:0 0 135px}.cms-release-page .release-head>.thumb img{width:100%;aspect-ratio:2/3;object-fit:contain;background:#10202a}.cms-info-list{font-size:14px;margin:14px 0}.cms-info-list>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;margin:12px 0;line-height:1.8}.cms-info-list dt{color:#929aa4}.cms-info-list dd{margin:0;overflow-wrap:anywhere}.cms-making-image{min-width:0}.cms-making-image:empty{display:none}.cms-making-image img{width:100%;aspect-ratio:16/9;object-fit:cover}.cms-making-page .tiny-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;background:#f6f7f9;border-radius:6px;font-size:13px}.cms-related-section{margin-top:28px}.surface .rank-list .rank-name{min-width:0;overflow-wrap:anywhere}.surface .article-content h1{font-size:32px;line-height:1.45;overflow-wrap:anywhere}.surface .article-content .cms-rich img{height:auto;max-width:100%;border-radius:7px}.gallery-grid>.cms-gallery-item[data-category=poster]{grid-column:span 3;order:1}.gallery-grid>.cms-gallery-item[data-category=poster] img{aspect-ratio:2/3;object-fit:contain}.gallery-grid>.cms-gallery-item[data-category=still]:nth-child(2){grid-column:span 6}.gallery-grid>.cms-gallery-item[data-category=still]:nth-child(2) img{aspect-ratio:2}
@media(min-width:1024px){.detail-hero{min-height:480px;padding:30px 0 24px}.detail-hero>.container{grid-template-columns:210px minmax(0,1fr);gap:20px 28px}.detail-hero .detail-poster{width:210px;max-width:100%;aspect-ratio:2/3}.detail-hero .detail-poster>img{width:100%;height:100%;object-fit:contain}.detail-hero .detail-info h1{font-size:32px;max-width:720px;margin-bottom:12px}.detail-hero .detail-info .score-line{margin:10px 0}.detail-hero .detail-info .score-line strong{font-size:34px}.detail-hero .detail-info>p{margin:8px 0 0}.detail-hero .actions{margin-top:0;gap:10px}.detail-hero .actions .button{font-size:13px;min-height:40px;padding:8px 18px}.surface .catalog-grid{gap:28px 20px}.surface .catalog-grid .poster-card h3{font-size:15px}.surface .cms-tag-filters{margin-bottom:26px}.surface .cms-tag-filters .filter-label,.surface .cms-tag-filters .filter-options a{font-size:13px}.surface .cms-tag-filters .filter-options a{padding:6px 12px;min-height:32px}.surface .cms-tag-filters .filter-row{margin:8px 0}.surface .detail-body>.two-column{grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:24px}}
@media(min-width:768px) and (max-width:1023px){.cms-person-grid,.cms-cast-expanded .cms-person-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cms-release-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.surface .section-header{margin-bottom:14px;gap:10px}.surface .section-header h2{font-size:18px;line-height:1.5}.surface .panel{padding:16px}.surface .sidebar .panel{padding:16px}.surface .intro,.surface .cms-rich{font-size:14px;line-height:1.9}.surface .film-grid .poster-card h3{font-size:13px;min-height:38px;line-height:1.5;margin:8px 0 4px}.surface .film-grid .poster-card p{font-size:11px;line-height:1.65}.surface .film-grid .score-label{font-size:11px;padding:3px 5px}.surface .film-grid .poster-link{border-radius:6px}.surface .side-recommendations .poster-link{width:100%}.surface .side-recommendations .poster-card h3{min-height:38px}.surface .sidebar h3{font-size:17px}.detail-hero .detail-info>p.cms-hero-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:12px 14px;font-size:12px!important;line-height:1.8!important}.cms-hero-fact[data-field=vod_director],.cms-hero-fact[data-field=vod_writer],.cms-hero-fact[data-field=vod_tv]{grid-column:1/-1}.detail-hero .detail-info h1{font-size:23px;line-height:1.4}.detail-hero .detail-info .score-line strong{font-size:27px}.cms-person-grid,.cms-cast-expanded .cms-person-grid,.cms-person-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.cms-person-card h3{font-size:13px;line-height:1.5;margin-top:8px}.cms-person-role,.cms-person-meta{font-size:11px;line-height:1.6}.cms-person-bio{font-size:11px;-webkit-line-clamp:2}.cms-person-no-photo{font-size:10px;padding:7px}.cms-person-grid-compact .cms-person-photo{aspect-ratio:4/5}.cms-support-columns{grid-template-columns:minmax(0,1fr);gap:0}.cms-support-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cms-media-grid,.cms-support-columns .cms-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.cms-media-card h3{font-size:13px}.cms-media-card p{font-size:11px}.cms-release-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 22px}.cms-release-stats .release-stat{padding:12px;gap:8px}.cms-release-stats .release-stat strong{font-size:13px}.cms-release-stats .release-stat small{font-size:11px}.cms-release-stats .release-stat>.icon{width:22px;height:22px}.cms-release-page .release-head>.thumb{width:88px;flex-basis:88px}.cms-release-page .release-head{gap:14px;align-items:flex-start}.cms-release-page .release-head h3{font-size:17px}.cms-release-page .release-head .intro{font-size:12px;line-height:1.8}.cms-release-table{min-width:540px}.cms-release-table td{font-size:13px;padding:12px 10px}.cms-info-list{font-size:13px}.surface .article-content h1{font-size:24px}.gallery-grid>.cms-gallery-item[data-category=poster],.gallery-grid>.cms-gallery-item[data-category=still]:nth-child(2){grid-column:auto}.gallery-grid>.cms-gallery-item[data-category=still]:nth-child(2) img{aspect-ratio:auto;object-fit:contain}}
@media(max-width:359px){.detail-hero .detail-info h1{font-size:21px}.surface .film-grid .poster-card h3{font-size:12px}.cms-person-card h3{font-size:12px}.detail-hero .detail-info>p.cms-hero-facts{font-size:12px!important}}

#main .section-header h2,#main .section-header h3{margin:0}.surface .panel .section{padding:18px 0 12px}.surface .panel .section:last-child{padding-bottom:0}.cms-cast-directory>.section:first-of-type{padding-top:0}.cms-support-columns>section:has(>.cms-support-images:empty){display:none}.cms-support-columns:has(>.section>.cms-support-images:empty){grid-template-columns:minmax(0,1fr)}.preview-gallery:empty:after,.gallery-grid:empty:after{padding:12px 0;font-size:14px}.detail-body .grid:not(.film-grid):empty:after{content:'暂无已收录图片';font-size:14px;color:#818a96;grid-column:1/-1;padding:10px 0}.cms-table-hint{display:none}.detail-hero .detail-info h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:767px){.surface .panel .section{padding:16px 0 10px}.surface .panel .section:last-child{padding-bottom:0}.surface .section-header{margin-bottom:12px}.cms-release-stats{margin-top:14px;margin-bottom:18px}.cms-related-section{margin-top:18px}.cms-release-table{margin:0}.cms-table-hint{display:block;font-size:11px;color:#8c949e;margin:0 0 8px}.cms-support-columns>section{padding-bottom:0}.cms-crew-directory{padding-top:16px}.cms-crew-label{margin:14px 0 10px}.detail-hero .detail-info h1{-webkit-line-clamp:3}.page-feedback{display:none}.surface{padding-bottom:20px}}

.pagination>a,.pagination>span.active,.pagination>span[aria-disabled]{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 13px;border:1px solid #e4e7eb;border-radius:9px;background:#fff;color:#526170;font-size:14px;line-height:1.3;text-decoration:none;box-sizing:border-box}.pagination>a:hover,.pagination>a:focus-visible{border-color:#db8b28;color:#9b5500;background:#fff5e7}.pagination>span.active{background:#ed9b32;color:#fff;border-color:#ed9b32;font-weight:600}.pagination>span[aria-disabled]{opacity:.45}.pagination .paging-summary{flex-basis:100%;text-align:center;color:#7d8490;font-size:12px;margin-top:8px}.detail-hero .actions{position:relative;z-index:2;visibility:visible;opacity:1}.detail-poster{position:relative}.detail-poster .poster-zoom-label{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);padding:5px 10px;border-radius:20px;background:#03131ccc;color:#fff;font-size:12px;white-space:nowrap;pointer-events:none}@media(max-width:767px){.pagination{gap:5px}.pagination>a,.pagination>span.active{min-width:38px;padding:8px 9px}.detail-hero .actions .primary{display:flex!important;min-height:46px}}

/* Keep viewer controls outside the independently scrolling image stage. */
#theme-image[open]{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px;width:min(96vw,1100px);height:min(92dvh,900px);max-height:92dvh;overflow:hidden;box-sizing:border-box;padding:16px;background:#071923;color:#fff}#theme-image>[data-theme=close-image]{grid-column:2;grid-row:1;z-index:3}#theme-image>.cms-image-stage{grid-column:1/-1;grid-row:2;min-height:0;min-width:0;overflow:auto;display:grid;place-items:center;overscroll-behavior:contain}#theme-image .cms-image-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:0}#theme-image.is-zoomed .cms-image-stage{display:block}#theme-image.is-zoomed .cms-image-stage img{width:180%;max-width:none;max-height:none;height:auto}#theme-image>a{grid-column:1;grid-row:1;align-self:center;justify-self:start;display:flex;align-items:center;color:#ffd394;padding:6px 12px}#theme-image>.image-toolbar{grid-column:1/-1;grid-row:3;margin:0;display:flex;align-items:center;justify-content:space-between;color:#eef4f8}#theme-image>.modal-nav{grid-column:1/-1;grid-row:4;display:flex;justify-content:space-between;gap:12px;margin:0}#theme-image .button{min-height:44px;padding:10px 16px;border:1px solid #8b9fac;border-radius:9px;background:#203846;color:#fff;position:relative;z-index:2}#theme-image .button:focus-visible,#theme-image>a:focus-visible{outline:3px solid #ffbf69;outline-offset:2px}#theme-image .button:disabled{opacity:.45}#theme-image .modal-nav .button{flex:1}@media(max-width:767px){#theme-image[open]{inset:0;width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));gap:10px}#theme-image .button{min-height:46px;font-size:14px}}

/* Body-only overflow repair: keep the hero unchanged. */
#main .detail-body .two-column>*,#main .detail-body .panel,#main .detail-body .section,#main .cms-crew,#main .cms-person-grid,#main .cms-person-card{min-width:0;max-width:100%}#main .cms-crew>.avatars{display:block;width:100%;min-width:0}#main .cms-people-avatars{display:grid;width:100%;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 14px;justify-content:start;align-items:start}#main .cms-people-avatars .avatar-card{display:block;width:100%;min-width:0;max-width:100%}#main .cms-people-avatars .avatar-card>span{white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.6}#main .cms-people-avatars .avatar-card img{width:58px;height:58px;max-width:100%;object-fit:cover}#main .stats.six{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}#main .stats .stat{min-width:0;align-items:flex-start;gap:8px}#main .stats .stat>div{min-width:0;flex:1}#main .stats .stat .icon{flex:0 0 22px;width:22px;height:22px}#main .stats .stat small{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.7}#main .sidebar .tiny-tabs{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:8px}#main .sidebar .tiny-tabs>a{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}#main .cms-rich{min-width:0;max-width:100%;overflow-wrap:anywhere}@media(max-width:767px){#main .cms-people-avatars{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}#main .stats.six{grid-template-columns:repeat(2,minmax(0,1fr))}#main .stats .stat{padding:12px 8px}#main .cms-people-avatars .avatar-card{font-size:12px}}

/* Body cast strip: swipe horizontally instead of wrapping. */
#main .cms-people-avatars{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:16px;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:4px 0 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}#main .cms-people-avatars .avatar-card{flex:0 0 88px;width:88px;scroll-snap-align:start}#main .cms-people-avatars .avatar-card>span{overflow-wrap:anywhere}#main .cms-people-avatars{scrollbar-width:thin;scrollbar-color:#d1a465 #f3f3f3}@media(max-width:767px){#main .cms-people-avatars{gap:12px}#main .cms-people-avatars .avatar-card{flex-basis:78px;width:78px}}



.cms-main-feature .summary-bottom{grid-template-columns:minmax(0,1fr);gap:24px}.cms-main-feature .summary-bottom>div{min-width:0}.cms-main-feature .summary-bottom .cms-people-avatars{justify-content:flex-start}.cms-main-feature .cms-people-avatars{display:flex;flex-wrap:nowrap;gap:14px;overflow-x:auto;max-width:100%;padding:4px 0 12px;overscroll-behavior-x:contain}.cms-main-feature .avatar-card{flex:0 0 64px;width:64px;text-align:center}.cms-main-feature .avatar-card img,.cms-main-feature .cms-avatar-empty{display:block;width:60px;height:60px;border-radius:50%;object-fit:cover;object-position:center 25%}.cms-main-feature .avatar-card>span:last-child{display:block;font-size:12px;line-height:1.5;margin-top:7px;overflow-wrap:anywhere}




/* Remove browser-default ordered-list indentation in the homepage ranking. */
#main.home .sidebar ol.rank-list{list-style:none;padding:0;margin:0;width:100%;box-sizing:border-box}#main.home .sidebar ol.rank-list>li{margin-left:0;margin-right:0;padding-left:0;padding-right:0}

/* Detail backdrop clarity; other hero layouts remain scoped separately. */
.detail-hero{background-repeat:no-repeat;background-position:center 38%;background-size:cover}.detail-hero:before{background:linear-gradient(0deg,rgba(5,15,23,.5),transparent 42%)}.detail-hero .detail-info h1{text-shadow:0 2px 12px #0006}.detail-hero .cms-hero-facts{text-shadow:0 1px 3px #0008}
@media(max-width:767px){.detail-hero{background-position:65% top}.detail-hero:before{background:linear-gradient(180deg,rgba(5,15,23,.25),rgba(5,15,23,.85))}}

/* Compact film detail header: content can grow without clipping. */
@media(min-width:768px){
.detail-hero{min-height:440px;padding-top:28px;padding-bottom:24px;background-position:center 42%}
.detail-hero .container{grid-template-columns:minmax(160px,200px) minmax(0,1fr);gap:18px 28px}
.detail-hero .detail-poster{width:100%;max-width:200px;align-self:start}
.detail-hero .detail-poster>img{width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;display:block}
.detail-hero .actions{margin-top:0}
.detail-hero .cms-hero-fact[data-field=vod_director],.detail-hero .cms-hero-fact[data-field=vod_writer]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
@media(min-width:1600px){.detail-hero{min-height:460px;padding-top:32px;padding-bottom:26px}}



/* Desktop homepage carousel height; mobile and poster cards keep existing sizes. */
@media(min-width:768px){
.cms-home-carousel .home-hero{min-height:580px;padding-top:20px;padding-bottom:48px;box-sizing:border-box}
.cms-home-carousel .home-hero .hero-copy{padding-top:20px;padding-bottom:20px}
.cms-home-carousel .home-hero .home-hero-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
}
@media(min-width:1600px){.cms-home-carousel .home-hero{min-height:640px}}

/* Transparent navigation overlays the desktop homepage carousel only. */
@media(min-width:1024px){
body.home-page>.site-header{position:absolute;top:0;left:0;right:0;width:100%;background:transparent;border-bottom:0;box-shadow:none;z-index:40}
body.home-page>.site-header .nav>a,body.home-page>.site-header .header-tools>.icon-button{text-shadow:0 1px 5px rgba(0,0,0,.6)}
body.home-page .cms-home-carousel .home-hero{padding-top:100px}
body.home-page .cms-home-carousel .home-hero:before{background:linear-gradient(180deg,rgba(3,19,28,.65),transparent 30%),linear-gradient(90deg,rgba(0,16,24,.81) 0%,rgba(0,16,24,.4) 37%,transparent 68%)}
}

/* Topic cards: mobile reading layout, scoped to topic pages. */
@media(max-width:767px){
 body.topic-page .topic-hero .hero-copy{width:100%;max-width:100%;min-width:0}
 body.topic-page .topic-hero h1{font-size:28px;line-height:1.35}
 body.topic-page .topic-hero h2{font-size:18px;line-height:1.5}
 body.topic-page .topic-hero .tiny-tabs{display:flex;flex-wrap:wrap;gap:8px}
 body.topic-page .topic-hero .large-search{width:100%;min-width:0}
 body.topic-page .topic-hero .large-search input{min-width:0;flex:1}
 body.topic-page .surface .grid:not(.film-grid){grid-template-columns:minmax(0,1fr);gap:12px}
 body.topic-page .surface .visual-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:center;min-height:132px;height:auto;padding:12px;background:#10232d;border-radius:10px;overflow:hidden}
 body.topic-page .surface .visual-card:after{display:none}
 body.topic-page .surface .visual-card>img{position:static;width:88px;height:132px;aspect-ratio:2/3;object-fit:contain;border-radius:6px;transform:none}
 body.topic-page .surface .visual-caption{position:static;min-width:0;padding:0;color:#fff;z-index:auto}
 body.topic-page .surface .visual-caption h3{font-size:16px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
 body.topic-page .surface .visual-caption p{font-size:13px;line-height:1.8;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 body.topic-page .topic-detail .two-column,body.topic-page .topic-detail .two-column>*{min-width:0;max-width:100%}
 body.topic-page .topic-intro{display:block}
 body.topic-page .topic-intro>img{width:100%;height:auto;max-height:220px;object-fit:contain;margin:0 0 16px}
 body.topic-page .topic-detail .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:20px;padding-bottom:12px}
 body.topic-page .topic-detail .tabs>a{flex:0 0 auto;white-space:nowrap}
 body.topic-page .sidebar .visual-card+.visual-card{margin-top:12px}
}

/* Mobile news cards and reading layout, 2026-11-05. */
@media (max-width:767px) {
 .home-page .surface .news-grid { display:grid; grid-template-columns:minmax(0,1fr)!important; gap:0; }
 .home-page .news-grid .thumb-card { display:grid; grid-template-columns:96px minmax(0,1fr); grid-template-rows:auto auto auto; column-gap:14px; row-gap:5px; padding:16px 0; margin:0; min-width:0; border-bottom:1px solid #e8edf1; text-align:left; }
 .home-page .news-grid .thumb-card:first-child { padding-top:0; }
 .home-page .news-grid .thumb-card:last-child { border-bottom:0; padding-bottom:0; }
 .home-page .news-grid .thumb-card>a { grid-column:1; grid-row:1/4; display:block; width:96px; align-self:start; aspect-ratio:3/4; overflow:hidden; border-radius:8px; background:#eef1f4; }
 .home-page .news-grid .thumb-card>a img { display:block; width:100%; height:100%; aspect-ratio:3/4; object-fit:contain; }
 .home-page .news-grid .thumb-card h3 { grid-column:2; margin:0; font-size:15px; line-height:1.6; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; }
 .home-page .news-grid .thumb-card p { grid-column:2; margin:0; min-width:0; font-size:12px; line-height:1.75; color:#75808a; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
 .home-page .news-grid .thumb-card p:last-child { font-size:11px; color:#929ba5; align-self:end; padding-top:3px; }
 .surface .news-list { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
 .surface .news-list-card { display:grid; grid-template-columns:88px minmax(0,1fr); gap:14px; padding:18px 0; margin:0; border-bottom:1px solid #e8edf1; min-width:0; align-items:start; }
 .surface .news-list-card .news-cover { width:88px; height:auto; aspect-ratio:3/4; border-radius:8px; overflow:hidden; background:#eef1f4; }
 .surface .news-list-card .news-cover img { width:100%; height:100%; aspect-ratio:3/4; object-fit:contain; display:block; }
 .surface .news-list-card>div { min-width:0; }
 .surface .news-list-card h2 { margin:0 0 8px; font-size:16px; line-height:1.6; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
 .surface .news-list-card p { margin:0; font-size:13px; line-height:1.85; color:#75808a; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; }
 .surface .article-layout { padding-top:22px; }
 .surface .article-columns { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; }
 .surface .article-content,.surface .article-related { min-width:0; width:100%; }
 .surface .article-content h1 { font-size:23px; line-height:1.5; margin:12px 0; }
 .surface .article-meta { font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
 .surface .article-lead { padding:14px; margin:20px 0; font-size:14px; line-height:1.9; border-radius:8px; }
 .surface .article-content figure { margin:20px 0; }
 .surface .article-content figure img { display:block; width:100%; max-height:360px; height:auto; object-fit:contain; border-radius:8px; }
 .surface .article-content .cms-rich { font-size:15px; line-height:2; overflow-wrap:anywhere; }
 .surface .article-content .cms-rich h2 { font-size:19px; line-height:1.6; margin:26px 0 12px; }
 .surface .article-content .cms-rich p { margin:0 0 18px; }
 .surface .article-content .cms-rich table { display:block; max-width:100%; overflow-x:auto; }
 .surface .article-related-card { display:flex; gap:12px; align-items:center; min-width:0; padding:12px 0; }
 .surface .article-related-card img { width:64px; height:84px; object-fit:contain; flex:0 0 64px; border-radius:6px; }
 .surface .article-related-card span { min-width:0; font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
 .surface .article-end { display:flex; flex-wrap:wrap; gap:10px; }
}
