/* m80 → 静态桥 · copper-studio 铜锈工作室（深褐底 + 铜金 + 米灰字） */
:root {
  --bg: #1a1410;
  --bg2: #231c16;
  --card: #2d241c;
  --text: #e8dfd4;
  --muted: #a89888;
  --line: #4a3d32;
  --gold: #b87333;
  --gold-dim: rgba(184, 115, 51, 0.14);
  --red: #c45c4a;
  --radius: 12px;

  --mz-primary: #b87333;
  --mz-primary-deep: #9a6228;
  --mz-primary-bright: #d4a056;
  --mz-bg: #1a1410;
  --mz-bg-2: #231c16;
  --mz-surface: #2d241c;
  --mz-surface-soft: #362c22;
  --mz-ink: #e8dfd4;
  --mz-ink-soft: #c9bfb0;
  --mz-muted: #a89888;
  --mz-line: #4a3d32;
  --mz-line-strong: #5c4a3a;
  --mz-pill-bg: rgba(184, 115, 51, 0.18);
  --mz-pill-ink: #d4a056;
  --mz-cyan: #c8894a;
  --mz-cyan-bright: #e0b878;
  --mz-dark-0: #120e0b;
  --mz-dark-1: #1a1410;
  --mz-dark-2: #2d241c;
  --mz-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --mz-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --mz-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);

  --copper-accent: #b87333;
  --copper-accent-deep: #9a6228;
  --copper-accent-soft: rgba(184, 115, 51, 0.14);
  --copper-surface: #2d241c;
  --copper-ink: #e8dfd4;
  color-scheme: dark;
}

html,
body,
.page-main,
.mzy-home__wrap,
.mzy-page__wrap {
  background-color: var(--mz-bg) !important;
  color: var(--mz-ink) !important;
}

body.body-tpl-mzy {
  background: linear-gradient(180deg, #1a1410 0%, var(--mz-bg) 38%, var(--mz-bg-2) 100%) !important;
}

body.body-tpl-mzy .mzy-btn--primary {
  background: linear-gradient(135deg, var(--mz-primary) 0%, var(--mz-primary-deep) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(184, 115, 51, 0.28);
}

body.body-tpl-mzy .mzy-btn--primary:hover {
  background: linear-gradient(135deg, var(--mz-primary-bright) 0%, var(--mz-primary) 100%) !important;
}

body.body-tpl-mzy .mzy-tab.is-active {
  background: var(--mz-primary) !important;
  color: #fff !important;
  border-color: var(--mz-primary) !important;
}

body.body-tpl-mzy .mzy-card__score {
  background: var(--mz-primary) !important;
  color: #fff !important;
}

body.body-tpl-mzy .mzy-card__hover path {
  fill: var(--mz-primary-deep) !important;
}

body.body-tpl-mzy .mzy-rankblock {
  background: linear-gradient(145deg, #2d241c 0%, #1a1410 100%) !important;
  border: 1px solid var(--mz-line) !important;
}

body.body-tpl-mzy .mzy-channel__ico {
  background: var(--mz-pill-bg) !important;
  color: var(--mz-pill-ink) !important;
  border: 1px solid rgba(184, 115, 51, 0.25);
}

body.body-tpl-mzy .mzy-footer {
  background: #120e0b !important;
}

body.body-tpl-mzy .mzy-header {
  background: rgba(26, 20, 16, 0.94) !important;
  border-bottom-color: var(--mz-line) !important;
}

body.body-tpl-mzy .mzy-brand__mark {
  background: linear-gradient(135deg, var(--mz-primary) 0%, var(--mz-primary-deep) 100%) !important;
}

body.body-tpl-mzy .mzy-nav__a {
  color: var(--mz-ink-soft) !important;
}

body.body-tpl-mzy .mzy-nav__a:hover,
body.body-tpl-mzy .mzy-nav__a[aria-current="page"] {
  color: var(--mz-primary-bright) !important;
}

body.body-tpl-mzy .mzy-search button {
  background: var(--mz-primary) !important;
}

body.body-tpl-mzy .mzy-sec__h,
body.body-tpl-mzy .mzy-sec__h--invert {
  color: var(--mz-ink) !important;
}

body.body-tpl-mzy .mzy-card {
  background: var(--mz-surface) !important;
  border-color: var(--mz-line) !important;
}

body.body-tpl-mzy .mzy-card__title a {
  color: var(--mz-ink) !important;
}

body.body-tpl-mzy .mzy-card__desc,
body.body-tpl-mzy .mzy-card__top span {
  color: var(--mz-muted) !important;
}

body.body-tpl-mzy .mzy-search input {
  color: var(--mz-ink) !important;
  background: transparent !important;
}

body.body-tpl-mzy .mzy-search input::placeholder {
  color: var(--mz-muted) !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;
  }
}

