
:root {
  --bg: #07111f;
  --bg-2: #0c1629;
  --panel: rgba(10, 20, 36, 0.74);
  --panel-2: rgba(18, 28, 48, 0.88);
  --text: #e5eefb;
  --muted: #90a4c3;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-2: #2563eb;
  --warm: #f59e0b;
  --good: #22c55e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 24%),
    linear-gradient(180deg, #050b16 0%, var(--bg) 22%, #07111f 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.94), rgba(5, 11, 22, 0.72));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.32);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: 'HD';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: white;
}
.brand-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-sub {
  color: var(--muted);
  font-size: .84rem;
  margin-top: 2px;
}
.nav-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d5e3f6;
  border: 1px solid transparent;
  transition: .22s ease;
  font-size: .95rem;
}
.nav-link:hover, .nav-link.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.28);
  color: white;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255,255,255,.04);
  color: white;
}
.hero {
  padding: 28px 0 12px;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,.24), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(245,158,11,.16), transparent 20%),
    linear-gradient(135deg, rgba(9,15,30,.96), rgba(10,17,33,.82));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
}
.hero-shell::before,
.hero-shell::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(38px);
  pointer-events: none;
}
.hero-shell::before { width: 220px; height: 220px; background: rgba(56, 189, 248, 0.18); top: -72px; right: 12%; }
.hero-shell::after { width: 180px; height: 180px; background: rgba(37, 99, 235, 0.22); bottom: -64px; left: 8%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 22px;
  padding: 28px;
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #d7ecff;
  border: 1px solid rgba(255,255,255,.08);
  font-size: .88rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1.02;
  margin: 14px 0 14px;
  letter-spacing: -0.04em;
}
.hero p.lead {
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 62ch;
  color: #cfe0f6;
  margin: 0 0 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(148,163,184,.2);
  transition: .22s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 24px rgba(37,99,235,.24);
}
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: #f4f8ff;
}
.btn:hover { transform: translateY(-1px); }
.search-bar {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(148,163,184,.15);
  max-width: 720px;
}
.search-bar input {
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
  color: white;
  padding: 6px 10px;
  min-width: 0;
}
.search-bar input::placeholder { color: #98acc9; }
.search-bar button { white-space: nowrap; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.12);
}
.stat strong { display: block; font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.feature-stack {
  display: grid;
  gap: 12px;
}
.hero-slider {
  position: relative;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.03);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .45s ease, transform .45s ease;
  display: grid;
  grid-template-rows: auto 1fr;
}
.hero-slide.active { opacity: 1; transform: translateY(0) scale(1); z-index: 2; }
.hero-art {
  min-height: 240px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.poster-card {
  width: 116px;
  height: 160px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 12, 24, .28);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
}
.poster-card .pill {
  align-self: flex-start;
  font-size: .72rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.poster-card .poster-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.slide-copy {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(10,16,30,.18), rgba(10,16,30,.92));
}
.slide-copy h3 { margin: 0 0 6px; font-size: 1.05rem; }
.slide-copy p { margin: 0; color: #c8d8ef; line-height: 1.7; font-size: .93rem; }
.section {
  padding: 18px 0 8px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 6px 0 14px;
}
.section-head h2, .section-head h3 {
  margin: 0;
  font-size: 1.4rem;
}
.section-head p { margin: 0; color: var(--muted); }
.grid {
  display: grid;
  gap: 14px;
}
.cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(148,163,184,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.3);
  box-shadow: 0 18px 36px rgba(0,0,0,.28);
}
.card-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,24,.02), rgba(6,12,24,.72));
}
.card-cover .meta,
.card-cover .title,
.card-cover .badge-row { position: relative; z-index: 1; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  font-size: .74rem;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
}
.title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.92);
}
.card-body { padding: 14px 14px 16px; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .92rem; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { padding: 9px 12px; font-size: .9rem; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.15);
  color: #dce9fb;
  font-size: .9rem;
}
.chip:hover, .chip.active { background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.25); }
.panel {
  background: var(--panel);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.page-hero {
  margin: 18px 0;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.2), transparent 20%),
    linear-gradient(135deg, rgba(9,15,30,.94), rgba(11,18,35,.9));
}
.page-hero h1, .page-hero h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p { margin: 0; color: #c3d6ee; line-height: 1.8; }
.breadcrumb { color: var(--muted); font-size: .92rem; margin: 2px 0 14px; }
.breadcrumb a { color: #d9ecff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-row input,
.filter-row select {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.03);
  color: white;
  padding: 11px 14px;
  outline: none;
}
.filter-row input::placeholder { color: #8ea2bf; }
.list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.movie-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}
.detail-cover {
  min-height: 420px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  padding: 22px;
}
.detail-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,12,24,.04), rgba(6,12,24,.74));
}
.detail-cover .content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.detail-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0 0 10px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.info-item {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.info-item span { display: block; color: rgba(255,255,255,.74); font-size: .82rem; margin-bottom: 3px; }
.info-item strong { font-size: .98rem; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.content-stack { display: grid; gap: 16px; }
.content-block {
  padding: 18px;
  border-radius: 22px;
  background: rgba(10, 18, 34, 0.88);
  border: 1px solid rgba(148,163,184,.12);
}
.content-block h3 { margin: 0 0 10px; font-size: 1.1rem; }
.content-block p { margin: 0; line-height: 1.85; color: #d7e5f8; }
.player {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #030712;
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: var(--shadow);
}
.player video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.player-note {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: white;
  border: 1px solid rgba(255,255,255,.14);
  font-size: .86rem;
}
.footer {
  margin-top: 28px;
  padding: 28px 0 48px;
  color: #9db0cb;
}
.footer .foot {
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.muted { color: var(--muted); }
.sep { opacity: .4; }
.hidden { display: none !important; }
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pagination a, .pagination span {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.15);
  background: rgba(255,255,255,.03);
  color: #dfefff;
}
.pagination a.active {
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.28);
}
.search-results {
  display: grid;
  gap: 12px;
}
.search-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.12);
}
.search-thumb {
  width: 88px; height: 122px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.search-item h4 { margin: 0 0 6px; font-size: 1rem; }
.search-item p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.search-item .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.center { text-align: center; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 1100px) {
  .hero-grid, .movie-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-wrap {
    display: none;
    width: 100%;
    padding-bottom: 14px;
    justify-content: flex-start;
  }
  .nav-wrap.open { display: flex; }
  .site-header .bar { flex-wrap: wrap; }
  .hero-grid { padding: 18px; }
  .hero-meta { grid-template-columns: 1fr; }
  .cards, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-item { grid-template-columns: 72px 1fr; }
  .search-item .right { grid-column: 1 / -1; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .cards, .list-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .search-bar { border-radius: 20px; flex-direction: column; align-items: stretch; }
}
