/* Offline compatibility layer. Original layout CSS remains in static/web/css. */
/* Drawer / floating rail v2 overrides are at the end of this file. */
[hidden]{display:none!important}html{scroll-behavior:smooth}body{overflow-x:hidden}.hg-header__logo img{object-fit:contain}.hg-drama-card__cover img{object-fit:cover}.hg-hero__bg-img{object-fit:cover!important}.hg-ssp-slot[data-local-ad]{display:block!important;min-height:90px;overflow:hidden;border-radius:12px}.hg-ssp-slot[data-local-ad]>img{display:block;width:100%;height:100%;min-height:90px;max-height:180px;object-fit:cover}.hg-ssp-pause,.hg-ssp-floating{display:none!important}.hg-auth-modal,.hg-history-dialog,.dx-overlay,.hg-search-suggest{display:none!important}.home-popup{display:none}.hg-web-play__viewport{position:relative;background:#080b13;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden}.local-video{display:block!important;width:100%!important;height:100%!important;max-height:75vh;object-fit:contain;background:#080b13}.hg-web-play__loading,.vd-player-mount,[class*="xgplayer-enter"]{display:none!important}.hg-web-play__stage{width:100%}.local-tools{position:fixed;bottom:16px;right:16px;z-index:900;display:flex;gap:6px;background:#171923e8;border:1px solid #d5b67b55;border-radius:30px;padding:7px;box-shadow:0 8px 24px #0005}.local-tools button{background:transparent;color:#f5d9a0;border:0;padding:8px 12px;cursor:pointer;border-radius:20px}.local-tools button:hover{background:#ffffff15}.local-popup{position:fixed;z-index:2000;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(90vw,560px);padding:30px;background:linear-gradient(135deg,#35304f,#154b51);border:1px solid #c1ae78;border-radius:24px;box-shadow:0 0 0 100vmax #0009;color:#fff}.local-popup img{width:100%;margin-top:20px}.local-close{float:right;border:1px solid #fff5;border-radius:20px;padding:7px 14px;background:transparent;color:white;cursor:pointer}.local-toast{position:fixed;z-index:4000;top:100px;left:50%;transform:translateX(-50%);background:#f6deb0;color:#25242c;padding:12px 25px;border-radius:10px;box-shadow:0 8px 30px #0005}.local-search-box{display:flex;gap:10px;margin:15px 0}.local-search-box input{min-width:0;flex:1;background:#111c;border:1px solid #bca779;color:white;padding:12px;border-radius:8px}.local-search-box button{background:#e3c18a;color:#222;padding:10px;border-radius:8px}.hg-drama-card[hidden]{display:none!important}.local-episodes{display:flex;gap:8px;flex-wrap:wrap}.local-episodes button{padding:10px;color:#f0c68b;background:#262b39;border:1px solid #ffffff22;border-radius:8px}.hg-hero__panel:not(.is-active){display:none!important}.hg-hero__panel.is-active{opacity:1!important;visibility:visible!important}.hg-hero{background:#10252c}.hg-hero__thumb{cursor:pointer}a,button{touch-action:manipulation}button{cursor:pointer}.local-menu-open{transform:translateX(0)!important;visibility:visible!important;display:block!important;z-index:1500!important;background:#20232f!important}
@media(max-width:767px){.local-tools{bottom:8px;right:8px}.local-tools button{font-size:12px;padding:6px 8px}.local-popup{padding:20px}.hg-ssp-carousel-pair{gap:12px}.hg-header__logo img{max-width:145px}.hg-web-play__viewport{min-height:180px}}
/* Reconstructed missing desktop player stylesheet. */
.local-player-ad{position:absolute;z-index:10;width:min(260px,45%);padding:12px;background:#202837eb;border:1px solid #ffffff35;border-radius:12px}.local-player-ad--pause{left:50%;top:50%;transform:translate(-50%,-50%)}.local-player-ad--edge{right:12px;top:12px}.local-ad-close{position:absolute;right:4px;top:2px;color:white;background:#111b;border:0;border-radius:50%;z-index:2}.local-player-ad img,.hg-web-play__side .hg-ssp-slot img{object-fit:contain!important;background:#293c51}.local-player-ad .hg-ssp-slot{min-height:50px!important}.local-player-ad img{min-height:50px!important}
.hg-web-play{position:relative!important;width:100%!important;margin:20px 0!important;color:#eee}.hg-web-play__main{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:20px!important;position:relative!important}.hg-web-play__left{min-width:0!important;width:auto!important}.hg-web-play__side{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;max-height:none!important;min-width:0!important;padding:20px!important;z-index:auto!important;background:#191919!important;border:1px solid #ffffff18!important;border-radius:12px!important;overflow:hidden!important}.hg-web-play__titlebar{padding:12px 0!important}.hg-web-play__title{font-size:24px!important;line-height:1.4!important}.hg-web-play__actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:12px 0!important;position:static!important}.hg-web-play__action{padding:8px 12px!important;display:inline-flex!important;align-items:center;gap:5px;background:#242424!important;border-radius:8px!important;color:#eee!important}.hg-web-play__action img{width:18px!important;height:18px!important}.hg-web-play__more-menu,.hg-web-play__side-comments{display:none!important}.hg-web-play__side-tabs{display:flex;gap:8px}.hg-web-play__side-tab{padding:8px 16px;border-radius:8px;background:#292929;color:#eee}.hg-web-play__side-title{font-size:18px!important;line-height:1.5!important;margin:15px 0!important}.hg-web-play__episode-scroll{max-height:230px!important;overflow:auto!important;position:static!important}.hg-web-play__ep-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}.hg-web-play__ep{display:block!important;padding:10px!important;text-align:center;background:#333;border-radius:8px;color:#fff}.hg-web-play__ep.is-active{background:#ffd627;color:#111}.hg-web-play__introcard{position:static!important;display:flex!important;gap:20px!important;padding:20px!important;margin:24px 0!important;background:#161616!important;border-radius:12px!important}.hg-web-play__intro-main{display:flex!important;gap:20px!important;flex:1;min-width:0}.hg-web-play__poster{flex:0 0 130px!important;width:130px!important;height:170px!important}.hg-web-play__poster img{width:100%!important;height:100%!important;object-fit:cover;border-radius:8px}.hg-web-play__facts{flex:1;min-width:0}.hg-web-play__factgrid{display:flex;gap:20px;flex-wrap:wrap}.hg-web-play__fact{margin:10px 0;color:#bbb}.hg-web-play__intro-split{display:none!important}.hg-web-play__scorebox{position:static!important;width:150px!important;flex:0 0 150px}.hg-web-play__synopsis{padding:20px;background:#171717;border-radius:12px;margin-bottom:24px}.hg-web-play__synopsis-text{line-height:1.9;color:#bbb}.hg-web-play__composer{display:none!important}
@media(max-width:900px){.hg-web-play__main{grid-template-columns:minmax(0,1fr)!important}.hg-web-play__introcard{flex-direction:column!important}.hg-web-play__scorebox{display:none!important}.hg-web-play__poster{flex-basis:90px!important;width:90px!important;height:120px!important}.hg-web-play__title{font-size:19px!important}.hg-web-play__side{padding:15px!important}}

/* Drawer + floating rail V2. Local, no external images or fonts. */
html body .hg-fab,html body .local-tools,html body .app-aside,html body .hg-header__menu,html body .btn-menu-collapse{display:none!important}
.gy-menu-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border:0;background:transparent;color:#eee;margin-right:12px;cursor:pointer}.gy-menu-trigger svg{width:30px;height:30px}.gy-drawer-mask{position:fixed;inset:0;z-index:8000;background:#0009;backdrop-filter:blur(2px)}.gy-drawer{box-sizing:border-box;position:fixed;inset:0 auto 0 0;z-index:8001;width:360px;max-width:88vw;height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:#101010;color:#aaa;padding:24px 12px 28px;transform:translateX(-100%);transition:transform .22s ease;box-shadow:20px 0 60px #0005;font-family:Arial,'Microsoft YaHei',sans-serif}.gy-drawer.is-open{transform:translateX(0)}.gy-drawer-brand{display:flex;align-items:center;justify-content:space-between;padding:0 8px 24px;gap:16px;min-height:95px}.gy-drawer-brand img{width:225px;max-width:75%;height:auto}.gy-drawer-close,.gy-info-close{background:transparent;border:1px solid #333;border-radius:50%;color:#aaa;width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.gy-drawer-close svg{width:23px;height:23px}.gy-nav-row{position:relative;display:flex;align-items:center;margin:6px 0}.gy-nav-link{box-sizing:border-box;display:flex;align-items:center;gap:22px;width:100%;min-height:66px;padding:15px 18px;border:0;border-radius:21px;color:#aaa!important;text-decoration:none!important;background:none;text-align:left;font-size:22px;font-weight:600;line-height:1.4;cursor:pointer}.gy-nav-link svg{width:27px;height:27px;flex-shrink:0}.gy-nav-link:hover{color:#ffe000!important;background:#ffffff07}.gy-nav-link.is-current{background:#302c10;color:#ffdf00!important}.gy-nav-link.is-current:after{content:'';position:absolute;right:19px;top:21px;bottom:21px;width:6px;border-radius:5px;background:#ffdf00}.gy-sub-toggle{position:absolute;right:14px;top:15px;border:0;color:#ffdf00;background:#101010;width:38px;height:38px;font-size:24px;cursor:pointer}.gy-subnav{padding:0 20px 8px 68px}.gy-subnav a{display:block;padding:12px 0;color:#aaa;font-size:17px}.gy-drawer-extras{display:flex;gap:10px;margin:20px 12px 0;padding-top:20px;border-top:1px solid #ffffff12}.gy-drawer-extras button{color:#dcc17b;border:1px solid #ffffff22;padding:10px 12px;border-radius:12px;background:#1c1c1c;cursor:pointer}
.gy-rail{position:fixed;right:16px;bottom:42px;width:90px;z-index:1100;display:flex;flex-direction:column;align-items:center;gap:10px;font-family:Arial,'Microsoft YaHei',sans-serif}.gy-app-promo{position:relative;width:100px;height:138px;border-radius:20px;background:linear-gradient(150deg,#746143c4,#25261bdc);box-shadow:0 4px 20px #0003}.gy-promo-close{position:absolute;z-index:3;right:-5px;top:-12px;border:1px solid #ffffff55;border-radius:50%;width:27px;height:27px;color:#bbb;background:#343432;font-size:25px;line-height:21px;cursor:pointer}.gy-app-button{position:relative;display:block;width:100%;height:100%;background:none;border:0;padding:0;cursor:pointer}.gy-phone{position:absolute;top:8px;left:29px;width:44px;height:80px;border-radius:12px;border:3px solid #fff5a0;background:linear-gradient(135deg,#fffde6,#ffdf25 50%,#f7a410);transform:rotate(15deg);box-shadow:5px 6px 0 #d19d1a,0 0 20px #ffe33466}.gy-phone-speaker{position:absolute;left:12px;top:4px;width:16px;height:3px;background:white;border-radius:3px}.gy-phone-play{position:absolute;left:-12px;top:22px;width:44px;height:44px;border-radius:13px;background:linear-gradient(150deg,#fff681,#ffc500);color:white;font-size:27px;line-height:44px;box-shadow:3px 5px 8px #ab7b21aa;transform:rotate(-25deg);text-shadow:0 2px 2px #d69c1d}.gy-download-pill{position:absolute;bottom:12px;left:-5px;right:-5px;padding:7px 1px;background:linear-gradient(100deg,#ffe400,#ffb322);color:#121212;font-size:20px;border-radius:25px;line-height:1.2;white-space:nowrap}.gy-history,.gy-backtop{box-sizing:border-box;width:90px;border:1px solid #ffffff36;border-radius:19px;background:#48433ce0;color:#111;padding:8px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px}.gy-history{background:#ffdb17;box-shadow:0 0 0 7px #51463ec9;margin-top:8px;margin-bottom:4px}.gy-history svg,.gy-backtop svg{width:30px;height:30px}.gy-history span,.gy-backtop span{font-size:16px;line-height:1.3;white-space:nowrap;font-weight:600}.gy-backtop{color:#ddd;border-top:0;border-radius:0 0 17px 17px;margin-top:-10px;padding-top:16px;background:#51463ee6}.gy-info-mask{position:fixed;inset:0;background:#000a;z-index:9000;display:flex;align-items:center;justify-content:center;padding:20px}.gy-info-panel{box-sizing:border-box;width:480px;max-width:100%;max-height:80vh;overflow:auto;background:#181818;border:1px solid #ffffff30;color:#ddd;border-radius:20px;padding:24px;box-shadow:0 20px 80px #0008}.gy-info-close{float:right;font-size:28px}.gy-info-panel h2{font-size:23px;color:#ffdb26;margin:8px 0 24px}.gy-info-panel p{line-height:1.8;margin:15px 0;overflow-wrap:anywhere}.gy-info-panel small{display:block;color:#999;line-height:1.7;margin-top:20px}.gy-history-list a{display:block;padding:14px 5px;border-bottom:1px solid #ffffff12;color:#eee;text-decoration:none}.gy-clear{margin-top:20px;padding:10px 18px;border:0;border-radius:10px;background:#ffdc27;color:#111;cursor:pointer}.gy-rail [hidden],.gy-drawer[hidden],.gy-drawer-mask[hidden],.gy-info-mask[hidden],.gy-subnav[hidden]{display:none!important}
@media(max-width:767px){.gy-rail{right:12px;bottom:24px;width:70px;gap:8px}.gy-app-promo{width:78px;height:112px}.gy-phone{left:23px;top:6px;width:36px;height:65px}.gy-phone-play{width:36px;height:36px;line-height:36px;font-size:23px;top:20px}.gy-download-pill{font-size:16px;bottom:9px;padding:7px 0}.gy-history,.gy-backtop{width:70px}.gy-history span,.gy-backtop span{font-size:13px}.gy-history svg,.gy-backtop svg{width:27px;height:27px}.gy-menu-trigger{margin-right:6px;flex-basis:34px;width:34px}.gy-drawer{padding-top:20px}.gy-nav-link{min-height:62px;font-size:21px}}
@media(prefers-reduced-motion:reduce){.gy-drawer{transition:none}}
/* V3: compact rail, mobile-only drawer and search. */
@media(max-width:767px){html body .hg-ssp-slot[data-local-ad]{width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important}html body .hg-ssp-slot[data-local-ad]>img{position:static!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important;transform:none!important}html body .hg-ssp-carousel-pair{min-width:0!important;max-width:100%!important}}
html body .gy-rail{transform:scale(.5)!important;transform-origin:bottom right!important}
html body .gy-drawer-extras{display:none!important}
html body .gy-mobile-search{display:none!important}
@media(min-width:768px){html body .gy-menu-trigger{display:none!important}}
@media(max-width:767px){
html body .gy-drawer{width:320px;max-width:88vw;padding:18px 14px 24px}
html body .gy-drawer-brand{min-height:72px;padding:0 4px 20px;gap:10px}
html body .gy-drawer-brand img{width:190px;max-width:75%}
html body .gy-drawer-close{width:34px;height:34px}
html body .gy-drawer-close svg{width:18px;height:18px}
html body .gy-nav-row{margin:5px 0}
html body .gy-nav-link{font-size:18px!important;font-weight:400!important;min-height:56px;line-height:1.4;gap:17px;padding:12px 16px;border-radius:16px}
html body .gy-nav-link svg{width:23px;height:23px}
html body .gy-nav-link.is-current{font-weight:600!important}
html body .gy-nav-link.is-current:after{width:5px;right:15px;top:17px;bottom:17px}
html body .gy-sub-toggle{font-size:18px;top:10px;right:10px;width:34px;height:34px}
html body .gy-subnav{padding-left:56px}
html body .gy-subnav a{font-size:15px;font-weight:400}
html body .hg-header__inner{position:relative;padding-right:58px!important}
html body .hg-header__search,html body .hg-header__login{display:none!important}
html body .gy-mobile-search{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;padding:8px;background:transparent!important;border:0;color:#aaa!important;cursor:pointer}
html body .gy-mobile-search svg{width:24px;height:24px;fill:none!important;stroke:currentColor!important;stroke-width:2}
html body .gy-mobile-search svg *{fill:none!important;stroke:currentColor!important}
}
html body .gy-history{background:#ffdb17!important;color:#111!important}html body .gy-backtop{background:#51463ee6!important;color:#ddd!important}html body .gy-nav-link svg,html body .gy-nav-link svg path,html body .gy-rail svg,html body .gy-rail svg path{color:inherit!important;stroke:currentColor!important;fill:none!important}
/* 广告图完整展示：电脑端与手机端 */
html body .hg-ssp-slot[data-local-ad] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    box-sizing: border-box !important;
}

html body .hg-ssp-slot[data-local-ad] > img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    margin: 0 !important;
}


/* TG_RIGHT_MODULES_DOUBLE_V1 */
html body .gy-rail{
 transform:scale(1)!important;
 transform-origin:bottom right!important;
 gap:10px!important;
}
html body .gy-rail .gy-history{
 margin-top:17px!important;
}
html body .gy-rail .gy-backtop{
 zoom:.5;
}
@media(max-width:767px){
 html body .gy-rail{gap:8px!important}
 html body .gy-rail .gy-history{margin-top:16px!important}
}


/* TG_RIGHT_MODULES_REFINE_V2 */
html body .gy-rail{
 transform:scale(.7)!important;
 transform-origin:bottom right!important;
}
html body .gy-rail .gy-backtop{
 zoom:.7142857143!important;
}
html body .gy-rail .gy-app-promo{
 border-radius:12px!important;
 box-sizing:border-box!important;
 border:1px solid #ffffff20!important;
}
html body .gy-rail .gy-download-pill{
 left:9px!important;
 right:9px!important;
 bottom:10px!important;
 width:auto!important;
 box-sizing:border-box!important;
 padding:7px 0!important;
 font-size:16px!important;
 line-height:1.25!important;
 border-radius:24px!important;
 z-index:2!important;
}
@media(max-width:767px){
 html body .gy-rail .gy-download-pill{
  left:6px!important;
  right:6px!important;
  bottom:8px!important;
  font-size:13px!important;
  padding:6px 0!important;
 }
}
