:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f7;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --purple: #7e22ce;
  --line: rgba(225, 29, 72, 0.14);
  --shadow: 0 20px 48px rgba(190, 18, 60, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.20), transparent 32rem),
    linear-gradient(135deg, #fafafa 0%, #fff1f7 48%, #faf5ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 247, 251, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(157, 23, 77, 0.08);
}

.nav-wrap,
.hero-inner,
.section-inner,
.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: #fff;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(157, 23, 77, 0.10);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f7;
  color: #9f1239;
  font-weight: 700;
}

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

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  mix-blend-mode: overlay;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 114, 182, 0.32), transparent 24rem),
    linear-gradient(90deg, rgba(24, 24, 27, 0.88), rgba(76, 29, 149, 0.56), rgba(24, 24, 27, 0.72));
}

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

.hero-copy {
  width: min(720px, 100%);
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 18px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.75;
}

.hero-actions,
.search-actions,
.title-row,
.movie-meta,
.tag-row,
.breadcrumb,
.player-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.32);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 64px 0;
}

.section.white {
  background: rgba(255, 255, 255, 0.78);
}

.title-row {
  justify-content: space-between;
  margin-bottom: 28px;
}

.title-row h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.title-row p,
.page-hero p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(157, 23, 77, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.92), rgba(236, 72, 153, 0.88));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(157, 23, 77, 0.18);
}

.category-tile:hover::before {
  opacity: 1;
}

.category-tile > * {
  position: relative;
  z-index: 1;
}

.category-tile i {
  display: block;
  margin-bottom: 14px;
  font-style: normal;
  font-size: 42px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-tile:hover,
.category-tile:hover p {
  color: #fff;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(157, 23, 77, 0.08);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(225, 29, 72, 0.42);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #9f1239, #4c1d95);
}

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

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

.movie-card:hover .movie-cover img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.play-pill,
.year-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.play-pill {
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.year-pill {
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #be123c;
  background: #ffe4ec;
}

.movie-info h3 {
  margin: 11px 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-info h3 a:hover {
  color: var(--rose);
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 46px 68px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ranking-item b {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.ranking-item img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.ranking-item strong,
.compact-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.ranking-item em,
.compact-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at right, rgba(255, 255, 255, 0.18), transparent 26rem),
    linear-gradient(120deg, #be123c, #db2777 54%, #7e22ce);
}

.page-hero .section-inner {
  display: grid;
  gap: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.breadcrumb {
  margin-bottom: 24px;
  color: #667085;
  font-size: 14px;
}

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

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

.detail-main,
.detail-side,
.detail-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.detail-main {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #050505;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.play-cover-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.play-cover-button.is-hidden {
  display: none;
}

.play-cover-button span {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.34);
  font-weight: 900;
}

.detail-content {
  padding: 26px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.detail-badges span {
  padding: 6px 10px;
  border-radius: 10px;
  color: #be123c;
  background: #ffe4ec;
  font-size: 13px;
  font-weight: 800;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.prose p {
  margin: 0 0 16px;
  color: #475467;
  line-height: 1.9;
}

.detail-side {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.detail-side h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7fb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateX(3px);
  background: #ffe4ec;
}

.compact-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.no-result {
  display: none;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  padding: 44px 0;
  color: #fff;
  background: linear-gradient(120deg, #881337, #4c1d95);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 640px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.footer-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .category-grid,
  .feature-grid,
  .ranking-list,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 520px;
  }

  .hero-copy {
    padding: 58px 0;
  }

  .section {
    padding: 44px 0;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .category-tile {
    padding: 22px;
  }

  .footer-inner {
    display: grid;
  }
}
