/* Mango-style CSS; included only for the Mango site layout. */

/* 列表页分类导航与收起筛选 */

body.layout-mgtv #view-list #row-type{align-items:center}
body.layout-mgtv #view-list #row-type #filter-type{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;min-width:0;flex:1;overflow:visible!important;position:relative}
body.layout-mgtv #view-list #filter-type>.filter-opt,
body.layout-mgtv #view-list .filter-more-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;box-sizing:border-box;border:1px solid transparent;border-radius:8px;background:var(--bg3);color:var(--text2);font-size:13px;white-space:nowrap;cursor:pointer}
body.layout-mgtv #view-list #filter-type>.filter-opt:hover,
body.layout-mgtv #view-list .filter-more-btn:hover{color:var(--text);background:color-mix(in srgb,var(--accent) 12%,var(--bg3))}
body.layout-mgtv #view-list #filter-type>.filter-opt.active{color:var(--accent);border-color:var(--accent);background:transparent}
body.layout-mgtv #view-list .filter-more{position:relative;flex:0 0 auto}
body.layout-mgtv #view-list .filter-more-btn{gap:5px}
body.layout-mgtv #view-list .filter-more-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;z-index:100;min-width:170px;max-width:min(280px,80vw);max-height:320px;overflow:auto;padding:6px;border:1px solid var(--border);border-radius:10px;background:var(--bg2);box-shadow:0 12px 32px rgba(0,0,0,.38)}
body.layout-mgtv #view-list .filter-more.open .filter-more-menu{display:flex;flex-direction:column;gap:4px}
body.layout-mgtv #view-list .filter-more-menu .filter-opt{display:flex;width:100%;min-height:36px;justify-content:flex-start;text-align:left;box-sizing:border-box}
body.layout-mgtv #view-list .filter-label{display:none!important}
body.layout-mgtv #view-list .filter-row{border-bottom:0!important}
body.layout-mgtv #view-list .sort-tabs .filter-extra-toggle-row{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;padding:0}
body.layout-mgtv #view-list .sort-tabs .filter-toggle-btn{min-height:36px;padding:0 14px}
body.layout-mgtv #view-list .filter-toggle-btn{border:1px solid var(--border);background:var(--bg3);color:var(--text2);border-radius:6px;padding:5px 12px;font-size:12px;cursor:pointer}
body.layout-mgtv #view-list .filter-toggle-btn:hover{color:var(--accent);border-color:var(--accent)}
body.layout-mgtv #view-list .filter-box:not(.filters-open) #row-area,
body.layout-mgtv #view-list .filter-box:not(.filters-open) #row-year,
body.layout-mgtv #view-list .filter-box:not(.filters-open) #row-lang{display:none!important}
body.layout-mgtv #view-list .filter-box{border:0!important}
body.layout-mgtv #view-list .filter-box{background:transparent!important}
body.layout-mgtv #view-list .filter-box:not(.filters-open){padding-bottom:0!important;margin-bottom:4px!important}

@media(max-width:900px){body.layout-mgtv .mobile-sticky-stack .topbar{height:56px!important}
body.layout-mgtv .home-hero-history > .hero{margin-top:0!important}}


/* Mango PC home: tighten the gap above the first home section. */
@media(min-width:901px){body.layout-mgtv #view-home > .section:first-of-type{padding-top:8px!important}}


/* Mango PC sidebar shared by home, list, rank, search, and player pages. */
@media(min-width:901px){body.layout-mgtv .side-nav{
    display:block;top:0;
    background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,rgba(58,58,58,.05)) 0%,color-mix(in srgb,var(--accent) 3%,rgba(58,58,58,.025)) 68%,rgba(58,58,58,.005) 100%);
    border-right:1px solid rgba(255,255,255,.08);
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    overflow:visible!important;z-index:260
  }
