/* site-craft · 站2 · 雾蓝港湾 · 侧栏胶囊 + 3:4竖卡 + 播放器在上 + 星点上飘 */
:root{
  --hb-indigo:#3d5aa8;
  --hb-teal:#2bb8c4;
  --hb-lav:#7b86d4;
  --hb-gold:#d4a54a;
  --hb-foam:#eef5fb;
  --hb-mist:#d5e6f4;
  --hb-ink:#16324a;
  --hb-sub:#4a6780;
  --hb-card:#fff;
  --hb-max:1180px;
  --hb-gutter:max(24px, env(safe-area-inset-left));
  --hb-gutter-r:max(24px, env(safe-area-inset-right));
  --div-accent:var(--hb-indigo);
  --div-secondary:var(--hb-teal);
  --div-highlight:var(--hb-gold);
  --div-bg:var(--hb-foam);
  --div-surface:var(--hb-card);
  --div-text:var(--hb-ink);
  --div-muted:var(--hb-sub);
  color-scheme:light;
}
*{box-sizing:border-box}
html{max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.body-hb{
  margin:0;min-height:100vh;color:var(--hb-ink)!important;
  font-family:"PingFang SC","Noto Sans SC","Segoe UI",sans-serif;
  background:
    radial-gradient(720px 380px at 8% 0%, rgba(123,134,212,.22), transparent 58%),
    radial-gradient(640px 320px at 96% 12%, rgba(43,184,196,.2), transparent 55%),
    radial-gradient(520px 280px at 50% 100%, rgba(212,165,74,.12), transparent 50%),
    linear-gradient(180deg,#e4eef8 0%, var(--hb-foam) 42%, #dceaf6 100%)!important;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
body.body-hb a{color:var(--hb-indigo);text-decoration:none}
body.body-hb img,body.body-hb video{max-width:100%;height:auto;display:block}

.hb-stars{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.hb-stars i{
  position:absolute;left:var(--sx);bottom:-8%;
  width:var(--ss);height:var(--ss);
  background:var(--sc);
  clip-path:polygon(50% 0%,61% 35%,100% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,0 35%,39% 35%);
  opacity:.55;
  animation:hb-rise var(--sd) linear var(--sdelay) infinite;
}
@keyframes hb-rise{
  0%{transform:translate3d(0,0,0) rotate(0deg);opacity:0}
  12%{opacity:.7}
  100%{transform:translate3d(var(--sdx),-110vh,0) rotate(40deg);opacity:0}
}
@media (prefers-reduced-motion:reduce){.hb-stars i{animation:none!important;opacity:.25}}

body.body-hb .div-shell{
  position:relative;z-index:1;
  display:grid!important;
  grid-template-columns:220px minmax(0,1fr)!important;
  min-height:100vh;max-width:none!important;margin:0!important;padding:0!important;
}
body.body-hb .div-rail{
  position:sticky;top:0;align-self:start;height:100vh;
  min-width:220px;max-width:220px;overflow-y:auto;overflow-x:hidden;
  display:flex;flex-direction:column;gap:18px;
  padding:22px 16px 24px;
  background:linear-gradient(180deg, rgba(61,90,168,.96), rgba(43,184,196,.88) 58%, rgba(123,134,212,.92))!important;
  border:0!important;border-right:0!important;
  box-shadow:8px 0 28px rgba(22,50,74,.12);
}
body.body-hb .div-brand{
  display:flex!important;align-items:center;gap:10px;
  color:#fff!important;font-weight:800;letter-spacing:.02em;
}
body.body-hb .div-brand::before{display:none!important}
body.body-hb .div-brand__mark{
  width:42px;height:42px;border-radius:14px;
  background:
    radial-gradient(circle at 50% 22%, #fff 0 3px, transparent 4px),
    linear-gradient(180deg,#f4d27a,#d4a54a);
  box-shadow:0 0 0 3px rgba(255,255,255,.28);
  font-size:0;color:transparent;position:relative;
}
body.body-hb .div-brand__mark::after{
  content:"";position:absolute;left:50%;bottom:7px;width:10px;height:16px;
  transform:translateX(-50%);
  background:#fff;border-radius:2px 2px 6px 6px;
}
body.body-hb .div-brand__text{color:#fff!important;font-size:1.12rem}
body.body-hb .div-rail__nav{
  display:flex;flex-direction:column;gap:8px;margin:4px 0 0;
}
body.body-hb .div-rail__nav a{
  display:block;padding:9px 14px;border-radius:999px!important;
  color:#eaf4ff!important;background:rgba(255,255,255,.12)!important;
  box-shadow:none!important;font-weight:600;font-size:.92rem;
}
body.body-hb .div-rail__nav a:hover,
body.body-hb .div-rail__nav a[aria-current="page"]{
  background:#fff!important;color:var(--hb-indigo)!important;
}
body.body-hb .div-rail__search{
  display:flex;margin:auto 0 0!important;
  border-radius:999px;overflow:hidden;background:#fff;
}
body.body-hb .div-rail__search input{
  flex:1;min-width:0;border:0!important;background:transparent!important;
  color:var(--hb-ink)!important;padding:10px 12px;font-size:16px!important;border-radius:0!important;
}
body.body-hb .div-rail__search button{
  border:0!important;padding:0 14px;font-weight:700;
  background:var(--hb-gold)!important;color:#16324a!important;border-radius:0!important;
}
body.body-hb .div-maincol{
  min-width:0;min-height:100vh;display:flex;flex-direction:column;
  background:transparent!important;width:auto!important;max-width:none!important;
  margin:0!important;padding:0!important;
}
body.body-hb .div-topbar{
  background:transparent!important;border:0!important;
  width:100%!important;max-width:none!important;margin:0!important;
  padding:16px var(--hb-gutter) 0 var(--hb-gutter-r)!important;
}
body.body-hb .div-topbar__mood{
  display:inline-flex;align-items:center;gap:10px;
  padding:6px 16px;border-radius:999px;
  background:rgba(255,255,255,.78);color:var(--hb-indigo);font-size:.78rem;font-weight:700;
  letter-spacing:.12em;
}
body.body-hb .div-topbar__mood::before{
  content:"";flex:0 0 32px;width:32px;height:8px;border-radius:0;margin:0;
  background:
    radial-gradient(circle at 4px 4px, var(--hb-teal) 0 4px, transparent 4.5px),
    radial-gradient(circle at 16px 4px, var(--hb-lav) 0 4px, transparent 4.5px),
    radial-gradient(circle at 28px 4px, var(--hb-gold) 0 4px, transparent 4.5px);
  box-shadow:none;
}
body.body-hb .page-main{
  max-width:none!important;width:100%!important;margin:0!important;
  padding:12px var(--hb-gutter) 36px var(--hb-gutter-r)!important;
  display:flex;flex-direction:column;gap:0;
}
body.body-hb .div-hero{
  text-align:left!important;align-items:flex-start!important;
  margin:8px 0 24px;padding:24px 26px 26px!important;
  border-radius:24px!important;
  border:1px solid rgba(61,90,168,.12)!important;
  border-left:6px solid var(--hb-teal)!important;
  background:
    linear-gradient(115deg, rgba(255,255,255,.92) 0%, rgba(232,242,251,.88) 46%, rgba(123,134,212,.18) 100%)!important;
  color:var(--hb-ink)!important;box-shadow:none!important;
  min-height:0!important;
}
body.body-hb .div-hero h1,
body.body-hb .div-hero p,
body.body-hb .div-kicker{color:var(--hb-ink)!important;text-align:left}
body.body-hb .div-hero h1{
  font-size:clamp(1.6rem,3vw,2.35rem);margin:6px 0 10px;font-weight:800;letter-spacing:.01em;
  max-width:16em;
}
body.body-hb .div-kicker{
  display:inline-block;padding:4px 12px;border-radius:999px;
  background:rgba(43,184,196,.18);color:var(--hb-indigo)!important;
  letter-spacing:.14em;font-size:.72rem;font-weight:700;
}
body.body-hb .div-hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
body.body-hb .div-btn{
  border-radius:999px!important;padding:10px 18px!important;
  background:linear-gradient(90deg,var(--hb-indigo),var(--hb-teal))!important;
  color:#fff!important;border:0;font-weight:700;
}
body.body-hb .div-btn--ghost{
  background:#fff!important;color:var(--hb-indigo)!important;
  border:1px solid rgba(61,90,168,.25)!important;
}

body.body-hb .div-section{margin:8px 0 28px}
body.body-hb .div-section__head{
  display:flex;justify-content:space-between;align-items:center;
  border-left:0!important;padding:0 4px 12px!important;
  border-bottom:2px dashed rgba(61,90,168,.18);
}
body.body-hb .div-section__head h2{margin:0;color:var(--hb-ink)!important;font-size:1.25rem}
body.body-hb .div-section__head a{color:var(--hb-teal)!important;font-weight:700}

body.body-hb .movie-grid,
body.body-hb .div-grid--rail,
body.body-hb .div-grid--dense{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr))!important;
  gap:16px!important;
}
body.body-hb .div-card{
  background:var(--hb-card)!important;border-radius:22px!important;overflow:hidden;
  border:1px solid rgba(61,90,168,.1)!important;
  box-shadow:0 10px 24px rgba(22,50,74,.06);
}
body.body-hb .div-card:hover{transform:translateY(-3px);border-color:var(--hb-teal)!important}
body.body-hb .div-card__poster{
  display:block!important;width:100%!important;
  aspect-ratio:3/4!important;height:auto!important;overflow:hidden;
}
body.body-hb .div-card__poster img{
  width:100%!important;height:100%!important;
  aspect-ratio:unset!important;object-fit:cover!important;
}
body.body-hb .div-card__badge{
  left:auto!important;right:8px;top:8px;
  border-radius:999px!important;
  background:linear-gradient(135deg,var(--hb-gold),var(--hb-teal))!important;
  color:#16324a!important;
}
body.body-hb .div-card__body{padding:10px 12px 14px;background:#fff}
body.body-hb .div-card__body h3 a{color:var(--hb-ink)!important}
body.body-hb .div-card__body p span:first-child{color:var(--hb-teal)!important}

body.body-hb .page-main > .div-crumb{order:0}
body.body-hb .page-main > .div-play__player{order:1}
body.body-hb .page-main > .div-play{order:2}
body.body-hb .page-main > .div-section{order:3}
body.body-hb .div-crumb{order:0;margin:4px 0 12px}
body.body-hb .div-play__player{
  order:1;margin:0 0 18px!important;padding:14px 14px 10px;
  border-radius:24px;
  background:linear-gradient(180deg,#1c3558,#16324a);
  border:1px solid rgba(43,184,196,.35);
}
body.body-hb .div-play__player h2{color:#eaf4ff!important;font-size:1rem;margin:0 0 10px}
body.body-hb .div-play__player video,
body.body-hb #movie-player,
body.body-hb video[controls]{
  width:100%!important;border-radius:16px;background:#000;
  aspect-ratio:16/9;object-fit:contain;
  border:0!important;max-height:none!important;height:auto!important;
}
body.body-hb .div-play__full{display:none}
body.body-hb .div-play{
  order:2;
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  gap:16px 18px!important;align-items:center;
  margin:0 0 22px!important;padding:16px 18px;
  border-radius:22px;
  background:#fff!important;
  border:1px solid rgba(61,90,168,.12)!important;
  max-width:100%!important;
}
body.body-hb .div-play__poster{
  width:120px!important;max-width:120px!important;
  aspect-ratio:auto!important;height:auto!important;margin:0!important;
}
body.body-hb .div-play__poster img{
  width:120px!important;height:180px!important;max-width:none!important;
  aspect-ratio:2/3!important;object-fit:cover;border-radius:16px;
}
body.body-hb .div-play h1{margin:0 0 8px;font-size:1.45rem;color:var(--hb-ink)!important}
body.body-hb .div-play__tags{display:flex;flex-wrap:wrap;gap:6px}
body.body-hb .div-play__tags span{
  border-radius:999px!important;padding:3px 10px!important;margin:0!important;
  background:rgba(43,184,196,.14)!important;color:var(--hb-indigo)!important;
}
body.body-hb .div-play .div-btn{margin-top:10px;display:inline-flex}

body.body-hb .category-grid.large,
body.body-hb .category-grid{
  display:grid!important;grid-template-columns:1fr!important;gap:12px!important;
}
@media (min-width:720px){
  body.body-hb .category-grid.large{grid-template-columns:1fr 1fr!important}
}
body.body-hb .overview-card{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:16px 18px 16px 20px;border-radius:18px;
  background:#fff;border:1px solid rgba(61,90,168,.1);
  border-left:8px solid var(--hb-teal);
  text-decoration:none;
}
body.body-hb .overview-card:nth-child(2n){border-left-color:var(--hb-indigo)}
body.body-hb .overview-card:nth-child(3n){border-left-color:var(--hb-gold)}
body.body-hb .overview-card:nth-child(4n){border-left-color:var(--hb-lav)}
body.body-hb .overview-card::before{content:none!important;display:none!important}
body.body-hb .overview-main{min-width:0;flex:1}
body.body-hb .overview-main strong{display:block;color:var(--hb-ink);font-size:1.05rem}
body.body-hb .overview-main span{color:var(--hb-sub);font-size:.86rem}
body.body-hb .overview-links{color:var(--hb-teal);font-size:.8rem;text-align:right;flex:0 0 auto;white-space:nowrap}

body.body-hb .div-pagehead h1{color:var(--hb-ink)!important;text-align:left}
body.body-hb .compact-hero{text-align:left;padding:12px 4px 18px}
body.body-hb .filter-panel{gap:8px}
body.body-hb .filter-panel input,
body.body-hb .filter-panel select{
  border-radius:999px!important;background:#fff!important;color:var(--hb-ink)!important;
  border:1px solid rgba(61,90,168,.18)!important;padding:8px 14px;font-size:16px!important;
}

body.body-hb .div-section > h2{
  margin:0 0 14px!important;padding:0 0 12px!important;text-align:left!important;
  border-bottom:2px dashed rgba(61,90,168,.18);font-size:1.25rem;color:var(--hb-ink)!important;
}
body.body-hb .div-footer{
  width:100%!important;max-width:none!important;
  margin:0!important;padding:22px var(--hb-gutter) 28px var(--hb-gutter-r)!important;
  background:#16324a!important;
  color:rgba(255,255,255,.7)!important;border:0!important;
  display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:flex-start;align-items:center;
}
body.body-hb .div-footer a{color:#fff!important}

body.body-hb .image-off{opacity:.4;background:#9bb8d0}

@media (max-width:900px){
  body.body-hb .div-shell{grid-template-columns:1fr!important}
  body.body-hb .div-rail{
    position:relative;height:auto;max-width:none;min-width:0;
    flex-direction:row;flex-wrap:wrap;align-items:center;
    padding:12px 14px;
  }
  body.body-hb .div-rail__nav{flex-direction:row;flex-wrap:wrap;width:100%}
  body.body-hb .div-rail__search{margin:0!important;width:100%}
  body.body-hb .div-play{grid-template-columns:88px minmax(0,1fr)!important}
  body.body-hb .div-play__poster img{width:88px!important;height:132px!important}
  body.body-hb .movie-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (min-width:1100px){
  body.body-hb .movie-grid,
  body.body-hb .div-grid--rail{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
body.body-hb a,body.body-hb button{touch-action:manipulation}

/* 压过 layout-fix 的居中 1200：主栏与侧栏、页脚同一边距 */
body.body-hb main,
body.body-hb .page-main,
body.body-hb .div-topbar,
body.body-hb .div-footer{
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
body.body-hb header.div-topbar{
  width:100%!important;max-width:none!important;
}

/* 跨端：安全区、触控、iOS 输入 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.body-hb{padding-bottom:env(safe-area-inset-bottom)}
body.body-hb input,body.body-hb select,body.body-hb button{touch-action:manipulation}
body.body-hb .div-rail__nav a{min-height:40px}
@media (max-width:900px){
  body.body-hb .div-rail__search input,
  body.body-hb .filter-panel input,
  body.body-hb .filter-panel select{font-size:16px!important}
}
