/* paper-ink · 站点 id=1 · 米白纸感影视站 · 墨黑字 + 朱红点缀 */
:root {
  --paper-page: #f7f2e8;
  --paper-page-2: #efe8da;
  --paper-surface: #faf6ef;
  --paper-card: #fffdf8;
  --paper-ink: #1c1917;
  --paper-ink-muted: #57534e;
  --paper-line: rgba(28, 25, 23, 0.1);
  --paper-line-strong: rgba(28, 25, 23, 0.16);
  --paper-vermillion: #c0392b;
  --paper-vermillion-dark: #922b21;
  --paper-vermillion-light: #e74c3c;
  --paper-vermillion-soft: rgba(192, 57, 43, 0.12);
  --paper-gold: #b45309;
  --paper-gold-soft: rgba(180, 83, 9, 0.1);
  --paper-nav: #1c1917;
  --paper-footer: #141210;
  --paper-footer-deep: #0a0908;
  --paper-radius-lg: 14px;
  --paper-radius-md: 10px;
  --paper-shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --paper-shadow-md: 0 4px 18px rgba(28, 25, 23, 0.08);
  --paper-shadow-lg: 0 10px 36px rgba(28, 25, 23, 0.12);
}

/* ── 全局页面 ── */
body.paper-site {
  background-color: var(--paper-page);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(192, 57, 43, 0.04), transparent 55%),
    linear-gradient(180deg, var(--paper-surface) 0%, var(--paper-page) 38%, var(--paper-page-2) 100%);
  color: var(--paper-ink);
}

.paper-main {
  flex: 1;
  padding: 0 0 2.5rem;
  min-width: 0;
}

