:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.84);
  --ink: #22212a;
  --muted: #6f6a75;
  --soft: #fff0f6;
  --line: #f7cde0;
  --primary: #ec4899;
  --primary-dark: #db2777;
  --rose: #fb7185;
  --shadow: 0 22px 60px rgba(219, 39, 119, 0.16);
  --card-shadow: 0 16px 40px rgba(104, 36, 76, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 3%, rgba(244, 114, 182, 0.22), transparent 28rem),
    radial-gradient(circle at 95% 7%, rgba(251, 113, 133, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 44%, #fff7fb 100%);
  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%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(244, 114, 182, 0.2);
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.16rem;
  color: transparent;
  background: linear-gradient(90deg, var(--primary-dark), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  color: #504a57;
}

.desktop-nav > a,
.dropdown > a {
  padding: 9px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active,
.dropdown:hover > a {
  color: var(--primary-dark);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 184px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--card-shadow);
  transition: 0.18s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #5c5361;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--soft);
  color: var(--primary-dark);
}

.site-search {
  position: relative;
  width: 238px;
  flex: 0 0 auto;
}

.site-search input,
.filter-input,
.big-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 46px 0 16px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-input:focus,
.big-search input:focus {
  border-color: rgba(236, 72, 153, 0.62);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

.site-search button,
.big-search button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--card-shadow);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #5c5361;
  background: var(--soft);
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #160b13;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 8, 16, 0.88) 0%, rgba(63, 22, 48, 0.56) 48%, rgba(18, 8, 16, 0.28) 100%),
    linear-gradient(0deg, rgba(255, 247, 251, 0.96) 0%, transparent 28%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: 48px;
}

.hero-copy {
  max-width: 680px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 1.03;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 15px 34px rgba(236, 72, 153, 0.35);
}

.secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: linear-gradient(135deg, var(--primary), var(--rose));
}

.hero-chips {
  position: absolute;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 520px;
  gap: 10px;
}

.hero-chips a {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 30px;
  align-items: center;
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 10px;
  color: #25202a;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.intro-strip p,
.page-hero p,
.category-card p,
.category-overview-card p,
.detail-one-line,
.content-card p,
.card-body p {
  color: var(--muted);
}

.big-search {
  width: 100%;
}

.big-search input {
  min-height: 58px;
  padding-right: 118px;
  font-size: 1rem;
}

.big-search button {
  width: 96px;
  height: 44px;
  right: 7px;
  font-weight: 800;
}

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

.section-heading > a {
  color: var(--primary-dark);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #ffe4e6);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), transparent);
}

.year-badge,
.type-badge,
.rank-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.type-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--primary), var(--rose));
}

.rank-pill {
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.32;
}

.card-body h3 a:hover {
  color: var(--primary-dark);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.94rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #807887;
  font-size: 0.82rem;
}

.card-tags,
.detail-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span,
.filter-chips button {
  padding: 5px 9px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.soft-panel {
  width: min(1220px, calc(100% - 24px));
  padding: 52px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 240, 246, 0.86), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow);
}

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

.category-card,
.category-overview-card,
.content-card,
.filter-panel {
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--card-shadow);
}

.category-card {
  min-height: 150px;
  padding: 22px;
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.24rem;
  font-weight: 900;
}

.category-card:hover {
  transform: translateY(-4px);
}

.ranking-grid .compact-card .poster-link {
  aspect-ratio: 16 / 11;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 72px 46px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(24, 11, 19, 0.72), rgba(219, 39, 119, 0.42)),
    linear-gradient(135deg, #fce7f3, #fff1f2);
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  max-width: 820px;
  color: #fff;
}

.page-hero p {
  margin: 0;
  font-size: 1.08rem;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  padding: 16px;
}

.category-cover {
  display: block;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fdf2f8, #ffe4e6);
}

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

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

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sample-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-panel {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  backdrop-filter: blur(16px);
}

.filter-panel .filter-input {
  padding-right: 18px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
}

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

.detail-page {
  padding-bottom: 30px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 114, 182, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 246, 0.78));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fdf2f8, #ffe4e6);
  box-shadow: 0 28px 72px rgba(219, 39, 119, 0.22);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--primary-dark);
}

.detail-one-line {
  max-width: 760px;
  font-size: 1.08rem;
}

.detail-info .detail-meta span {
  color: var(--primary-dark);
  background: var(--soft);
  border-color: rgba(244, 114, 182, 0.24);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 32px 88px rgba(10, 5, 12, 0.28);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  z-index: 3;
}

.player-overlay[hidden] {
  display: none;
}

.play-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.38);
}

.play-ring span {
  transform: translateX(3px);
  font-size: 2.2rem;
}

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

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 12px;
  color: var(--primary-dark);
}

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

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

.site-footer {
  margin-top: 30px;
  background: linear-gradient(135deg, #fff0f6, #fff7fb);
  border-top: 1px solid rgba(244, 114, 182, 0.2);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-shell p {
  max-width: 430px;
  color: var(--muted);
}

.footer-shell h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  padding: 18px 0 24px;
  color: #8b7d8b;
  text-align: center;
  font-size: 0.92rem;
}

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

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

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

  .desktop-nav,
  .nav-shell > .site-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .hero-slider {
    min-height: 640px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 96px;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-chips {
    right: 16px;
    left: 16px;
    justify-content: flex-start;
  }

  .intro-strip,
  .detail-hero,
  .detail-content,
  .footer-shell,
  .category-overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 260px;
  }

  .page-hero {
    padding: 46px 26px;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    width: min(100% - 22px, 1180px);
    height: 68px;
  }

  .brand-mark,
  .footer-brand span {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

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

  .hero-control {
    display: none;
  }

  .section-wrap,
  .page-hero,
  .detail-hero,
  .player-section {
    width: min(100% - 22px, 1180px);
  }

  .section-wrap {
    padding: 44px 0;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 0.96rem;
  }

  .card-body p {
    font-size: 0.86rem;
  }

  .filter-panel {
    position: static;
  }

  .detail-hero {
    padding: 20px;
  }

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

  .play-ring {
    width: 78px;
    height: 78px;
  }
}
