:root {
  --stone-950: #0c0a09;
  --stone-925: #11100e;
  --stone-900: #1c1917;
  --stone-850: #221f1d;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-100: #f5f5f4;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --blue-500: #3b82f6;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-950);
  color: var(--stone-100);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid rgba(68, 64, 60, 0.8);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

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

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

.brand:hover {
  color: var(--amber-400);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--stone-300);
  font-size: 15px;
  font-weight: 650;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-400);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-700);
  border-radius: 12px;
  background: var(--stone-800);
  color: var(--stone-100);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  background: var(--stone-800);
  border-top: 1px solid var(--stone-700);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--stone-300);
  font-weight: 650;
}

main {
  min-height: 70vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 36%),
    radial-gradient(circle at 76% 20%, rgba(249, 115, 22, 0.16), transparent 28%),
    linear-gradient(180deg, var(--stone-900), var(--stone-950));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.48), rgba(12, 10, 9, 0.9)),
    linear-gradient(180deg, transparent, var(--stone-950));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 70px;
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

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

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.56s ease both;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 a:hover {
  color: var(--amber-400);
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--stone-300);
  font-size: 20px;
}

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

.hero-meta span,
.tag-row span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.64);
  color: var(--stone-300);
  font-size: 13px;
  font-weight: 650;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--amber-600);
  color: #fff;
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.28);
}

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

.btn-ghost {
  background: rgba(41, 37, 36, 0.7);
  border-color: rgba(120, 113, 108, 0.45);
  color: var(--stone-100);
}

.btn-ghost:hover {
  border-color: var(--amber-500);
  color: var(--amber-400);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster-glow {
  position: absolute;
  inset: 12% -12% -6% -12%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 64%);
  filter: blur(26px);
}

.hero-poster {
  position: relative;
  width: min(360px, 100%);
  margin-left: auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--stone-800);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(12, 10, 9, 0.78);
  border: 1px solid rgba(245, 245, 244, 0.08);
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.hero-poster-card span {
  color: var(--stone-300);
  font-size: 13px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--stone-700);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--amber-500);
}

.quick-search {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: -34px auto 0;
  padding: 0 24px;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.94);
  border: 1px solid rgba(68, 64, 60, 0.86);
  box-shadow: var(--shadow);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(87, 83, 78, 0.85);
  border-radius: 13px;
  background: var(--stone-950);
  color: var(--stone-100);
  padding: 0 14px;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
}

.section {
  padding: 76px 0 0;
}

.section.alt {
  margin-top: 76px;
  padding: 42px 0;
  background: var(--stone-900);
  border-top: 1px solid rgba(68, 64, 60, 0.6);
  border-bottom: 1px solid rgba(68, 64, 60, 0.6);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--stone-400);
}

.section-link {
  color: var(--amber-400);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone-800);
  border: 1px solid rgba(68, 64, 60, 0.76);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.58);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.74));
}

.play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.9);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  left: 12px;
  bottom: 12px;
  background: var(--amber-600);
  color: #fff;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 30px;
  background: rgba(12, 10, 9, 0.78);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.movie-card-body {
  padding: 15px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--amber-400);
}

.card-line {
  min-height: 44px;
  margin: 0 0 11px;
  color: var(--stone-400);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--stone-400);
  font-size: 12px;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
  background: var(--stone-700);
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at right top, rgba(245, 158, 11, 0.18), transparent 34%),
    var(--stone-900);
  border: 1px solid rgba(68, 64, 60, 0.8);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.62);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0;
  color: var(--stone-400);
  font-size: 14px;
}

.page-hero {
  padding: 74px 0 44px;
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(180deg, var(--stone-900), var(--stone-950));
  border-bottom: 1px solid rgba(68, 64, 60, 0.65);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--stone-300);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-400);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.filter-panel {
  margin: 34px 0 30px;
  padding: 18px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  background: var(--stone-900);
  border: 1px solid rgba(68, 64, 60, 0.8);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--stone-900);
  border: 1px solid rgba(68, 64, 60, 0.75);
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-400);
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-item h2 a:hover {
  color: var(--amber-400);
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--stone-400);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: var(--stone-900);
  border: 1px solid rgba(68, 64, 60, 0.82);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.player-start.hidden {
  display: none;
}

.player-start span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-600);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 22px 44px rgba(217, 119, 6, 0.35);
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.16;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--stone-300);
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--stone-800);
}

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

.text-block {
  margin-top: 28px;
}

.text-block h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: var(--stone-300);
}

.side-card {
  padding: 16px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.side-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(68, 64, 60, 0.75);
  color: var(--stone-300);
}

.side-link:hover {
  color: var(--amber-400);
}

.site-footer {
  margin-top: 82px;
  background: var(--stone-900);
  border-top: 1px solid rgba(68, 64, 60, 0.75);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  color: var(--stone-400);
}

.footer-brand {
  margin-bottom: 10px;
  color: var(--stone-100);
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: var(--stone-900);
  color: var(--stone-300);
  text-align: center;
}

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

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

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

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav.open {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-slide.active {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    margin: 0;
    width: min(320px, 90vw);
  }

  .quick-search-inner,
  .filter-panel,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .container,
  .hero-shell,
  .quick-search {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-shell {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 17px;
  }

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

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

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

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

  .movie-card h3 {
    font-size: 15px;
  }

  .rank-item {
    grid-template-columns: 40px 74px minmax(0, 1fr);
  }

  .rank-item img {
    width: 74px;
  }
}