.container {
  width: min(80rem, calc(100% - 32px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ── 顶栏 ── */
.paper-top-strip {
  background: var(--paper-ink);
  color: rgba(250, 246, 239, 0.88);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  border-bottom: 2px solid var(--paper-vermillion);
}

.paper-header.site-header--main {
  background: var(--paper-surface);
  border-bottom: 1px solid var(--paper-line);
  box-shadow: var(--paper-shadow-sm);
}

.paper-site .site-head__logo,
.paper-brand__mark {
  background: var(--paper-ink);
  color: var(--paper-vermillion-light);
  box-shadow: inset 0 0 0 2px rgba(192, 57, 43, 0.35);
  font-size: 0.8125rem;
  border-radius: 8px;
}

.paper-site .site-head__title {
  color: var(--paper-ink);
  letter-spacing: -0.02em;
}

.paper-site .site-head__tagline {
  color: var(--paper-ink-muted);
}

.paper-site .site-head__search {
  border-color: var(--paper-line-strong);
  background: var(--paper-card);
}

.paper-site .site-head__search-btn {
  background: var(--paper-vermillion);
  color: #fff;
}

.paper-site .site-head__search-btn:hover {
  background: var(--paper-vermillion-dark);
}

.paper-site .site-head__search:focus-within {
  border-color: rgba(192, 57, 43, 0.45);
  box-shadow: 0 0 0 3px var(--paper-vermillion-soft);
}

.paper-nav-band.site-head__band--primary {
  background: var(--paper-nav);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.paper-site .site-head__nav-link--active,
.paper-site .site-head__nav-link:hover {
  color: #fff;
  background: rgba(192, 57, 43, 0.22);
}

.paper-cat-band.site-head__band--cats {
  background: var(--paper-card);
  border-top: 1px solid var(--paper-line);
}

.paper-site .site-head__cat-link--active,
.paper-site .site-head__cat-link:hover {
  border-color: rgba(192, 57, 43, 0.35);
  color: var(--paper-vermillion-dark);
  background: var(--paper-vermillion-soft);
}

.paper-site .site-head__cat-link--active {
  background: var(--paper-vermillion);
  color: #fff !important;
  border-color: transparent;
}

.paper-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 8px;
  background: var(--paper-card);
  color: var(--paper-ink);
  cursor: pointer;
}

.paper-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(28, 25, 23, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.paper-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Hero 首页 ── */
.paper-hero.hero-portal {
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper-surface);
}

.paper-hero__bg.hero-portal__bg {
  background:
    linear-gradient(135deg, rgba(28, 25, 23, 0.03) 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(225deg, rgba(28, 25, 23, 0.02) 25%, transparent 25%) -20px 0 / 40px 40px,
    linear-gradient(180deg, var(--paper-surface) 0%, var(--paper-page) 100%);
  opacity: 1;
}

.paper-hero__inner {
  position: relative;
  z-index: 1;
}

.paper-hero__copy {
  max-width: 42rem;
  padding: 2.5rem 0 2.75rem;
}

.paper-hero .hero-portal__kicker {
  color: var(--paper-vermillion);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.paper-hero .hero-portal__title {
  color: var(--paper-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.paper-hero .hero-portal__lead {
  color: var(--paper-ink-muted);
  line-height: 1.7;
}

.paper-hero .hero-portal__btn--primary {
  background: var(--paper-vermillion);
  color: #fff;
  border: none;
  font-weight: 700;
}

.paper-hero .hero-portal__btn--primary:hover {
  background: var(--paper-vermillion-dark);
}

.paper-hero .hero-portal__btn--ghost {
  border: 1px solid var(--paper-line-strong);
  color: var(--paper-ink);
  background: var(--paper-card);
}

.paper-hero .hero-portal__btn--ghost:hover {
  border-color: var(--paper-vermillion);
  color: var(--paper-vermillion-dark);
}

.paper-hero__pills {
  margin-top: 1.25rem;
}

.paper-hero .hero-portal__pill {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  color: var(--paper-ink);
  font-weight: 600;
}

.paper-hero .hero-portal__pill:hover {
  border-color: var(--paper-vermillion);
  color: var(--paper-vermillion-dark);
  background: var(--paper-vermillion-soft);
}

/* ── 首页内容区 ── */
.paper-home {
  padding: 1.5rem 0 0;
}

.paper-sheet.home-sheet {
  border-radius: var(--paper-radius-lg);
  border: 1px solid var(--paper-line);
  box-shadow: var(--paper-shadow-md);
  overflow: hidden;
  background: var(--paper-card);
}

.paper-section.home-section {
  padding: 1.5rem 1.25rem 1.65rem;
  border-bottom: 1px solid var(--paper-line);
}

.paper-section.home-section:last-child {
  border-bottom: none;
}

.paper-section__head h2,
.paper-page-head__title,
.paper-play-title,
.mother-related h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper-ink);
  line-height: 1.35;
}

.paper-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.paper-section__head h2 {
  padding-left: 11px;
  border-left: 3px solid var(--paper-vermillion);
}

.paper-site .cq-link-all {
  color: var(--paper-vermillion);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

.paper-site .cq-link-all:hover {
  color: var(--paper-vermillion-dark);
}

.paper-section--spaced {
  margin: 1.5rem auto 0;
  padding-bottom: 1rem;
}

/* ── 卡片网格 ── */
.mother-cards,
.paper-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.mother-cards > li,
.paper-card-grid > li {
  min-width: 0;
}

.paper-vcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--paper-radius-md);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-top: 2px solid var(--paper-vermillion);
  box-shadow: var(--paper-shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.paper-vcard:hover {
  transform: translateY(-2px);
  border-top-color: var(--paper-vermillion-light);
  box-shadow: var(--paper-shadow-lg);
}

.paper-vcard__poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #e7e0d4, #d6cfc3);
}

.paper-vcard__poster--compact {
  aspect-ratio: 3 / 4;
}

.paper-vcard__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.paper-vcard:hover .paper-vcard__poster img {
  transform: scale(1.04);
}

.paper-vcard__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: var(--paper-vermillion);
}

.paper-vcard__year {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: rgba(28, 25, 23, 0.72);
}

.paper-vcard__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(28, 25, 23, 0.32);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.paper-vcard:hover .paper-vcard__play {
  opacity: 1;
}

.paper-vcard__body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wythy-vcard__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--paper-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-vcard__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paper-ink-muted);
  margin-top: auto;
}

.paper-vcard__meta span {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-gold-soft);
  color: var(--paper-gold);
}

.paper-vcard--compact {
  flex-direction: row;
  min-height: 120px;
}

.paper-vcard--compact .paper-vcard__poster--compact {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 100%;
  min-height: 120px;
}

.paper-vcard--compact .paper-vcard__body {
  justify-content: center;
}

/* ── 内页头部 ── */
.paper-page-head {
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper-surface);
}

.paper-page-head--compact {
  padding: 1.35rem 0 1.1rem;
}

.paper-page-head__desc {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--paper-ink-muted);
  max-width: 40rem;
}

.paper-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--paper-ink-muted);
}

.paper-breadcrumb a {
  color: var(--paper-vermillion);
  text-decoration: none;
}

.paper-breadcrumb a:hover {
  color: var(--paper-vermillion-dark);
}

/* ── 分类块 ── */
.paper-cats-page {
  padding: 1.25rem 0;
}

.paper-cat-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.paper-cat-blocks .category-tile,
.paper-cat-blocks .overview-card,
.paper-cat-blocks > a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.25rem 1.1rem;
  border-radius: var(--paper-radius-md);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--paper-vermillion);
  background: var(--paper-card);
  box-shadow: var(--paper-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.paper-cat-blocks > a:hover {
  transform: translateY(-2px);
  border-left-color: var(--paper-vermillion-light);
  box-shadow: var(--paper-shadow-md);
}

.paper-cat-blocks strong {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--paper-ink);
}

