/* 策驰影视 · neon-club 站点皮肤 · 辅助页布局与移动端 */

:root {
  --indigo: #0a0e1f;
  --indigo-mid: #121833;
  --indigo-surface: #171d3a;
  --indigo-elevated: #1e2548;
  --neon-magenta: #ff006e;
  --neon-magenta-soft: #e0408a;
  --neon-cyan: #00f5d4;
  --neon-cyan-soft: #00c4b8;
  --slate: #e8eaf6;
  --muted: #8892b8;
  --line: rgba(0, 245, 212, 0.22);
  --line-magenta: rgba(255, 0, 110, 0.28);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

body.nav-open {
  overflow: hidden;
}

.hero-wrap > .spotlight > p:not(.sr-only) {
  display: none;
}

/* 子页通用 */
.sub-page {
  min-height: 70vh;
}

.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.section-block {
  padding: 0 0 48px;
}

.section-block .section-head a {
  color: var(--neon-cyan);
  font-weight: 900;
  text-decoration: none;
}

.section-block .section-head a:hover {
  color: var(--neon-magenta);
}

/* 搜索/榜单筛选面板 */
.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--indigo-surface);
  border: 1px solid var(--line);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--indigo-elevated);
  padding: 13px 16px;
  outline: none;
  color: var(--slate);
  font-weight: 700;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--neon-cyan);
}

.rank-panel {
  padding: 28px;
  border-radius: 20px;
  background: var(--indigo-surface);
  border: 1px solid var(--line);
}

/* 分类大网格 */
.category-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-card {
  display: grid;
  gap: 18px;
  background: var(--indigo-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--indigo-elevated);
  color: var(--neon-cyan);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
}

.overview-links a:hover {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
}

/* 空状态 */
.empty-state[hidden] {
  display: none !important;
}

.empty-state:not([hidden]) {
  display: block;
  padding: 40px;
  border-radius: 16px;
  background: var(--indigo-surface);
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid var(--line);
}

/* 播放页 SEO 描述 */
.mother-play-desc {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* 搜索页 hero 独立结构 */
.page-hero.compact-hero:not(:has(.container)) {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 42px;
  border-radius: 20px;
  background: var(--indigo-surface);
  border: 1px solid var(--line);
}

.page-hero.compact-hero:not(:has(.container)) .eyebrow.solo {
  display: inline-flex;
  margin-bottom: 10px;
}

.page-hero.compact-hero:not(:has(.container)) h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 950;
  letter-spacing: -0.04em;
  color: var(--slate);
  margin: 0 0 12px;
}

.page-hero.compact-hero:not(:has(.container)) p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* 移动端导航面板 */
.mobile-panel.is-open {
  display: block;
}

.mobile-cats {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* 卡片紧凑：密集海报墙 */
.movie-card .card-body {
  padding: 12px;
}

.movie-card .card-body h3 {
  font-size: 15px;
}

.movie-card .card-body p {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

@media (max-width: 1024px) {
  .category-grid.large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .page-main {
    width: min(100% - 22px, 1280px);
  }

  .page-hero.compact-hero:not(:has(.container)) {
    padding: 28px;
    border-radius: 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr !important;
  }

  .side-card {
    position: static !important;
  }

  .spotlight__grid {
    padding: 20px 16px !important;
  }
}
