:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 52%, #f8fafc 100%);
  font-family: 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,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text em {
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link {
  padding: 10px 15px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

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

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.98);
  padding: 12px 22px 18px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 72% 20%, rgba(249, 115, 22, 0.24), transparent 36%), linear-gradient(110deg, var(--slate-950), #431407 48%, var(--slate-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.26) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-inner {
  width: min(1180px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(251, 146, 60, 0.36);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  color: var(--orange-400);
  font-size: 0.58em;
  margin-top: 10px;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.32);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(14px);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.32);
}

.hero-poster {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster a {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.45);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-poster a:hover img {
  transform: scale(1.06);
}

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

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

.hero-dot.is-active {
  background: var(--orange-500);
}

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

.section {
  padding: 72px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

.section-link {
  color: var(--orange-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow);
}

.movie-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--slate-200);
  aspect-ratio: 16 / 10;
}

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

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

.play-chip {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 50%;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.card-meta span {
  padding: 6px 8px;
  color: var(--orange-600);
  background: var(--orange-100);
  font-weight: 750;
}

.movie-card h3 {
  min-height: 54px;
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.movie-card:hover h3 {
  color: var(--orange-600);
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--slate-600);
  font-size: 14px;
}

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

.tag-row span {
  padding: 5px 8px;
  color: var(--slate-600);
  background: var(--slate-100);
}

.dark-section {
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
  color: var(--white);
  margin: 26px 0;
  padding: 74px 0;
}

.dark-section .section-head h2,
.dark-section .section-head p {
  color: var(--white);
}

.dark-section .section-head p {
  color: #cbd5e1;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 146, 60, 0.66);
  background: rgba(255, 255, 255, 0.12);
}

.rank-no {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 120px;
  height: 86px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--white);
}

.rank-item p {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.rank-item em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

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

.category-tile {
  min-height: 178px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

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

.category-tile strong {
  font-size: 24px;
}

.category-tile span,
.category-tile p {
  color: rgba(255, 255, 255, 0.84);
}

.category-tile p {
  margin: 12px 0 0;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background: radial-gradient(circle at 70% 0%, rgba(249, 115, 22, 0.3), transparent 30%), linear-gradient(110deg, var(--slate-950), #7c2d12);
}

.page-title {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.page-title h1 {
  color: var(--white);
}

.page-title p {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.tool-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0 34px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-600);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  outline: none;
  background: var(--white);
  color: var(--slate-900);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 800;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--orange-500);
  transform: translateY(-1px);
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--slate-600);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.empty-state.is-visible {
  display: block;
}

.detail-shell {
  width: min(1020px, calc(100% - 44px));
  margin: 0 auto;
  padding: 50px 0 78px;
}

.detail-card {
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player {
  position: relative;
  overflow: hidden;
  background: var(--slate-950);
  aspect-ratio: 16 / 9;
}

.player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--slate-950);
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.84));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-cover strong {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-500);
  font-size: 32px;
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.36);
}

.play-cover span {
  font-size: 18px;
  font-weight: 850;
}

.detail-content {
  padding: 34px;
}

.detail-content h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 26px;
  color: var(--slate-900);
}

.detail-content p {
  margin: 0 0 26px;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 2;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
}

.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
  font-weight: 750;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.48);
}

.compact-card img {
  width: 130px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card strong {
  display: block;
  color: var(--slate-900);
  font-size: 17px;
}

.compact-card span {
  display: block;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 750;
  margin: 4px 0;
}

.compact-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
  cursor: pointer;
}

.back-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid p {
  color: #94a3b8;
  margin: 14px 0 0;
}

.footer-grid h3 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr 280px;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 0 70px;
  }

  .hero-poster {
    display: none;
  }

  .feature-grid,
  .rank-list.columns,
  .compact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .section,
  .page-shell,
  .page-title,
  .detail-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

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

  .section {
    padding: 48px 0;
  }

  .hero {
    min-height: 700px;
  }

  .rank-item {
    grid-template-columns: 42px 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-no {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 12px;
  }

  .rank-item img {
    width: 92px;
    height: 68px;
  }

  .compact-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .compact-card img {
    width: 94px;
    height: 70px;
  }

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