:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #121a2d;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  --amber-300: #fcd34d;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 80px rgba(2, 6, 23, 0.18);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand {
  font-size: 24px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--red-400));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.42);
}

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

.nav-link {
  position: relative;
  color: var(--slate-200);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px 18px;
  background: var(--slate-900);
}

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

.mobile-link {
  display: block;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--slate-200);
  font-weight: 700;
}

.mobile-link:hover {
  background: var(--slate-800);
  color: var(--red-400);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 18% 18%, rgba(239, 68, 68, 0.32), transparent 28%), linear-gradient(135deg, #020617 0%, #111827 42%, #7f1d1d 100%);
}

.hero::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(127, 29, 29, 0.42));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.05) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: center;
  min-height: 650px;
  padding: 70px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border: 1px solid rgba(248, 113, 113, 0.36);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--red-400);
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 690px;
  margin: 0 0 26px;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--red-400));
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.38);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-feature {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-feature h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 24px;
}

.hero-feature p {
  margin: 0 0 18px;
  color: var(--slate-300);
  font-size: 14px;
}

.hero-mini-list {
  display: grid;
  gap: 10px;
}

.hero-mini-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.08);
}

.hero-mini-list a:hover {
  background: rgba(248, 113, 113, 0.18);
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--red-400);
}

.main-section {
  padding: 60px 0;
}

.main-section.alt {
  background: var(--white);
}

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

.section-heading h1,
.section-heading h2 {
  margin: 12px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.section-link {
  color: var(--red-600);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--red-700));
}

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

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

.poster-link::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.85));
  opacity: 0.88;
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.poster-year {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: var(--red-600);
}

.poster-play {
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.78);
}

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

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

.movie-card h2 a:hover,
.compact-card h2 a:hover,
.rank-list a:hover {
  color: var(--red-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.meta-pill {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 180px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800) 55%, var(--red-700));
  box-shadow: var(--shadow-card);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--slate-300);
  line-height: 1.7;
}

.category-card span {
  display: inline-flex;
  align-items: center;
  color: var(--red-400);
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.compact-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-800);
}

.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red-600);
  font-size: 12px;
  font-weight: 900;
}

.compact-card h2 {
  margin: 3px 0 8px;
  font-size: 18px;
}

.compact-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.24), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800) 58%, #7f1d1d);
}

.page-hero .container {
  padding: 72px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 14px 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin: -38px auto 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 0 16px;
  min-height: 54px;
  background: var(--slate-50);
}

.search-box span {
  color: var(--red-600);
  font-size: 24px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--slate-900);
  background: transparent;
}

.filter-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-group strong {
  color: var(--slate-700);
}

.filter-group button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-group button.active,
.filter-group button:hover {
  color: var(--white);
  background: var(--red-600);
}

.empty-state {
  display: none;
  border-radius: var(--radius-md);
  padding: 54px 22px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800) 55%, #7f1d1d);
}

.detail-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 38px;
  padding: 58px 0;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--slate-800);
  box-shadow: var(--shadow-soft);
}

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

.detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.detail-summary {
  max-width: 800px;
  color: var(--slate-200);
  font-size: 17px;
  line-height: 1.85;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.meta-pill {
  color: var(--slate-100);
  background: rgba(255, 255, 255, 0.12);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--slate-950);
  box-shadow: var(--shadow-soft);
}

.player-wrap video {
  display: block;
  width: 100%;
  min-height: 420px;
  background: var(--slate-950);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.45));
  transition: opacity 0.2s ease;
}

.player-overlay.hidden {
  opacity: 0;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--red-400));
  box-shadow: 0 20px 44px rgba(220, 38, 38, 0.45);
  cursor: pointer;
  pointer-events: auto;
  font-size: 30px;
}

.content-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 14px;
  color: var(--slate-700);
  line-height: 1.9;
}

.content-stack {
  display: grid;
  gap: 24px;
}

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

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

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: var(--slate-900);
  font-weight: 900;
}

.rank-row:nth-child(-n+3) .rank-number {
  background: var(--red-600);
}

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

.rank-row p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.rank-score {
  color: var(--red-600);
  font-weight: 900;
}

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

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

.footer-grid p {
  max-width: 480px;
  color: var(--slate-400);
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: var(--slate-500);
}

@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-button {
    display: inline-flex;
  }

  .hero-content,
  .detail-grid,
  .footer-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    min-height: 620px;
  }

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

  .section-heading {
    display: block;
  }

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

  .player-wrap video {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 20px;
  }

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

  .hero-content {
    padding: 42px 0;
  }

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

  .compact-card {
    grid-template-columns: 80px 1fr;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

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