:root {
  --blue-900: #0f2d68;
  --blue-800: #16417e;
  --blue-700: #1d4f9a;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-950: #07111f;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--slate-900);
  background: #f5f7fb;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--blue-900);
  letter-spacing: -0.5px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--slate-700);
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: var(--blue-600);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--blue-100);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.24), transparent 34%),
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 46%, #0f2d68 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom right, transparent 49%, #f5f7fb 50%);
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-slide-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 72px 0 132px;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-500);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero .lead {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  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: var(--orange-500);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-light {
  color: var(--blue-800);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 25% 20%, rgba(249, 115, 22, 0.42), transparent 35%),
    var(--blue-800);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.36);
}

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

.hero-card-float {
  position: absolute;
  left: -24px;
  bottom: 28px;
  width: min(260px, 78%);
  border-radius: 22px;
  padding: 18px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card-float strong {
  display: block;
  color: var(--blue-900);
  font-size: 19px;
}

.hero-card-float span {
  color: var(--slate-600);
  font-weight: 700;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

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

.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

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

.stat-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--blue-600);
  font-size: 32px;
  line-height: 1.1;
}

.stat-card span {
  color: var(--slate-600);
  font-weight: 800;
}

.content-section {
  padding: 72px 0;
}

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

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

.section-head h1,
.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0 0 10px;
  color: var(--slate-950);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(30px, 4vw, 46px);
}

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

.section-more {
  color: var(--blue-600);
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.22), transparent 32%),
    linear-gradient(145deg, #1d4ed8, #0f172a);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.35);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--slate-950);
  font-size: 20px;
  line-height: 1.3;
}

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

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

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

.tag-row span,
.detail-tags span {
  color: var(--blue-800);
  background: var(--blue-100);
}

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

.category-card {
  min-height: 178px;
  padding: 22px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.45), transparent 30%),
    linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 20px 56px rgba(37, 99, 235, 0.16);
}

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

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--slate-600);
  font-weight: 900;
  font-size: 13px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 15px;
  background: var(--white);
  padding: 13px 14px;
  color: var(--slate-900);
  outline: none;
  font: inherit;
}

.page-hero {
  padding: 70px 0 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.28), transparent 35%),
    linear-gradient(135deg, var(--blue-600), var(--blue-900));
}

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

.page-title p {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

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

.rank-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--slate-900));
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.rank-info p {
  margin: 0;
  color: var(--slate-600);
}

.hot-score {
  color: var(--orange-600);
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  padding: 24px 0;
  color: var(--slate-600);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--blue-600);
}

.detail-hero {
  padding: 28px 0 52px;
  background:
    radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.18), transparent 30%),
    linear-gradient(135deg, #eef5ff, #ffffff 55%, #fff7ed);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--blue-700), var(--slate-900));
  box-shadow: var(--shadow);
}

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

.detail-title h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.detail-title p {
  color: var(--slate-700);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  font-weight: 800;
}

.player-section {
  padding: 58px 0;
  background: var(--slate-950);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

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

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.player-wrap.playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  padding: 68px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.article-card,
.side-card {
  border-radius: 28px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--slate-950);
}

.article-card p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 17px;
}

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

.related-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--slate-700);
  background: var(--slate-50);
  font-weight: 800;
}

.related-list a:hover {
  color: var(--white);
  background: var(--blue-600);
}

.index-list {
  columns: 4 220px;
  column-gap: 22px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--slate-700);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.index-list a:hover {
  color: var(--white);
  background: var(--blue-600);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-950);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--orange-500);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-bottom button {
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.empty-result {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  color: var(--slate-600);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

@media (max-width: 980px) {
  .hero-slide-inner,
  .detail-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-visual {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-track,
  .hero-slide-inner {
    min-height: 720px;
  }

  .hero-slide-inner {
    padding-top: 44px;
    gap: 24px;
  }

  .movie-grid,
  .category-card-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 52px 74px 1fr;
  }

  .hot-score {
    grid-column: 3;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    gap: 16px;
  }

  .logo {
    font-size: 18px;
  }

  .hero-card-float {
    left: 14px;
  }
}
