:root {
  --rose-700: #be123c;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --orange-500: #f97316;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 30px 80px rgba(127, 29, 29, 0.25);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fff7f7 0%, #f8fafc 36%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #dc2626 0%, #e11d48 48%, #be185d 100%);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(190, 18, 60, 0.28);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  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;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffe4e6;
  transform: translateY(-1px);
}

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(127, 29, 29, 0.76) 48%, rgba(2, 6, 23, 0.46) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 42px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  padding: 90px 0 80px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fecdd3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin-top: 14px;
}

.hero-copy p {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

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

.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.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #ffffff;
  color: var(--rose-700);
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: #fff1f2;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-card-info {
  padding: 18px;
}

.hero-card-info strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-card-info span {
  color: #fecdd3;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: #ffffff;
}

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

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

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.section-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 1px solid rgba(244, 63, 94, 0.13);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--rose-600), #ef4444);
  color: #ffffff;
}

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

.category-card span {
  display: block;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  outline: none;
  color: var(--slate-900);
  background: #f8fafc;
}

.search-box input:focus {
  border-color: var(--rose-500);
  background: #ffffff;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #fecdd3;
  color: var(--rose-700);
  background: #fff1f2;
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--rose-600);
  border-color: var(--rose-600);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.type-badge {
  right: 12px;
  background: rgba(225, 29, 72, 0.92);
}

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

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

.movie-title {
  display: block;
  min-height: 48px;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

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

.movie-desc {
  min-height: 50px;
  margin: 10px 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.75;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--rose-700);
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 700;
}

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}

.movie-card.is-compact .poster-wrap img {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.is-compact .movie-title {
  min-height: auto;
  font-size: 16px;
}

.movie-card.is-compact .movie-desc {
  min-height: auto;
}

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

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #f97316 100%);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 45%;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(8px);
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

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

.detail-page {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 28%, #f8fafc 100%);
}

.detail-shell {
  padding: 46px 0 78px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 32px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.55));
  cursor: pointer;
  z-index: 3;
}

.play-layer span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), #ef4444);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(225, 29, 72, 0.35);
  transition: transform 0.2s ease;
}

.play-layer:hover span {
  transform: scale(1.08);
}

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

.detail-info,
.detail-text,
.related-block {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin-bottom: 16px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--rose-700);
  background: #fff1f2;
  font-weight: 700;
  font-size: 13px;
}

.detail-lead {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-text {
  margin-top: 28px;
  padding: 30px;
}

.detail-text h2,
.related-block h2 {
  margin: 0 0 16px;
  font-size: 26px;
  color: var(--slate-900);
}

.detail-text p {
  color: var(--slate-700);
  line-height: 2;
  margin: 0 0 18px;
}

.related-block {
  margin-top: 28px;
  padding: 30px;
}

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

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--slate-500);
  border-radius: 20px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  background: var(--slate-950);
  color: #cbd5e1;
  padding: 54px 0 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}

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

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  line-height: 1.8;
  color: #94a3b8;
}

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

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

.footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 22px 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #64748b;
  text-align: center;
}

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

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

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

  .hero-card {
    max-width: 280px;
    margin-bottom: 58px;
  }

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

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

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 740px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

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

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

  .movie-card.is-compact {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .detail-info,
  .detail-text,
  .related-block {
    padding: 22px;
  }

  .play-layer span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
