/* huarw-structure family (MovieCMS reference template). Original styles, dark cinema portal. */
body.front.tpl-huarw{
  --hw-bg:#0f1013;--hw-surface:#17191e;--hw-surface-2:#1f2229;--hw-surface-3:#2a2e37;
  --hw-line:rgba(255,255,255,.08);--hw-text:#eceef2;--hw-muted:#959cab;--hw-faint:#6b7280;
  --hw-accent:#ff7a30;--hw-accent-2:#ffb547;--hw-accent-ink:#1a0d03;--hw-radius:8px;--hw-wrap:1240px;
  --cms-nav-ink:#e6e8ee;--cms-nav-muted:#9aa1ae;--cms-nav-panel:#1b1e25;--cms-nav-soft:#242833;--cms-nav-border:#323744;
  --cms-nav-active:#ff8a45;--cms-nav-active-bg:#2c2219;--cms-brand-night:#ffd9b0;--cms-brand-day:#ffd9b0;--cms-accent-night:#ff8a45;--cms-accent-day:#ff8a45;
  margin:0;background:var(--hw-bg);color:var(--hw-text);color-scheme:dark;
  font:14px/1.6 system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
}
body.tpl-huarw *,body.tpl-huarw *::before,body.tpl-huarw *::after{box-sizing:border-box}
body.tpl-huarw a{color:inherit;text-decoration:none}
body.tpl-huarw a:hover{color:var(--hw-accent)}
body.tpl-huarw img{max-width:100%;display:block}
body.tpl-huarw h1,body.tpl-huarw h2,body.tpl-huarw h3,body.tpl-huarw p{margin:0}
body.tpl-huarw :focus-visible{outline:2px solid var(--hw-accent);outline-offset:2px}
body.tpl-huarw [data-hw-hidden]{display:none!important}
.hw-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hw-wrap{width:100%;max-width:var(--hw-wrap);margin:0 auto;padding:0 20px}
.hw-muted{color:var(--hw-muted)}
.hw-empty{color:var(--hw-muted);padding:28px 0;text-align:center;grid-column:1/-1;list-style:none}

