/* 高清剧场 · harbor-cyan 港湾清爽 · 顶栏搜索优先 + 大留白卡片网格 */

:root {
  --site-deep: #0c4a6e;
  --site-deep-2: #075985;
  --site-coral: #f97316;
  --site-coral-hot: #fb923c;
  --site-ink: #0f2942;
  --site-muted: #64748b;
  --site-line: rgba(12, 74, 110, 0.12);
  --site-panel: #ffffff;
  --site-mist: #e8f2f4;
  --site-mist-2: #dceef0;
  --site-shadow: 0 12px 36px rgba(12, 74, 110, 0.08);
}

.page-main {
  min-height: 50vh;
}

body.body-mother-adopt {
  background: var(--site-mist) !important;
}

/* -------- 顶栏：搜索优先 -------- */
body.body-mother-adopt .xh-top {
  background: rgba(232, 242, 244, 0.94) !important;
  border-bottom-color: var(--site-line) !important;
  box-shadow: 0 1px 0 rgba(12, 74, 110, 0.06);
}

body.body-mother-adopt .xh-brand__mark {
  background: var(--site-deep) !important;
}

body.body-mother-adopt .xh-brand__wave {
  background: var(--site-coral) !important;
}

body.body-mother-adopt .xh-brand__dot {
  background: var(--site-coral-hot) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

body.body-mother-adopt .xh-brand__text em {
  color: var(--site-deep-2) !important;
  letter-spacing: 0.14em;
}

body.body-mother-adopt .xh-search {
  border-color: var(--site-line);
  box-shadow: 0 2px 12px rgba(12, 74, 110, 0.06);
}

body.body-mother-adopt .xh-search button {
  background: var(--site-coral) !important;
}

body.body-mother-adopt .xh-search button:hover {
  background: var(--site-coral-hot) !important;
}

@media (min-width: 960px) {
  body.body-mother-adopt .xh-top__row {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 1rem;
  }

  body.body-mother-adopt .xh-search {
    display: flex !important;
    order: 0;
    margin-left: 0.5rem;
    margin-right: 0;
    max-width: 420px;
    width: 100%;
  }

  body.body-mother-adopt .xh-nav {
    order: 1;
    margin-left: auto;
  }
}

/* -------- Hero -------- */
body.body-mother-adopt .xh-hero {
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.96), rgba(7, 89, 133, 0.88)),
    var(--site-deep) !important;
}

body.body-mother-adopt .xh-hero__kicker {
  color: var(--site-coral-hot) !important;
}

body.body-mother-adopt .xh-btn--gold {
  background: var(--site-coral) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

body.body-mother-adopt .xh-btn--gold:hover {
  background: var(--site-coral-hot) !important;
}

body.body-mother-adopt .xh-btn--ghost:hover {
  color: var(--site-deep) !important;
}

body.body-mother-adopt .xh-head__num {
  background: linear-gradient(180deg, var(--site-coral), var(--site-deep)) !important;
}

body.body-mother-adopt .xh-head__sub {
  color: var(--site-coral) !important;
}

body.body-mother-adopt .xh-head__more:hover {
  background: var(--site-deep) !important;
  border-color: var(--site-deep) !important;
}

body.body-mother-adopt .xh-head__more span {
  color: var(--site-coral-hot) !important;
}

body.body-mother-adopt .xh-cats__item {
  border-top-color: var(--site-deep) !important;
}

body.body-mother-adopt .xh-cats__item:hover {
  border-top-color: var(--site-coral) !important;
  color: var(--site-deep) !important;
}

/* -------- 骨架页 hero -------- */
.page-hero,
.compact-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 2rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.75rem);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(12, 74, 110, 0.96), rgba(7, 89, 133, 0.88)),
    var(--site-deep);
  color: #fff;
  box-shadow: none;
}

.page-hero .eyebrow,
.page-hero .eyebrow.solo,
.compact-hero .eyebrow,
.compact-hero .eyebrow.solo {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  color: var(--site-coral-hot);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  box-shadow: none;
}

.page-hero h1,
.compact-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff;
}

.page-hero p,
.compact-hero p {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* -------- 区块与标题 -------- */
.section-block {
  margin-bottom: 2.5rem;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
  max-width: 1140px;
  margin-inline: auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--site-line);
}

.section-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--site-ink) !important;
  letter-spacing: -0.02em;
}

