:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #1f2937;
  --muted: #6b7280;
  --border: #fce7f3;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --yellow: #eab308;
  --blue: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(236, 72, 153, 0.12);
  --shadow-strong: 0 25px 60px rgba(127, 29, 29, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.16), transparent 28rem),
    linear-gradient(135deg, #fdf2f8 0%, #fff7ed 46%, #fefce8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 10px rgba(236, 72, 153, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text);
  background: #fff1f2;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #ec4899 0%, #fb923c 52%, #eab308 100%);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 60px 70px, #ffffff, transparent),
    radial-gradient(1px 1px at 50px 50px, #ffffff, transparent),
    radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
    radial-gradient(2px 2px at 90px 10px, #ffffff, transparent);
  background-size: 200px 100px;
  animation: twinkle 5s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.34;
  }
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 78px 0 56px;
}

.hero-slider {
  position: relative;
  min-height: 410px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

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

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

.btn-primary {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(127, 29, 29, 0.18);
}

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

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  width: min(520px, 100%);
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

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

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--pink);
  background: #ffffff;
  font-weight: 800;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
}

.hero-poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #ffffff;
}

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

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 8px;
  display: flex;
  gap: 10px;
}

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

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

.section-wrap,
.page-container {
  padding: 56px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
}

.link-more {
  color: var(--pink-dark);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(252, 231, 243, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 168, 212, 0.96);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.movie-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 10;
}

.movie-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.movie-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.movie-card-duration {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.movie-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.34;
  font-weight: 800;
}

.movie-card-title a:hover {
  color: var(--pink);
}

.movie-card-meta,
.movie-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.movie-card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--pink-dark);
  background: #fce7f3;
  font-size: 12px;
  font-weight: 750;
}

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

.category-tile a {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile a:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.category-tile h2 {
  margin: 12px 0 8px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.category-tile strong {
  margin-top: 20px;
  font-size: 14px;
}

.category-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.category-pink a,
.category-rose a {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.category-orange a {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.category-yellow a {
  background: linear-gradient(135deg, #eab308, #f97316);
}

.category-blue a,
.category-cyan a {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.category-green a {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.category-red a {
  background: linear-gradient(135deg, #ef4444, #a855f7);
}

.category-purple a {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-gray a {
  background: linear-gradient(135deg, #374151, #111827);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 70px 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
}

.ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: 20px;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info h2 a:hover {
  color: var(--pink);
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: #9ca3af;
  font-size: 13px;
}

.page-title {
  margin-bottom: 28px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.player-card,
.detail-panel,
.side-card,
.search-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #030712;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
  transition: opacity 0.24s ease;
}

.video-shell.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
  font-size: 34px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.player-caption,
.detail-panel,
.side-card {
  padding: 24px;
}

.player-caption h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.player-caption p,
.detail-panel p,
.side-card p {
  margin: 0;
  color: var(--muted);
}

.detail-panel {
  margin-top: 24px;
}

.detail-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-panel p + h2 {
  margin-top: 28px;
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.meta-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.meta-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #fbcfe8;
}

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

.search-panel {
  margin-bottom: 28px;
  padding: 22px;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: none;
  padding: 14px 18px;
  background: #ffffff;
}

.search-box input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-empty {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid #fbcfe8;
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.78), rgba(255, 237, 213, 0.78), rgba(254, 249, 195, 0.78));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 42px 0;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #fdf2f8;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 26px;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-poster {
    transform: none;
  }

  .hero-dots {
    bottom: 0;
  }

  .section-head {
    display: block;
  }

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

  .ranking-item {
    grid-template-columns: 48px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
  }

  .page-title {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

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

  .ranking-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ranking-thumb {
    display: none;
  }
}
