/* Reference design owns the visual system. Existing SSR retains all business controls. */
:root{color-scheme:dark;--primary-color:#ec2083;--accent:#ec2083}
[hidden]{display:none!important}body{color:#f3f0e9}.jgdj-header-shell{padding-bottom:0}.jgdj-header-shell .top{margin:0}.home-content{padding-top:0}.jgdj-slide{display:block;height:100%;min-height:inherit}.jgdj-slide .hero-content{z-index:2}.jgdj-slide .hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-previews{z-index:3}.primary{display:inline-flex;align-items:center;justify-content:center}.promo-app{display:grid;justify-items:center;gap:8px;flex:0 0 auto}.promo-app img{width:68px;height:68px;border-radius:14px;object-fit:cover}.promo-track{display:flex;gap:28px}.jgdj-empty{padding:80px 24px;text-align:center;color:var(--muted)}.jgdj-empty h1{color:var(--text)}.topic-more{font-size:13px;color:var(--muted)}.jgdj-home .footer-box{display:none}.jgdj-home .scroll-top{z-index:10}
/* Adapt retained account, playback, lists and CMS pages to the common sidebar. */
body:not(.jgdj-home)>.page-shell,body:not(.jgdj-home)>.container,body:not(.jgdj-home)>main:not(.shell){margin-left:248px;width:calc(100% - 248px);max-width:none;padding:28px 32px 28px 24px}.sidebar-collapsed body:not(.jgdj-home)>.page-shell{margin-left:112px;width:calc(100% - 112px)}.footer-box{margin-left:248px;background:#131414!important}.footer-logo{display:none}.footer-brand-lockup:after{content:'禁果短剧';font-size:23px;font-weight:700;color:#ec2083}.card-grid{gap:24px 18px}.detail-page .detail-primary,.play-page{color:#f3f0e9}.pagination .active,.page-item.active,.detail-play-btn,.auth-submit{background:#ec2083!important}.header-actions button:hover{color:var(--accent)}.header-actions .coin-entry{cursor:pointer}::selection{background:#ec208355;color:#fff}input,textarea{caret-color:var(--accent)}
@media(max-width:1180px){body:not(.jgdj-home)>.page-shell,body:not(.jgdj-home)>.container,body:not(.jgdj-home)>main:not(.shell){padding-left:26px;padding-right:26px}}
@media(max-width:760px){body:not(.jgdj-home)>.page-shell,body:not(.jgdj-home)>.container,body:not(.jgdj-home)>main:not(.shell),.sidebar-collapsed body:not(.jgdj-home)>.page-shell{margin-left:0;width:100%;padding:20px 19px}.footer-box{margin-left:0}.hero-previews{max-width:100%;overflow:auto}.promo-track{gap:20px}.jgdj-header-shell .top{padding-bottom:15px}.jgdj-empty{padding:45px 12px}}

.jgdj-home .hero h1{max-width:100%;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.jgdj-home .hero-content p{max-width:100%}
/* Detail and player retain the original API hooks inside the reference composition. */
body.is-detail-page .detail-h5-bg,body.is-detail-page .detail-h5-top,body.is-detail-page .detail-h5-bar{display:none}
body.is-detail-page .detail-page{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px 28px;align-items:start}
body.is-detail-page .detail-primary{display:flex;flex-direction:column;gap:24px;min-width:0}
body.is-detail-page .detail-page>nav{grid-column:1/-1}
body.is-detail-page .detail-related{grid-column:2;grid-row:2;padding-left:24px;border-left:1px solid #ffffff12}
body.is-detail-page .detail-hero{display:flex;flex-direction:row;align-items:flex-start;gap:32px;padding:30px;border:1px solid #ffffff0c;border-radius:20px;background:linear-gradient(135deg,#34202955,#1b1b1b 65%)}
body.is-detail-page .detail-cover{width:240px;max-width:32%;height:auto;aspect-ratio:640/914;object-fit:cover;border-radius:12px;align-self:flex-start}
body.is-detail-page .detail-hero-main{display:flex;flex-direction:column;gap:22px;min-width:0;flex:1}
body.is-detail-page .detail-hero-info{display:flex;flex-direction:column;gap:16px}
body.is-detail-page .detail-title{order:0;font-size:28px;line-height:1.5;font-weight:650;margin:0}
body.is-detail-page .detail-meta{order:1;color:#a5a5a5;font-size:14px}
body.is-detail-page .detail-tags{order:2;flex-wrap:wrap;gap:8px}
body.is-detail-page .detail-tag{border:0;background:#ffffff08;color:#aaa;border-radius:5px;font-size:13px;padding:5px 9px}
body.is-detail-page .detail-tag--primary{background:#00ccbb13;color:#00cdbb}
body.is-detail-page .detail-intro{display:block;line-height:1.9;font-size:14px;color:#aaa;-webkit-line-clamp:unset;overflow:visible;max-height:none}
body.is-detail-page .detail-intro-title,body.is-detail-page .detail-intro-prefix-pc{display:none}
body.is-detail-page .detail-actions{display:flex;flex-wrap:wrap;gap:18px;overflow:visible;height:auto}
body.is-detail-page .detail-action-group{width:100%;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
body.is-detail-page .detail-action{display:flex;gap:7px;padding:9px 13px;min-width:0;width:auto;height:40px;border:1px solid #ffffff14;border-radius:999px;background:#ffffff03;font-size:13px;color:#bcbcbc}
body.is-detail-page .detail-action-sep{display:none}
body.is-detail-page .detail-action-icon,body.is-detail-page .detail-action-icon img{width:16px;height:16px}
body.is-detail-page .detail-episode-ranges{display:flex;gap:30px;overflow:auto;padding:8px 0}
body.is-detail-page .detail-episode-range{background:none;border:0;color:#888;white-space:nowrap;font-size:18px}
body.is-detail-page .detail-episode-range--active{color:#fff}
body.is-detail-page .detail-episode-list,body.is-play-page .play-ep-grid{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:12px}
body.is-detail-page .detail-episode,body.is-play-page .play-ep{width:100%;height:auto;aspect-ratio:1;min-width:0;background:#252527;border:0;border-radius:12px;font-size:20px;position:relative}
body.is-detail-page .detail-episode.is-range-hidden{display:none}
body.is-detail-page .detail-episodes-head{border:0;padding-bottom:0}
body.is-detail-page .detail-comments{background:transparent;padding:0;border:0}
body.is-detail-page .detail-comment-composer{background:#252527;border-radius:13px}
@media(max-width:1000px){body.is-detail-page .detail-page{grid-template-columns:1fr}body.is-detail-page .detail-related{grid-column:1;grid-row:auto;border:0;padding-left:0}body.is-detail-page .detail-related [data-related-grid]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.is-detail-page .detail-page{display:flex;flex-direction:column;gap:26px}body.is-detail-page .detail-hero{padding:18px;gap:17px}body.is-detail-page .detail-cover{width:110px;max-width:35%;aspect-ratio:640/914}body.is-detail-page .detail-title{font-size:20px;line-height:1.5}body.is-detail-page .detail-hero-main{gap:22px}body.is-detail-page .detail-meta-pc{display:flex;flex-wrap:wrap;gap:8px}body.is-detail-page .detail-meta-h5{display:none}body.is-detail-page .detail-episodes{width:100%}body.is-detail-page .detail-episode-pc{display:block}body.is-detail-page .detail-episode-list,body.is-play-page .play-ep-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}body.is-detail-page .detail-related [data-related-grid]{grid-template-columns:repeat(2,minmax(0,1fr))}body.is-detail-page .detail-related{width:100%}body.is-detail-page .detail-actions{align-items:stretch}body.is-detail-page .detail-action-group{justify-content:flex-start}body.is-detail-page .detail-play-btn{display:flex;min-height:44px}body.is-detail-page .detail-hero .detail-intro{font-size:13px;line-height:1.9}}
#headerSearchPanel{position:fixed;z-index:90;width:min(458px,calc(100vw - 38px));overflow:auto;background:#202121;border:1px solid #ffffff20;border-radius:16px;padding:22px;box-shadow:0 18px 48px #0008}#headerSearchPanel .search-recommend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#headerSearchPanel .poster-cover{aspect-ratio:3/4;height:auto}#headerSearchPanel .poster-card-title{font-size:12px}

/* Retired the source site's fixed-width zoom adapter; the reference is fluid. */
body.is-detail-page .detail-hero-main{min-height:0;justify-content:flex-start;overflow:visible}
body.is-detail-page .detail-meta-pc,body.is-detail-page .detail-actions{display:flex!important}
body.is-detail-page .detail-comments{display:block!important}
body.is-detail-page .detail-episode-pc{display:inline!important}
body:not(.jgdj-home) .content-section{background:transparent}
@media(max-width:760px){body.is-detail-page .detail-hero-main{min-height:0}body.is-detail-page .detail-meta-pc{font-size:12px}body.is-detail-page .detail-actions{gap:12px}body.is-detail-page .detail-action-group{gap:6px}body.is-detail-page .detail-action{font-size:11px;padding:6px 8px}}

/* Independent finish review corrections, preserving the live business hooks. */
body.is-detail-page .detail-episode::before{content:none}
body.is-detail-page .detail-tags{height:auto;overflow:visible}
body.is-detail-page .detail-tag{flex:0 0 auto;width:auto;max-width:100%;height:auto;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;padding:5px 9px}
body.is-detail-page .detail-episode{color:#ddd}
body.is-detail-page .detail-episode[aria-current]{color:var(--accent)}
body.is-detail-page .detail-action-icon img{filter:grayscale(1);opacity:.8}
body.is-detail-page .detail-action--active{color:var(--accent);border-color:var(--accent)}
body .topic-breadcrumb [aria-current],body .site-breadcrumb [aria-current],body .search-page mark,body .adult-tabs a[aria-current]{color:var(--accent)}
body .adult-layout{margin-top:20px;gap:22px}
body .adult-layout h1{font-size:32px;font-weight:750;line-height:1.4}
body .adult-layout .poster-card,body .search-page .poster-card,body .detail-related .poster-card{background:transparent;box-shadow:none}
body .adult-layout .poster-card-body,body .search-page .poster-card-body{padding:12px 0 0;min-height:0}
body .adult-layout .poster-card-tag,body .search-page .poster-card-tag,body .detail-related .poster-card-tag{border:0;background:transparent;color:#999;padding:0}
body .adult-layout .poster-like-badge,body .search-page .poster-like-badge,body .detail-related .poster-like-badge{display:none}
body>.footer-box{width:calc(100% - 248px);max-width:calc(100% - 248px);margin-left:248px;padding:24px}
body .footer-outer{width:100%;max-width:100%;padding:0}
body .footer-main,body .footer-bottom{width:100%;max-width:100%;flex-wrap:wrap;gap:20px}
body .footer-links{max-width:100%;flex-wrap:wrap;gap:12px}
body .footer-addresses{overflow-wrap:anywhere;min-width:0}
@media(max-width:760px){html body.is-detail-page{background-color:#131414;background-image:radial-gradient(79.79% 63.64% at 51.35% -3.04%,rgba(250,119,5,.1) 0%,rgba(250,119,5,0) 100%),radial-gradient(37.71% 88.68% at 111.22% -1.29%,rgba(58,227,221,.1) 0%,rgba(58,227,221,0) 100%);background-size:100% 920px;background-repeat:no-repeat}body .adult-layout{margin-top:0;gap:22px}body .adult-layout h1{font-size:24px}body>.footer-box{width:100%;max-width:100%;margin-left:0;padding:20px 19px}}
