:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --accent-50: #ecfdf5;
  --accent-600: #059669;
  --accent-700: #047857;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--secondary-800);
  background: var(--secondary-50);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--secondary-900);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.brand-text {
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--secondary-700);
  font-size: 15px;
  font-weight: 650;
  flex: 1;
}

.desktop-nav a,
.mobile-nav a,
.footer-grid a,
.more-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover,
.more-link:hover {
  color: var(--primary-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--secondary-300);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  color: var(--secondary-800);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.header-search button,
.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 750;
  cursor: pointer;
}

.header-search button,
.btn.primary {
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.22);
}

.header-search button:hover,
.btn.primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn.ghost.dark {
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary-100);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700) 45%, var(--secondary-900));
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.2;
}

.hero-glow.one {
  top: -120px;
  left: 8%;
  background: var(--primary-200);
}

.hero-glow.two {
  right: -80px;
  bottom: -120px;
  background: var(--accent-600);
}

.hero-shell {
  position: relative;
  min-height: 620px;
  padding: 80px 0 70px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 58px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--primary-100);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 20px 0 10px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: var(--primary-200);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--primary-100);
  font-size: 18px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--accent-700);
  background: var(--accent-50);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(2, 8, 23, 0.42);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75), transparent 56%);
}

.hero-play,
.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 35px rgba(2, 8, 23, 0.2);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.section {
  padding: 58px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.5), rgba(236, 253, 245, 0.36));
}

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

.section-head h2,
.category-overview-head h2,
.side-card h2,
.detail-card h2,
.site-footer h2 {
  margin: 0;
  color: var(--secondary-900);
  line-height: 1.2;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.section-head p,
.category-overview-head p {
  margin: 8px 0 0;
  color: var(--secondary-600);
}

.more-link {
  color: var(--primary-600);
  font-weight: 760;
  white-space: nowrap;
}

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

.category-tile,
.category-overview-card,
.spotlight-card,
.detail-card,
.side-card {
  border: 1px solid var(--secondary-100);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.tile-icon,
.category-overview-head > span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary-600);
  font-weight: 900;
  font-size: 22px;
}

.category-tile strong {
  color: var(--secondary-900);
  font-size: 19px;
}

.category-tile em,
.category-tile small {
  color: var(--secondary-600);
  font-style: normal;
  font-size: 13px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--secondary-100);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link,
.poster-wrap,
.card-content {
  display: block;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 2.85;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-200));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.74), transparent 50%);
}

.year-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.year-badge {
  left: 10px;
  top: 10px;
  background: var(--primary-600);
}

.type-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.card-content {
  padding: 14px;
}

.card-content strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--secondary-900);
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-content em,
.card-content span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--secondary-600);
  font-style: normal;
  font-size: 13px;
  -webkit-box-orient: vertical;
}

.card-content em {
  margin: 6px 0;
  color: var(--primary-700);
  -webkit-line-clamp: 1;
}

.card-content span {
  -webkit-line-clamp: 2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--secondary-100);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-num {
  color: var(--primary-600);
  font-weight: 900;
  font-size: 22px;
  text-align: center;
}

.rank-card img {
  width: 82px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-card strong,
.rank-card em {
  display: block;
}

.rank-card strong {
  color: var(--secondary-900);
  line-height: 1.35;
}

.rank-card em {
  color: var(--secondary-500);
  font-style: normal;
  font-size: 13px;
}

.spotlight-card {
  position: sticky;
  top: 94px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
}

.spotlight-card span {
  color: var(--primary-100);
  font-weight: 800;
}

.spotlight-card h2 {
  margin: 16px 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}

.spotlight-card p {
  color: rgba(255, 255, 255, 0.88);
}

.page-hero,
.detail-hero {
  padding: 66px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600), var(--secondary-900));
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--secondary-100);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-bar input {
  flex: 1;
}

.detail-hero {
  color: var(--secondary-800);
  background: linear-gradient(180deg, var(--secondary-900) 0, var(--secondary-900) 300px, var(--secondary-50) 300px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary-100);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 70px rgba(2, 8, 23, 0.34);
  aspect-ratio: 16 / 9;
}

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

.player-video {
  z-index: 1;
  object-fit: contain;
  background: #000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

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

.detail-card {
  margin-top: 24px;
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--secondary-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.detail-card section {
  margin-top: 28px;
}

.detail-card p {
  margin: 12px 0 0;
  color: var(--secondary-700);
}

.lead-text {
  font-weight: 750;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--secondary-200);
}

.meta-pills span,
.meta-pills a {
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--secondary-700);
  background: var(--secondary-100);
  font-weight: 700;
  font-size: 14px;
}

.meta-pills a {
  color: var(--primary-700);
  background: var(--primary-50);
}

.review-box {
  border-left: 4px solid var(--primary-600);
  border-radius: 0 16px 16px 0;
  padding: 18px;
  background: var(--secondary-50);
}

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

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.side-recommend {
  display: grid;
  gap: 14px;
}

.side-recommend .movie-card {
  display: grid;
}

.side-recommend .card-link {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
}

.side-recommend .poster-wrap {
  aspect-ratio: 1.48 / 1;
  height: 88px;
}

.side-recommend .card-content strong {
  min-height: auto;
  font-size: 14px;
}

.side-recommend .card-content span {
  display: none;
}

.site-footer {
  color: var(--secondary-300);
  background: var(--secondary-900);
}

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

.footer-brand {
  color: #fff;
}

.footer-grid p {
  max-width: 520px;
  color: var(--secondary-400);
}

.footer-grid h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 17px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--secondary-300);
  font-size: 14px;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--secondary-500);
  text-align: center;
  font-size: 14px;
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-search {
    margin-left: auto;
  }

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

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

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

@media (max-width: 720px) {
  .nav-container {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .hero-shell {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .hero-poster {
    min-height: 280px;
    transform: none;
  }

  .hero-poster img {
    min-height: 280px;
  }

  .hero-dots {
    left: 0;
    bottom: 24px;
  }

  .section-head,
  .category-overview-head,
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.four-col,
  .catalogue-grid,
  .mini-grid,
  .full-ranking,
  .detail-side,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .side-recommend .card-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}
