:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-300: #f9a8d4;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--pink-100);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 15px;
  box-shadow: 0 16px 35px rgba(236, 72, 153, 0.35);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--gray-700);
  font-weight: 700;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.28);
  transition: 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 280px;
  background: #ffffff;
  border: 2px solid var(--pink-100);
  border-radius: 999px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 6px 11px 18px;
  color: var(--gray-700);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.mobile-search button {
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--gray-700);
  background: var(--pink-50);
  border: 0;
  border-radius: 12px;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--pink-100);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  color: var(--gray-700);
  background: #ffffff;
  border-radius: 12px;
  font-weight: 700;
}

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

.main-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 26px auto 72px;
  min-height: 580px;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-track {
  position: relative;
  min-height: 580px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 38px;
  align-items: center;
  padding: 66px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: -25%;
  z-index: 0;
  content: "";
  background: radial-gradient(circle at 25% 30%, rgba(236, 72, 153, 0.28), transparent 35%), radial-gradient(circle at 75% 25%, rgba(244, 63, 94, 0.23), transparent 32%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(249, 168, 212, 0.8);
  border-radius: 999px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.32);
}

.btn-secondary {
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(249, 168, 212, 0.8);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--pink-600);
  background: #fce7f3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  align-items: end;
}

.hero-poster-main,
.hero-poster-side {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 8px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 30px 65px rgba(17, 24, 39, 0.18);
}

.hero-poster-main {
  aspect-ratio: 2 / 3;
  border-radius: 28px;
}

.hero-poster-side {
  aspect-ratio: 2 / 3;
  margin-bottom: 42px;
  border-radius: 24px;
  transform: rotate(4deg);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-rating {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(236, 72, 153, 0.28);
  border: 0;
  border-radius: 999px;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.hero-arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.82);
  border: 0;
  border-radius: 999px;
  font-size: 22px;
  box-shadow: 0 14px 28px rgba(219, 39, 119, 0.16);
}

.section {
  margin: 0 0 72px;
}

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

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

.section-heading p,
.page-title p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink-600);
  font-weight: 900;
}

.category-strip,
.category-grid,
.movie-grid,
.related-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-tile {
  display: block;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pink-100);
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.08);
  transition: 0.25s ease;
}

.category-card:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(219, 39, 119, 0.18);
}

.category-card strong,
.category-tile strong {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
}

.category-card span,
.category-tile span,
.category-tile p {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(252, 231, 243, 0.9);
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.06);
  transition: 0.25s ease;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), #ffffff);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge-top {
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.badge-year {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

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

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

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--pink-600);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-card-meta span {
  padding: 4px 8px;
  background: var(--gray-50);
  border-radius: 999px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--pink-100);
  border-radius: 18px;
  transition: 0.25s ease;
}

.ranking-item:hover {
  border-color: var(--pink-300);
  transform: translateX(4px);
}

.rank-num {
  color: var(--pink-600);
  font-size: 28px;
  font-weight: 950;
}

.ranking-item img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info small {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  margin-top: 6px;
  color: var(--gray-500);
  line-height: 1.5;
}

.page-hero {
  margin: 28px auto 42px;
  padding: 54px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.page-title h1 {
  color: inherit;
}

.page-title p {
  color: rgba(255, 255, 255, 0.88);
}

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

.category-tile {
  min-height: 210px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

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

.filter-box {
  display: grid;
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pink-100);
  border-radius: 22px;
}

.filter-box input {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 2px solid var(--pink-100);
  border-radius: 999px;
  outline: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  padding: 9px 14px;
  color: var(--gray-700);
  background: #ffffff;
  border: 1px solid var(--pink-100);
  border-radius: 999px;
  font-weight: 800;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 26px 0;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.68fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 46px;
}

.player-shell {
  overflow: hidden;
  background: #111827;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.24);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.44);
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 38px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.player-caption {
  padding: 20px 22px 24px;
  color: #ffffff;
}

.player-caption h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.player-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.detail-side {
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--pink-100);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pink-100);
}

.detail-meta span:first-child {
  color: var(--gray-500);
}

.detail-meta span:last-child {
  text-align: right;
  font-weight: 800;
}

.detail-section {
  margin: 0 0 46px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pink-100);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
}

.detail-section h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.detail-section p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

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

.search-panel {
  margin: 0 0 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pink-100);
  border-radius: 24px;
}

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

.search-panel input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 18px;
  border: 2px solid var(--pink-100);
  border-radius: 999px;
  outline: none;
}

.search-panel button {
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.search-status {
  margin: 14px 0 0;
  color: var(--gray-500);
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--pink-50), #fff1f2);
  border-top: 1px solid var(--pink-100);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-inner p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

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

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.38);
  font-size: 22px;
}

.back-top.show {
  display: block;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px 26px 92px;
  }

  .hero-visual {
    max-width: 520px;
  }

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

  .category-grid,
  .ranking-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 66px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    display: none;
  }

  .main-wrap {
    width: min(100% - 22px, 1240px);
  }

  .hero {
    margin-top: 16px;
    border-radius: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: 40px;
  }

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

  .hero-visual {
    grid-template-columns: 1fr 0.7fr;
  }

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

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

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

  .page-hero,
  .detail-section {
    padding: 26px;
    border-radius: 22px;
  }

  .footer-inner {
    display: grid;
  }

  .search-panel form {
    display: grid;
  }
}

@media (max-width: 460px) {
  .hero,
  .hero-track {
    min-height: 700px;
  }

  .hero-slide {
    padding: 26px 18px 84px;
  }

  .hero-visual {
    gap: 10px;
  }

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

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