:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --red-500: #ef4444;
  --amber-100: #fef3c7;
  --white: #ffffff;
  --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 30px 90px rgba(2, 6, 23, 0.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 50%, #fef3c7 100%);
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

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

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

.brand {
  font-size: 22px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--slate-300);
  font-size: 15px;
}

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

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

.desktop-nav a.active {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--slate-300);
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 75vh;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #020617);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: -28px;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.12);
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 55%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 75vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  align-items: center;
  gap: 48px;
  padding: 72px 0 92px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--orange-400), var(--red-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.75;
}

.hero-tags,
.hero-actions,
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-tags {
  margin-bottom: 18px;
}

.hero-tags span,
.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  margin: 26px 0 24px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.28);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.02) 62%);
}

.hero-poster strong {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-size: 24px;
  line-height: 1.25;
}

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

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

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

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 48px 0;
}

.section.gradient {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gradient .section-kicker {
  color: var(--orange-400);
}

.section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-header p,
.page-hero p,
.category-card p,
.detail-intro p {
  color: var(--slate-600);
  line-height: 1.75;
}

.gradient .section-header p,
.gradient .movie-meta,
.gradient .movie-desc {
  color: #cbd5e1;
}

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

.gradient .section-link {
  color: #fed7aa;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gradient .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), transparent 55%);
  opacity: 0.85;
}

.play-chip,
.year-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-chip {
  left: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
}

.year-chip {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.62);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-card-content {
  padding: 16px 16px 18px;
}

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

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

.movie-meta,
.movie-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.movie-meta {
  color: var(--slate-600);
  font-weight: 700;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 7px;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.movie-card-tags span,
.movie-card-tags a,
.detail-tags span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.gradient .movie-card-tags span,
.gradient .movie-card-tags a {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.15);
}

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

.category-card {
  min-height: 176px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.18);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
}

.category-card span {
  color: var(--orange-600);
  font-weight: 900;
}

.page-hero {
  padding: 70px 0 42px;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: var(--white);
}

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

.search-box input,
.filter-row select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
  font: inherit;
}

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

.filter-row select {
  min-height: 48px;
  min-width: 140px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--slate-800);
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-info em {
  margin-bottom: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.rank-info small {
  color: var(--orange-600);
  font-weight: 800;
}

.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.92)), var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 54px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 2 / 3;
  background: var(--slate-800);
}

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

.detail-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-intro p {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-weight: 800;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000000;
  cursor: pointer;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.42));
  z-index: 3;
}

.player-box.is-playing .player-mask {
  display: none;
}

.play-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 18px 52px rgba(239, 68, 68, 0.32);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.play-trigger i {
  font-style: normal;
  font-size: 22px;
}

.detail-panel {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.detail-panel h2,
.article-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-panel p,
.article-block p {
  color: var(--slate-600);
  line-height: 1.85;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 34px;
}

.article-block {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 75;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 14px 36px rgba(239, 68, 68, 0.28);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.back-top.show {
  display: block;
}

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  color: var(--slate-300);
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: var(--orange-400);
  font-size: 17px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--slate-300);
}

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

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

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

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

  .hero-inner,
  .player-layout {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: block;
  }

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

  .hero-inner {
    padding: 58px 0 86px;
  }

  .hero-poster {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

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

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

  .category-strip,
  .rank-list,
  .article-grid,
  .detail-hero-inner,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    gap: 24px;
  }

  .detail-cover {
    max-width: 220px;
  }

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

  .rank-item img {
    width: 64px;
    height: 90px;
  }

  .filter-row select {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .movie-grid.four {
    gap: 12px;
  }

  .movie-card-content {
    padding: 13px;
  }

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

  .movie-desc {
    display: none;
  }

  .hero-tags span,
  .hero-pills span {
    font-size: 12px;
  }
}
