:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --yellow-400: #facc15;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
  font-size: 13px;
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan-400);
}

.nav-link-soft {
  opacity: 0.86;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

.hero-slide.active img {
  animation: heroZoom 7s ease forwards;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.16));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 56px 0 72px;
  color: var(--white);
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--cyan-400);
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 920px;
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
  color: var(--white);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: var(--cyan-500);
  background: rgba(6, 182, 212, 0.08);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-2px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--cyan-400);
}

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

.page-section {
  padding: 54px 0 0;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1,
.section-title h2,
.section-title h1 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.page-hero p,
.section-title p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--slate-600);
  font-size: 17px;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::before {
  content: "";
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: var(--cyan-500);
}

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

.feature-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  box-shadow: var(--shadow);
  background: var(--slate-900);
}

.feature-card.large {
  grid-row: span 2;
  min-height: 500px;
}

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

.feature-card:hover img,
.movie-card:hover img,
.wide-card:hover img,
.related-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.08));
}

.feature-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
}

.feature-info h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.feature-info p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  background: var(--slate-900);
  box-shadow: var(--shadow);
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-glow {
  opacity: 1;
}

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  right: auto;
  color: var(--slate-950);
  background: var(--yellow-400);
}

.movie-info h2 {
  margin: 12px 0 4px;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line,
.desc-line,
.wide-card p,
.related-card p,
.rank-row p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-list span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 700;
}

.horizontal-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
}

.wide-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.wide-card a:first-child {
  position: relative;
  display: block;
  overflow: hidden;
  height: 158px;
  border-radius: 18px;
  background: var(--slate-900);
  box-shadow: var(--shadow);
}

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

.wide-card span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.wide-card h2 {
  margin: 12px 0 4px;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.35;
}

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

.category-card {
  display: block;
  min-height: 172px;
  padding: 24px;
  border-radius: 22px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.35), transparent 28%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--yellow-400), #fb923c);
  font-weight: 900;
}

.rank-row img {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rank-row h2 {
  margin: 0 0 6px;
  color: var(--slate-800);
  font-size: 18px;
}

.rank-score {
  color: var(--cyan-500);
  font-weight: 900;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-result {
  margin: 18px 0 0;
  color: var(--slate-600);
  font-weight: 700;
}

.detail-shell {
  padding: 32px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-600);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--cyan-500);
  font-weight: 800;
}

.detail-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-strong);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(0, 0, 0, 0.32));
  transition: opacity 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.45);
  font-size: 28px;
  padding-left: 5px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 900;
}

.detail-meta span {
  color: var(--slate-700);
  background: var(--slate-100);
}

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

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

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

.article-block {
  margin-bottom: 26px;
}

.article-block h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 22px;
  font-weight: 900;
}

.article-block p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.9;
  text-align: justify;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.related-card a:first-child {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 2 / 3;
  background: var(--slate-900);
  box-shadow: var(--shadow);
}

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

.related-card h2 {
  margin: 10px 0 4px;
  color: var(--slate-800);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  margin-top: 72px;
  color: rgba(226, 232, 240, 0.86);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-main p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(203, 213, 225, 0.78);
}

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

.footer-main a,
.footer-main span {
  display: block;
  margin: 8px 0;
  color: rgba(203, 213, 225, 0.78);
  font-size: 14px;
}

.footer-main a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(148, 163, 184, 0.8);
  text-align: center;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.12);
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 12px;
    font-size: 13px;
  }

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

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

  .feature-card.large {
    grid-column: span 2;
  }

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

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

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

  .menu-button {
    display: flex;
  }

  .hero-slider {
    min-height: 76vh;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .mobile-nav,
  .page-section,
  .page-hero,
  .detail-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-content h1 {
    font-size: 36px;
  }

  .feature-grid,
  .category-grid,
  .filter-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .feature-card.large {
    grid-column: auto;
    min-height: 360px;
  }

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

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

  .rank-row {
    grid-template-columns: 38px 72px 1fr;
    gap: 10px;
    padding: 10px;
  }

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

  .rank-number {
    width: 34px;
    height: 34px;
  }

  .detail-content {
    padding: 20px;
  }
}
