:root {
  color-scheme: dark;
  --page: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --green: #22c55e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #020617 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.34);
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  color: var(--soft);
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  border-radius: 13px;
  color: #d1d5db;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.72);
}

.main-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.015);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, #0f172a 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy > h2 + p,
.hero-copy > h1 + h2,
.hero-copy > h1 + p {
  margin-top: 18px;
}

.hero-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.meta-tags span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.26);
  font-size: 12px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.section-head a,
.category-tile a,
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-button {
  color: #111827;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.28);
}

.ghost-button,
.section-head a,
.category-tile a {
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover,
.section-head a:hover,
.category-tile a:hover,
.search-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.15;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 16px;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.active {
  width: 28px;
  background: #fbbf24;
}

.home-search {
  position: relative;
  z-index: 8;
  width: min(1040px, calc(100% - 32px));
  margin: -34px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.home-search form,
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search input,
.search-form input,
.filter-panel input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.56);
  outline: none;
}

.home-search input:focus,
.search-form input:focus,
.filter-panel input:focus {
  border-color: rgba(245, 158, 11, 0.66);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.content-section {
  padding: 54px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.page-title h1,
.detail-copy h1,
.prose-block h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.section-head p,
.page-title p,
.category-tile p,
.card-body p,
.detail-copy p,
.prose-block p,
.footer-shell p {
  color: var(--muted);
  line-height: 1.75;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.9);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.poster-type,
.poster-rating,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  left: 10px;
  top: 10px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
}

.poster-rating {
  right: 10px;
  top: 10px;
  color: #111827;
  background: #fbbf24;
}

.rank-number {
  left: 10px;
  bottom: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.card-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.card-body p {
  margin: 8px 0 0;
  font-size: 13px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-meta span {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
}

.tag-row {
  margin-top: 12px;
}

.movie-card.compact .card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-tile,
.prose-block,
.detail-panel,
.search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.category-tile {
  padding: 22px;
}

.category-tile h3 {
  margin: 0;
  font-size: 22px;
}

.category-tile p {
  min-height: 76px;
  margin: 10px 0 18px;
}

.page-title {
  padding: 58px 0 28px;
}

.page-title h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.filter-panel {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.66);
}

.detail-hero {
  padding: 46px 0 26px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 2.85;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(30, 41, 59, 0.7);
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumbs a {
  color: #fde68a;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-copy > p {
  margin: 16px 0 0;
  max-width: 820px;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.player-section {
  padding: 30px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.32);
  font-size: 18px;
  font-weight: 900;
}

.player-play.hidden {
  display: none;
}

.detail-panel {
  padding: 24px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fact {
  padding: 16px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid var(--line);
}

.fact span {
  display: block;
  color: var(--soft);
  font-size: 13px;
}

.fact strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
}

.prose-block {
  margin-top: 20px;
  padding: 24px;
}

.prose-block h2 {
  font-size: 24px;
}

.prose-block p {
  margin: 14px 0 0;
  font-size: 16px;
}

.search-panel {
  padding: 22px;
  margin-bottom: 24px;
}

.search-results.empty::before {
  content: "输入关键词后可按片名、地区、类型、标签快速检索。";
  display: block;
  color: var(--muted);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.56);
}

.footer-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-shell strong {
  font-size: 22px;
}

.footer-shell p {
  margin: 8px 0 0;
  max-width: 640px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #fde68a;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-content,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 52px 0 86px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 300px;
  }

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

  .footer-shell,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .main-shell,
  .footer-shell,
  .hero-content {
    width: min(100% - 22px, 1240px);
  }

  .brand-text em {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: 32px;
  }

  .home-search form,
  .search-form {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-grid,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .player-play {
    width: 74px;
    height: 74px;
    font-size: 16px;
  }
}
