:root {
  --blue-900: #14346b;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-deep: 0 25px 60px rgba(15, 23, 42, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
  border-radius: 12px;
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 16px;
  font-weight: 650;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue-600);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 3px;
  background: var(--blue-600);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--gray-700);
  background: transparent;
  font-size: 28px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800) 55%, var(--blue-900));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.38), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(219, 234, 254, 0.18), transparent 28%),
    rgba(0, 0, 0, 0.15);
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  align-items: center;
  gap: 34px;
  padding: 72px 0 116px;
}

.hero-stage {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-deep);
  background: rgba(17, 24, 39, 0.38);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

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

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange-500);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.detail-info h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.hero-side p,
.page-hero p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions,
.hero-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  color: var(--blue-600);
  background: var(--white);
}

.hero-dots {
  position: absolute;
  left: 46px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

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

.hero-dot.is-active {
  width: 30px;
  background: var(--orange-500);
}

.hero-side {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-side h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
}

.stat-strip {
  background: var(--white);
  padding: 24px 0 52px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-grid div {
  text-align: center;
  padding: 22px;
  border-radius: 20px;
  background: var(--gray-50);
}

.stats-grid strong {
  display: block;
  color: var(--blue-600);
  font-size: 28px;
  line-height: 1.1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
}

.section {
  padding: 76px 0;
  background: var(--white);
}

.section-light {
  background: var(--gray-50);
}

.rank-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.section-heading p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--gray-600);
}

.rank-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.section-more {
  flex: none;
  color: var(--blue-600);
  font-weight: 800;
}

.rank-section .section-more {
  color: var(--orange-500);
}

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

.category-tile,
.overview-card a {
  display: block;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.category-tile span,
.overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.overview-card p {
  color: var(--gray-600);
  font-size: 14px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-section .movie-card {
  color: var(--gray-800);
}

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

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

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

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

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 42px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.32);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--blue-600));
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.card-body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-row span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
  color: var(--blue-600);
}

.card-meta {
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 13px;
}

.card-summary {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-compact {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
}

.card-compact .poster-link {
  aspect-ratio: auto;
  min-height: 210px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
}

.page-hero {
  padding: 92px 0 78px;
}

.page-hero-small {
  padding: 72px 0 62px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(249, 115, 22, 0.42), transparent 26%),
    rgba(0, 0, 0, 0.12);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-label {
  color: var(--gray-900);
  font-weight: 900;
}

.search-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  color: var(--gray-800);
  background: var(--gray-50);
}

.search-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: var(--blue-600);
}

.detail-hero {
  padding: 56px 0 70px;
  background: var(--gray-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.32;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.84), rgba(30, 64, 175, 0.66));
}

.detail-head {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-500);
}

.detail-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
}

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

.detail-one-line {
  max-width: 800px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.movie-meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.movie-meta-list div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.movie-meta-list dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.movie-meta-list dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 900;
}

.player-section {
  background: var(--gray-950);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.22);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-500);
  font-size: 34px;
  box-shadow: var(--shadow-deep);
}

.player-start strong {
  font-size: 20px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.detail-content article {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 26px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: var(--gray-700);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--gray-900);
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--orange-500);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

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

  .movie-meta-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-layout {
    min-height: 540px;
    padding: 40px 0 95px;
  }

  .hero-stage {
    min-height: 500px;
  }

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

  .hero-slide img {
    height: 220px;
  }

  .hero-copy {
    justify-content: start;
    padding: 26px;
  }

  .hero-dots {
    left: 26px;
  }

  .stats-grid,
  .movie-grid,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-compact {
    grid-template-columns: 120px 1fr;
  }

  .card-compact .poster-link {
    min-height: 178px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-poster {
    width: 210px;
  }

  .movie-meta-list {
    grid-template-columns: 1fr;
  }
}
