:root {
  --pink: #ec4899;
  --pink-soft: #fce7f3;
  --purple: #a855f7;
  --purple-dark: #4c1d95;
  --yellow: #fde047;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e8ff;
  --bg: #fdf2f8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(168, 85, 247, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 52%, #fff1f2 100%);
  min-height: 100vh;
}

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

img {
  background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 52%, #f472b6 100%);
  box-shadow: 0 14px 32px rgba(168, 85, 247, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #be185d;
  background: var(--yellow);
  box-shadow: 0 8px 20px rgba(253, 224, 71, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-5deg);
}

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

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

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  color: #db2777;
  background: #fff;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.28);
}

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

.search-form input,
.mobile-search input,
.big-search input,
.filter-row select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.08);
}

.search-form input {
  width: 220px;
  padding: 10px 16px;
}

.search-form button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #db2777;
  background: var(--yellow);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

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

.mobile-panel[hidden] {
  display: none;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 16px;
}

.mobile-link {
  display: block;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-carousel {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.56) 46%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-copy {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 760px;
  color: #fff;
}

.hero-label,
.page-hero span {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.28);
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fce7f3;
  color: #db2777;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(168, 85, 247, 0.24);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ghost-btn.dark {
  color: var(--purple-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px #f3e8ff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
  padding: 56px 0 0;
}

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

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

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: #db2777;
  background: #fff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.14);
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.list-thumb,
.rank-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe);
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.poster-link img,
.list-thumb img,
.rank-thumb img,
.compact-card img,
.related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.related-item:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.region-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: var(--pink);
}

.year-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.78);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(17, 24, 39, 0.42);
  font-size: 56px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover,
.list-card:hover .play-hover {
  opacity: 1;
}

.card-body,
.list-body {
  padding: 16px;
}

.card-body h3,
.list-body h3,
.rank-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.list-body h3 a:hover,
.rank-card h3 a:hover,
.related-item:hover span {
  color: #db2777;
}

.card-body p,
.list-body p,
.rank-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span {
  min-width: 0;
}

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

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

.category-tile,
.category-overview-card a,
.side-panel,
.detail-card,
.side-card,
.search-panel,
.page-hero {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.12);
}

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

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

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

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

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

.category-tile small {
  margin-top: 6px;
  color: #f3f4f6;
  line-height: 1.55;
}

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

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

.compact-card {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.12);
}

.compact-card img {
  aspect-ratio: 3 / 4;
}

.compact-card span,
.compact-card small {
  display: block;
  padding: 0 12px;
}

.compact-card span {
  padding-top: 10px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.4;
}

.compact-card small {
  padding-bottom: 12px;
  color: var(--muted);
}

.side-panel {
  padding: 28px;
  position: sticky;
  top: 92px;
}

.side-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.side-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.side-panel .primary-btn,
.side-panel .ghost-btn {
  width: 100%;
  margin-top: 14px;
}

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

.list-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.list-thumb {
  min-height: 160px;
}

.page-hero {
  margin-top: 40px;
  padding: 36px;
}

.category-hero,
.search-hero {
  background: linear-gradient(135deg, #fff, #fdf2f8 55%, #faf5ff);
}

.small-actions {
  margin-top: 18px;
}

.category-overview-card a {
  display: block;
  overflow: hidden;
}

.poster-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 180px;
  overflow: hidden;
}

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

.category-overview-body {
  padding: 20px;
}

.category-overview-body h2 {
  margin: 0 0 8px;
}

.category-overview-body p {
  min-height: 54px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-body span {
  color: #db2777;
  font-weight: 900;
}

.ranking-grid .ranking-feature {
  position: relative;
}

.rank-number {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(236, 72, 153, 0.28);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.rank-mini {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #db2777;
  background: #fce7f3;
  font-weight: 900;
}

.rank-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.12);
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.search-panel-section {
  padding-bottom: 30px;
}

.search-panel {
  padding: 24px;
}

.big-search input {
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
}

.big-search button {
  min-height: 52px;
  padding: 0 26px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.filter-row select {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
}

.search-status {
  margin: 18px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.detail-page {
  padding-top: 28px;
}

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(17, 24, 39, 0.44));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  font-size: 38px;
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.35);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

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

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #db2777;
  background: #fce7f3;
  font-weight: 800;
}

.text-block {
  padding-top: 20px;
}

.text-block h2,
.side-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  font-weight: 800;
}

.large-tags span {
  font-size: 14px;
}

.review-block p {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fdf2f8, #faf5ff);
  font-style: italic;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
}

.related-item span {
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
}

.related-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.more-section {
  padding-bottom: 30px;
}

.site-footer {
  margin-top: 64px;
  color: #fff;
  background: linear-gradient(90deg, #4c1d95, #831843, #4c1d95);
}

.footer-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.footer-links a:hover {
  color: #f9a8d4;
}

.footer-wrap p {
  width: 100%;
  margin: 4px 0 0;
  color: #e5e7eb;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

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

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

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

  .side-panel,
  .sticky-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-copy {
    padding: 0 44px;
  }

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

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .content-section {
    padding-top: 40px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .three-cols,
  .four-cols,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .list-thumb {
    aspect-ratio: 16 / 10;
  }

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

  .detail-title-row {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .nav-wrap,
  .mobile-panel,
  .footer-wrap {
    width: min(100% - 22px, 1240px);
  }

  .hero-copy {
    padding: 0 24px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-actions,
  .small-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .three-cols,
  .four-cols,
  .category-grid,
  .category-overview-grid,
  .compact-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-card,
  .side-card,
  .search-panel {
    padding: 22px;
  }

  .rank-card,
  .related-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}
