* {
  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: #e5e7eb;
  background: #020617;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.48);
  font-size: 14px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: 0.25s ease;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.88);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.menu-toggle {
  display: none;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 24px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.22), transparent 28%), linear-gradient(180deg, #020617, #0f172a 55%, #020617);
}

.hero-slider {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78) 45%, rgba(2, 6, 23, 0.92)), linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 48px;
  padding: 80px 0 64px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 14px 0 18px;
  max-width: 780px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.05em;
}

.hero h1 span,
.hero h2 span {
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 720px;
  font-size: 19px;
  color: #cbd5e1;
  margin: 0 0 26px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.32);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.btn-ghost {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 500px;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), 0 0 60px rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
}

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

.slider-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.slider-dot.is-active {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.main-section,
.page-hero,
.detail-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.main-section {
  padding: 70px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: #ffffff;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  max-width: 680px;
  color: #94a3b8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 24px 56px rgba(245, 158, 11, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.2), transparent 36%), #0f172a;
}

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

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

.play-mini {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: #fbbf24;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-radius: 999px;
  font-weight: 900;
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.22), rgba(37, 99, 235, 0.18)), rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #fbbf24;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 24px;
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
  outline: none;
}

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

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 60px 94px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-no {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
}

.rank-row img {
  width: 94px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.rank-row h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.rank-row p {
  margin: 0;
  color: #94a3b8;
}

.detail-page {
  padding: 52px 0 76px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 360px;
  gap: 32px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f97316);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.36);
}

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

.detail-title {
  margin-top: 24px;
}

.detail-side {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

.detail-info {
  padding: 20px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 8px;
  color: #cbd5e1;
}

.info-list strong {
  color: #fbbf24;
  min-width: 46px;
}

.content-card {
  margin-top: 32px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #cbd5e1;
}

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

.no-results {
  display: none;
  padding: 32px;
  text-align: center;
  color: #cbd5e1;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
}

.no-results.is-visible {
  display: block;
}

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

  .hero-poster {
    min-height: auto;
  }

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

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

@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

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

  .hero,
  .hero-slider,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner {
    padding-top: 44px;
  }

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

  .section-heading {
    display: block;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-row .btn-ghost {
    grid-column: 1 / -1;
  }

  .rank-row img {
    width: 72px;
    height: 96px;
  }

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

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .action-row {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }
}
