/* site-32 · forest-moss 苔原纪录片 · m26 影视骨架保留 */
:root {
  --fm-bg: #e8ede6;
  --fm-bg-soft: #f2f5f0;
  --fm-surface: #ffffff;
  --fm-moss: #3d5a45;
  --fm-moss-deep: #2f4636;
  --fm-moss-light: #5a7a62;
  --fm-amber: #d97706;
  --fm-amber-light: #f59e0b;
  --fm-ink: #1c2e22;
  --fm-muted: #5c6b5e;
  --fm-line: rgba(61, 90, 69, 0.16);
  --fm-shadow: 0 16px 48px rgba(28, 46, 34, 0.08);
}

/* 首页 SEO 导语 */
.home-seo-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 20px 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fm-muted);
}

.home-seo-intro strong {
  color: var(--fm-moss);
  font-weight: 800;
}

/* 首屏快捷频道 */
.home-hero-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.home-hero-channels a {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-hero-channels a:hover {
  background: rgba(217, 119, 6, 0.22);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fff;
}

/* 静态首屏：左文右海报 */
.home-hero--vod {
  background: var(--fm-moss-deep);
}

.home-hero--vod .home-hero__ambient {
  background:
    radial-gradient(ellipse 55% 45% at 12% 28%, rgba(90, 122, 98, 0.35), transparent 68%),
    radial-gradient(ellipse 42% 38% at 88% 22%, rgba(217, 119, 6, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(28, 46, 34, 0.9), transparent 72%);
}

.home-hero--vod .home-hero__shade {
  background: linear-gradient(105deg, rgba(28, 46, 34, 0.94), rgba(47, 70, 54, 0.78) 42%, rgba(47, 70, 54, 0.55) 68%, rgba(28, 46, 34, 0.82));
}

.home-hero--vod:after {
  background: linear-gradient(180deg, transparent, var(--fm-bg) 88%);
}

/* 分章节列表感 */
.content-section,
.band-section,
.category-section {
  border-top: 1px solid var(--fm-line);
  position: relative;
}

.content-section::before,
.band-section::before,
.category-section::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 20px;
  width: 3px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--fm-moss), var(--fm-amber));
  opacity: 0.55;
}

.section-head h2 {
  letter-spacing: -0.03em;
  color: var(--fm-ink);
}

/* 顶栏 */
.topbar {
  box-shadow: 0 1px 0 var(--fm-line), 0 8px 32px rgba(28, 46, 34, 0.04);
}

/* 卡片 */
.movie-card {
  border-color: var(--fm-line);
}

.movie-card:hover {
  border-color: rgba(61, 90, 69, 0.32);
}

.poster-badge {
  background: linear-gradient(90deg, var(--fm-moss), var(--fm-moss-light)) !important;
}

.rank-item strong,
.pagination-bar .is-active {
  background: linear-gradient(135deg, var(--fm-moss), var(--fm-moss-light)) !important;
}

.rank-item em,
.search-box span,
.ghost-dark,
.home-section-more {
  color: var(--fm-moss) !important;
}

.band-section,
.home-rank-section {
  background: linear-gradient(135deg, #eef2eb, #f5f0e6) !important;
}

.featured-card {
  background: linear-gradient(135deg, #fff, var(--fm-bg-soft)) !important;
  border-color: var(--fm-line) !important;
}

.ghost-dark {
  border-color: rgba(61, 90, 69, 0.22) !important;
}

.ghost-dark:hover {
  background: var(--fm-bg-soft) !important;
}

.category-card:after {
  background: linear-gradient(0deg, rgba(28, 46, 34, 0.88), rgba(47, 70, 54, 0.24)) !important;
}

/* 分类 overview 卡片（构建输出） */
.category-grid--channels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 18px;
  border-radius: 22px;
  background: var(--fm-surface);
  border: 1px solid var(--fm-line);
  box-shadow: var(--fm-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 20px 56px rgba(28, 46, 34, 0.1);
}

.overview-main strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--fm-ink);
  margin-bottom: 6px;
}

.overview-main span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--fm-muted);
}

.overview-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fm-line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fm-moss);
}

/* Hero 点缀 */
.home-hero-panel:before,
.home-hero-accent,
.hero-progress__bar {
  background: linear-gradient(90deg, var(--fm-moss), var(--fm-amber), var(--fm-moss)) !important;
}

.home-hero-cat {
  background: linear-gradient(90deg, var(--fm-moss), var(--fm-moss-light)) !important;
  box-shadow: 0 8px 24px rgba(61, 90, 69, 0.35) !important;
}

.home-hero-poster:before {
  background: linear-gradient(145deg, rgba(232, 237, 230, 0.75), var(--fm-moss-light) 22%, var(--fm-amber) 55%, rgba(255, 255, 255, 0.35) 78%, var(--fm-moss)) !important;
}

.home-hero-poster__badge {
  background: linear-gradient(90deg, var(--fm-moss), var(--fm-amber)) !important;
}

.home-hero-poster__genre:before {
  background: linear-gradient(90deg, var(--fm-moss-light), var(--fm-amber)) !important;
}

.primary-btn {
  background: linear-gradient(90deg, var(--fm-moss), var(--fm-moss-light)) !important;
  box-shadow: 0 16px 40px rgba(61, 90, 69, 0.28) !important;
}

.primary-btn:hover {
  box-shadow: 0 20px 48px rgba(61, 90, 69, 0.36) !important;
}

.section-icon {
  background: linear-gradient(135deg, var(--fm-moss), var(--fm-oss-light, var(--fm-moss-light))) !important;
  box-shadow: 0 14px 36px rgba(61, 90, 69, 0.22) !important;
}

.filter-panel,
.quick-search,
.detail-content article,
.detail-content aside {
  border-color: var(--fm-line) !important;
}

.filter-panel input,
.filter-panel select,
.quick-search input {
  border-color: rgba(61, 90, 69, 0.22) !important;
  background: var(--fm-bg-soft) !important;
}

.tag-row span {
  background: var(--fm-bg-soft) !important;
  color: var(--fm-moss) !important;
  border-color: rgba(61, 90, 69, 0.18) !important;
}

.home-hot-tag:hover {
  color: var(--fm-moss) !important;
  border-color: var(--fm-amber) !important;
  background: var(--fm-bg-soft) !important;
}

.detail-brand-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--fm-muted);
  line-height: 1.6;
}

.detail-play-meta a {
  color: var(--fm-amber-light) !important;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--fm-muted);
  font-weight: 700;
}

.footer-brand .brand-mark {
  font-size: 14px;
}

/* 移动端 */
@media (max-width: 1024px) {
  .category-grid--channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-section::before,
  .band-section::before,
  .category-section::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-seo-intro {
    padding: 0.75rem 14px 0;
    font-size: 0.88rem;
  }

  .home-hero-channels {
    justify-content: center;
  }

  .category-grid--channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .overview-card {
    min-height: 128px;
    padding: 14px;
  }

  .home-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .movie-card,
  .primary-btn,
  .home-hero-poster,
  .overview-card {
    transition: none !important;
  }

  .home-hero-poster:hover,
  .home-hero-poster:hover img {
    transform: none !important;
  }
}