.paper-cat-blocks span {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--paper-ink-muted);
}

.paper-channel-page {
  padding: 1.25rem 0 2rem;
}

/* ── 筛选面板 ── */
.paper-filter-page {
  padding: 0 0 2rem;
}

.paper-filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 1.25rem;
  border-radius: var(--paper-radius-md);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  box-shadow: var(--paper-shadow-sm);
}

.paper-filter-panel input,
.paper-filter-panel select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 8px;
  background: var(--paper-surface);
  color: var(--paper-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.paper-filter-panel input:focus,
.paper-filter-panel select:focus {
  border-color: rgba(192, 57, 43, 0.45);
  box-shadow: 0 0 0 3px var(--paper-vermillion-soft);
  background: #fff;
}

.paper-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: var(--paper-radius-md);
  background: var(--paper-card);
  border: 1px dashed var(--paper-line-strong);
  color: var(--paper-ink-muted);
  font-weight: 700;
}

/* ── 播放页 ── */
.paper-play-page {
  padding: 1rem 0 2rem;
}

.paper-player-panel {
  border-radius: var(--paper-radius-lg);
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  box-shadow: var(--paper-shadow-md);
  margin-bottom: 1.5rem;
}

.paper-player-frame.video-frame {
  border-radius: 0;
  max-height: min(56.25vw, calc(100dvh - 220px));
}

.paper-video-error.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(28, 25, 23, 0.78);
  font-weight: 800;
}

.paper-play-info {
  padding: 1.25rem 1.35rem 1.4rem;
}

.paper-play-badge.pill-badge {
  color: var(--paper-vermillion-dark);
  background: var(--paper-vermillion-soft);
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.paper-play-title {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
}

.paper-play-desc {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--paper-ink-muted);
}

.paper-related {
  margin-top: 0.5rem;
}

.paper-related .paper-section__head {
  margin-bottom: 1rem;
}

/* ── 页脚 ── */
.paper-footer.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--paper-footer), var(--paper-footer-deep));
  color: rgba(250, 246, 239, 0.88);
  border-top: 3px solid var(--paper-vermillion);
}

.paper-footer__inner {
  padding: 2rem 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.paper-footer__brand strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: #faf6ef;
  margin-bottom: 6px;
}

.paper-footer__brand p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(250, 246, 239, 0.72);
  max-width: 36rem;
}

.paper-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.paper-footer__links a {
  color: rgba(250, 246, 239, 0.82);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.paper-footer__links a:hover {
  color: var(--paper-vermillion-light);
}

.paper-footer__copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(250, 246, 239, 0.55);
}

/* ── 图片失败 ── */
img.image-off {
  opacity: 0;
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .mother-cards,
  .paper-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .paper-cat-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .paper-nav-toggle {
    display: inline-flex;
  }

  .paper-nav-overlay {
    display: block;
  }

  .paper-site .site-head__primary.paper-main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    width: min(18rem, 86vw);
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 1rem 1.5rem;
    background: var(--paper-nav);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  .paper-site .site-head__primary.paper-main-nav.open {
    transform: translateX(0);
  }

  .paper-site .site-head__primary .site-head__nav-link {
    border-radius: 6px;
    padding: 12px 14px;
  }

  .paper-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .paper-hero__copy {
    padding: 1.75rem 0 2rem;
  }
}

@media (max-width: 640px) {
  .mother-cards,
  .paper-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .paper-cat-blocks {
    grid-template-columns: 1fr;
  }

  .paper-filter-panel {
    grid-template-columns: 1fr;
  }

  .paper-hero .hero-portal__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .paper-hero .hero-portal__btn {
    width: 100%;
  }

  .paper-site .site-head__search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .paper-head__top {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .mother-cards,
  .paper-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-vcard,
  .paper-vcard__poster img,
  .paper-site .site-head__primary.paper-main-nav {
    transition: none;
  }
}

/* === 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;
  }
}

/* === PAPER LAYOUT v4：顶栏/频道/主视觉共用左边线 === */
body.paper-site,
body.body-tpl-portal.paper-site {
  --paper-wrap: min(1100px, calc(100% - 40px));
}

body.paper-site .container {
  width: var(--paper-wrap) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.paper-site .paper-top-strip {
  text-align: center;
  padding: 7px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.paper-site .site-head__top,
body.paper-site .paper-head__top {
  display: grid !important;
  grid-template-columns: auto minmax(220px, 1fr) auto !important;
  grid-template-areas: "brand search tools";
  align-items: center !important;
  gap: 16px 28px !important;
  min-height: 72px !important;
  padding: 12px 0 !important;
  flex-wrap: nowrap !important;
  width: var(--paper-wrap) !important;
}

body.paper-site .site-head__brand,
body.paper-site .paper-brand {
  grid-area: brand;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
  text-decoration: none;
}

body.paper-site .site-head__logo,
body.paper-site .paper-brand__mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

body.paper-site .site-head__search,
body.paper-site .paper-search {
  grid-area: search;
  width: min(380px, 100%) !important;
  max-width: 380px !important;
  margin: 0 0 0 auto !important;
  justify-self: end !important;
  display: flex !important;
  align-items: stretch !important;
  min-height: 42px;
  border-radius: 999px !important;
  overflow: hidden;
}

body.paper-site .site-head__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 16px;
  background: transparent;
  font-size: 0.9375rem;
}

body.paper-site .site-head__search-btn {
  border: 0;
  padding: 0 18px;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
}

body.paper-site .site-head__tools {
  grid-area: tools;
  display: flex;
  align-items: center;
}

body.paper-site .paper-nav-band,
body.paper-site .site-head__band--primary {
  background: var(--paper-nav) !important;
}

body.paper-site .site-head__primary,
body.paper-site .paper-main-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 2px 4px !important;
  min-height: 48px;
  padding: 6px 0 !important;
}

body.paper-site .site-head__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(250, 246, 239, 0.88) !important;
}

