/* 8 · scan/hud · 独立皮肤 */
:root { --s8-accent:#94a3b8; --s8-bg:#0b1220; --s8-ink:#e2e8f0; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body.s8-body {
  margin:0; min-height:100dvh; background:#0b1220; color:#e2e8f0;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; line-height:1.55; overflow-x:hidden;
  padding-bottom:env(safe-area-inset-bottom);
}
body.s8-body > *:not(.s8-fx) { position:relative; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button, input, select { font:inherit; }
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left:8px; top:8px; z-index:80; padding:8px 12px; background:#94a3b8; color:#0b1220; }

.s8-head { position:sticky; top:0; z-index:40; background:#070d16; border-bottom:1px solid #314155; }
.s8-head__bar {
  width:min(1160px, calc(100% - 24px));
  margin:0 auto;
  min-height:64px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
}
.s8-logo { display:flex; align-items:center; gap:10px; min-width:0; }
.s8-logo i {
  width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center;
  background:#94a3b8; color:#0b1220; font-style:normal; font-weight:800; border-radius:2px;
}
.s8-logo span { display:flex; flex-direction:column; line-height:1.15; min-width:0; }
.s8-logo strong { font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:42vw; }
.s8-logo em { font-style:normal; font-size:11px; color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:46vw; }
.s8-nav { display:flex; justify-content:center; gap:20px; }
.s8-nav a { padding:8px 0; font-weight:700; }
.s8-nav a:hover { color:#94a3b8; }
.s8-search { display:flex; height:40px; border:1px solid #314155; overflow:hidden; background:#152033; border-radius:2px; }
.s8-search input { border:0; width:140px; padding:0 12px; background:transparent; color:#e2e8f0; min-width:0; }
.s8-search button { border:0; background:#94a3b8; color:#0b1220; padding:0 14px; font-weight:800; cursor:pointer; }
.s8-toggle { display:none; width:44px; height:44px; border:1px solid #314155; background:transparent; color:#e2e8f0; padding:10px 9px; }
.s8-toggle span { display:block; height:2px; margin:5px 0; background:#94a3b8; }
.s8-mask { display:none; }

.s8-kicker { margin:0 0 8px; color:#94a3b8; font-size:12px; font-weight:800; letter-spacing:.16em; }
.s8-hero { width:min(1160px, calc(100% - 24px)); margin:28px auto 8px; }
.s8-hero h1, .s8-page h1 { margin:0 0 10px; font-size:clamp(26px, 5vw, 44px); line-height:1.2; }
.s8-lead, .s8-hero p { color:#94a3b8; }
.s8-btn, .s8-ghost {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 18px; font-weight:800; border-radius:2px;
}
.s8-btn { background:#94a3b8; color:#0b1220; }
.s8-ghost { border:1px solid #94a3b8; color:#94a3b8; }
.s8-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.s8-chips { display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:20px 0 0; padding:0; }
.s8-chips a { display:inline-flex; min-height:36px; align-items:center; padding:0 14px; border:1px solid #314155; border-radius:2px; }

.s8-wrap, .s8-page { width:min(1160px, calc(100% - 24px)); margin:24px auto 56px; }
.s8-headrow { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:28px 0 14px; }
.s8-headrow h2 { margin:0; font-size:clamp(18px, 3vw, 24px); }
.s8-headrow a { color:#94a3b8; font-size:13px; white-space:nowrap; }
.s8-grid { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:14px; }
.s8-card { min-width:0; transition: transform .25s ease, box-shadow .25s ease; }
.s8-card a { display:block; background:#152033; border:1px solid #314155; border-radius:2px; overflow:hidden; }
.s8-card__media { position:relative; overflow:hidden; background:#111; }
.s8-card__media img { width:100%; aspect-ratio:3/4; object-fit:cover; transition: transform .6s ease; }
.s8-card__shine { position:absolute; inset:0; pointer-events:none; }
.s8-card:hover img { transform: scale(1.06); }
.s8-card b {
  position:absolute; left:8px; bottom:8px; padding:2px 6px;
  background:#94a3b8; color:#0b1220; font-size:11px; border-radius:4px;
}
.s8-card span { display:block; padding:9px 10px 12px; font-size:13px; font-weight:700; line-height:1.35; }

.s8-cats { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin:16px 0 28px; }
.s8-cats a, .s8-cats .overview-card { display:block; padding:16px; background:#152033; border:1px solid #314155; border-radius:2px; }
.s8-filters { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 18px; }
.s8-filters input, .s8-filters select {
  min-height:44px; border:1px solid #314155; border-radius:10px; padding:0 12px; background:#152033; color:#e2e8f0;
}
.s8-play video { width:100%; background:#000; border-radius:2px; }
.s8-play dl { display:flex; gap:24px; flex-wrap:wrap; }
.s8-play dt { font-size:12px; color:#94a3b8; }
.s8-foot {
  width:min(1160px, calc(100% - 24px)); margin:0 auto; padding:24px 0 calc(28px + env(safe-area-inset-bottom));
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:#94a3b8; font-size:13px; border-top:1px solid #314155;
}
.s8-foot nav { display:flex; gap:14px; }


.s8-fx { position:fixed; inset:0; pointer-events:none; z-index:0; background:repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(56,189,248,.04) 3px); animation:s8-scan 8s linear infinite; }
.s8-kicker { font-family:"Sarasa Mono SC","Cascadia Mono","Consolas",monospace; }
.s8-card a { outline:1px solid #314155; }
.s8-card:hover { outline-color:#38bdf8; box-shadow:0 0 18px rgba(56,189,248,.25); }
@keyframes s8-scan { to { background-position: 0 80px; } }

@media (max-width: 1080px) {
  .s8-grid { grid-template-columns:repeat(4, minmax(0,1fr)); }
  .s8-hero, .s8-cols { grid-template-columns:1fr !important; }
}
@media (max-width: 900px) {
  .s8-toggle { display:block; grid-area:toggle; }
  .s8-head__bar {
    grid-template-areas: "logo toggle" "search search";
    grid-template-columns: 1fr auto;
  }
  .s8-logo { grid-area:logo; }
  .s8-search { grid-area:search; width:100%; }
  .s8-search input { width:100%; flex:1; }
  .s8-nav {
    position:fixed; inset:0 0 0 auto; width:min(280px, 86vw);
    flex-direction:column; justify-content:flex-start; gap:4px;
    padding: max(72px, env(safe-area-inset-top)) 20px 24px;
    background:#152033; color:#e2e8f0;
    transform:translateX(100%); transition: transform .28s ease; z-index:50;
  }
  .s8-nav a { min-height:48px; display:flex; align-items:center; border-bottom:1px solid #314155; }
  .s8-nav.open { transform:none; }
  .s8-mask.open { display:block; position:fixed; inset:0; background:#0007; z-index:45; }
  .s8-grid { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .s8-hero { margin-top:18px; }
}
@media (max-width: 640px) {
  .s8-grid, .s8-grid--feat { grid-template-columns:repeat(2, minmax(0,1fr)) !important; gap:10px; }
  .s8-cats { grid-template-columns:1fr; }
  .s8-logo em { display:none; }
  .s8-hero h1 { font-size:clamp(22px, 7vw, 30px); }
  .s8-filters { display:grid; grid-template-columns:1fr 1fr; }
  .s8-filters input { grid-column:1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* === LAYOUT ALIGN v3 === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; min-width: 0; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { min-width: 0; }
.container,
.nx-container,
.jx-container {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.bbaseo-fly,
.bbaaseo-fly,
[class*="bbaseo-fly"],
[class*="bbaaseo-fly"] { display: none !important; }

.s2-head__bar-inner,
.dsj-header__bar,
.mzy-header__inner,
.header-inner,
.m68-header__inner,
.vlt-header__inner,
.jx-header__row,
.yzz-site-header__top-inner,
.nav-inner,
.nx-header__bar,
.site-head__top,
.paper-head__top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 16px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.s2-grid,
.s2-grid--dense,
.s2-grid--channel,
.s2-grid--related,
.s2-grid--rank,
.s2-home .movie-grid,
.movie-grid,
.mother-cards,
.paper-card-grid,
.cq-card-grid,
.cq-card-grid--dense,
.nx-poster-grid,
.nx-poster-grid--feat,
.nx-poster-grid--std,
.mzy-grid,
.dsj-grid,
.pop-grid,
.yzz-grid,
.arctic-grid,
.vod-grid,
.category-grid,
.home-section .mother-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
ul.mother-cards > li,
ul.paper-card-grid > li {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tuy-card,
.fsp-hl-card,
.mzy-card,
.s2-card,
.paper-vcard,
.wythy-vcard,
.vod-poster-card,
.yzz-poster-card,
.arctic-card,
.movie-card,
.nx-card,
.overview-card,
.dsj-card,
.vlt-card,
.m68-card,
.jx-card,
[data-card] {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: none !important;
}
.tuy-card__media,
.fsp-hl-card__media,
.mzy-card__media,
.s2-card__media,
.paper-vcard__poster,
.wythy-vcard__poster-wrap,
.poster-frame,
.nx-card__poster,
.vod-poster-card__link .poster-frame {
  width: 100% !important;
  display: block !important;
  position: relative !important;
}
.tuy-card img,
.fsp-hl-card img,
.mzy-card__img,
.s2-card__media img,
.paper-vcard__poster img,
.wythy-vcard__poster,
.poster-frame img,
.nx-card__poster img,
.arctic-card img,
.movie-card img,
.vod-poster-card img,
.overview-card img,
[data-card] img {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.s2-hero__grid,
.hero-portal__inner,
.paper-hero__inner,
.nx-hero__grid,
.dsj-hero,
.mzy-hero,
.vlt-hero {
  min-width: 0 !important;
}

.page-main,
.s2-home,
.s2-cat,
.s2-play,
.home-wrap,
.paper-home {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1080px) {
  .s2-grid,
  .s2-grid--dense,
  .movie-grid,
  .mother-cards,
  .paper-card-grid,
  .cq-card-grid,
  .nx-poster-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  .s2-grid,
  .s2-grid--dense,
  .s2-grid--channel,
  .s2-grid--related,
  .s2-grid--rank,
  .s2-home .movie-grid,
  .movie-grid,
  .mother-cards,
  .paper-card-grid,
  .cq-card-grid,
  .nx-poster-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .s2-hero__grid,
  .hero-portal__inner,
  .paper-hero__inner,
  .nx-hero__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .s2-burger,
  .mzy-burger,
  .header-nav-toggle,
  .paper-nav-toggle,
  .dsj-nav-toggle,
  .m68-header__menu,
  .vlt-header__menu,
  .jx-header__toggle,
  .yzz-site-header__toggle,
  .mobile-toggle,
  .nx-header__toggle,
  [data-nav-toggle] {
    display: inline-flex !important;
  }
}
@media (max-width: 640px) {
  .s2-grid,
  .s2-grid--dense,
  .s2-grid--channel,
  .s2-grid--related,
  .s2-grid--rank,
  .s2-home .movie-grid,
  .movie-grid,
  .mother-cards,
  .paper-card-grid,
  .cq-card-grid,
  .nx-poster-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}


/* === SKIN HARDEN v1 === */
img, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; background: #1a2234; }
[hidden] { display: none !important; }

[data-mobile-menu]:not(.is-open):not(.open),
[data-nav-drawer]:not(.is-open):not(.open),
.m68-header__drawer:not(.is-open),
.vlt-header__drawer:not(.is-open),
.jx-header__drawer:not(.is-open),
.s2-drawer:not(.is-open),
.dsj-drawer:not(.is-open),
.paper-drawer:not(.is-open),
.header-drawer:not(.is-open) {
  display: none !important;
}

.m68-header__overlay:not(.is-open),
.jx-header__backdrop[hidden],
.jx-header__backdrop:not(.is-open),
[data-sidebar-overlay]:not(.is-open):not(.open) {
  display: none !important;
}

@media (min-width: 901px) {
  .m68-header__inner,
  .vlt-header__inner,
  .dsj-header__bar,
  .mzy-header__inner,
  .header-inner,
  .jx-header__row,
  .s2-head__bar-inner,
  .paper-head__top,
  .site-head__top,
  .yzz-site-header__top-inner,
  .nx-header__bar,
  .nav-inner,
  .s8-head__bar,
  .arctic-header__inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px 20px !important;
    width: 100% !important;
  }
  .m68-header__menu,
  .vlt-header__menu,
  .jx-header__toggle,
  [data-nav-toggle] {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .m68-header__nav,
  .vlt-header__nav,
  .dsj-header__nav,
  .mzy-nav,
  .s2-nav,
  .paper-nav,
  .jx-header__nav,
  .s8-nav {
    display: none !important;
  }
  .m68-header__search,
  .vlt-header__search {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .m68-header__menu,
  .vlt-header__menu,
  [data-nav-toggle] {
    display: inline-flex !important;
  }
  .m68-hero__grid,
  .vlt-hero__grid,
  .paper-hero__inner,
  .s2-hero__grid,
  .hero-cq__grid,
  .dsj-hero,
  .jx-hero__grid {
    grid-template-columns: 1fr !important;
  }
  .m68-hero__stats,
  .vlt-hero__stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .m68-grid,
  .vlt-grid,
  .s2-grid,
  .paper-card-grid,
  .cq-card-grid,
  .mzy-grid,
  .dsj-grid,
  .jx-card-grid,
  .movie-grid,
  .mother-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .m68-hero__stats,
  .vlt-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .m68-hero__stats dt, .vlt-hero__stats dt { font-size: 11px !important; }
  .m68-hero__stats dd, .vlt-hero__stats dd { font-size: 16px !important; }
  .m68-hero__title, .vlt-hero__title { font-size: clamp(22px, 6.4vw, 30px) !important; line-height: 1.25 !important; }
  .m68-spotlight, .vlt-spotlight { max-height: 300px; overflow: hidden; }
  .m68-spotlight__img, .vlt-spotlight__img { max-height: 300px; object-fit: cover; }
}

.m68-card__frame,
.vlt-card__frame,
.s2-card__media,
.paper-vcard__poster,
.jx-card__poster,
.cq-card__poster,
.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #1a2234;
}
.m68-card__img,
.vlt-card__img,
.m68-spotlight__img,
.vlt-spotlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === PLATFORM + SEO POLISH === */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
img, video { max-width:100%; height:auto; }
video { width:100%; }
input, select, textarea, button { font-size:16px; }
a, button, [data-nav-toggle] { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
body.nav-open { overflow:hidden; }
[hidden] { display:none !important; }
img.image-off { visibility:hidden; }