/* Standalone pages keep the sidebar logo; home/list keep their existing hero layout override. */
  body.layout-mgtv .side-nav-logo{display:flex;height:72px;padding:0 26px;background:transparent;color:#fff;border-right:0}
body.layout-mgtv .side-nav-logo .logo-text,
body.layout-mgtv .side-nav-logo .logo-accent{color:#f3f5f6}
body.layout-mgtv .side-nav-inner{padding:10px 16px 32px}
body.layout-mgtv .side-nav-link{
    position:relative;padding:12px 20px;margin-bottom:4px;border-radius:24px;
    color:rgba(255,255,255,.68);font-size:16px
  }
body.layout-mgtv .side-nav-link:hover,
body.layout-mgtv .side-nav-link.active{
    background:transparent!important;box-shadow:none!important;color:#fff!important
  }
body.layout-mgtv .side-nav-link.active{font-weight:700;margin:0 0 4px!important;padding:12px 20px!important}
body.layout-mgtv .side-nav-link.active:after{
    content:"";position:absolute;right:-22px;top:50%;width:0;height:0;
    transform:translateY(-50%);border-top:5px solid transparent;border-bottom:5px solid transparent;
    border-left:8px solid rgba(255,255,255,.88);
    filter:drop-shadow(0 0 3px rgba(255,255,255,.72));pointer-events:none
  }
body.layout-mgtv .side-nav-icon .sn-svg{width:20px;height:20px}
body.layout-mgtv .side-nav-hr{background:rgba(255,255,255,.15);margin:18px 16px}
body.is-home.layout-mgtv .side-nav{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,rgba(58,58,58,.05)) 0%,color-mix(in srgb,var(--accent) 3%,rgba(58,58,58,.025)) 68%,rgba(58,58,58,.005) 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important}}

