/* Approved compact detail layout. Scope excludes the player and other pages. */
body.compact-series .detail-layout{width:min(100% - 40px,1080px);margin:22px auto 32px;display:block;min-width:0}
body.compact-series .detail-hero{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:20px;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;isolation:auto}
body.compact-series .detail-backdrop,body.compact-series .detail-shade{display:none}
body.compact-series .detail-poster-wrap{grid-column:auto;grid-row:auto;width:112px;max-width:100%;align-self:start;border-radius:9px;overflow:hidden;box-shadow:none}
body.compact-series .detail-poster{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover}
body.compact-series .detail-summary{display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:none;min-width:0;gap:9px;padding:2px 0 0}
body.compact-series .detail-summary h1{grid-column:auto;grid-row:auto;margin:0;font-size:30px;line-height:1.25;letter-spacing:0;overflow-wrap:anywhere;text-wrap:balance}
body.compact-series .detail-meta{display:flex;align-items:baseline;gap:4px;margin:0;font-size:12px;line-height:1.5;color:#a2aaa6}
body.compact-series .detail-meta strong{font-size:12px;color:inherit;font-weight:500}
body.compact-series .series-taxonomy{display:flex;flex-wrap:wrap;gap:6px;margin:0}
body.compact-series .series-taxonomy-row{gap:0;min-width:0}
body.compact-series .series-taxonomy-label{display:none}
body.compact-series .series-taxonomy .detail-tags{gap:5px;margin:0}
body.compact-series .series-taxonomy .detail-tags span{padding:3px 6px;font-size:11px;line-height:1.3;border-radius:5px;overflow-wrap:anywhere}

body.compact-series .episode-library{margin-top:20px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
body.compact-series .episode-library .episodes-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
body.compact-series .episode-library .episodes-heading h2{font-family:var(--sans);font-size:18px;font-weight:700;line-height:1.3}
body.compact-series .episode-library .episodes-heading>span{display:block;font-size:12px;line-height:1.4;letter-spacing:0;color:#9ba7a1}
body.compact-series .episode-library .episodes-heading>span strong{margin:0;font-size:12px;font-weight:500;color:inherit}
body.compact-series .episode-library .episode-list{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:8px}
body.compact-series .episode-library .episode-card{flex:0 0 auto;width:auto;min-width:60px;max-width:100%;height:auto;min-height:58px;aspect-ratio:auto;gap:4px;padding:6px 8px;border-radius:8px;background:#171e1d;box-shadow:none}
body.compact-series .episode-library .episode-card[aria-current=true]{border-color:#40c9a1;background:#16392e}
body.compact-series .episode-library .episode-number{font-size:18px;line-height:20px}
body.compact-series .episode-library .episode-price{font-size:11px;line-height:14px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
body.compact-series .episode-library .episode-lock{right:auto;inset-inline-end:5px;top:9px;width:7px;height:6px;border-width:1px;border-radius:1px}
body.compact-series .episode-library .episode-lock:before{left:1px;top:-5px;width:3px;height:4px;border-width:1px}
body.compact-series .episode-library .episode-card[aria-current=true]:after{right:auto;inset-inline-end:5px;top:5px;border-top-width:4px;border-bottom-width:4px;border-left-width:6px}
body.compact-series .episode-library .episode-progress{left:6px;right:6px;bottom:3px;height:2px}
body.compact-series .episode-library .series-update-note{display:inline-flex;justify-content:flex-start;gap:5px;margin:9px 8px 0 0;padding:0;min-height:0;border:0;border-radius:0;background:none;font-size:11px;font-weight:400;line-height:1.6;text-align:start;color:#b2b5a8}
body.compact-series .episode-library .series-update-note:before{width:4px;height:4px}
body.compact-series .detail-unlock-note{display:inline;color:#9ba49d;font-size:11px;line-height:1.6;margin:0}

body.compact-series .detail-layout>.detail-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto);gap:10px;margin-top:16px;max-width:620px}
body.compact-series .detail-layout>.detail-actions .button{width:100%;min-width:0;min-height:46px;padding:10px 14px;border-radius:9px;gap:8px;font-size:14px;line-height:1.4}
body.compact-series .detail-layout>.detail-actions .detail-playlist{font-size:12px}
body.compact-series .detail-layout>.detail-actions .button>span:last-child{overflow-wrap:anywhere}
body.compact-series .series-intro{width:100%;max-width:none;margin:18px 0 0;padding:0;border:0;border-top:1px solid #2b3434;background:none}
body.compact-series .description-toggle:not([hidden]){display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:44px;margin:0;padding:7px 0;color:var(--text);font-size:13px;font-weight:650;text-align:start}
body.compact-series .description-toggle-action{display:flex;align-items:center;gap:5px;color:#9aa6a2;font-size:11px;font-weight:400;flex-shrink:0}
body.compact-series .description-toggle-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.compact-series .description-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
body.compact-series .series-intro .series-description:not([hidden]){display:block;max-width:none;margin:0;padding:0 0 12px;overflow:visible;font-size:14px;line-height:1.8;-webkit-line-clamp:unset;color:#b9c2be}

body.compact-series .hero-wallet{display:block;width:100%;max-width:none;margin:10px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
body.compact-series .hero-wallet-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-height:48px;padding:0 10px;border:1px solid #2b3434;border-radius:7px;background:#141c19}
body.compact-series .hero-wallet-label{align-self:center;font-size:11px;line-height:1.5;flex:0 0 auto}
body.compact-series .hero-wallet-row>strong{display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;margin:0;color:#d3b866;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
body.compact-series .hero-wallet .honglou-coin{width:20px;height:20px;flex:none}
body.compact-series .hero-topup{position:relative;isolation:isolate;flex:0 0 auto;min-width:76px;max-width:100%;min-height:44px;height:auto;margin:0;margin-inline-start:auto;padding:7px 8px;border:0;border-radius:5px;background:none;color:#66dbbb;font-size:12px;line-height:1.4;overflow-wrap:anywhere;text-align:center}
body.compact-series .hero-topup:before{content:'';position:absolute;inset:6px 0;border:1px solid #376457;border-radius:5px;pointer-events:none;z-index:-1}
body.compact-series .hero-wallet .reward-share-inline{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:9px;width:100%;margin:9px 0 0;padding:0;border:0}
body.compact-series .hero-wallet .reward-share-inline .reward-btn{min-height:44px;padding:8px;border:1px solid #2b3434;border-radius:7px;background:none;color:#b8c7c0;font-size:12px;line-height:1.4;gap:7px;min-width:0;overflow-wrap:anywhere}
body.compact-series .hero-wallet .reward-share-inline .reward-art{width:24px;height:24px}
body.compact-series .hero-wallet .reward-share-inline svg{width:16px;height:16px;color:#bca56a}
body.compact-series.free-beta-mode .hero-wallet{display:none}

@media(max-width:700px){
 body.compact-series header.interior-header{height:60px;min-height:60px;column-gap:6px;padding-inline:12px!important}
 body.compact-series .detail-layout{width:calc(100% - 32px);margin-top:14px;margin-bottom:22px}
 body.compact-series .detail-hero{grid-template-columns:68px minmax(0,1fr);gap:13px}
 body.compact-series .detail-poster-wrap{width:68px;border-radius:8px}
 body.compact-series .detail-summary{gap:7px;padding-top:2px}
 body.compact-series .detail-summary h1{font-size:23px;line-height:1.28}
 body.compact-series .detail-meta{font-size:12px}
 body.compact-series .series-taxonomy{gap:4px}
 body.compact-series .series-taxonomy .detail-tags span{padding:3px 5px;font-size:10px}
 body.compact-series .episode-library{margin-top:18px}
 body.compact-series .episode-library .episodes-heading h2{font-size:17px}
 body.compact-series .detail-layout>.detail-actions{grid-template-columns:minmax(0,1fr) minmax(90px,auto);margin-top:14px}
 body.compact-series .detail-layout>.detail-actions .button{padding:10px;font-size:13px}
 body.compact-series .detail-layout>.detail-actions .detail-playlist{font-size:12px}
}
@media(max-width:360px){
 body.compact-series header.interior-header{padding-inline:8px!important;column-gap:4px}
 body.compact-series .detail-layout{width:calc(100% - 24px)}
 body.compact-series .detail-layout>.detail-actions{gap:8px}
}
@media(hover:hover) and (pointer:fine){
 body.compact-series .episode-library .episode-card:hover{transform:none;border-color:#537168;background:#1e2b25}
 body.compact-series .hero-topup:hover{background:none;color:#8cebcf}
 body.compact-series .hero-wallet .reward-share-inline .reward-btn:hover{background:#17241e;border-color:#476456}
}
@media(hover:none){body.compact-series .episode-library .episode-card:hover{transform:none}}

/* Do not present the template's metadata before the requested drama arrives. */
.detail-initializing [data-i18n],.detail-initializing .language-control{visibility:hidden}
.detail-pending .detail-layout>:not(#detail-load-state):not(dialog){display:none!important}
.detail-load-state{display:none}
.detail-pending .detail-load-state{display:flex;grid-column:1/-1;min-height:240px;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:var(--muted)}
.detail-load-state p{margin:0;text-align:center}
.detail-load-spinner{width:28px;height:28px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:detail-loading-spin 1s linear infinite}
.detail-load-state.has-error .detail-load-spinner{display:none}
@keyframes detail-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.detail-load-spinner{animation:none}}
