/* Site 31 · harbor-cyan 港湾清爽 · m25 影视骨架保留 */

:root {
  --harbor-deep: #0c4a6e;
  --harbor-sea: #0369a1;
  --harbor-sky: #0e7490;
  --harbor-soft: rgba(3, 105, 161, 0.12);
  --coral: #f97316;
  --coral-dark: #ea580c;
  --page-bg: #e8f2f4;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  color: var(--ink);
}

.page-main {
  min-height: calc(100dvh - 72px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 首页首屏：搜索优先 */
.home-hero-band {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(14, 116, 144, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 80%, rgba(249, 115, 22, 0.06), transparent 50%);
}

.home-hero-band__inner {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--harbor-soft);
  border: 1px solid rgba(3, 105, 161, 0.2);
  color: var(--harbor-sea);
  font-size: 0.8125rem;
  font-weight: 700;
}

.home-hero-band__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--harbor-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-hero-band__intro {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.home-hero-search {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.home-hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  outline: none;
}

.home-hero-search input:focus {
  border-color: rgba(3, 105, 161, 0.45);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}

.home-hero-search .btn-primary {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
}

/* 区块标题 */
.section-more {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section-block {
  margin-bottom: 2rem;
}

/* 次级页头 */
.page-sub-hero {
  padding: 7rem 0 2rem;
}

.page-sub-hero .pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--coral-soft);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: var(--coral-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.page-sub-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--harbor-deep);
  letter-spacing: -0.02em;
}

.page-sub-hero .page-lead,
.page-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.category-hero h1 {
  color: var(--harbor-deep);
}

.category-result-meta {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.category-result-meta strong {
  color: var(--harbor-sea);
}

/* 筛选区 */
.filter-panel-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(14, 116, 144, 0.12);
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.05);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background: #f8fafc;
  color: var(--ink);
  outline: none;
  font-weight: 500;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(3, 105, 161, 0.45);
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.1);
}

.empty-state {
  margin-top: 1rem;
  padding: 2.5rem 1.5rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px dashed rgba(14, 116, 144, 0.22);
  color: var(--ink-muted);
  text-align: center;
  font-weight: 600;
}

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

.overview-card {
  display: block;
  padding: 1.35rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(14, 116, 144, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 74, 110, 0.1);
  border-color: rgba(3, 105, 161, 0.28);
}

.overview-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--harbor-deep);
}

.overview-card span {
  display: block;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.875rem;
}

.category-tile {
  display: block;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(14, 116, 144, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(12, 74, 110, 0.08);
}

.category-tile strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--harbor-deep);
  font-weight: 700;
}

.category-tile span {
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 卡片网格：大留白 */
.movie-grid {
  gap: 1.25rem;
}

.movie-card {
  background: var(--surface) !important;
  border: 1px solid rgba(14, 116, 144, 0.1) !important;
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.05);
}

.movie-card:hover {
  box-shadow: 0 16px 40px rgba(12, 74, 110, 0.12) !important;
  background: var(--surface) !important;
}

.card-desc {
  color: var(--ink-muted);
}

.card-meta {
  color: #94a3b8;
}

/* 播放页 */
.content-card {
  background: var(--surface);
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(12, 74, 110, 0.06);
}

.play-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.play-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(14, 116, 144, 0.08);
}

.play-info-list li span {
  color: var(--ink-muted);
}

.play-info-list li strong,
.play-info-list li a {
  color: var(--harbor-deep);
  font-weight: 600;
}

.video-error {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
}

.breadcrumb {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--brand);
}

/* 热播序号 */
.compact-item > span:first-child:nth-child(1) {
  color: var(--coral);
}

.section-icon.pop-accent {
  background: linear-gradient(135deg, var(--coral-dark), var(--coral));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #e2eef2;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--harbor-sky), var(--harbor-sea));
}

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

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

  .home-hero-search {
    flex-direction: column;
  }

  .home-hero-search .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .home-hero-band {
    padding-top: 5.5rem;
  }

  .page-sub-hero {
    padding-top: 6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }

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

@media (min-width: 768px) {
  .rel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rel-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
