:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --purple: #a855f7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fce7f3;
  --bg: #fff7fb;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

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

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

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

.mobile-nav .nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 92px;
  background: radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.24), transparent 28%), radial-gradient(circle at 78% 10%, rgba(251, 146, 60, 0.2), transparent 25%), linear-gradient(135deg, #fff1f2 0%, #fdf2f8 52%, #fff7ed 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.42;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero::before {
  left: 8%;
  top: 24%;
  background: #f9a8d4;
}

.hero::after {
  right: 10%;
  bottom: 18%;
  background: #fed7aa;
  animation-delay: 1.8s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.06);
  }
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.category-pills,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  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 {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.28);
}

.btn-light {
  color: #be185d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(244, 63, 94, 0.2);
}

.hero-stage {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-position: center;
  background-size: cover;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.8));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

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

.feature-strip {
  position: relative;
  z-index: 4;
  margin-top: -48px;
}

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

.section {
  padding: 70px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(253, 242, 248, 0.65), rgba(255, 255, 255, 0.8));
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(252, 231, 243, 0.9);
  box-shadow: 0 16px 34px rgba(244, 114, 182, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(244, 63, 94, 0.18);
}

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.movie-grid.compact .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
}

.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.score-badge {
  right: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-badge {
  left: 12px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #374151);
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.card-meta,
.detail-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta span,
.detail-meta span,
.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-size: 12px;
  font-weight: 700;
}

.card-tags {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.86), rgba(244, 63, 94, 0.64), rgba(17, 24, 39, 0.62));
}

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

.category-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.page-hero {
  padding: 70px 0;
  background: radial-gradient(circle at 25% 20%, rgba(236, 72, 153, 0.20), transparent 30%), linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
  text-align: center;
}

.page-hero-inner h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero-inner p {
  max-width: 760px;
  margin: 0 auto;
  color: #4b5563;
  line-height: 1.75;
  font-size: 17px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 26px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(244, 114, 182, 0.10);
}

.search-input,
.sort-select {
  min-height: 44px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: 0;
  background: #fff7fb;
  color: var(--text);
}

.search-input {
  flex: 1;
  padding: 0 18px;
}

.sort-select {
  padding: 0 16px;
}

.detail-hero {
  padding: 36px 0 28px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 58%, #fff7ed);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #be185d;
  font-size: 14px;
  margin-bottom: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 36px 0 70px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 28px 65px rgba(17, 24, 39, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 28px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player-box.is-playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.detail-card,
.sidebar-card {
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(244, 114, 182, 0.10);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sidebar-card {
  padding: 22px;
  margin-bottom: 22px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 84px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 14px;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

.side-item span {
  color: var(--muted);
  font-size: 12px;
}

.related-section {
  padding: 0 0 76px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff7fb, #fff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr;
  gap: 36px;
  padding: 46px 0;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 17px;
}

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

.footer-links a {
  color: #be185d;
  font-weight: 700;
  font-size: 14px;
}

.footer-bottom {
  padding: 18px 0 34px;
  color: #9ca3af;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 38px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

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

@media (max-width: 1024px) {
  .hero-shell,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .category-pills {
    justify-content: center;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 44px 0 70px;
  }

  .hero-stage {
    min-height: 430px;
  }

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

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-card {
    padding: 22px;
  }
}

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

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-stage {
    min-height: 380px;
    border-radius: 24px;
  }

  .hero-slide-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }
}
