:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --orange-400: #fb923c;
  --green-500: #22c55e;
  --blue-500: #3b82f6;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--slate-50), #ffffff 42%, var(--slate-50));
  color: var(--slate-800);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #f87171, #fecaca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  color: #e5e7eb;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--red-500);
  color: #ffffff;
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

.hero {
  position: relative;
  height: 560px;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.45), transparent 35%), linear-gradient(135deg, var(--slate-950), #4c0519 48%, var(--slate-900));
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.1) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.25)), linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fecaca;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 42px);
  color: #fecaca;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(254, 226, 226, 0.13);
  color: #fecaca;
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-primary {
  background: var(--red-500);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(239, 68, 68, 0.32);
}

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

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: var(--red-500);
}

.feature-strip,
.content-section,
.split-section,
.detail-layout,
.breadcrumb,
.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 42px 0 10px;
}

.feature-card {
  min-height: 138px;
  padding: 26px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.feature-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
}

.feature-card span {
  color: rgba(255, 255, 255, 0.88);
}

.feature-card.blue {
  background: linear-gradient(135deg, var(--blue-500), #1d4ed8);
}

.feature-card.green {
  background: linear-gradient(135deg, var(--green-500), #15803d);
}

.feature-card.red {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 30px;
  line-height: 1.15;
}

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

.section-more {
  flex: none;
  color: var(--red-600);
  font-weight: 800;
}

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

.category-tile {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 120px;
  overflow: hidden;
  background: var(--slate-900);
}

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

.category-copy {
  display: block;
  padding: 20px;
}

.category-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--slate-900);
}

.category-copy em {
  display: block;
  color: var(--slate-600);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--slate-900), #7f1d1d);
}

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

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

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: var(--red-500);
  color: #ffffff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
}

.movie-card-body strong {
  color: var(--slate-900);
  font-size: 15px;
  line-height: 1.35;
}

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
  color: var(--slate-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.tag-row span {
  background: var(--red-100);
  color: var(--red-700);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 52px 0;
}

.rank-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-card);
}

.rank-panel h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
}

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

.rank-list .movie-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: stretch;
}

.rank-list .poster-box {
  aspect-ratio: auto;
  min-height: 128px;
}

.rank-list .movie-card-body em,
.rank-list .tag-row {
  display: none;
}

.search-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--slate-900);
  color: #ffffff;
  cursor: pointer;
}

.movie-card.is-hidden,
.category-tile.is-hidden {
  display: none;
}

.wide-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 70px;
  padding: 52px 24px;
  border-radius: 30px;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.55), transparent 32%), linear-gradient(135deg, var(--slate-900), #7f1d1d);
  box-shadow: var(--shadow-soft);
}

.wide-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.wide-cta p {
  margin: 0 auto 24px;
  max-width: 640px;
  color: #fee2e2;
  line-height: 1.8;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.45), transparent 34%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.compact-hero,
.category-hero,
.ranking-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-cloud a {
  border-radius: 999px;
  background: #ffffff;
  color: var(--slate-800);
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition: color 0.2s ease, transform 0.2s ease;
}

.link-cloud a:hover {
  color: var(--red-600);
  transform: translateY(-2px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--slate-600);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0 42px;
}

.detail-aside {
  align-self: start;
  position: sticky;
  top: 92px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.meta-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.meta-card div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meta-card span {
  flex: none;
  width: 44px;
  color: var(--slate-600);
  font-size: 13px;
}

.meta-card strong {
  color: var(--slate-900);
  font-size: 14px;
  line-height: 1.6;
}

.detail-head {
  margin-bottom: 22px;
}

.detail-head h1 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-head p {
  margin: 0 0 18px;
  color: var(--slate-600);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags span {
  background: var(--red-100);
  color: var(--red-700);
}

.player-card,
.detail-card {
  margin-bottom: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  cursor: pointer;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--red-500);
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.42);
  transform: translateX(2px);
}

.video-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: 26px;
}

.detail-card.highlight {
  background: linear-gradient(90deg, #fff1f2, #fee2e2);
}

.detail-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.95;
  text-align: justify;
}

.related-section {
  padding-top: 20px;
}

.site-footer {
  margin-top: 40px;
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 42px 0 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: #fca5a5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .primary-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: var(--slate-900);
    box-shadow: var(--shadow-soft);
  }

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

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 0 86px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    margin: 0 auto;
  }

  .feature-strip,
  .footer-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-head p {
    font-size: 16px;
  }

  .feature-strip,
  .content-section,
  .split-section,
  .detail-layout,
  .breadcrumb,
  .footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid.six-col,
  .movie-grid.five-col,
  .category-grid {
    gap: 12px;
  }

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

  .search-box {
    flex-direction: column;
  }

  .page-hero {
    padding: 68px 0;
  }

  .detail-card {
    padding: 20px;
  }
}
