:root {
  color-scheme: light;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --rose: #fb7185;
  --orange: #f97316;
  --yellow: #fde68a;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f7;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(236, 72, 153, 0.14);
  --shadow: 0 24px 60px rgba(219, 39, 119, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fff7ed 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.32);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #7f1d1d;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.22);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #be185d;
  border-radius: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  flex-direction: column;
  gap: 8px;
}

.hero-section {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(120deg, #f472b6, #fb7185 44%, #fb923c);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(253, 230, 138, 0.38), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.25), transparent 26%),
    linear-gradient(90deg, rgba(190, 24, 93, 0.82), rgba(249, 115, 22, 0.38));
  z-index: 2;
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 32px));
  min-height: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  max-width: 1180px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
}

.eyebrow span,
.eyebrow strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.eyebrow strong {
  background: rgba(253, 230, 138, 0.24);
  color: #fff7ed;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-content p {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.8;
  color: #fff7ed;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  color: #be185d;
  background: #fff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.25);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.card-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

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

.search-strip {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.search-inner,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff7fb;
  border: 1px solid rgba(236, 72, 153, 0.16);
}

.search-box span {
  color: #be185d;
  font-weight: 900;
  white-space: nowrap;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.quick-links,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.quick-links a,
.filter-buttons button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid rgba(244, 63, 94, 0.14);
  font-weight: 800;
}

.filter-buttons button {
  cursor: pointer;
}

.filter-buttons button.active,
.quick-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: #831843;
}

.section-title a {
  color: var(--pink-dark);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 18px 42px rgba(157, 23, 77, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(157, 23, 77, 0.16);
}

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

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.5));
  opacity: 0.6;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.28);
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 8px;
  color: #be185d;
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.35;
}

.card-body p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .tag-row span {
  color: #be185d;
  background: #fff1f7;
  border-color: rgba(236, 72, 153, 0.16);
}

.card-button {
  width: 100%;
  margin-top: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.18);
}

.compact-card .card-body h3 {
  font-size: 17px;
}

.compact-card .card-body {
  padding: 15px;
}

.soft-section {
  background: linear-gradient(90deg, #fce7f3, #fff7ed);
  border-top: 1px solid rgba(236, 72, 153, 0.10);
  border-bottom: 1px solid rgba(236, 72, 153, 0.10);
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background: #831843;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 0.35s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(131, 24, 67, 0.18), rgba(131, 24, 67, 0.82));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  margin-top: 76px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 10px 0 0;
  color: #ffe4e6;
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  padding: 70px 0;
}

.rank-panel,
.promo-panel,
.text-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.rank-panel,
.promo-panel {
  padding: 26px;
}

.compact-title {
  margin-bottom: 18px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
  border: 1px solid rgba(236, 72, 153, 0.10);
}

.rank-item img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #fbcfe8;
}

.mini-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-weight: 950;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  color: #831843;
  line-height: 1.35;
}

.rank-item em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.promo-panel {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.28), transparent 32%),
    linear-gradient(135deg, #be185d, #f97316);
}

.promo-panel h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
}

.promo-panel p {
  color: #ffe4e6;
  line-height: 1.9;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(253, 230, 138, 0.34), transparent 28%),
    linear-gradient(120deg, #db2777, #fb7185 48%, #f97316);
}

.page-hero .section-inner {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slim-hero .section-inner {
  min-height: 260px;
}

.page-hero p,
.detail-info p {
  max-width: 760px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.85;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(157, 23, 77, 0.08);
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

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

.category-overview-card h2 {
  margin: 2px 0 12px;
  color: #831843;
  font-size: 26px;
}

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

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-sample-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #be185d;
  background: #fff1f7;
  font-weight: 800;
  font-size: 13px;
}

.filter-panel {
  margin-bottom: 28px;
}

.compact-search {
  max-width: 560px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  color: #be185d;
  text-align: center;
  background: #fff1f7;
  font-weight: 900;
}

.detail-hero {
  padding: 58px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffe4e6;
  font-weight: 800;
}

.detail-meta {
  margin: 22px 0;
}

.big-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 70px 0 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.68));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #be185d;
  background: #fff;
  font-size: 30px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
}

.play-cover strong {
  font-size: 20px;
}

.article-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0;
}

.text-card {
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 16px;
  color: #831843;
  font-size: 28px;
}

.text-card p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

.site-footer {
  margin-top: 30px;
  color: #fff;
  background: linear-gradient(135deg, #be185d, #f97316);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: 34px;
  padding: 44px 0;
}

.brand-footer {
  color: #fff;
}

.footer-brand p,
.footer-links a {
  color: #ffe4e6;
}

.footer-brand p {
  max-width: 480px;
  line-height: 1.8;
}

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

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

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

.copyright {
  padding: 18px;
  text-align: center;
  color: #ffe4e6;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

  .detail-poster {
    width: min(340px, 100%);
  }
}

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

  .mobile-menu-button {
    display: flex;
  }

  .mobile-nav.open {
    display: flex;
  }

  .hero-content {
    min-height: 560px;
  }

  .hero-section {
    min-height: 560px;
  }

  .search-inner,
  .filter-panel,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-links,
  .filter-buttons {
    width: 100%;
  }

  .movie-grid,
  .wide-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 22px, 1200px);
  }

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

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-content p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .movie-grid,
  .wide-grid,
  .latest-grid,
  .category-grid,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex: 1 1 auto;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
    padding: 14px;
  }

  .content-section,
  .rank-layout {
    padding: 44px 0;
  }

  .detail-hero {
    padding: 36px 0;
  }
}
