:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

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

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--red-600);
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

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

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

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

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--white);
  background: var(--red-600);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--red-900) 48%, var(--slate-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 68, 68, 0.35), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.52));
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -120px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.26);
  filter: blur(30px);
}

.hero-inner {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 0 42px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  align-items: center;
  gap: 48px;
}

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

.hero-kicker {
  margin: 0 0 14px;
  color: var(--red-100);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 650;
}

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

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

.primary-button {
  color: var(--white);
  background: var(--red-600);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.25);
}

.primary-button:hover {
  background: var(--red-700);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.ghost-button.dark {
  color: var(--slate-900);
  background: var(--white);
  border-color: var(--slate-200);
}

.light-button {
  color: var(--red-700);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.18);
}

.hero-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.46);
  transform: rotate(1deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

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

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

.bg-white {
  background: var(--white);
}

.bg-soft {
  background: var(--slate-50);
}

.bg-slate {
  background: var(--slate-900);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading span {
  color: var(--red-600);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden],
.rank-item[hidden] {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate-200);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
}

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

.movie-card:hover img,
.category-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poster-shade span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--red-600);
  font-weight: 800;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 9px;
  color: var(--white);
  background: var(--red-600);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(2, 6, 23, 0.78);
}

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

.movie-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover,
.text-link:hover {
  color: var(--red-600);
}

.movie-meta {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-desc {
  margin: 7px 0 0;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.84));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.3s ease;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

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

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

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-200);
}

.rank-cover img {
  width: 104px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-content h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

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

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red-700);
  font-weight: 850;
}

.center-actions {
  justify-content: center;
}

.cta-section {
  padding: 78px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--red-600), var(--red-800));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.04em;
}

.cta-inner p {
  max-width: 720px;
  margin: 14px auto 26px;
  color: var(--red-100);
  font-size: 18px;
}

.page-hero {
  padding: 58px 0 52px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--red-900));
}

.page-hero p {
  margin: 0;
  color: var(--red-100);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-summary {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  color: var(--slate-900);
  background: var(--slate-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.category-overview {
  display: grid;
  gap: 34px;
}

.category-overview-block {
  padding: 26px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.category-overview-head p {
  margin: 6px 0 0;
  color: var(--slate-600);
}

.small-feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(10px);
  transform: scale(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--slate-950), rgba(15, 23, 42, 0.75));
}

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

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 62px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 750;
}

.detail-section {
  color: var(--white);
}

.player-card {
  display: grid;
  gap: 16px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--slate-950);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.76));
  text-align: center;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red-600);
  box-shadow: 0 18px 45px rgba(220, 38, 38, 0.35);
  font-size: 30px;
}

.player-start {
  justify-self: start;
}

.detail-article {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-article h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0;
}

.footer-grid p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

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

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

.footer-grid a:hover {
  color: var(--red-500);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
}

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

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

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

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

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

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

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

  .rank-cover img {
    width: 86px;
  }

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

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

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

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

  .logo {
    font-size: 20px;
  }

  .movie-grid,
  .large-grid,
  .feature-grid,
  .small-feature-grid {
    gap: 14px;
  }

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

  .hero-inner {
    padding: 44px 0 34px;
  }

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

  .rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
  }

  .rank-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

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