:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-200: #fecddf;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f6c8d8;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(252, 209, 225, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

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

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

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--pink-600);
  background: var(--pink-50);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input,
.hero-search input {
  width: 230px;
  padding: 11px 15px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-btn {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search button {
  padding: 11px 18px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.primary-btn.small {
  padding: 11px 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.32);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  color: var(--pink-700, #be185d);
  font-weight: 800;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--pink-50);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--pink-100);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 8px;
}

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

.mobile-search input {
  width: 100%;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.25), transparent 32%), linear-gradient(135deg, #fff1f7, #ffe4ef 45%, #fff7fb);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(18px) saturate(1.25);
  transform: scale(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 251, 0.98), rgba(255, 241, 247, 0.78), rgba(255, 228, 239, 0.68));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 56px;
  padding: 80px 0 116px;
}

.hero-copy {
  max-width: 720px;
  animation: slideUp 0.6s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #111827;
}

.hero-copy p {
  max-width: 670px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  box-shadow: 0 30px 70px rgba(190, 24, 93, 0.28);
  transform: rotate(2deg);
  transition: transform 0.28s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2;
}

.hero-search {
  width: min(560px, 100%);
  padding: 8px;
  border: 1px solid rgba(252, 209, 225, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 38px;
  background: var(--pink-500);
}

.section-shell {
  padding: 64px 0;
}

.soft-section {
  background: linear-gradient(135deg, rgba(255, 228, 239, 0.72), rgba(255, 255, 255, 0.9));
  border-top: 1px solid var(--pink-100);
  border-bottom: 1px solid var(--pink-100);
}

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

.section-heading h2,
.category-overview-card h2,
.side-card h2,
.detail-content h2 {
  margin: 6px 0 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(252, 209, 225, 0.82);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink-400);
  box-shadow: var(--shadow);
}

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

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.24);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 7px 11px;
  font-size: 12px;
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

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

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

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

.meta-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--pink-50);
}

.split-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.vertical-heading {
  display: block;
  margin-bottom: 0;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-card {
  scroll-snap-align: start;
}

.horizontal-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(190, 24, 93, 0.13);
}

.horizontal-card span {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  line-height: 1.35;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--pink-200);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(190, 24, 93, 0.08);
}

.category-tile {
  position: relative;
  display: grid;
  min-height: 220px;
  align-content: end;
  padding: 22px;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.07);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(190, 24, 93, 0.76));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--pink-100);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.2s ease, border 0.2s ease;
}

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

.ranking-row strong {
  color: var(--pink-600);
  font-size: 22px;
}

.ranking-row img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row span {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.24), transparent 34%), linear-gradient(135deg, #fff1f7, #ffffff 58%, #ffe4ef);
}

.compact-page-hero .container {
  padding: 70px 0 60px;
}

.page-hero h1 {
  max-width: 860px;
  margin: 14px 0 10px;
  color: #111827;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-mosaic img {
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.category-overview-card h2 {
  font-size: 24px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--pink-100);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 34px rgba(190, 24, 93, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
}

.js-card.is-filtered {
  display: none;
}

.detail-shell {
  padding: 34px 0 24px;
}

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

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pink-200);
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  border: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.64));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.34);
  font-size: 34px;
}

.player-overlay strong {
  max-width: 88%;
  font-size: clamp(24px, 5vw, 44px);
  line-height: 1.15;
}

.detail-content,
.side-card {
  border: 1px solid var(--pink-100);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(190, 24, 93, 0.08);
}

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

.detail-content h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #be185d;
  font-weight: 800;
  border-radius: 999px;
  background: var(--pink-50);
}

.lead-text {
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

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

.detail-content h2 {
  margin-top: 28px;
  font-size: 26px;
}

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

.poster-panel {
  display: block;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.poster-panel img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  font-size: 24px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  min-width: 0;
  margin: 0;
  color: #374151;
  font-weight: 700;
}

.side-card a {
  color: var(--pink-600);
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--pink-200);
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.92), rgba(255, 228, 239, 0.92));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  padding: 42px 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #be185d;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 11px;
  color: #be185d;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  padding: 16px;
  color: #9f1239;
  text-align: center;
  border-top: 1px solid rgba(252, 209, 225, 0.8);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-content,
  .detail-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
    justify-self: center;
  }

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

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

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

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.is-open .mobile-panel {
    display: block;
  }

  .nav-wrap {
    min-height: 64px;
  }

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

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

  .hero-content {
    gap: 28px;
    padding: 46px 0 148px;
  }

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

  .hero-bottom {
    display: grid;
  }

  .hero-search {
    border-radius: 24px;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

  .hero-search {
    display: grid;
  }

  .section-heading {
    display: block;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .ranking-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .ranking-row em {
    display: none;
  }

  .detail-content {
    padding: 22px;
  }

  .player-card {
    border-radius: 20px;
  }
}
