:root {
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-rose: #e11d48;
  --color-orange: #ea580c;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff1f2;
  --color-line: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.09);
  --radius-large: 28px;
  --radius-card: 20px;
  --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;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nav-container {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-rose));
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.2rem;
}

.brand-text em {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 650;
  color: #374151;
}

.main-nav a:hover {
  color: var(--color-red);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 5px;
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 6px 8px 12px;
}

.header-search button,
.search-panel button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-rose));
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fee2e2;
  color: var(--color-red-dark);
  border-radius: 10px;
  padding: 8px 10px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(220, 38, 38, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 38, 38, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
}

.floating-shape {
  position: absolute;
  color: rgba(225, 29, 72, 0.22);
  font-size: 64px;
  animation: float 4.2s ease-in-out infinite;
}

.shape-one {
  top: 92px;
  left: 8%;
}

.shape-two {
  right: 10%;
  bottom: 130px;
  animation-delay: 0.8s;
}

.shape-three {
  top: 210px;
  right: 25%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

.hero-container {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 550ms ease, transform 550ms ease;
}

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

.hero-eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--color-red-dark);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #4b5563;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-meta,
.movie-card-meta,
.detail-badges,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.detail-badges span,
.tag-row span {
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-rose));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.25);
}

.secondary-button,
.outline-button {
  color: #111827;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.outline-button {
  border: 1px solid var(--color-line);
}

.primary-button:hover,
.secondary-button:hover,
.outline-button:hover {
  transform: translateY(-2px) scale(1.015);
}

.hero-poster {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero-poster strong {
  display: block;
  padding: 16px 8px 4px;
  font-size: 1.1rem;
}

.poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #fee2e2, #fff7ed);
  aspect-ratio: 3 / 4;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
}

.poster.poster-missing::before {
  content: attr(data-title);
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-red-dark);
  font-weight: 900;
  line-height: 1.35;
}

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  padding: 4px 9px;
  font-size: 0.76rem;
}

.poster-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-play {
  opacity: 1;
}

.hero-image {
  aspect-ratio: 16 / 11;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.24);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.gray-section {
  background: #f9fafb;
}

.red-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-rose));
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.14;
}

.section-heading p,
.page-hero p {
  color: var(--color-muted);
}

.movie-grid,
.featured-grid,
.compact-grid,
.related-grid,
.category-tile-grid,
.stats-grid,
.faq-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.related-card,
.rank-card,
.category-tile,
.faq-grid article,
.content-card {
  display: block;
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover,
.related-card:hover,
.rank-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: var(--shadow-card);
}

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

.movie-card:hover .poster-play,
.related-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card h3,
.related-card h3,
.rank-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card p,
.related-card p,
.rank-card p {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.movie-card-meta {
  gap: 6px;
  color: var(--color-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.tag-row span {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.72rem;
}

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

.ranking-panel {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-large);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.rank-row:last-of-type {
  border-bottom: 0;
}

.rank-number,
.rank-card-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-rose));
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.full-width {
  width: 100%;
  margin-top: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
}

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

.category-tile {
  min-height: 140px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.24rem;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%), linear-gradient(135deg, var(--color-red), var(--color-rose));
}

.compact-page-hero {
  padding: 64px 0;
}

.compact-page-hero span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.compact-page-hero p {
  max-width: 760px;
  color: #fee2e2;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-links a,
.tag-cloud a,
.category-link-grid a {
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: #ffffff;
  color: #374151;
  padding: 8px 13px;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--color-line);
}

.pagination a.is-current {
  color: #ffffff;
  background: var(--color-red);
  border-color: var(--color-red);
}

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

.category-index-block {
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: #ffffff;
}

.category-index-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.category-index-heading h2 {
  margin: 0;
}

.category-index-heading span {
  color: var(--color-red-dark);
  font-weight: 800;
}

.category-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-link-grid a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.category-link-grid span {
  color: var(--color-muted);
  font-size: 0.82rem;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 44px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.small-poster {
  border-radius: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: #f9fafb;
  border: 1px solid var(--color-line);
  margin-bottom: 18px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  padding: 10px 13px;
  outline: 0;
}

.search-summary {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.58));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 42px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: #fecaca;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.player-overlay span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red), var(--color-rose));
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.42);
  font-size: 1.8rem;
}

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

.player-status {
  margin: 0;
  padding: 10px 14px;
  color: #f3f4f6;
  background: rgba(17, 24, 39, 0.96);
  font-size: 0.85rem;
}

.detail-card,
.content-card {
  border-radius: var(--radius-large);
  background: #ffffff;
  color: var(--color-text);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.detail-card h1 {
  margin: 16px 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.detail-one-line {
  color: #4b5563;
  font-size: 1.08rem;
  font-weight: 700;
}

.detail-meta-list {
  margin: 22px 0;
  color: #4b5563;
}

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

.content-card h2,
.faq-grid h2,
.text-page h2 {
  margin: 0 0 12px;
}

.content-card p,
.text-page p,
.faq-grid p {
  margin: 0;
  color: #4b5563;
}

.accent-card {
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

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

.related-card {
  padding: 10px;
}

.related-card h3 {
  padding: 10px 4px 0;
}

.related-card p {
  padding: 0 4px 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-page {
  max-width: 860px;
}

.text-page h2 + p {
  margin-bottom: 26px;
}

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

.faq-grid article,
.content-card {
  padding: 24px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-brand {
  display: block;
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
}

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

  .movie-grid-four,
  .compact-grid,
  .featured-grid,
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .search-panel input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav,
  .header-search {
    display: none;
  }

  .main-nav.is-open {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .hero-section,
  .hero-container {
    min-height: 760px;
  }

  .hero-slide,
  .detail-grid,
  .two-column-layout,
  .detail-content-grid,
  .footer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .detail-hero::after {
    background: rgba(17, 24, 39, 0.82);
  }
}

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

  .section {
    padding: 48px 0;
  }

  .movie-grid-six,
  .movie-grid-four,
  .compact-grid,
  .featured-grid,
  .related-grid,
  .category-tile-grid,
  .stats-grid,
  .rank-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 36px 1fr;
  }

  .rank-card .poster {
    display: none;
  }

  .hero-section,
  .hero-container {
    min-height: 800px;
  }

  .hero-slide {
    gap: 26px;
  }

  .hero-controls {
    bottom: 22px;
  }

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

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

  .category-index-block {
    padding: 16px;
  }
}