.section-head a {
  color: var(--site-deep-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.section-head a:hover {
  color: var(--site-coral-hot);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--site-deep);
  font-weight: 800;
}

/* -------- 筛选栏 -------- */
.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: var(--site-mist-2);
  color: var(--site-ink);
  font-weight: 600;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-coral);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.rank-panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* -------- 卡片网格：大留白 -------- */
.movie-grid,
.xh-grid--cards,
.xh-grid--channel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

body.body-mother-adopt .xh-band {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

body.body-mother-adopt .xh-band--soft {
  background: rgba(255, 255, 255, 0.55) !important;
}

body.body-mother-adopt .xh-card {
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(12, 74, 110, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.body-mother-adopt .xh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 74, 110, 0.1);
}

body.body-mother-adopt .xh-card__score {
  background: linear-gradient(135deg, var(--site-coral), var(--site-coral-hot)) !important;
}

.movie-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--site-panel) !important;
  border: 1px solid var(--site-line) !important;
  box-shadow: 0 6px 20px rgba(12, 74, 110, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12, 74, 110, 0.1) !important;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--site-mist), var(--site-mist-2));
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--site-coral), var(--site-coral-hot)) !important;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.25);
}

.movie-card-body {
  padding: 0.9rem 1rem 1rem;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 650;
}

.movie-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--site-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--site-deep) !important;
}

.movie-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--site-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.card-actions a {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--site-coral);
  color: #fff !important;
  font-size: 12px;
  font-weight: 750;
}

.card-actions a:hover {
  background: var(--site-coral-hot);
}

.card-actions span {
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 700;
}

.card-compact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 150px;
}

.card-compact .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

/* -------- 分类页 -------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.category-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-tile,
.overview-card {
  display: block;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(12, 74, 110, 0.1);
}

.category-tile strong,
.overview-main strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--site-deep) !important;
  background: none !important;
  -webkit-text-fill-color: var(--site-deep);
}

.category-tile span,
.overview-main span {
  display: block;
  color: var(--site-muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

/* -------- 空状态 -------- */
.empty-state {
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  background: var(--site-panel);
  border: 1px dashed var(--site-line);
  text-align: center;
  color: var(--site-muted);
  font-weight: 700;
}

/* -------- 播放页 / 相关推荐 -------- */
.mother-related {
  max-width: 1140px;
  margin: 2rem auto 3rem;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
}

.mother-related h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--site-line);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--site-ink);
}

body.body-mother-adopt .xh-play__stage {
  background: var(--site-deep) !important;
}

body.body-mother-adopt .xh-play__ticker {
  color: var(--site-coral-hot) !important;
}

body.body-mother-adopt .xh-play__cat {
  color: var(--site-coral) !important;
}

body.body-mother-adopt .xh-foot {
  background: var(--site-deep) !important;
}

body.body-mother-adopt .xh-foot__wave {
  background: linear-gradient(180deg, transparent, rgba(12, 74, 110, 0.15)) !important;
}

/* -------- SEO 品牌条 -------- */
.seo-brand-block {
  max-width: 1140px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
}

.seo-brand-block h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--site-deep) !important;
  background: none !important;
  -webkit-text-fill-color: var(--site-deep);
}

.seo-brand-block p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* -------- 标签 -------- */
.tag-cloud a,
.tag-row span {
  background: rgba(12, 74, 110, 0.06) !important;
  color: var(--site-deep-2) !important;
  border: 1px solid rgba(12, 74, 110, 0.12);
  box-shadow: none !important;
}

.image-off {
  opacity: 0;
}

/* -------- xh-why -------- */
body.body-mother-adopt .xh-why article span {
  color: var(--site-coral) !important;
}

/* -------- 移动端 -------- */
@media (max-width: 959px) {
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .movie-grid,
  .xh-grid--cards,
  .xh-grid--channel,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .category-grid.large {
    grid-template-columns: 1fr;
  }

  body.body-mother-adopt .xh-cat__layout {
    grid-template-columns: 1fr !important;
  }

  body.body-mother-adopt .xh-cat__side {
    display: none;
  }

  body.body-mother-adopt .xh-play__layout {
    grid-template-columns: 1fr !important;
  }
}

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

  .movie-grid,
  .xh-grid--cards,
  .xh-grid--channel {
    grid-template-columns: 1fr;
  }

  .card-compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body.body-mother-adopt .xh-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .page-hero,
  .compact-hero {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .movie-card,
  .category-tile,
  .overview-card,
  body.body-mother-adopt .xh-card {
    transition: none;
  }
}
