/* SPA→静态视觉桥 · sunset-brick 砖红黄昏 */
:root {
  --pink: #b84233;
  --blue: #b84233;
  --brand: #b84233;
  --accent: #b84233;
  --portal-accent: #b84233;
  --bg: #f5e8d8;
  --surface: #fffbf5;
  --surface-2: #f0dfc8;
  --text: #3d2914;
  --muted: #7a5c44;
  --card: #fffbf5;
  --header-bg: #fffbf5;
  --body-bg: #f5e8d8;
  color-scheme: light;
}

html, body {
  background: #f5e8d8 !important;
  color: #3d2914 !important;
}

body, .page, .site-wrap, .app-shell, .layout, .main-wrap, #app, .page-main {
  background: #f5e8d8 !important;
  color: #3d2914 !important;
}

.site-header, .header, .topbar, .nav-bar, .header-main, .portal-header,
header.site-header, .header-bar, .hnyj-header {
  background: #fffbf5 !important;
  border-bottom-color: #b84233 !important;
  color: #3d2914 !important;
}

.brand-text, .brand-mark, .site-brand, .logo-text,
.header-brand__title, .site-title, .brand a,
.hnyj-header__brand {
  color: #3d2914 !important;
}

.main-nav a, .header-main-nav__link, .nav a, .site-nav a {
  color: #7a5c44 !important;
}

.main-nav a:hover, .main-nav a[aria-current="page"],
.header-main-nav__link:hover, .header-main-nav__link[aria-current="page"],
.nav a:hover, .nav a.active {
  color: #b84233 !important;
}

.nav-search button, .btn-primary, .hero-actions .btn:first-child,
button[type="submit"], .primary-btn, .btn-accent,
.hnyj-btn--primary, .hnyj-btn--accent {
  background: #b84233 !important;
  border-color: transparent !important;
  color: #fff !important;
}

.card, .movie-card, .poster-card, .grid-card, .media-card, .item-card,
.dsj-vcard {
  background: #fffbf5 !important;
  border-color: rgba(61, 41, 20, 0.14) !important;
  color: #3d2914 !important;
}

.section-title, h1, h2, h3, .home-h1, .page-title, .hnyj-page-title {
  color: #3d2914 !important;
}

.footer, .site-footer, footer, .hnyj-footer {
  background: #3d2914 !important;
  color: #f0dfc8 !important;
}

a { color: #b84233; }

.hnyj-btn--primary,
.hnyj-btn--accent {
  background: #b84233 !important;
  background-image: none !important;
}

.hnyj-header__brand {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.hnyj-footer__glow {
  background: radial-gradient(ellipse, rgba(184, 66, 51, 0.18) 0%, transparent 70%) !important;
}

.hnyj-footer__logo-icon {
  background: #b84233 !important;
  box-shadow: 0 4px 14px rgba(184, 66, 51, 0.28) !important;
}

.hnyj-footer__title {
  border-image: linear-gradient(90deg, #b84233, transparent) 1 !important;
}

.hnyj-cta {
  background: #fffbf5 !important;
  background-image: none !important;
  border-color: rgba(61, 41, 20, 0.14) !important;
}

.hnyj-pagination__num.is-active {
  background: #b84233 !important;
  background-image: none !important;
  box-shadow: 0 4px 14px rgba(184, 66, 51, 0.28) !important;
}

.hnyj-hero-dot.is-active {
  background: #b84233 !important;
}

.hnyj-section-head__more:hover {
  color: #8f2f24 !important;
}

.hnyj-watch-ad {
  background: #fffbf5 !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(61, 41, 20, 0.14);
  color: #3d2914 !important;
}

.hnyj-footer {
  background: #3d2914 !important;
  border-top-color: #b84233 !important;
}

.hnyj-footer__link {
  color: rgba(240, 223, 200, 0.82) !important;
}

.hnyj-footer__link:hover {
  color: #fff !important;
}

.hnyj-watch-panel {
  background: #fffbf5 !important;
  border-color: rgba(61, 41, 20, 0.14) !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;
  }
}

