:root {
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --orange-50: #fff7ed;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(220, 38, 38, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--red-50) 0%, #ffffff 28%, #ffffff 100%);
  color: var(--gray-900);
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fee2e2, #fef2f2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  color: var(--white);
  box-shadow: var(--soft-shadow);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--red-700), var(--red-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--gray-500);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 650;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--red-600);
  background: var(--red-50);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--gray-900);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 72px 0 88px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, var(--red-700), var(--red-500));
  color: var(--white);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.glow-one {
  width: 160px;
  height: 160px;
  left: 6%;
  top: 70px;
}

.glow-two {
  width: 250px;
  height: 250px;
  right: 8%;
  top: 110px;
  animation-delay: 0.8s;
}

.glow-three {
  width: 110px;
  height: 110px;
  left: 34%;
  bottom: 60px;
  animation-delay: 1.6s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.14);
    opacity: 0.14;
  }
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
  gap: 48px;
  align-items: center;
  min-height: 480px;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #fee2e2;
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: var(--white);
  color: var(--red-600);
  box-shadow: 0 18px 30px rgba(127, 29, 29, 0.18);
}

.btn.ghost {
  background: rgba(127, 29, 29, 0.35);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn.ghost.light {
  background: rgba(255, 255, 255, 0.16);
}

.btn.small {
  min-height: 42px;
  padding: 0 18px;
  background: var(--red-600);
  color: var(--white);
}

.hero-poster {
  position: relative;
  height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(127, 29, 29, 0.45);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45));
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 42px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.stats-section,
.content-section,
.player-section,
.detail-content {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.stats-section {
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

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

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

.stat-card strong {
  display: block;
  color: var(--red-600);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.stat-card span {
  color: var(--gray-600);
}

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

.soft-bg {
  width: 100%;
  max-width: none;
  padding: 76px max(16px, calc((100% - var(--container)) / 2)) 76px;
  background: linear-gradient(180deg, var(--white), var(--red-50));
}

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

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

.section-head p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more,
.category-link {
  color: var(--red-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--red-50);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red-600);
  font-weight: 900;
  text-align: center;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--red-600);
}

.movie-desc {
  display: -webkit-box;
  min-height: 4.9em;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red-50);
  color: var(--red-600);
  font-size: 12px;
  font-weight: 700;
}

.category-link {
  margin-top: auto;
  font-size: 14px;
}

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

.category-tile,
.category-summary {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.category-tile {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red-600), var(--red-500));
  color: var(--white);
  font-size: 26px;
  font-style: normal;
}

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

.category-tile small {
  color: var(--gray-600);
}

.category-tile em {
  margin-top: auto;
  color: var(--red-600);
  font-style: normal;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  padding: 80px max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(135deg, var(--red-700), var(--red-500));
  color: var(--white);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.filter-bar {
  width: min(var(--container), calc(100% - 32px));
  margin: -34px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 4;
}

.sticky-filter {
  position: sticky;
  top: 92px;
}

.filter-bar label {
  color: var(--gray-700);
  font-weight: 900;
}

.filter-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  font: inherit;
}

.filter-bar input:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.filter-bar span {
  color: var(--red-600);
  font-weight: 900;
}

.category-summary {
  margin-bottom: 28px;
  padding: 24px;
}

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

.category-summary-head h2 {
  display: inline-block;
  margin: 0 0 0 10px;
  vertical-align: middle;
}

.category-summary-head p {
  color: var(--gray-600);
}

.ranking-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.ranking-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank img title heat"
    "rank img meta heat";
  gap: 8px 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.rank-num {
  grid-area: rank;
  color: var(--red-600);
  font-size: 22px;
  font-weight: 950;
}

.rank-row img {
  grid-area: img;
  width: 58px;
  height: 82px;
  border-radius: 12px;
}

.rank-row strong {
  grid-area: title;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row small {
  grid-area: meta;
  overflow: hidden;
  color: var(--gray-500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  grid-area: heat;
  color: var(--red-600);
  font-style: normal;
  font-weight: 900;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: #fee2e2;
}

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

.detail-layout {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(127, 29, 29, 0.45);
}

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

.lead {
  max-width: 850px;
  margin: 0 0 24px;
  color: #fee2e2;
  font-size: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.detail-meta-grid span {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid b {
  display: block;
  color: #fecaca;
  font-size: 12px;
}

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

.player-section {
  padding-top: 70px;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.44), rgba(0, 0, 0, 0.62));
  color: var(--white);
  cursor: pointer;
  text-align: center;
}

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--white);
  color: var(--red-600);
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.player-cover strong {
  font-size: 24px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 10px;
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.prose-card,
.side-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
}

.prose-card p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
}

.side-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0 0 10px;
}

.site-footer {
  margin-top: 86px;
  background: var(--gray-950);
  color: #d1d5db;
}

.footer-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}

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

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

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

.is-filtered-out {
  display: none;
}

.no-results {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 20px;
  background: var(--white);
  color: var(--gray-600);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

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

  .ranking-wrap,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

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

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

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

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

  .hero-section {
    padding-top: 54px;
  }

  .hero-poster {
    height: 360px;
    transform: none;
  }

  .hero-dots {
    position: static;
    margin-top: 24px;
  }

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

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

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

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 20px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 38px 52px minmax(0, 1fr);
    grid-template-areas:
      "rank img title"
      "rank img meta"
      "rank img heat";
  }
}
