:root {
  color-scheme: light;
  --pink-50: #fff1f6;
  --pink-100: #ffe4ee;
  --pink-200: #fecddf;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --yellow-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 20px 50px rgba(219, 39, 119, 0.16);
  --shadow-card: 0 12px 32px rgba(31, 41, 55, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-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: linear-gradient(90deg, rgba(255, 241, 246, 0.96), rgba(255, 228, 238, 0.96));
  border-bottom: 1px solid rgba(236, 72, 153, 0.15);
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-600);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
  font-size: 14px;
}

.brand-name {
  font-size: clamp(20px, 2.8vw, 28px);
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.1);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #ffe4ee 0%, #fff1f6 45%, #ffe1eb 100%);
  padding: 48px 0 64px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.35;
  pointer-events: none;
}

.glow-a {
  width: 180px;
  height: 180px;
  left: 5%;
  top: 14%;
  background: var(--pink-500);
}

.glow-b {
  width: 260px;
  height: 260px;
  right: 8%;
  bottom: 2%;
  background: var(--rose-500);
}

.glow-c {
  width: 160px;
  height: 160px;
  left: 42%;
  top: 42%;
  background: #f9a8d4;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--pink-600);
  font-weight: 800;
}

.hero-topline a {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-copy {
  padding: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--pink-600);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  color: var(--gray-800);
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--gray-600);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags {
  margin: 26px 0 30px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--pink-600);
  background: #ffffff;
  border: 1px solid var(--pink-200);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.center-action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

.ghost-btn {
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--pink-200);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(219, 39, 119, 0.88);
  font-weight: 800;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

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

.hero-dot.active {
  background: var(--pink-600);
}

.hero-search {
  width: min(720px, 100%);
  margin: 28px auto 0;
  padding: 8px;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--gray-800);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-heading span {
  margin: 0 auto 10px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

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

.category-card,
.category-overview-card {
  display: block;
  min-height: 188px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff, var(--pink-50));
  border: 1px solid var(--pink-200);
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink-500);
  box-shadow: var(--shadow-card);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink-600);
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.24);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 20px;
}

.category-card p,
.category-overview-card p,
.category-card em {
  margin: 0;
  color: var(--gray-600);
  font-style: normal;
}

.category-card em {
  display: block;
  margin-top: 14px;
  color: var(--pink-600);
  font-weight: 800;
}

.mini-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card.hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.15);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.74));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poster-overlay span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pink-600);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.movie-card-link:hover .poster-overlay {
  opacity: 1;
}

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.72);
}

.year-badge {
  right: 10px;
  top: 10px;
}

.type-badge {
  left: 10px;
  top: 10px;
  background: rgba(219, 39, 119, 0.9);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(245, 158, 11, 0.95);
}

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

.movie-card-body h2 {
  margin: 0 0 6px;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

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

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

.movie-card .tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

.center-action {
  justify-content: center;
  margin-top: 30px;
}

.page-hero {
  background: linear-gradient(120deg, var(--pink-100), #ffffff 48%, var(--pink-50));
  padding: 76px 0;
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.page-hero .container {
  max-width: 900px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(236, 72, 153, 0.16);
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.1);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--pink-200);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: var(--gray-800);
  padding: 0 14px;
}

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

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 24px;
  text-align: center;
  color: var(--gray-600);
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--pink-200);
}

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

.detail-main {
  background: #ffffff;
}

.detail-hero {
  padding: 34px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.4), transparent 30%), linear-gradient(180deg, #111827, #1f2937 70%, #ffffff 70%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.player-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
  background: #000000;
}

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

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.82));
  cursor: pointer;
  z-index: 3;
}

.video-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.36);
  font-size: 28px;
}

.detail-info {
  padding: 30px;
  border-radius: 24px;
  color: var(--gray-800);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.detail-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  color: var(--gray-800);
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--gray-600);
  font-size: 17px;
}

.detail-meta {
  margin-bottom: 18px;
}

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

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

.content-panel,
.side-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.14);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.content-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: 24px;
}

.content-panel h2:not(:first-child) {
  margin-top: 28px;
}

.content-panel p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.side-panel dt {
  color: var(--gray-500);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--gray-800);
}

.related-section {
  background: var(--pink-50);
}

.site-footer {
  background: linear-gradient(180deg, var(--pink-50), var(--pink-100));
  border-top: 1px solid rgba(236, 72, 153, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--gray-600);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  padding: 20px 0 28px;
  text-align: center;
  border-top: 1px solid rgba(236, 72, 153, 0.16);
  font-size: 14px;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide,
  .detail-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

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

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

  .header-inner {
    min-height: 64px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-copy {
    padding: 22px;
  }

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

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

  .hero-search button {
    min-height: 46px;
  }

  .section {
    padding: 52px 0;
  }

  .filter-panel,
  .movie-grid,
  .all-grid,
  .movie-grid.compact,
  .movie-grid.rank-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-info,
  .content-panel,
  .side-panel {
    padding: 22px;
  }
}