/* PC-only layout variants; mobile rules remain unchanged. */
@media(min-width:901px){body.layout-mgtv .mgtv-hero-meta{display:block}
body.layout-mgtv .home-hero-history{position:relative!important;left:50%!important;transform:translateX(-50%)!important;width:100vw!important;max-width:none!important;margin:-72px 0 0!important;padding:0!important;box-sizing:border-box}
body.layout-mgtv .home-hero-history>.hero{position:relative!important;left:0!important;transform:none!important;width:100%!important;max-width:none!important;height:min(64vh,580px)!important;min-height:500px!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border-radius:0!important;box-sizing:border-box}
body.layout-mgtv .hero-slide{left:0!important;right:0!important;width:100%!important;background-position:center 32%!important}
body.layout-mgtv .hero-overlay{background:linear-gradient(to top,var(--bg) 0%,transparent 48%),linear-gradient(to right,rgba(20,38,30,.50) 0%,rgba(20,38,30,.34) 16%,rgba(20,38,30,.14) 36%,transparent 58%),linear-gradient(to bottom,rgba(10,18,24,.25) 0%,transparent 22%)}
body.layout-mgtv .hero-content{max-width:none;margin:0;height:100%;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:flex-start;align-items:baseline;padding:0 0 53px max(254px,calc(50vw - 688px));box-sizing:border-box}
body.layout-mgtv .hero-tag{order:3;flex:0 0 auto;font-size:12px;padding:5px 12px;margin:0 0 0 12px;background:rgba(202,151,67,.9);color:#281d0e;border-radius:2px!important;white-space:nowrap}
body.layout-mgtv .hero-title{order:1;flex:0 0 100%;white-space:nowrap;margin:0 0 8px}
body.layout-mgtv .mgtv-hero-meta{order:2;flex:0 0 auto;margin-top:0}
body.layout-mgtv .hero-title{font-size:46px;line-height:1.14;font-weight:800;letter-spacing:-1px;text-shadow:0 2px 22px rgba(0,0,0,.45)}
body.layout-mgtv .hero-meta:not(.mgtv-hero-meta){display:none}
body.layout-mgtv .mgtv-hero-meta{font-size:16px;color:rgba(255,255,255,.82)}
body.layout-mgtv .hero-actions{display:none!important}
body.layout-mgtv .btn-play{background:linear-gradient(135deg,#edbd65,#c89136);color:#251b10;border-radius:24px;padding:11px 30px;font-weight:700}
body.layout-mgtv .hero-dots{display:none}
body.layout-mgtv .hero-thumbnails{position:absolute;z-index:5;right:30px;bottom:44px;width:min(48vw,880px);height:90px;display:flex;justify-content:space-between;gap:10px;overflow:hidden;align-items:flex-start;padding-top:3px;box-sizing:border-box}
body.layout-mgtv .hero-thumb{flex:0 0 calc((100% - 60px)/7);min-width:0;max-width:none;padding:0;border:0;background:transparent;color:rgba(255,255,255,.72);text-align:left;cursor:pointer;opacity:.72;transition:opacity .2s,transform .2s;font:inherit}
body.layout-mgtv .hero-thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:1px solid rgba(255,255,255,.1);border-radius:7px;box-sizing:border-box;transition:border-color .2s,transform .2s}
body.layout-mgtv .hero-thumb .hero-thumb-poster{position:relative;display:block;width:100%;aspect-ratio:16/9;margin:0!important;overflow:hidden;border-radius:7px;line-height:0}
body.layout-mgtv .hero-thumb .hero-thumb-poster img{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border:1px solid rgba(255,255,255,.1);border-radius:inherit;box-sizing:border-box;transition:border-color .2s,transform .2s}
body.layout-mgtv .hero-thumb>span:last-child{display:block;margin-top:6px;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 5px #000}
body.layout-mgtv .hero-thumb.active,
body.layout-mgtv .hero-thumb:hover{opacity:1;color:#fff}
body.layout-mgtv .hero-thumb.active img,
body.layout-mgtv .hero-thumb:hover img{border-color:var(--accent,#2563eb);transform:none}
body.layout-mgtv .hero-arrow{z-index:6;background:rgba(0,0,0,.2);border-radius:50%;width:38px;height:38px}
body.layout-mgtv .hero-prev{left:216px}
body.layout-mgtv .hero-next{right:18px}
body.layout-mgtv .topbar{left:0;right:0;top:0;height:72px;background:transparent!important;border:0!important;backdrop-filter:none!important;box-shadow:none!important;z-index:300;transition:background .22s ease,box-shadow .22s ease}
body.layout-mgtv.mgtv-past-hero .topbar{background:rgba(8,11,13,.90)!important;box-shadow:0 4px 18px rgba(0,0,0,.28)!important}
body.layout-mgtv .topbar-inner{max-width:none;height:72px;margin:0;padding:0 28px;gap:18px}
body.layout-mgtv .topbar-inner>.logo{display:flex!important;order:0;flex:0 0 auto;color:#fff}
body.layout-mgtv .topbar-inner>.logo .logo-text,
body.layout-mgtv .topbar-inner>.logo .logo-accent{color:#fff}
body.layout-mgtv .topbar-inner>.topbar-notice,
body.layout-mgtv .topbar-inner>div[style*="flex:1"]{display:none!important}
body.layout-mgtv .topbar-inner>.search-wrap{order:1;display:flex;flex:1 1 420px;max-width:640px;min-width:180px;margin:0 auto}
body.layout-mgtv .topbar-inner>.search-wrap .search-box{position:relative;right:auto;width:100%;flex:1 1 auto;opacity:1;pointer-events:auto}
body.layout-mgtv .topbar-inner>.search-wrap .search-box input{height:46px;padding:0 46px 0 52px;border-radius:24px;background:rgba(230,239,245,.25);border-color:rgba(255,255,255,.12);backdrop-filter:blur(16px);font-size:15px;color:#fff}
body.layout-mgtv .topbar-inner>.search-wrap .search-box .search-go{height:34px;right:8px;border-radius:18px;background:rgba(255,255,255,.15);color:#fff}
body.layout-mgtv .topbar-inner>.search-wrap .top-icon{display:none!important}
body.layout-mgtv .topbar-inner>#theme-toggle{order:2}
body.layout-mgtv .topbar-inner>.top-icon-group{order:3}
body.layout-mgtv .topbar .search-box{position:relative;width:100%;flex:1 1 auto;padding:0;border:1px solid rgba(255,255,255,.22)!important;border-radius:32px!important;background:rgba(221,230,235,.24);box-shadow:0 8px 28px rgba(0,0,0,.12);backdrop-filter:blur(18px);box-sizing:border-box}
body.layout-mgtv .topbar .search-box:before{content:"\641c\7d22";position:absolute;left:18px;top:50%;z-index:2;transform:translateY(-50%);padding-right:14px;border-right:1px solid rgba(255,255,255,.25);color:rgba(255,255,255,.9);font-size:15px;line-height:22px;white-space:nowrap;pointer-events:none}
body.layout-mgtv .topbar .search-box input[type=search]{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
body.layout-mgtv .topbar .search-box input[type=search]{height:44px;padding:0 52px 0 18px;border:0;background:transparent;color:#fff;font-size:15px;box-sizing:border-box}
body.layout-mgtv .topbar .search-box input[type=search]::placeholder{color:rgba(255,255,255,.68)}
body.layout-mgtv .topbar .search-box>svg{display:none!important}
body.layout-mgtv .topbar-inner>.search-wrap .search-box input[type=search]{padding:0 54px 0 18px;border:0;background:transparent;color:#fff}
body.layout-mgtv .topbar .search-wrap .top-icon svg{width:20px;height:20px}
body.layout-mgtv .topbar .search-box .search-go{display:none!important}
body.layout-mgtv .topbar .search-wrap .top-icon{position:absolute;right:9px;top:50%;z-index:4;display:flex!important;align-items:center;justify-content:center;width:38px;height:38px;transform:translateY(-50%);background:transparent;border:0;color:#fff}
body.layout-mgtv .topbar .search-wrap.open .top-icon{display:none!important}
body.layout-mgtv .search-wrap:not(.open) #hot-search,
body.layout-mgtv .search-wrap:not(.open) #search-suggest{display:none!important}
body.layout-mgtv #hot-search,
body.layout-mgtv #search-suggest{top:calc(100% + 10px)!important;left:0!important;right:0!important;width:auto!important;margin:0!important;padding:16px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:16px!important;background:rgba(24,30,34,.97)!important;color:#f4f6f7!important;box-shadow:0 18px 50px rgba(0,0,0,.32)!important;backdrop-filter:blur(22px);box-sizing:border-box}
body.layout-mgtv #hot-search-tags>span{padding:7px 12px!important;border:1px solid rgba(255,255,255,.12);border-radius:18px!important;background:rgba(255,255,255,.1)!important;color:rgba(255,255,255,.88)!important}
body.layout-mgtv .dropdown-menu{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(24,30,34,.97);color:#f4f6f7;box-shadow:0 18px 50px rgba(0,0,0,.32);backdrop-filter:blur(20px)}
body.layout-mgtv .dropdown-menu .dropdown-item:hover{background:rgba(255,255,255,.1)}
body.layout-mgtv .app select{appearance:none;-webkit-appearance:none;padding-right:34px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px!important;background-color:rgba(255,255,255,.08)!important;color:var(--text)!important;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d8e0e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important}
body.layout-mgtv .app select option{background:#1c2226;color:#f4f6f7}
body.layout-mgtv .topbar .search-box input[type=search]{height:44px;padding:0 54px 0 82px!important;border:0!important;border-radius:32px!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;font-size:15px;color:#fff}
body.layout-mgtv .topbar .search-box input[type=search]::placeholder{color:rgba(255,255,255,.62)}
body.layout-mgtv .topbar .search-box svg{width:20px;height:20px;color:rgba(255,255,255,.75)}
body.layout-mgtv .topbar .search-go{height:36px;border-radius:20px;background:rgba(255,255,255,.12);color:#fff}
body.layout-mgtv .topbar .top-icon,
body.layout-mgtv .topbar .theme-toggle{background:rgba(255,255,255,.12);border-color:transparent;color:rgba(255,255,255,.82)}
body.layout-mgtv .topbar .topbar-notice{display:none!important}
body.layout-mgtv .side-nav{display:block;top:0;background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,rgba(58,58,58,.05)) 0%,color-mix(in srgb,var(--accent) 3%,rgba(58,58,58,.025)) 68%,rgba(58,58,58,.005) 100%);border-right:1px solid rgba(255,255,255,.08);backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important;z-index:260}
body.is-home.layout-mgtv .side-nav{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,rgba(58,58,58,.05)) 0%,color-mix(in srgb,var(--accent) 3%,rgba(58,58,58,.025)) 68%,rgba(58,58,58,.005) 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important}
body.layout-mgtv .side-nav-logo{display:none}
body.layout-mgtv .side-nav-inner{padding:82px 16px 32px}
body.layout-mgtv .side-nav-logo{height:82px;padding:0 26px;background:transparent;color:#fff;border-right:0}
body.layout-mgtv .side-nav-logo .logo-text,
body.layout-mgtv .side-nav-logo .logo-accent{color:#f3f5f6}
body.layout-mgtv .side-nav-inner{padding:82px 16px 32px}
body.layout-mgtv .side-nav-link{padding:12px 20px;margin-bottom:4px;border-radius:24px;color:rgba(255,255,255,.68);font-size:16px}
body.layout-mgtv .side-nav-link:hover,
body.layout-mgtv .side-nav-link.active{background:transparent!important;box-shadow:none!important;color:#fff!important}
body.layout-mgtv .side-nav-link.active{font-weight:700}
body.layout-mgtv .side-nav-link{position:relative}
body.layout-mgtv .side-nav-link.active:after{content:"";position:absolute;right:-22px;top:50%;width:0;height:0;transform:translateY(-50%);border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid rgba(255,255,255,.88);filter:drop-shadow(0 0 3px rgba(255,255,255,.72));pointer-events:none}
body.layout-mgtv .side-nav-icon .sn-svg{width:20px;height:20px}
body.layout-mgtv .side-nav-hr{background:rgba(255,255,255,.15);margin:18px 16px}
body.layout-mgtv #hist-section{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;display:flex;flex-wrap:wrap;align-items:center;row-gap:14px;width:calc(100% - 284px);max-width:1600px;margin:20px 0 30px max(246px,calc(50vw - 696px));padding:0 8px!important;background:transparent!important;box-sizing:border-box}
body.layout-mgtv #hist-section .hist-bar-title{writing-mode:horizontal-tb;letter-spacing:0;font-size:20px;font-weight:700;color:var(--text,#222);text-shadow:none;padding:0}
body.layout-mgtv #hist-section .hist-bar-arrows{margin-left:auto;align-self:center}
body.layout-mgtv #hist-section .hist-row{flex:1 1 100%;order:3;gap:18px;align-items:flex-start;padding:0}
body.layout-mgtv #hist-section .hist-card{flex:0 0 clamp(180px,calc((100% - 72px)/5),320px);min-width:0;width:auto}
body.layout-mgtv #hist-section .hist-card .hist-poster{width:100%;height:auto;aspect-ratio:16/9;border-radius:2px!important}
body.layout-mgtv #hist-section .hist-card .hist-poster img{border-radius:2px!important}
body.layout-mgtv #hist-section .hist-card .hist-label{font-size:14px;color:var(--text,#222);margin-top:8px;text-align:left;text-shadow:none;opacity:1}
body.layout-mgtv #hist-section .hist-bar-title{writing-mode:horizontal-tb;letter-spacing:0;font-size:20px;font-weight:700;padding:0;text-shadow:none}
body.layout-mgtv #hist-section .hist-card{width:118px}
body.layout-mgtv #hist-section .hist-card .hist-poster{width:118px;height:66px}
body.layout-mgtv #hist-section .hist-row{align-items:flex-start}
body.layout-mgtv .app{max-width:none;margin:0 0 0 200px;padding:0 38px 0 46px;box-sizing:border-box}
body.layout-mgtv .app>.view{max-width:1600px;margin:0 auto}
body.layout-mgtv #view-home>.section{padding:22px 0}
body.layout-mgtv #view-home .section-title{font-size:24px;font-weight:800;letter-spacing:-.3px;margin-bottom:18px}
body.layout-mgtv #view-home .card-row{gap:18px}
body.layout-mgtv #view-home .vod-card .v-name{font-size:15px;font-weight:600}
body.layout-mgtv .site-footer{margin-left:200px;width:calc(100% - 200px)}
body.layout-mgtv{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}}

@media(max-width:900px){body.layout-mgtv .hero-thumbnails{display:none!important}}


/* Mango PC continue-watching matches the New outside layout */
@media(min-width:901px){body.layout-mgtv .hero-tag{border-radius:2px!important}
body.layout-mgtv #hist-section{display:flex;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;flex-wrap:wrap;align-items:center;gap:0;row-gap:14px;width:calc(100% - 284px);max-width:1600px;margin:20px 0 30px max(246px,calc(50vw - 696px));padding:0 8px!important;background:transparent!important;box-sizing:border-box}
body.layout-mgtv #hist-section .hist-bar-title{flex:0 0 auto;writing-mode:horizontal-tb;letter-spacing:0;font-size:20px;font-weight:700;line-height:1.3;text-align:left;color:var(--text,#222);text-shadow:none;padding:0}
body.layout-mgtv #hist-section .hist-bar-arrows{margin-left:auto;align-self:center;gap:8px}
body.layout-mgtv #hist-section .hist-clear{height:30px;padding:0 12px;border-radius:4px;background:var(--bg3,rgba(0,0,0,.06));color:var(--text2,#777);font-size:12px}
body.layout-mgtv #hist-section .slide-arrow{width:30px;height:30px;border-radius:2px;background:var(--bg3,rgba(0,0,0,.06));color:var(--text2,#777)}
body.layout-mgtv #hist-section .hist-row{flex:1 1 100%;order:3;gap:16px;align-items:flex-start;padding:0;overflow-x:auto}
body.layout-mgtv #hist-section .hist-card{flex:0 0 clamp(150px,calc((100% - 80px)/6),240px);min-width:0;width:auto}
body.layout-mgtv #hist-section .hist-card .hist-poster{width:100%!important;height:auto!important;aspect-ratio:21/10;border-radius:2px!important;box-shadow:none}
body.layout-mgtv #hist-section .hist-card .hist-poster img{opacity:1;border-radius:2px!important}
body.layout-mgtv #hist-section .hist-card .hist-label{font-size:12px;color:var(--text,#222);margin-top:7px;text-align:left;text-shadow:none;opacity:1}}

@media(min-width:901px){body.layout-mgtv .home-hero-history:has(#hist-section[style*="flex"]) .hero-content{padding-bottom:53px!important}}

@media(min-width:901px){body.layout-mgtv #hot-row .v-poster{padding-bottom:56.25%!important}}

@media(min-width:901px){body.layout-mgtv .hero-arrow{display:none!important}}

@media(min-width:901px){body.layout-mgtv .hero-thumbnails .hero-thumb{display:block!important;flex:0 0 112px!important;width:112px!important;height:87px!important;min-width:112px!important;max-width:112px!important;box-sizing:border-box}
body.layout-mgtv .hero-thumbnails .hero-thumb .hero-thumb-poster{width:112px!important;height:63px!important;aspect-ratio:auto!important;box-sizing:border-box}
body.layout-mgtv .hero-thumbnails .hero-thumb .hero-thumb-poster img{width:112px!important;height:63px!important;max-width:none!important;max-height:none!important;object-fit:cover!important}}

@media(min-width:901px) and (max-width:1199px){body.layout-mgtv #hot-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

@media(min-width:1200px) and (max-width:1599px){body.layout-mgtv #hot-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

@media(min-width:1600px){body.layout-mgtv #hot-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}}

@media(min-width:901px){body.layout-mgtv .topbar-inner>#theme-toggle,
body.layout-mgtv .topbar-inner>.top-icon-group .top-icon{flex-direction:column;align-items:center;justify-content:center;gap:3px;width:44px;height:52px;padding:0;background:transparent!important;border:0!important;box-shadow:none!important;color:rgba(255,255,255,.82)}
body.layout-mgtv .topbar-inner>.top-icon-group,
body.layout-mgtv .topbar-inner>#user-area{display:flex;align-items:center}
body.layout-mgtv .topbar-inner>#theme-toggle svg,
body.layout-mgtv .topbar-inner>.top-icon-group .top-icon>svg{display:block;width:20px;height:20px;flex:0 0 20px}
body.layout-mgtv #theme-toggle:after,
body.layout-mgtv #btn-color:after,
body.layout-mgtv #btn-release:after,
body.layout-mgtv #btn-login:after,
body.layout-mgtv #btn-user:after{display:block;font-size:11px;line-height:14px;font-weight:400;white-space:nowrap;color:rgba(255,255,255,.78);text-shadow:0 1px 4px rgba(0,0,0,.35)}
body.layout-mgtv #theme-toggle:after{content:"夜间"}
body.layout-mgtv #btn-color:after{content:"主题"}
body.layout-mgtv #btn-release:after{content:"发布"}
body.layout-mgtv #btn-login:after,
body.layout-mgtv #btn-user:after{content:"会员"}}


@media(min-width:901px){body.layout-mgtv .topbar-inner>#theme-toggle{display:none!important}
body.layout-mgtv .topbar-inner>#user-area #btn-login[style*="none"],
body.layout-mgtv .topbar-inner>#user-area #btn-user[style*="none"]{display:none!important}
body.layout-mgtv #theme-toggle:after{display:none!important;content:none!important}
body.layout-mgtv #btn-release:after{content:"\53d1\5e03\9875"}}


@media(min-width:901px){body.layout-mgtv:has(#list-hero) .side-nav{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,rgba(58,58,58,.05)) 0%,color-mix(in srgb,var(--accent) 3%,rgba(58,58,58,.025)) 68%,rgba(58,58,58,.005) 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important}}

@media(min-width:901px){body.layout-mgtv #hist-section.has-hist-recommend{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:12px}
body.layout-mgtv #hist-section.has-hist-recommend>.hist-bar-title{order:1;flex:1 1 50%;}
body.layout-mgtv #hist-section.has-hist-recommend>.hist-bar-arrows{order:2;flex:1 1 40%;justify-content:flex-end;}
body.layout-mgtv #hist-section.has-hist-recommend>.hist-row{order:3;flex:1 1 100%;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;display:flex;align-items:flex-start;gap:16px;scroll-behavior:smooth;}
body.layout-mgtv #hist-section.has-hist-recommend>.hist-row>.hist-card,
body.layout-mgtv #hist-section.has-hist-recommend .hist-recommend-cards>.hist-rec-card{box-sizing:border-box;flex:0 0 clamp(180px,calc((100vw - 340px)/6),280px)!important;width:clamp(180px,calc((100vw - 340px)/6),280px)!important;min-width:clamp(180px,calc((100vw - 340px)/6),280px)!important;max-width:clamp(180px,calc((100vw - 340px)/6),280px)!important;}
body.layout-mgtv #hist-section.has-hist-recommend>.hist-row>#hist-recommend-group,
body.layout-mgtv #hist-section.has-hist-recommend>.hist-row>#hist-recommend-group[hidden]{order:20;display:grid!important;grid-template-columns:42px max-content;align-items:start;column-gap:12px;visibility:visible!important;opacity:1!important;position:relative;isolation:isolate;flex:0 0 auto!important;min-width:max-content;width:max-content;max-width:none;min-height:100px;margin-left:0;padding:0 0 0 12px;border-left:1px solid rgba(127,127,127,.35);box-sizing:border-box;overflow:visible;}
body.layout-mgtv #hist-section.has-hist-recommend #hist-recommend-group .hist-recommend-title{grid-column:1;grid-row:1;position:relative;top:4px;z-index:50!important;display:flex!important;visibility:visible!important;opacity:1!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:100px;min-height:100px;margin:0;padding:0;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:2px;font-size:14px;line-height:1.2;color:#fff!important;background:#17171b!important;box-sizing:border-box;}
body.layout-mgtv #hist-section.has-hist-recommend #hist-recommend-group .hist-recommend-cards{grid-column:2;grid-row:1;position:relative;z-index:1;display:flex!important;flex:0 0 auto!important;width:max-content;min-width:max-content;max-width:none;gap:16px;align-items:flex-start;margin:0;padding:0;overflow:visible;}
body.layout-mgtv #hist-section.has-hist-recommend #hist-recommend-group .hist-rec-card .hist-poster{width:100%!important;height:auto!important;aspect-ratio:21/10;}
body.layout-mgtv #hist-section.has-hist-recommend #hist-recommend-group .hist-rec-card .hist-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}

@media(max-width:900px){body.layout-mgtv #list-hero + .app{padding-top:0!important}}
/* Mango history and hero thumbnails use the same 4px poster corners on every viewport. */
body.layout-mgtv #hist-section .hist-card .hist-poster,
body.layout-mgtv #hist-section .hist-card .hist-poster img,
body.layout-mgtv .hero-thumbnails .hero-thumb .hero-thumb-poster,
body.layout-mgtv .hero-thumbnails .hero-thumb .hero-thumb-poster img,
body.layout-mgtv .hero-thumbnails .hero-thumb img{border-radius:4px!important}

/* Mango PC history aligns with the home content and shares its card treatment. */
@media(min-width:901px){body.layout-mgtv #hist-section{padding-left:0!important;padding-right:0!important}
body.layout-mgtv #hist-section .hist-bar-title{font-size:24px!important}
body.layout-mgtv #hist-section .hist-card .hist-poster,
body.layout-mgtv #hist-section .hist-card .hist-poster img,
body.layout-mgtv #hist-section .hist-rec-card .hist-poster,
body.layout-mgtv #hist-section .hist-rec-card .hist-poster img,
body.layout-mgtv .hero-thumbnails .hero-thumb .hero-thumb-poster,
body.layout-mgtv .hero-thumbnails .hero-thumb .hero-thumb-poster img,
body.layout-mgtv .hero-thumbnails .hero-thumb img{border-radius:4px!important}}

      body.layout-mgtv #view-list .filter-box{padding-left:2px!important;padding-right:0!important}
      body.layout-mgtv #view-list .filter-box{padding-bottom:0!important;margin-bottom:16px!important}
      body.layout-mgtv #view-list .filter-box:not(.filters-open){margin-bottom:16px!important}
      body.layout-mgtv #view-list .filter-box:not(.filters-open) #row-type{padding-bottom:0!important}
      body.layout-mgtv #view-list .filter-box #row-lang,body.layout-mgtv #view-list .filter-box #row-from{padding-bottom:0!important}
      body.layout-mgtv #view-list .filter-opt,body.layout-mgtv #view-list .sort-tab,body.layout-mgtv #view-list .filter-toggle-btn,body.layout-mgtv #view-list .filter-more-btn,body.layout-mgtv #view-list .filter-more-menu{border-radius:4px!important}
      @media(max-width:900px){body.layout-mgtv #view-list .list-header{padding-bottom:4px!important;margin-bottom:0!important}body.layout-mgtv #view-list .filter-box{padding-top:0!important}}
    
@media(min-width:901px){html,html body{background:#1a1a1e!important;color:#fff!important}}

/* Center continue-watching on the same main-content column as home sections. */
@media(min-width:901px){
  body.layout-mgtv.is-home #hist-section{
    width:min(1600px,calc(100vw - 284px))!important;
    max-width:1600px!important;
    margin-left:max(246px,calc(50vw - 696px))!important;
    margin-right:0!important;
  }
}
/* No-hero pages keep Mango's left sidebar and use the standard topbar on the content side. */
@media(min-width:901px){
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar{
    left:200px!important;right:0!important;top:0!important;height:56px!important;
    position:fixed!important;background:var(--bg)!important;backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;border-bottom:1px solid var(--border)!important;
    box-shadow:none!important;z-index:300!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner{
    max-width:none!important;width:100%!important;height:100%!important;margin:0!important;
    padding:0 24px!important;gap:16px!important;box-sizing:border-box!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.topbar-notice{
    display:flex!important;order:0!important;flex:0 1 auto!important;margin:0 8px 0 0!important;
    max-width:60%!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.logo{
    display:none!important;order:1!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>div[style*="flex:1"]{
    order:initial!important;display:block!important;flex:1 1 auto!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>#theme-toggle,
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.top-icon-group{
    order:initial!important;display:flex!important;flex:0 0 auto!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>#theme-toggle,
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.top-icon-group .top-icon{
    flex-direction:row!important;align-items:center!important;justify-content:center!important;
    gap:0!important;width:36px!important;height:36px!important;padding:0!important;
    background:var(--bg3)!important;border:0!important;box-shadow:none!important;color:var(--text2)!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) #theme-toggle:after,
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) #btn-color:after,
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) #btn-release:after,
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) #btn-login:after,
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) #btn-user:after{
    display:none!important;content:none!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.search-wrap{
    order:initial!important;display:flex!important;flex:0 0 auto!important;max-width:none!important;
    min-width:0!important;margin:0!important;position:relative!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.search-wrap .search-box{
    position:absolute!important;right:48px!important;width:300px!important;max-width:none!important;
    flex:0 0 auto!important;opacity:0!important;pointer-events:none!important;
    padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
    box-shadow:none!important;backdrop-filter:none!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar-inner>.search-wrap.open .search-box{
    opacity:1!important;pointer-events:auto!important;right:48px!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar .search-box:before{
    display:none!important;content:none!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar .search-box input[type=search]{
    height:auto!important;padding:8px 80px 8px 38px!important;border:1px solid var(--border)!important;
    border-radius:20px!important;background:var(--bg3)!important;box-shadow:none!important;
    backdrop-filter:none!important;font-size:13px!important;color:var(--text)!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar .search-box input[type=search]::placeholder{
    color:var(--text3)!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar .search-box>svg{
    display:block!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;
    width:16px!important;height:16px!important;color:var(--text3)!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar .search-wrap .top-icon{
    position:static!important;right:auto!important;top:auto!important;transform:none!important;
    display:flex!important;width:36px!important;height:36px!important;background:var(--bg3)!important;
    border:0!important;color:var(--text2)!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .topbar .search-box .search-go{
    display:block!important;position:absolute!important;right:4px!important;top:50%!important;
    height:auto!important;transform:translateY(-50%)!important;border-radius:16px!important;
    padding:5px 14px!important;background:var(--accent)!important;color:#fff!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .app{
    padding-top:0!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .side-nav{
    background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,rgba(58,58,58,.05)) 0%,color-mix(in srgb,var(--accent) 3%,rgba(58,58,58,.025)) 68%,rgba(58,58,58,.005) 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .side-nav-inner{
    padding-top:26px!important;
  }
  body.layout-mgtv:not(.is-home):not(:has(#list-hero .hero:not([style*="display:none"]))) .side-nav-logo{
    display:flex!important;height:56px!important;padding:0 20px!important;
    gap:8px!important;font-size:16px!important;box-sizing:border-box!important;
  }
}

