:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111c32;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --dim: #94a3b8;
  --cyan: #06b6d4;
  --teal: #0d9488;
  --blue: #2563eb;
  --purple: #9333ea;
  --pink: #db2777;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(147, 51, 234, 0.26), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(6, 182, 212, 0.22), transparent 26%),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #020617 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 18px 34px rgba(6, 182, 212, 0.22);
}

.brand-text {
  font-size: 1.08rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-nav a,
.footer-links a {
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.92)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.14);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  align-items: center;
  gap: 50px;
  padding: 70px 0 86px;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.7s ease both;
}

.hero-slide.is-active {
  display: contents;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(6, 182, 212, 0.36);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.11);
  color: #a5f3fc;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.82;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.48);
  background: rgba(255, 255, 255, 0.14);
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.28);
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.hero-poster {
  position: relative;
}

.hero-poster img {
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: absolute;
  left: -34px;
  bottom: 34px;
  width: min(310px, 78%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
}

.hero-panel span {
  color: var(--muted);
  line-height: 1.6;
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.section {
  padding: 58px 0;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-title p,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.category-pill {
  white-space: nowrap;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.poster-year {
  right: 12px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  min-height: 2.55em;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.28;
}

.card-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 0.9rem;
}

.card-meta {
  margin: 9px 0 10px;
}

.card-meta a {
  color: #a5f3fc;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.mini-tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tags {
  margin-top: 13px;
}

.mini-tags span,
.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 0.78rem;
}

.page-hero {
  padding: 70px 0 28px;
}

.page-title {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(147, 51, 234, 0.16)),
    rgba(255, 255, 255, 0.06);
}

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

.category-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
}

.category-card h2 {
  margin: 0 0 14px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.category-card .sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a5f3fc;
}

.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.45);
  color: #ffffff;
  outline: none;
}

.search-panel input:focus {
  border-color: rgba(6, 182, 212, 0.68);
}

.detail-hero {
  padding: 54px 0 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
}

.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #a5f3fc;
}

.detail-title h1 {
  margin-top: 0;
}

.detail-intro {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.82;
  font-size: 1.07rem;
}

.tags {
  margin: 18px 0 24px;
}

.player-section,
.text-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.78)),
    rgba(2, 6, 23, 0.4);
  color: #ffffff;
  font-size: clamp(1.2rem, 4vw, 2.1rem);
  font-weight: 900;
  cursor: pointer;
}

.play-layer::before {
  content: "";
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 22px 48px rgba(6, 182, 212, 0.28);
}

.play-layer::after {
  content: "播放";
  position: absolute;
}

.play-layer.is-hidden {
  display: none;
}

.text-section h2,
.player-section h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.text-section p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.92;
}

.text-section p:last-child {
  margin-bottom: 0;
}

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

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

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

.footer-links a {
  padding: 9px 13px;
}

.empty-result {
  display: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-poster {
    max-width: 440px;
  }
}

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

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 82px;
  }

  .hero-panel {
    left: 18px;
    bottom: 18px;
  }

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

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

  .section-head,
  .footer-inner,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .footer-inner,
  .hero-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

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

  .page-title,
  .detail-info,
  .player-section,
  .text-section {
    padding: 22px;
  }
}
