/* 外片放映室 · paper-ink 视觉桥 · 米白纸底 + 墨黑字 + 朱红点缀 */
/* 保留 default 影视站骨架，通栏首屏 + 双列精选 + 充足留白 */

:root {
  --paper-bg: #f7f3eb;
  --paper-panel: #fffdf8;
  --paper-accent: #c0392b;
  --paper-accent-dim: #96281b;
  --paper-ink: #1a1a1a;
  --paper-muted: #5c5752;
  --line-paper: rgba(192, 57, 43, 0.18);

  --pink: var(--paper-accent);
  --blue: #8b7355;
  --green: #2c2416;
  --ink: var(--paper-ink);
  --muted: var(--paper-muted);
  --panel: var(--paper-panel);
  --line: rgba(26, 26, 26, 0.1);
  --soft: #f0ebe0;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-track { background: var(--paper-bg); border-radius: 999px; }
::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.18);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--paper-accent-dim); }

.main-nav a[aria-current="page"] {
  background: rgba(192, 57, 43, 0.08);
  color: var(--paper-accent);
  border-color: rgba(192, 57, 43, 0.2);
}

/* 分类页频道条 */
.channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--paper-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.channel-strip a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  color: var(--paper-muted);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--soft);
  transition: all 0.15s ease;
}

.channel-strip a:hover {
  border-color: var(--line-paper);
  color: var(--paper-ink);
}

.channel-strip a.is-active {
  background: var(--paper-accent);
  border-color: var(--paper-accent);
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--paper-accent-dim), var(--paper-accent));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.compact-hero { position: relative; }

.player-section:focus-within {
  border-color: rgba(192, 57, 43, 0.3);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

.rank-panel .rank-badge {
  background: var(--paper-accent);
  color: #fff;
}

.category-grid.large .category-tile {
  padding: 24px;
  min-height: 110px;
}

.category-grid.large .category-tile strong {
  font-size: 20px;
}

.category-grid.large .category-tile strong::before {
  content: "▸ ";
  color: var(--paper-accent);
}

.empty-state::before {
  content: "◎";
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--paper-accent);
}

/* 通栏首屏：首页轮播全宽 */
.hero-fullbleed {
  margin-left: calc(-1 * ((100vw - min(100vw, 1280px)) / 2 + 22px));
  margin-right: calc(-1 * ((100vw - min(100vw, 1280px)) / 2 + 22px));
  width: auto;
  max-width: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin-bottom: 40px;
}

@media (min-width: 1324px) {
  .hero-fullbleed {
    margin-left: calc(-1 * ((100vw - 1280px) / 2));
    margin-right: calc(-1 * ((100vw - 1280px) / 2));
  }
}

/* 双列精选：桌面端展示为双列区块 */
@media (min-width: 900px) {
  .showcase-dual .showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* 中区推荐栅格：桌面五列密集海报 */
@media (min-width: 1281px) {
  .showcase-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-grid:not(.showcase-grid):not(.related-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .hero-section.hero-compact { min-height: auto; }

  .hero-fullbleed {
    margin-left: -16px;
    margin-right: -16px;
  }

  .channel-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .channel-strip::-webkit-scrollbar { display: none; }

  .channel-strip a { flex: 0 0 auto; }
}

@media (max-width: 540px) {
  .poster-frame::after { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