body.paper-site .paper-cat-band .container,
body.paper-site .paper-cat-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px 14px !important;
  min-height: 54px;
  padding: 8px 0 !important;
}

body.paper-site .site-head__cat-label {
  flex-shrink: 0;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper-vermillion-dark) !important;
  background: var(--paper-vermillion-soft) !important;
}

body.paper-site .site-head__categories {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0;
  overflow: visible !important;
}

body.paper-site .site-head__cat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  min-width: 5.6rem;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  background: var(--paper-card);
  color: var(--paper-ink) !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

body.paper-site .paper-section__head,
body.paper-site .home-section__head {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body.paper-site .hero-portal,
body.paper-site .paper-hero {
  text-align: left !important;
}

body.paper-site .hero-portal__inner,
body.paper-site .paper-hero__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) !important;
  align-items: stretch !important;
  gap: 28px 40px !important;
  max-width: none !important;
  width: var(--paper-wrap) !important;
  margin: 0 auto !important;
  padding: 1.75rem 0 2rem !important;
  text-align: left !important;
}

body.paper-site .paper-hero__copy {
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.paper-site .paper-hero__aside {
  min-width: 0;
}

body.paper-site .paper-hero__poster {
  height: 100%;
  min-height: 240px;
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(165deg, rgba(192, 57, 43, 0.92), #1c1917 62%);
  color: #fffdf8;
  box-shadow: var(--paper-shadow-md);
}

body.paper-site .paper-hero__poster span {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #f4d03f;
  color: #1c1917;
}

body.paper-site .paper-hero__poster strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.3;
}

body.paper-site .paper-hero__poster p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 253, 248, 0.82);
}

body.paper-site .paper-section.home-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.paper-site .paper-sheet.home-sheet {
  padding: 0 4px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.paper-site .hero-portal__kicker {
  margin: 0 0 0.55rem;
  text-align: left;
}

body.paper-site .hero-portal__title {
  margin: 0 0 0.75rem;
  max-width: none;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--paper-ink) !important;
  text-shadow: none !important;
}

body.paper-site .hero-portal__lead {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  text-align: left;
}

body.paper-site .hero-portal__cta,
body.paper-site .paper-hero__pills,
body.paper-site .hero-portal__pills {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.paper-site .paper-hero__pills {
  margin-top: 14px !important;
}

body.paper-site .hero-portal__btn {
  border-radius: 999px !important;
  min-height: 44px;
  padding: 0 1.25rem;
  text-decoration: none;
}

body.paper-site .hero-portal__pill {
  border-radius: 999px !important;
  text-decoration: none;
}

body.paper-site .paper-home > .container,
body.paper-site .paper-sheet {
  width: 100%;
}

@media (max-width: 900px) {
  body.paper-site {
    --paper-wrap: min(1100px, calc(100% - 32px));
  }
  body.paper-site .hero-portal__inner,
  body.paper-site .paper-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 1.25rem 0 1.5rem !important;
  }
  body.paper-site .site-head__top,
  body.paper-site .paper-head__top {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "brand tools"
      "search search" !important;
    gap: 10px 12px !important;
    min-height: 0 !important;
  }
  body.paper-site .site-head__search,
  body.paper-site .paper-search {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }
  body.paper-site .paper-nav-toggle {
    display: inline-flex !important;
  }
  body.paper-site .hero-portal__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body.paper-site .hero-portal__cta {
    flex-direction: column;
    align-items: stretch !important;
  }
  body.paper-site .hero-portal__btn {
    width: 100%;
  }
  body.paper-site .paper-cat-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }
  body.paper-site .site-head__categories {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.paper-site .site-head__cat-link {
    min-width: 0;
    width: 100%;
  }
}

/* === 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; }
