/* 站 4 · m72 影视站骨架 · harbor-cyan 港湾清爽皮肤 */

:root {
  --harbor-deep: #0a2538;
  --harbor-base: #0d3b5c;
  --harbor-mid: #145a7a;
  --harbor-light: #1a6b8a;
  --harbor-surface: #eef4f6;
  --harbor-paper: #f7fafb;
  --coral: #e86f4a;
  --coral-light: #f07850;
  --coral-dim: #c45a3a;
  --text-on-dark: #e8f2f6;
  --text-muted-dark: #a8c0cc;
  --text-body: #3d5563;
  --line-harbor: rgba(13, 59, 92, 0.14);
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(20, 90, 122, 0.06), transparent 55%),
    linear-gradient(180deg, var(--harbor-surface) 0%, var(--harbor-paper) 32%, var(--harbor-paper) 100%) !important;
}

.page-main {
  min-height: calc(100vh - 68px);
}

/* ── 顶栏：搜索优先 + 清爽品牌 ── */
.topbar {
  backdrop-filter: blur(18px);
}

.topbar-inner {
  gap: 12px;
}

.topbar-search {
  flex: 1;
  max-width: 360px;
  margin: 0 auto 0 8px;
  display: flex;
  gap: 8px;
}

.topbar-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-harbor);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.topbar-search input:focus {
  border-color: var(--harbor-light);
  box-shadow: 0 0 0 2px rgba(26, 107, 138, 0.12);
}

.topbar-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.brand-mark {
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.nav-link {
  color: var(--text-body) !important;
}

.mobile-nav {
  background: var(--harbor-paper) !important;
}

.mobile-nav a:hover {
  background: var(--harbor-surface) !important;
  color: var(--harbor-base) !important;
}

.menu-toggle {
  background: #fff !important;
  border-color: var(--line-harbor) !important;
}

.menu-toggle span {
  background: var(--text-body) !important;
}

/* ── Hero：深海遮罩 + 克制光晕 ── */
.hero-slide::after,
.detail-hero::after,
.category-hero::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(26, 107, 138, 0.2), transparent 35%),
    linear-gradient(90deg, rgba(10, 37, 56, 0.96), rgba(10, 37, 56, 0.66), rgba(10, 37, 56, 0.88)) !important;
}

.watch-stage::after {
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 111, 74, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(10, 37, 56, 0.92), rgba(10, 37, 56, 0.78)) !important;
}

.eyebrow {
  color: var(--coral-light) !important;
}

.hero-tags span,
.tag-row span {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.tag-row span {
  background: var(--harbor-surface) !important;
  color: var(--harbor-base) !important;
  border-color: rgba(13, 59, 92, 0.16) !important;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.1) !important;
}

.ghost-dark {
  background: #fff !important;
  color: var(--harbor-base) !important;
  border-color: rgba(13, 59, 92, 0.2) !important;
}

.ghost-dark:hover {
  background: var(--harbor-surface) !important;
}

.hero-dot.is-active {
  background: var(--coral-light) !important;
}

/* ── 搜索条 / 筛选 ── */
.quick-search {
  background: #fff !important;
  border-color: rgba(13, 59, 92, 0.12) !important;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  background: var(--harbor-surface) !important;
  border-color: rgba(13, 59, 92, 0.14) !important;
  color: var(--ink) !important;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--harbor-light) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 107, 138, 0.12);
}

/* ── 区块 / 卡片：大留白网格 ── */
.content-section,
.band-section,
.category-section {
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
}

.section-head h2 {
  color: var(--ink) !important;
}

.section-head p {
  color: var(--muted) !important;
}

.movie-grid {
  gap: 28px !important;
}

.movie-card {
  background: #fff !important;
  border-color: var(--line-harbor) !important;
}

.movie-card:hover {
  border-color: rgba(13, 59, 92, 0.22) !important;
}

.poster-wrap {
  background: var(--harbor-deep) !important;
}

.featured-card {
  background: linear-gradient(135deg, #fff, var(--harbor-surface)) !important;
  border-color: rgba(13, 59, 92, 0.12) !important;
}

.featured-card h2 {
  color: var(--ink) !important;
}

.band-section {
  background: linear-gradient(135deg, #e4eef2, #dce8ed) !important;
}

.rank-item {
  border-color: var(--line-harbor) !important;
}

.category-section {
  background: linear-gradient(180deg, var(--harbor-paper), var(--harbor-surface)) !important;
}

.category-card::after {
  background: linear-gradient(0deg, rgba(10, 37, 56, 0.84), rgba(10, 37, 56, 0.22)) !important;
}

/* ── 内页 hero ── */
.page-hero,
.category-hero {
  background: linear-gradient(135deg, var(--harbor-surface), #dce8ed) !important;
  border-bottom-color: rgba(13, 59, 92, 0.1) !important;
}

.page-hero.rank {
  background: linear-gradient(135deg, var(--harbor-deep), var(--harbor-base)) !important;
}

.page-hero h1,
.category-hero h1 {
  color: var(--ink) !important;
}

.page-hero.rank h1,
.page-hero.rank p {
  color: var(--text-on-dark) !important;
}

.category-hero {
  background: var(--harbor-deep) !important;
}

.category-hero h1,
.category-hero p {
  color: var(--text-on-dark) !important;
}

.channel-row,
.small-card {
  background: #fff !important;
  border-color: rgba(13, 59, 92, 0.12) !important;
}

.small-card {
  background: var(--harbor-surface) !important;
}

.rank-card a {
  border-color: rgba(13, 59, 92, 0.12) !important;
}

.rank-card em {
  color: var(--coral) !important;
}

/* ── 播放页：播放器居中 + 信息侧栏 ── */
.watch-player {
  background: linear-gradient(180deg, #030810, var(--harbor-deep)) !important;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(26, 107, 138, 0.16);
}

.watch-panel {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(26, 107, 138, 0.18) !important;
}

.watch-panel .tag-row span {
  color: var(--coral-light) !important;
}

.watch-stats div {
  border-color: rgba(26, 107, 138, 0.14) !important;
}

.detail-content article,
.detail-content aside {
  background: #fff !important;
}

.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;
}

/* ── 页脚 ── */
.footer p {
  color: var(--text-muted-dark) !important;
}

.footer h3 {
  color: var(--text-on-dark) !important;
}

.footer a {
  color: #c5d8e0 !important;
}

.copyright {
  color: #8aa8b8 !important;
}

/* ── 滚动条 ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 59, 92, 0.04);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(20, 90, 122, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 90, 122, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .movie-card,
  .primary-btn,
  .category-card img,
  .poster-wrap img {
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .topbar-search {
    display: none;
  }
}

@media (max-width: 760px) {
  .quick-search {
    margin: 12px 14px 0 !important;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.625rem) !important;
  }

  .section-head h2 {
    font-size: 1.5rem !important;
  }

  .content-section,
  .band-section,
  .category-section {
    padding-left: 14px;
    padding-right: 14px;
  }
}
