:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
  --soft-shadow: 0 10px 30px rgb(15 23 42 / 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  backdrop-filter: blur(16px);
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 10px 25px rgb(2 132 199 / 0.32);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-600);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 20px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.20) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.12));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px 120px;
  color: #fff;
}

.eyebrow,
.section-title p,
.page-hero p {
  margin: 0 0 10px;
  color: var(--primary-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-content h2 {
  margin: 22px 0 12px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.12;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgb(226 232 240 / 0.95);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #dff6ff;
  border: 1px solid rgb(125 211 252 / 0.34);
  background: rgb(14 165 233 / 0.16);
}

.tag-row span {
  color: var(--primary-700);
  background: var(--primary-50);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 18px 35px rgb(2 132 199 / 0.32);
}

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

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

.ghost-btn {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.26);
  background: rgb(15 23 42 / 0.36);
  backdrop-filter: blur(14px);
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-control button {
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 0.18);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.38);
}

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

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

.section-title {
  margin-bottom: 26px;
}

.section-title h2,
.page-hero h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.row-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.row-title a {
  color: var(--primary-600);
  font-weight: 800;
}

.lead-text {
  max-width: 820px;
  margin: -8px 0 24px;
  color: var(--gray-500);
  font-size: 17px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  font: inherit;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgb(56 189 248 / 0.16);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgb(226 232 240 / 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.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-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgb(2 132 199 / 0.92);
  box-shadow: 0 12px 24px rgb(2 6 23 / 0.25);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgb(239 68 68 / 0.28);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--soft-shadow);
  background: #020617;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2 6 23 / 0.88), rgb(2 6 23 / 0.12));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 22px;
}

.category-tile span {
  margin-top: 122px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small {
  margin-top: 7px;
  color: rgb(226 232 240 / 0.9);
  font-size: 14px;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.82;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgb(14 165 233 / 0.35), transparent 35%),
    linear-gradient(135deg, #020617, #075985);
}

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

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

.page-hero h1 {
  color: #fff;
}

.page-hero span {
  display: block;
  max-width: 720px;
  margin-top: 16px;
  color: rgb(226 232 240 / 0.9);
  font-size: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
  color: #fff;
}

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transform: scale(1.08);
  opacity: 0.6;
}

.detail-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 56px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgb(226 232 240 / 0.88);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--primary-400);
}

.breadcrumbs em {
  font-style: normal;
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 65px rgb(0 0 0 / 0.38);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgb(226 232 240 / 0.92);
  font-size: 18px;
}

.player-section {
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgb(15 23 42 / 0.2);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgb(2 6 23 / 0.56), rgb(2 6 23 / 0.16));
  cursor: pointer;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 24px 55px rgb(2 132 199 / 0.4);
  font-size: 34px;
  text-indent: 5px;
}

.player-overlay.is-hidden {
  display: none;
}

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

.detail-main,
.detail-side {
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.04);
}

.detail-main {
  padding: 30px;
}

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

.detail-section h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.detail-side {
  align-self: start;
  padding: 24px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-side dt {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  margin: -10px 0 0;
  color: var(--gray-900);
  font-weight: 700;
}

.site-footer {
  margin-top: 48px;
  background: #020617;
  color: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: rgb(226 232 240 / 0.76);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgb(226 232 240 / 0.86);
}

.is-filtered-out {
  display: none;
}

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

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

@media (max-width: 760px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

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

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-50);
  }

  .hero-carousel {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 88px 18px 118px;
  }

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

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

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

  .section-wrap {
    padding: 42px 18px;
  }

  .row-title {
    align-items: start;
    flex-direction: column;
  }

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

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

  .detail-content {
    padding: 30px 18px 46px;
  }

  .detail-main {
    padding: 22px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
