:root {
  --mist-950: #020617;
  --mist-900: #0f172a;
  --mist-850: #162033;
  --mist-800: #1e293b;
  --mist-700: #334155;
  --mist-600: #475569;
  --mist-500: #64748b;
  --mist-400: #94a3b8;
  --mist-300: #cbd5e1;
  --mist-200: #e2e8f0;
  --mist-100: #f1f5f9;
  --mist-50: #f8fafc;
  --lake-700: #0369a1;
  --lake-600: #0284c7;
  --lake-500: #0ea5e9;
  --lake-400: #38bdf8;
  --sepia-700: #826545;
  --sepia-600: #9d7d52;
  --sepia-100: #f7f0e8;
  --sepia-50: #fbf7f1;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--sepia-50), var(--white) 34%, var(--mist-50));
  color: var(--mist-900);
  line-height: 1.65;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lake-500), var(--sepia-600));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.brand-text {
  font-size: 1.05rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--mist-200);
  font-size: 0.95rem;
}

.site-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--lake-400);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--mist-800);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--mist-200);
}

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

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.26), transparent 34%), linear-gradient(135deg, var(--mist-900), var(--mist-800) 48%, #083344);
  color: var(--white);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  min-height: 680px;
  display: none;
  align-items: center;
  position: relative;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.02);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.72) 48%, rgba(3, 105, 161, 0.32)), linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 36%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lake-400);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 16px 0 18px;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.hero-movie-title {
  color: var(--lake-400);
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 26px;
  color: var(--mist-200);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 6px 11px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.tag-row span {
  background: var(--mist-100);
  color: var(--mist-600);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
  color: var(--white);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 2.4rem;
  line-height: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--lake-400);
}

.quick-entry,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.quick-entry-inner,
.copy-card,
.search-panel,
.category-tile,
.movie-card,
.player-wrap {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.quick-entry-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 26px;
  align-items: center;
  margin-top: -82px;
  position: relative;
  z-index: 8;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.quick-entry h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.copy-card h2 {
  margin: 8px 0 10px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quick-entry p,
.page-hero p,
.copy-card p,
.detail-info p,
.movie-card p,
.category-tile p {
  color: var(--mist-600);
}

.search-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
}

.search-label {
  color: var(--mist-600);
  font-weight: 700;
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  border: 1px solid var(--mist-200);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  color: var(--mist-900);
  background: var(--white);
}

.search-input:focus {
  border-color: var(--lake-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-head a {
  color: var(--lake-700);
  font-weight: 800;
}

.align-end {
  align-items: end;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
  display: none;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--mist-100);
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.detail-poster:hover img {
  transform: scale(1.05);
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.74));
  opacity: 0.85;
}

.poster-play,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.3);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sepia-600), var(--lake-500));
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-card-meta {
  color: var(--sepia-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--lake-700);
}

.movie-card p {
  min-height: 3.2em;
  margin: 0 0 12px;
  font-size: 0.92rem;
}

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

.category-tile {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-xl);
  min-height: 230px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.category-eyebrow {
  color: var(--lake-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.category-tile strong {
  font-size: 1.35rem;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-900), var(--mist-800) 50%, var(--lake-700));
  color: var(--white);
}

.small-hero {
  padding: 82px 24px;
}

.small-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.small-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.small-hero p {
  max-width: 760px;
  color: var(--mist-200);
  font-size: 1.08rem;
}

.detail-hero {
  min-height: 620px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(1px) saturate(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78) 46%, rgba(3, 105, 161, 0.22)), linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 40%);
}

.detail-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--mist-300);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--lake-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.46);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.detail-info h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
}

.detail-info p {
  max-width: 760px;
  color: var(--mist-200);
  font-size: 1.08rem;
}

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

.detail-facts div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.detail-facts span {
  display: block;
  color: var(--mist-300);
  font-size: 0.78rem;
}

.detail-facts strong {
  color: var(--white);
  font-size: 0.95rem;
}

.player-section {
  padding-top: 68px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--mist-950);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: var(--mist-950);
}

.player-cover {
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--mist-950);
}

.player-cover img {
  object-fit: cover;
  opacity: 0.62;
}

.player-cover-shade {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), rgba(2, 6, 23, 0.72));
}

.player-button {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
  color: var(--white);
  font-size: 2.1rem;
  box-shadow: 0 22px 52px rgba(14, 165, 233, 0.38);
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.copy-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.copy-card h2 {
  font-size: 1.45rem;
}

.site-footer {
  margin-top: 50px;
  background: var(--mist-900);
  color: var(--mist-200);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 1.12rem;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--mist-400);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.footer-links a {
  color: var(--mist-300);
}

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero-stage,
  .hero-slide {
    min-height: 600px;
  }

  .hero-control {
    display: none;
  }

  .quick-entry-inner,
  .detail-layout,
  .detail-copy,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-entry-inner {
    margin-top: -50px;
  }

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

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

  .detail-poster {
    max-width: 240px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 16px;
  }

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

  .hero-content {
    width: calc(100% - 32px);
    padding: 86px 0 120px;
  }

  .quick-entry,
  .content-section,
  .small-hero,
  .detail-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid {
    gap: 14px;
  }

  .movie-card-body {
    padding: 13px;
  }

  .movie-card p {
    display: none;
  }

  .tag-row {
    display: none;
  }

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

  .player-button {
    width: 68px;
    height: 68px;
  }
}
