:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.14);
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --purple: #7c3aed;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 34rem),
    linear-gradient(135deg, #f9fafb 0%, #fff1f2 48%, #fdf2f8 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 247, 251, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
}

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.36);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--rose-dark), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.1);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.1);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--rose-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #831843 0%, #9d174d 46%, #4c1d95 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.28), transparent 18rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.64));
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 4.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(760px, 100%);
  padding: 96px 0 74px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  padding: 15px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.36);
}

.btn-secondary {
  padding: 15px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.btn-ghost {
  padding: 12px 18px;
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.1);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: end;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #ffffff;
  padding: 0 16px;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero-search button {
  flex: none;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  cursor: pointer;
  font-weight: 800;
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex: none;
  padding: 12px 18px;
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.1);
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-6px);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.38));
}

.category-card .category-icon,
.category-card h3,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  backdrop-filter: blur(12px);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gradient-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.gradient-orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-green { background: linear-gradient(135deg, #10b981, #0f766e); }
.gradient-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.gradient-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.gradient-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.gradient-violet { background: linear-gradient(135deg, #7c3aed, #c026d3); }

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.11);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 58px rgba(190, 18, 60, 0.18);
}

.card-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(124, 58, 237, 0.18));
}

.movie-card-wide .card-cover {
  aspect-ratio: 16 / 9;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.card-cover figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-content {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.card-meta span,
.tag-list span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.1);
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 4px 8px;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 56px 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(190, 18, 60, 0.1);
  transition: transform 0.25s ease;
}

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

.rank-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.toolbar {
  margin: 24px 0 34px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(190, 18, 60, 0.09);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.search-box span {
  color: var(--rose-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #6b7280;
  background: rgba(244, 63, 94, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.page-hero {
  padding: 80px 0 46px;
  color: #ffffff;
  background: linear-gradient(135deg, #9f1239 0%, #be185d 48%, #6d28d9 100%);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.breadcrumb a,
.breadcrumb span {
  padding: 6px 10px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.68);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-badge {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.42);
  font-size: 2rem;
}

.detail-card,
.text-panel {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.text-panel {
  margin-top: 24px;
  padding: 26px;
}

.text-panel h1,
.text-panel h2 {
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.text-panel h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.text-panel h2 {
  margin-top: 28px;
  font-size: 1.65rem;
}

.text-panel p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.9;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.info-pill {
  padding: 7px 11px;
  color: var(--rose-dark);
  background: rgba(244, 63, 94, 0.1);
}

.detail-card {
  padding: 18px;
}

.detail-card figure {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
}

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

.detail-card dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px 10px;
  margin: 0;
}

.detail-card dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-card dd {
  margin: 0;
  color: #1f2937;
}

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

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, #831843, #4c1d95);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.footer-inner p {
  max-width: 680px;
  margin: 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

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

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-card {
    max-width: 420px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .hero-search {
    border-radius: 26px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input {
    min-height: 44px;
  }

  .section {
    padding: 52px 0;
  }

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

  .category-grid,
  .movie-grid,
  .movie-grid.large-grid,
  .movie-grid.featured-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card-content {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 0.95rem;
  }

  .movie-card p {
    font-size: 0.84rem;
  }

  .rank-card {
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 460px) {
  .header-inner,
  .footer-inner,
  .container,
  .mobile-nav {
    width: min(100% - 20px, 1180px);
  }

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

  .detail-card {
    max-width: none;
  }
}
