:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --orange-500: #f97316;
  --amber-300: #fcd34d;
  --cyan-500: #06b6d4;
  --emerald-500: #10b981;
  --rose-500: #f43f5e;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button, input, select {
  font: inherit;
}

.page {
  min-height: 100vh;
  background: var(--gray-50);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-300));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.primary-nav a:hover,
.primary-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  background: var(--orange-500);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.45;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.05);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(30, 64, 175, 0.82) 48%, rgba(2, 6, 23, 0.45)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 44px;
  padding: 72px 0 84px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro {
  max-width: 650px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: #ea580c;
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.38);
}

.btn-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 18px;
}

.focus-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(18px);
}

.focus-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.focus-card:hover img {
  transform: scale(1.07);
}

.play-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.35);
  font-size: 22px;
}

.focus-body {
  padding: 20px;
}

.focus-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.22;
}

.focus-body p {
  margin: 0;
  color: #cbd5e1;
}

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

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

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

.section {
  padding: 66px 0;
}

.section.white {
  background: var(--white);
}

.section.soft {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

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

.section-title {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  line-height: 1.12;
}

.section-title::before {
  content: "";
  width: 8px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-500), var(--amber-300));
}

.section-desc {
  margin: 0;
  color: var(--gray-500);
}

.more-link {
  color: var(--orange-500);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  color: var(--gray-900);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-900);
}

.poster.square {
  aspect-ratio: 1 / 1;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 55%);
  opacity: 0.9;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  bottom: auto;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.hover-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.82);
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: var(--orange-500);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0 0 6px;
  min-height: 2.76em;
  font-size: 15px;
  line-height: 1.38;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-line {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 166px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-800));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -50px;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

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

.category-card p {
  margin: 0;
  color: #dbeafe;
}

.search-panel {
  padding: 26px;
  margin: -44px auto 32px;
  position: relative;
  z-index: 6;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
}

.search-input,
.select-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  outline: none;
  background: var(--white);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.breadcrumb {
  padding: 22px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange-500);
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-800));
  padding: 64px 0 86px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.25);
  filter: blur(20px);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-900);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.rank-info p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.rank-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  border-radius: 14px;
  font-weight: 900;
}

.detail-page {
  color: #e5e7eb;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800), var(--slate-950));
}

.detail-wrap {
  padding: 32px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.38);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.video-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-watch {
  position: relative;
  z-index: 2;
  border: 0;
  cursor: pointer;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.42);
  font-size: 34px;
}

.player-title {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.player-title h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.detail-side {
  display: grid;
  gap: 22px;
}

.side-card,
.content-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.side-card h2,
.content-card h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 24px;
}

.side-card p,
.content-card p {
  color: #cbd5e1;
}

.detail-poster {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 16px;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.tag-cloud a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(6, 182, 212, 0.16);
  font-size: 13px;
}

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

.related-mini {
  overflow: hidden;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, background 0.22s ease;
}

.related-mini:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
}

.related-mini img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.related-mini strong {
  display: block;
  padding: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-title {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid li {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--amber-300);
}

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

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

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
  color: var(--gray-500);
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.empty-state.show {
  display: block;
}

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

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

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

  .hero-panel {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 58px 0 88px;
  }

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

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

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

  .search-panel {
    margin-top: -28px;
  }

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

  .rank-number {
    display: none;
  }

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

@media (max-width: 440px) {
  .movie-grid,
  .movie-grid.wide,
  .category-strip,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 18px;
  }
}
