:root {
  --lava-700: #c2410c;
  --lava-600: #ea580c;
  --lava-500: #f97316;
  --lava-400: #fb923c;
  --ember-400: #fbbf24;
  --volcanic-950: #09090b;
  --volcanic-900: #18181b;
  --volcanic-800: #27272a;
  --volcanic-700: #3f3f46;
  --volcanic-600: #52525b;
  --volcanic-500: #71717a;
  --volcanic-200: #e4e4e7;
  --volcanic-100: #f4f4f5;
  --volcanic-50: #fafafa;
  --shadow-soft: 0 20px 60px rgba(9, 9, 11, 0.16);
  --shadow-lava: 0 20px 45px rgba(234, 88, 12, 0.25);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--volcanic-900);
  background: var(--volcanic-50);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(9, 9, 11, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-400));
  box-shadow: var(--shadow-lava);
  color: #fff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
  background: rgba(9, 9, 11, 0.96);
}

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

.hero-carousel {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: #000;
}

.hero-static-copy {
  position: absolute;
  z-index: 8;
  left: max(16px, calc((100vw - 1280px) / 2));
  top: 120px;
  max-width: 620px;
  color: #fff;
  pointer-events: none;
}

.hero-static-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}

.hero-static-copy p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
}

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

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

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

.hero-slide.is-active .hero-image {
  animation: heroZoom 8s ease forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 45%);
}

.hero-content {
  position: absolute;
  left: max(16px, calc((100vw - 1280px) / 2));
  bottom: 86px;
  z-index: 6;
  max-width: 680px;
  color: #fff;
  padding-right: 16px;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lava-500);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.wide-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  background: var(--volcanic-100);
  color: var(--volcanic-600);
}

.large-tags span {
  background: rgba(234, 88, 12, 0.12);
  color: var(--lava-700);
}

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

.btn-primary,
.btn-ghost,
.text-link,
.filter-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.filter-controls button {
  background: linear-gradient(135deg, var(--lava-600), var(--lava-400));
  color: #fff;
  box-shadow: var(--shadow-lava);
}

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

.btn-primary:hover,
.btn-ghost:hover,
.text-link:hover,
.filter-controls button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 11;
  right: max(16px, calc((100vw - 1280px) / 2));
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--lava-500);
}

.section {
  padding: 76px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(180deg, #fff7ed, #fafafa);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.split-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2,
.search-panel h2,
.detail-content h2,
.page-hero h1,
.detail-copy h1,
.compact-head h2 {
  margin: 0;
  color: var(--volcanic-900);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-head p,
.search-panel p,
.page-hero p,
.detail-content p,
.compact-head p {
  color: var(--volcanic-600);
  font-size: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: end;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(234, 88, 12, 0.12);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) auto;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--volcanic-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--volcanic-900);
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--lava-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  margin: 26px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--lava-700);
  font-weight: 900;
  text-align: center;
}

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

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

.category-movie-grid {
  margin-top: 30px;
}

.masonry-grid article:nth-child(6n + 2),
.masonry-grid article:nth-child(6n + 5) {
  transform: translateY(18px);
}

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 24, 27, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(24, 24, 27, 0.18);
}

.movie-card a {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--volcanic-800), var(--volcanic-950));
}

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

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

.play-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  transition: opacity 0.28s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 44px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-400));
  font-weight: 900;
  box-shadow: var(--shadow-lava);
}

.movie-meta-strip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.movie-meta-strip span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.movie-body {
  padding: 18px;
}

.movie-body h3,
.wide-card h3 {
  margin: 0 0 8px;
  color: var(--volcanic-900);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.movie-card:hover h3,
.wide-card:hover h3 {
  color: var(--lava-600);
}

.movie-body p,
.wide-card p {
  margin: 0 0 14px;
  color: var(--volcanic-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  min-height: 250px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 42%),
    linear-gradient(145deg, #fff, #fff7ed);
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(234, 88, 12, 0.16);
}

.category-accent {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--lava-600);
  font-size: 12px;
  font-weight: 900;
}

.category-tile h3 {
  margin: 18px 0 10px;
  font-size: 25px;
  line-height: 1.1;
}

.category-tile p {
  margin: 0 0 16px;
  color: var(--volcanic-600);
}

.category-tile div {
  display: grid;
  gap: 5px;
  color: var(--volcanic-500);
  font-size: 13px;
}

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

.wide-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 24, 27, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(24, 24, 27, 0.16);
}

.wide-card a {
  display: grid;
  grid-template-columns: 72px 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.wide-card img {
  width: 110px;
  height: 138px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--volcanic-900);
}

.wide-rank strong {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--volcanic-900), var(--lava-600));
  font-size: 18px;
}

.wide-meta span {
  background: var(--volcanic-100);
  color: var(--volcanic-600);
}

.page-hero,
.detail-hero {
  padding: 128px 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.28), transparent 30%),
    linear-gradient(135deg, var(--volcanic-950), var(--volcanic-800));
}

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

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

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

.category-stack {
  display: grid;
  gap: 30px;
}

.category-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 260px minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-feature-copy h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.category-feature-copy p {
  color: var(--volcanic-600);
}

.category-feature-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  object-fit: cover;
  background: var(--volcanic-900);
}

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

.compact-card .movie-body {
  padding: 12px;
}

.compact-card .movie-body p,
.compact-card .tag-row,
.compact-card .movie-meta-strip,
.compact-card .play-float {
  display: none;
}

.compact-card .movie-body h3 {
  margin: 0;
  font-size: 14px;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  background: var(--volcanic-900);
}

.detail-copy .lead-text {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
}

.detail-meta {
  margin: 24px 0 18px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.player-section {
  background: var(--volcanic-950);
  color: #fff;
}

.player-section .section-head h2,
.player-section .section-head p {
  color: #fff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.02);
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.2), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36));
}

.player-play-icon {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-400));
  box-shadow: var(--shadow-lava);
  font-size: 34px;
  padding-left: 5px;
}

.player-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.detail-content article {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-content p {
  font-size: 18px;
}

.text-link {
  color: var(--lava-700);
  background: #fff7ed;
}

.site-footer {
  padding: 64px 0 26px;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.22), transparent 34%),
    linear-gradient(135deg, var(--volcanic-950), var(--volcanic-900));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.5fr));
  gap: 30px;
}

.footer-grid p {
  max-width: 520px;
  margin: 18px 0 0;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
}

[hidden] {
  display: none !important;
}

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

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

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

  .category-feature-art {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-static-copy {
    top: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .filter-controls,
  .detail-grid,
  .detail-content,
  .wide-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .wide-card a {
    grid-template-columns: 58px 92px minmax(0, 1fr);
  }

  .wide-card img {
    width: 92px;
    height: 118px;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-static-copy {
    top: 90px;
    right: 16px;
  }

  .hero-content {
    bottom: 86px;
    right: 16px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 34px;
  }

  .section {
    padding: 56px 0;
  }

  .search-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 18px;
  }

  .movie-poster {
    aspect-ratio: 16 / 10;
  }

  .masonry-grid article:nth-child(6n + 2),
  .masonry-grid article:nth-child(6n + 5) {
    transform: none;
  }

  .page-hero,
  .detail-hero {
    padding: 104px 0 52px;
  }

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

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

  .player-play-icon {
    width: 68px;
    height: 68px;
  }
}
