:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --purple-50: #faf5ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(219, 39, 119, .14);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(147, 51, 234, .16);
  --soft-shadow: 0 12px 28px rgba(219, 39, 119, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--pink-50), #ffffff 36%, var(--purple-50));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  box-shadow: 0 12px 26px rgba(219, 39, 119, .28);
}

.brand-text {
  font-size: 19px;
  letter-spacing: .02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #374151;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink-600);
  background: var(--pink-100);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.header-search input {
  width: 230px;
  padding: 11px 16px;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--pink-100);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.mobile-search input {
  width: 100%;
  padding: 12px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 56px;
  padding: 86px max(24px, calc((100vw - 1280px) / 2 + 24px)) 70px;
  color: #fff;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .7s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(253, 242, 248, .98));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 13px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.16;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.movie-meta,
.detail-meta,
.wide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-tags span,
.tag-row span {
  color: var(--pink-600);
  border-radius: 999px;
  background: var(--pink-50);
}

.hero-tags span {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  color: var(--pink-600);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .12);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.wide-card:hover {
  transform: translateY(-4px);
}

.hero-cover {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .32);
  transform: rotate(2deg);
}

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

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

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

.hero-dot.active {
  background: #fff;
}

.quick-categories,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.center-heading {
  text-align: center;
  justify-content: center;
}

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

.section-heading h2,
.section-heading p,
.page-hero h1,
.page-hero p {
  margin: 0;
}

.section-heading h2 {
  color: #1f2937;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.03em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}

.section-heading span {
  color: var(--pink-600);
  background: var(--pink-100);
}

.section-heading a {
  color: var(--pink-600);
  font-weight: 800;
}

.category-pills,
.spotlight-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.category-pills a,
.spotlight-links a {
  padding: 12px 18px;
  color: var(--pink-600);
  font-weight: 800;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

.movie-card,
.category-card,
.wide-card,
.spotlight-panel,
.player-card,
.detail-info,
.detail-content article {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-50));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.poster-badge,
.poster-play,
.rank-number {
  position: absolute;
  color: #fff;
  font-weight: 900;
  background: rgba(219, 39, 119, .88);
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.88);
  transition: opacity .2s ease, transform .2s ease;
}

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

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

.movie-title,
.wide-title {
  display: block;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title {
  min-height: 46px;
  font-size: 17px;
}

.movie-title:hover,
.wide-title:hover,
.category-sample a:hover {
  color: var(--pink-600);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.wide-meta,
.detail-meta {
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.wide-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.soft-section {
  max-width: none;
  background: linear-gradient(135deg, rgba(252, 231, 243, .72), rgba(250, 245, 255, .95));
}

.soft-section > .section-heading,
.soft-section > .horizontal-row {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.horizontal-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.compact-card {
  width: 255px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border-radius: 24px;
  padding: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.wide-card:hover {
  box-shadow: var(--shadow);
}

.wide-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.wide-poster img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.rank-number {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.wide-content {
  align-self: center;
  min-width: 0;
}

.wide-title {
  font-size: 20px;
}

.wide-content p {
  display: -webkit-box;
  margin: 11px 0 16px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.spotlight-panel {
  position: sticky;
  top: 98px;
  align-self: start;
  border-radius: 30px;
  padding: 32px;
}

.spotlight-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.spotlight-panel p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.85;
}

.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 0 20px;
  padding: 52px;
  color: #fff;
  border-radius: 34px;
  background: linear-gradient(120deg, rgba(219, 39, 119, .92), rgba(147, 51, 234, .88));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.page-hero p {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 170px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 15px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  border-radius: 28px;
  padding: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover {
  box-shadow: var(--shadow);
}

.category-visual {
  min-height: 210px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
}

.category-visual span {
  font-size: 28px;
  font-weight: 900;
}

.category-card h2 {
  margin: 12px 0 10px;
  font-size: 26px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sample a {
  padding: 7px 10px;
  color: #4b5563;
  border-radius: 999px;
  background: #f9fafb;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink-600);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr);
  gap: 26px;
}

.player-card,
.detail-info,
.detail-content article {
  border-radius: 30px;
}

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #05030a;
}

.video-shell video {
  width: 100%;
  min-height: 500px;
  display: block;
  background: #05030a;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, .16), rgba(17, 24, 39, .48));
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-600), var(--purple-600));
  box-shadow: 0 20px 40px rgba(0, 0, 0, .28);
}

.detail-info {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.detail-info img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.detail-category {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  color: var(--pink-600);
  font-weight: 900;
  border-radius: 999px;
  background: var(--pink-100);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

.detail-tags span {
  font-size: 13px;
}

.detail-content {
  margin-top: 26px;
}

.detail-content article {
  padding: 34px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  margin: 0 0 26px;
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.empty-state {
  display: none;
  padding: 36px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--pink-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
}

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

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 42px 24px;
}

.footer-inner strong {
  font-size: 20px;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 999px;
  background: #fff;
}

.footer-links a:hover {
  color: var(--pink-600);
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

  .spotlight-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
    padding: 0 16px;
  }

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

  .hero-section {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 58px 18px 76px;
  }

  .hero-cover {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-content p {
    font-size: 16px;
  }

  .quick-categories,
  .content-section,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

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

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

  .movie-title {
    font-size: 15px;
  }

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

  .wide-card,
  .category-card,
  .detail-info {
    grid-template-columns: 1fr;
  }

  .wide-poster img {
    max-height: 240px;
  }

  .page-hero {
    min-height: 300px;
    padding: 34px 24px;
    border-radius: 26px;
  }

  .video-shell video {
    min-height: 260px;
  }

  .detail-content article {
    padding: 24px;
  }

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

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .mobile-search {
    display: grid;
  }
}