/* header */
body.tpl-huarw .hw-header{position:sticky;top:0;z-index:50;background:rgba(15,16,19,.94);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--hw-line)}
body.tpl-huarw .hw-header-row{display:flex;align-items:center;gap:22px;height:64px}
body.tpl-huarw .hw-brand{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
body.tpl-huarw .hw-brand img{width:36px;height:36px;border-radius:9px}
body.tpl-huarw .hw-brand :is(h1,strong){font-size:20px;line-height:1;font-weight:800;letter-spacing:.5px;color:#fff;white-space:nowrap;max-width:12em;overflow:hidden;text-overflow:ellipsis}
body.tpl-huarw .hw-nav{flex:1 1 auto;min-width:0;display:flex;align-items:center}
body.tpl-huarw .hw-nav .cms-nav-desktop{gap:2px;font-size:15px;margin:0}
body.tpl-huarw .hw-nav .cms-nav-desktop>a,body.tpl-huarw .hw-nav .cms-nav-channel>a{padding:20px 10px;font-weight:600;color:var(--cms-nav-ink)}
body.tpl-huarw .hw-nav .cms-nav-desktop a[aria-current]{color:var(--hw-accent)}
body.tpl-huarw .hw-nav .cms-nav-standalone svg{display:none}
body.tpl-huarw .hw-nav a.cms-app-entry{color:var(--hw-accent-2)!important;background:none!important}
body.tpl-huarw .hw-nav a.cms-app-entry span{background:none!important;-webkit-text-fill-color:currentColor!important;color:var(--hw-accent-2)!important}
body.tpl-huarw .hw-search{flex:0 1 300px;display:flex;align-items:center;height:38px;background:var(--hw-surface-2);border:1px solid var(--hw-line);border-radius:19px;overflow:hidden}
body.tpl-huarw .hw-search input{flex:1 1 auto;min-width:0;height:100%;padding:0 14px;border:0;background:transparent;color:var(--hw-text);font-size:14px;outline:none}
body.tpl-huarw .hw-search input::placeholder{color:var(--hw-faint)}
body.tpl-huarw .hw-search button{display:flex;align-items:center;gap:4px;height:30px;margin-right:4px;padding:0 14px;border:0;border-radius:15px;background:linear-gradient(90deg,var(--hw-accent),#ff5b3a);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
body.tpl-huarw .hw-search button svg{width:15px;height:15px}
body.tpl-huarw .hw-tools{display:flex;align-items:center;gap:6px;flex:none}
body.tpl-huarw .hw-tool{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;line-height:1.2;white-space:nowrap;color:var(--hw-muted);padding:4px 6px}
body.tpl-huarw .hw-tool svg{width:22px;height:22px;color:var(--hw-text)}
body.tpl-huarw .hw-tool-user a{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--hw-surface-3)}
body.tpl-huarw .hw-tool-user svg{width:20px;height:20px}
body.tpl-huarw .hw-notice{margin-top:12px;padding:10px 14px;border-radius:var(--hw-radius);background:#2a2014;color:#ffd9a6;font-size:13px}

/* buttons */
body.tpl-huarw .hw-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 22px;border-radius:20px;background:linear-gradient(90deg,var(--hw-accent),#ff5b3a);color:#fff;font-weight:700;font-size:14px;white-space:nowrap}
body.tpl-huarw .hw-btn:hover{color:#fff;filter:brightness(1.08)}
body.tpl-huarw .hw-btn-ghost{background:rgba(255,255,255,.1);color:var(--hw-text)}
body.tpl-huarw .hw-btn-ghost:hover{background:rgba(255,255,255,.16);color:#fff}

/* hero */
.hw-hero{position:relative;height:560px;overflow:hidden;background:#07080a}
.hw-hero-track,.hw-slide{position:absolute;inset:0}
.hw-slide{transition:opacity .5s ease}
.hw-slide-bg{position:absolute;inset:0}
.hw-slide-bg img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
.hw-slide-bg-poster img{filter:blur(26px) brightness(.55) saturate(1.2);transform:scale(1.15)}
.hw-slide-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,11,14,.92) 0%,rgba(10,11,14,.55) 42%,rgba(10,11,14,.15) 70%),linear-gradient(0deg,var(--hw-bg) 0%,rgba(15,16,19,0) 38%)}
.hw-slide-body{position:relative;height:100%;display:flex;align-items:center;gap:34px;padding-right:360px}
.hw-slide-poster{flex:none;width:220px;border-radius:10px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.55)}
.hw-slide-poster img{width:100%;height:auto;aspect-ratio:2/2.83;object-fit:cover}
.hw-slide-copy{min-width:0;max-width:560px}
.hw-slide-kicker{display:inline-block;padding:2px 10px;border-radius:4px;background:var(--hw-accent-2);color:#3a2200;font-size:12px;font-weight:700}
.hw-slide-copy h2{margin-top:12px;font-size:40px;line-height:1.2;font-weight:800;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hw-slide-meta{margin-top:8px;color:#c9ccd4;font-size:14px}
.hw-slide-summary{margin-top:12px;color:#c1c5cf;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hw-slide-actions{display:flex;gap:12px;margin-top:22px}
.hw-hero-index-wrap{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none}
.hw-hero-index{pointer-events:auto;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:300px;margin:0;padding:10px 0;list-style:none;background:rgba(12,13,16,.62);border:1px solid var(--hw-line);border-radius:10px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.hw-hero-index a{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:9px 18px;color:#cfd2da;border-left:3px solid transparent}
.hw-hero-index strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.hw-hero-index span{flex:none;color:var(--hw-faint);font-size:12px}
.hw-hero-index a[aria-current]{border-left-color:var(--hw-accent);background:linear-gradient(90deg,rgba(255,122,48,.2),transparent);color:#fff}
.hw-hero-index a[aria-current] strong{font-weight:700;font-size:16px}

/* sections & grids */
.hw-section{margin-top:36px}
.hw-section-head{display:flex;align-items:center;gap:16px;min-height:44px;margin-bottom:12px}
.hw-section-head h2{flex:none;font-size:22px;font-weight:800;color:#fff;letter-spacing:.3px}
.hw-tabs{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}
.hw-tabs::-webkit-scrollbar{display:none}
.hw-tabs a{flex:none;padding:4px 12px;border-radius:14px;background:var(--hw-surface-2);color:var(--hw-muted);font-size:13px}
.hw-tabs a:hover{background:var(--hw-surface-3);color:#fff}
.hw-more{margin-left:auto;flex:none;color:var(--hw-muted);font-size:13px}
.hw-more span{margin-left:2px}
.hw-grid{display:grid;gap:18px 16px}
.hw-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.hw-grid-7{grid-template-columns:repeat(7,minmax(0,1fr))}
.hw-grid-wide{grid-template-columns:repeat(5,minmax(0,1fr))}
.hw-card{min-width:0}
.hw-thumb{position:relative;display:block;border-radius:var(--hw-radius);overflow:hidden;background:var(--hw-surface-2);aspect-ratio:2/2.82}
.hw-card-wide .hw-thumb{aspect-ratio:16/10}
.hw-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hw-card-wide .hw-thumb img{object-position:center 22%}
.hw-thumb::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(0deg,rgba(0,0,0,.78),transparent);pointer-events:none}
.hw-card:hover .hw-thumb img{transform:scale(1.05)}
.hw-tag{position:absolute;z-index:1;top:0;right:0;padding:2px 8px;border-radius:0 var(--hw-radius) 0 var(--hw-radius);background:rgba(20,22,27,.82);color:#ffd8a8;font-size:12px;line-height:20px}
.hw-tag-hot{background:var(--hw-accent-2);color:#3a2200;font-weight:700}
.hw-score{position:absolute;z-index:1;top:6px;left:6px;padding:0 6px;border-radius:4px;background:rgba(255,122,48,.92);color:#fff;font-size:12px;font-weight:700;line-height:20px}
.hw-status{position:absolute;z-index:1;right:8px;bottom:6px;left:8px;color:#e8e9ee;font-size:12px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hw-play{position:absolute;z-index:1;top:50%;left:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(255,122,48,.92);opacity:0;transform:scale(.8);transition:.25s}
.hw-play::before{content:"";position:absolute;left:18px;top:14px;border-left:14px solid #fff;border-top:9px solid transparent;border-bottom:9px solid transparent}
.hw-card:hover .hw-play,.hw-detail-poster:hover .hw-play{opacity:1;transform:none}
.hw-card-copy{padding-top:8px}
.hw-card-copy h3{font-size:15px;font-weight:600;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hw-card-copy p{margin-top:2px;color:var(--hw-muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* channel block: grid + ranking */
.hw-channel{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:start}
.hw-rank{background:var(--hw-surface);border-radius:10px;padding:6px 16px 10px}
.hw-rank ol{margin:0;padding:0;list-style:none;counter-reset:hw-rank}
.hw-rank li{counter-increment:hw-rank}
.hw-rank li:not(.hw-empty)+li{border-top:1px solid var(--hw-line)}
.hw-rank a{display:flex;align-items:center;gap:12px;padding:11px 0}
.hw-rank a::before{content:counter(hw-rank);flex:none;width:22px;height:22px;border-radius:5px;background:var(--hw-surface-3);color:var(--hw-muted);font-size:12px;font-weight:700;line-height:22px;text-align:center}
.hw-rank li:nth-child(1) a::before{background:#ff4b3a;color:#fff}
.hw-rank li:nth-child(2) a::before{background:#ff7a30;color:#fff}
.hw-rank li:nth-child(3) a::before{background:#ffb547;color:#3a2200}
.hw-rank-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.hw-rank-meta{flex:none;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--hw-faint);font-size:12px}

/* pages */
.hw-page{padding-top:22px;padding-bottom:10px;min-height:52vh}
.hw-page-title{font-size:26px;font-weight:800;color:#fff;margin:6px 0 16px}
.hw-lead{margin:-6px 0 18px;color:var(--hw-muted)}
.hw-crumb{display:flex;flex-wrap:wrap;gap:6px;color:var(--hw-muted);font-size:13px}
.hw-crumb a:hover{color:var(--hw-accent)}
.hw-filter-box{background:var(--hw-surface);border-radius:10px;padding:10px 16px;margin-bottom:18px}
.hw-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:30px 0 8px}
.hw-pager :is(a,span){min-width:76px;height:38px;padding:0 14px;border-radius:19px;background:var(--hw-surface-2);display:inline-grid;place-items:center;color:var(--hw-text)}
.hw-pager a:hover{background:var(--hw-accent);color:#fff}
.hw-pager span[aria-disabled]{opacity:.4}
.hw-pager .hw-page-now{background:transparent;color:var(--hw-muted)}
.hw-box{margin-top:26px;padding:18px 20px;background:var(--hw-surface);border-radius:10px}
.hw-chips{display:flex;flex-wrap:wrap;gap:8px}
.hw-chips :is(a,span){padding:3px 11px;border-radius:5px;background:rgba(255,255,255,.08);color:#d6d9e0;font-size:13px}
.hw-chips a:hover{background:var(--hw-accent);color:#fff}
.hw-chips-lg :is(a,span){padding:7px 16px;font-size:14px}

/* detail */
.hw-detail-hero{position:relative;overflow:hidden;padding:20px 0 34px}
.hw-detail-bg{position:absolute;inset:0;z-index:0}
.hw-detail-bg img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
.hw-detail-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,var(--hw-bg) 0%,rgba(15,16,19,.78) 45%,rgba(15,16,19,.62) 100%)}
.hw-detail-row{position:relative;z-index:1}
.hw-detail-grid{display:grid;grid-template-columns:260px minmax(0,1fr) 260px;gap:32px;margin-top:18px;align-items:start}
.hw-detail-poster{position:relative;display:block;border-radius:10px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.5)}
.hw-detail-poster img{width:100%;height:auto;aspect-ratio:2/2.8;object-fit:cover}
.hw-detail-info h1{font-size:32px;line-height:1.25;font-weight:800;color:#fff}
.hw-detail-sub{margin-top:4px;color:var(--hw-muted)}
.hw-detail-info .hw-chips{margin-top:14px}
.hw-facts{margin:16px 0 0;display:grid;gap:8px}
.hw-facts div{display:flex;gap:10px;min-width:0}
.hw-facts dt{flex:none;color:var(--hw-faint)}
.hw-facts dt::after{content:"："}
.hw-facts dd{margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:4px 10px;color:#d6d9e0}
.hw-facts dd a:hover{color:var(--hw-accent)}
.hw-detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.hw-detail-info .viewer-movie-actions,.hw-detail-info [class*="viewer-actions"]{margin-top:14px}
.hw-scorecard{padding:22px;border-radius:12px;background:rgba(23,25,30,.78);border:1px solid var(--hw-line);text-align:center}
.hw-score-big{font-size:46px;line-height:1;font-weight:800;color:var(--hw-accent-2)}
.hw-score-big small{font-size:16px;margin-left:2px;font-weight:600}
.hw-score-none{font-size:28px;color:var(--hw-muted)}
.hw-score-label{margin-top:8px;color:#d6d9e0}
.hw-score-note{margin-top:14px;padding-top:12px;border-top:1px solid var(--hw-line);color:var(--hw-faint);font-size:12px}
.hw-synopsis p[data-ref-synopsis-text]{color:#c9ccd4;line-height:1.9;font-size:15px}

/* lines & episodes */
.hw-lines{margin-top:26px;padding:16px 20px 20px;background:var(--hw-surface);border-radius:10px}
.hw-lines .hw-section-head{margin-bottom:6px}
.hw-sort{margin-left:auto;height:30px;padding:0 12px;border:0;border-radius:15px;background:var(--hw-surface-2);color:var(--hw-muted);cursor:pointer;font-size:13px}
.hw-sort[aria-pressed=true]{color:var(--hw-accent)}
.hw-line-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--hw-line);margin-bottom:14px;scrollbar-width:none}
.hw-line-tabs::-webkit-scrollbar{display:none}
.hw-line-tabs a{flex:none;display:flex;align-items:center;gap:6px;padding:10px 14px;color:var(--hw-muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.hw-line-tabs a[aria-selected=true]{color:#fff;border-bottom-color:var(--hw-accent)}
.hw-badge{padding:0 6px;border-radius:8px;background:var(--hw-surface-3);font-size:11px;line-height:16px;color:var(--hw-muted)}
.hw-episodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
.hw-episodes a{display:block;height:44px;padding:0 10px;border-radius:7px;background:var(--hw-surface-2);color:#d8dbe2;line-height:44px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hw-episodes a:hover{background:var(--hw-surface-3);color:#fff}
.hw-episodes a[aria-current]{background:var(--hw-accent);color:#fff;font-weight:700}

/* player */
.hw-watch{padding-top:18px}
.hw-watch-row{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:0;background:var(--hw-surface);border-radius:12px;overflow:hidden}
.hw-watch-main{min-width:0;background:var(--hw-surface)}
.hw-player{position:relative;aspect-ratio:16/9;background:#000}
.hw-player :is(video,iframe){position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.hw-player-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--hw-muted)}
.hw-player-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;background:var(--hw-surface)}
.hw-player-actions :is(a,button,span){height:32px;padding:0 14px;border:0;border-radius:16px;background:var(--hw-surface-2);color:#d6d9e0;font-size:13px;display:inline-grid;place-items:center;cursor:pointer}
.hw-player-actions :is(a,button):hover{background:var(--hw-accent);color:#fff}
.hw-player-actions span[aria-disabled]{opacity:.4}
.hw-feedback{padding:0 16px;color:var(--hw-accent-2);font-size:13px;background:var(--hw-surface)}
.hw-feedback:empty{display:none}
.hw-watch-side{min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--hw-line);max-height:none}
.hw-side-tabs{display:flex;gap:26px;padding:0 20px;border-bottom:1px solid var(--hw-line)}
.hw-side-tabs a{padding:14px 0;color:var(--hw-muted);font-size:15px;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.hw-side-tabs a[aria-current]{color:#fff;border-bottom-color:var(--hw-accent)}
.hw-side-panel{padding:16px 20px 20px;min-width:0}
.hw-watch-title{font-size:20px;line-height:1.35;font-weight:800;color:#fff}
.hw-watch-title small{font-size:14px;font-weight:500;color:var(--hw-accent)}
.hw-watch-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px;color:var(--hw-muted);font-size:13px}
.hw-side-ad{margin-top:14px}
.hw-watch-side .hw-lines{margin-top:16px;padding:0;background:transparent}
.hw-watch-side .hw-line-tabs a{padding:10px 9px;font-size:13px}
.hw-watch-side .hw-episodes{grid-template-columns:repeat(3,minmax(0,1fr));max-height:360px;overflow-y:auto;padding-right:4px}
.hw-update{margin-top:10px;color:var(--hw-faint);font-size:12px}

/* search, news, misc */
.hw-results-count{margin:-6px 0 14px;color:var(--hw-muted)}
.hw-results-count strong{color:var(--hw-accent)}
.hw-search-results{display:grid;gap:16px}
.hw-result{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;padding:16px;background:var(--hw-surface);border-radius:10px}
.hw-result h2{font-size:20px;color:#fff}
.hw-result .hw-chips{margin-top:8px}
.hw-result .hw-muted{margin-top:6px;font-size:13px}
.hw-excerpt{margin-top:8px;color:#bfc3cc;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hw-result-actions{display:flex;gap:10px;margin-top:12px}
.hw-result-actions .hw-btn{height:34px;padding:0 16px;font-size:13px}
.hw-news-list{display:grid;gap:12px}
.hw-news-item{padding:16px 18px;background:var(--hw-surface);border-radius:10px}
.hw-news-item h2{font-size:17px;color:#fff}
.hw-news-item p{margin-top:6px;color:var(--hw-muted)}
.hw-news-item time{display:block;margin-top:8px;color:var(--hw-faint);font-size:12px}
.hw-article p{margin:0 0 14px;line-height:1.9;color:#d3d6dd}
.hw-article a{color:var(--hw-accent)}
.hw-404-box{text-align:center;padding-top:60px}
.hw-404-code{font-size:96px;font-weight:900;line-height:1;color:var(--hw-accent)}
.hw-404-box p{margin-top:10px}

/* footer */
.hw-friends{margin-top:40px;padding-top:14px;padding-bottom:14px;border-top:1px solid var(--hw-line);color:var(--hw-muted);font-size:13px;display:flex;flex-wrap:wrap;gap:8px 16px}
.hw-friends strong{color:var(--hw-text)}
body.tpl-huarw .hw-footer{margin-top:40px;padding:28px 0 34px;background:#0b0c0e;border-top:1px solid var(--hw-line);color:var(--hw-faint);font-size:13px;text-align:center}
.hw-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;color:var(--hw-muted)}
.hw-footer-note{max-width:820px;margin:14px auto 0!important;line-height:1.8;white-space:pre-line}
.hw-footer-copy{margin-top:10px!important}

/* shared reference components on the dark surface */
body.tpl-huarw :is(.ref-comments,.cms-comments,.reference-comments) :is(textarea,input){background:var(--hw-surface-2);color:var(--hw-text);border:1px solid var(--hw-line)}
body.tpl-huarw .hw-comments{color:var(--hw-text)}

@media (max-width:1279px){
  .hw-grid-7{grid-template-columns:repeat(6,minmax(0,1fr))}
  .hw-detail-grid{grid-template-columns:220px minmax(0,1fr) 220px;gap:24px}
}
@media (max-width:1079px){
  body.tpl-huarw .hw-header-row{gap:12px}
  body.tpl-huarw .hw-nav{flex:0 0 auto;order:4}
  body.tpl-huarw .hw-search{flex:1 1 auto;margin-left:auto}
  .hw-hero{height:460px}
  .hw-slide-body{padding-right:20px}
  .hw-hero-index{display:none}
  .hw-channel{grid-template-columns:minmax(0,1fr)}
  .hw-rank ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
  .hw-rank li:not(.hw-empty)+li{border-top:0}
  .hw-grid-5,.hw-grid-wide{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hw-grid-7{grid-template-columns:repeat(5,minmax(0,1fr))}
  .hw-detail-grid{grid-template-columns:200px minmax(0,1fr)}
  .hw-scorecard{grid-column:1/-1;display:flex;align-items:center;gap:16px;text-align:left;padding:14px 18px}
  .hw-score-note{margin:0 0 0 auto;padding:0;border:0}
  .hw-watch-row{grid-template-columns:minmax(0,1fr)}
  .hw-watch-side{border-left:0;border-top:1px solid var(--hw-line)}
  .hw-watch-side .hw-episodes{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));max-height:none}
}
@media (max-width:700px){
  body.front.tpl-huarw{font-size:14px;padding-bottom:64px}
  .hw-wrap{padding:0 12px}
  body.tpl-huarw .hw-header-row{height:54px;gap:10px}
  body.tpl-huarw .hw-brand img{width:30px;height:30px}
  body.tpl-huarw .hw-brand :is(h1,strong){font-size:17px;max-width:7em}
  body.tpl-huarw .hw-search{height:34px}
  body.tpl-huarw .hw-search button span{display:none}
  body.tpl-huarw .hw-search button{padding:0 10px}
  .hw-hero{height:300px}
  .hw-slide-body{gap:14px;align-items:flex-end;padding-bottom:34px}
  .hw-slide-poster{width:104px;border-radius:7px}
  .hw-slide-copy h2{font-size:22px;margin-top:8px}
  .hw-slide-summary{-webkit-line-clamp:2;font-size:13px;margin-top:6px}
  .hw-slide-actions{margin-top:12px}
  .hw-slide-actions .hw-btn{height:34px;padding:0 14px;font-size:13px}
  .hw-slide-actions .hw-btn-ghost{display:none}
  .hw-section{margin-top:26px}
  .hw-section-head{flex-wrap:wrap;gap:8px 12px;margin-bottom:10px}
  .hw-section-head h2{font-size:18px}
  .hw-tabs{order:3;flex:1 0 100%}
  .hw-grid{gap:14px 10px}
  .hw-grid-5,.hw-grid-7{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hw-grid-wide{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hw-card-copy h3{font-size:13px}
  .hw-card-copy p{display:none}
  .hw-card-wide .hw-card-copy p{display:block}
  .hw-rank ol{grid-template-columns:minmax(0,1fr)}
  .hw-detail-grid{grid-template-columns:118px minmax(0,1fr);gap:14px}
  .hw-detail-info h1{font-size:21px}
  .hw-chips :is(a,span){font-size:12px;padding:2px 8px}
  .hw-facts{font-size:13px}
  .hw-facts div:nth-child(n+3){display:none}
  .hw-detail-actions{margin-top:14px}
  .hw-detail-actions .hw-btn{height:36px;padding:0 16px}
  .hw-score-big{font-size:30px}
  .hw-box,.hw-lines{padding:14px}
  .hw-episodes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .hw-episodes a{height:38px;line-height:38px;font-size:13px}
  .hw-watch{padding-top:0;padding-left:0;padding-right:0}
  .hw-watch-row{border-radius:0}
  .hw-watch-side .hw-episodes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hw-result{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:12px}
  .hw-result h2{font-size:16px}
  .hw-excerpt{display:none}
  .hw-page-title{font-size:21px}
}
/* Shared reference stylesheets load after this file (contract: reference-flat.css follows the
   variant). These keep the huarw header on top of them; scoped to .tpl-huarw only. */
html[data-portal-theme] body.front.tpl-huarw[class]{background:var(--hw-bg)!important;background-image:none!important;color:var(--hw-text)!important}
html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell{background:rgba(15,16,19,.94)!important;background-image:none!important}
html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell .hw-brand.ref-brand{flex:0 0 auto!important;max-width:300px!important;gap:10px!important}
html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell .hw-brand.ref-brand>img{width:36px!important;height:36px!important;padding:0!important;background:none!important;border-radius:9px!important}
html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell .hw-brand.ref-brand>:is(h1,strong){font-size:20px!important;font-weight:800!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important;overflow:hidden;text-overflow:ellipsis}
@media (max-width:700px){
  html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell .hw-brand.ref-brand{gap:6px!important}
  html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell .hw-brand.ref-brand>img{width:28px!important;height:28px!important}
  html[data-portal-theme] body.front.tpl-huarw[class] .hw-header.ref-shell .hw-brand.ref-brand>:is(h1,strong){font-size:16px!important;max-width:5em!important}
  html[data-portal-theme] body.front.tpl-huarw[class] .hw-header .hw-search{flex:1 1 auto!important;min-width:0!important}
  html[data-portal-theme] body.front.tpl-huarw[class] .hw-header :is(.hw-tool:not(.hw-tool-user),.cms-language){display:none!important}
}
@media (prefers-reduced-motion:reduce){.hw-slide,.hw-thumb img,.hw-play{transition:none}}
