:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #ffe4ec;
  --line: rgba(244, 114, 182, 0.22);
  --pink: #ec4899;
  --rose: #fb7185;
  --deep: #be185d;
  --shadow: 0 22px 60px rgba(244, 114, 182, 0.24);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 183, 197, 0.42), transparent 26rem),
    radial-gradient(circle at 90% 8%, rgba(253, 164, 175, 0.32), transparent 25rem),
    linear-gradient(135deg, #fff7fb 0%, #fff1f7 42%, #ffffff 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(236, 72, 153, 0.11) 1px, transparent 1px),
    radial-gradient(circle, rgba(251, 113, 133, 0.09) 1px, transparent 1px);
  background-size: 38px 38px, 72px 72px;
  background-position: 0 0, 18px 24px;
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.glass-effect {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 251, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--deep);
  background: rgba(252, 231, 243, 0.88);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 20px rgba(244, 114, 182, 0.18);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-section {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.7fr);
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  min-height: 590px;
  padding: 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  background: linear-gradient(135deg, #ffe4ec 0%, #fff 58%, #ffe9f1 100%);
}

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

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.98), rgba(255, 247, 251, 0.66), rgba(255, 247, 251, 0.12)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.08));
}

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

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1 / 2;
  align-self: center;
  padding: 38px;
  border-radius: 30px;
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(252, 231, 243, 0.95);
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.8;
  color: #4b5563;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--deep);
  background: rgba(252, 231, 243, 0.92);
}

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

.primary-button,
.ghost-button,
.section-link,
.hero-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search-form button {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.32);
}

.ghost-button,
.section-link {
  color: var(--deep);
  background: white;
  border: 1px solid var(--line);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.hero-search-form button:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 36px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.28);
  cursor: pointer;
}

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

.hero-side {
  display: grid;
  gap: 18px;
}

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

.hero-search-box h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.hero-search-form,
.filter-bar {
  display: flex;
  gap: 10px;
}

.hero-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
}

.hero-search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.11);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(252, 231, 243, 0.9);
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(244, 114, 182, 0.22);
}

.hero-mini-card img {
  width: 82px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe4ec, #fff);
}

.hero-mini-card span {
  font-weight: 800;
  line-height: 1.45;
}

.content-section,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.category-pill {
  min-height: 138px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 228, 236, 0.92));
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(244, 114, 182, 0.18);
}

.category-pill strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 18px;
}

.category-pill span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(244, 114, 182, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(244, 114, 182, 0.26);
}

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

.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);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(236, 72, 153, 0.92);
  font-weight: 800;
  font-size: 13px;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(31, 41, 55, 0.72);
}

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.card-title:hover {
  color: var(--deep);
}

.card-desc {
  display: -webkit-box;
  min-height: 50px;
  margin: 10px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: #9f1239;
  font-size: 13px;
}

.movie-card-compact .card-body {
  padding: 14px;
}

.movie-card-compact .card-title {
  font-size: 16px;
}

.ranking-preview {
  padding-bottom: 8px;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 48px 74px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(244, 114, 182, 0.16);
}

.ranking-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
}

.ranking-item img {
  width: 74px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe4ec, #fff);
}

.ranking-title {
  font-weight: 800;
  line-height: 1.45;
}

.ranking-info {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  padding: 42px;
  border-radius: 34px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -0.05em;
}

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

.filter-bar {
  margin-top: 22px;
  max-width: 760px;
}

.filter-bar select {
  max-width: 180px;
}

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

.category-card {
  display: block;
  padding: 24px;
  border-radius: 30px;
  transition: transform 0.2s ease;
}

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe4ec, #fff);
}

.category-card h2 {
  margin: 0 0 8px;
  color: var(--deep);
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.category-card span {
  color: var(--deep);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 18px;
  color: var(--muted);
}

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

.detail-main {
  padding-top: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 34px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffe4ec, #fff);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9f1239;
  background: rgba(255, 241, 242, 0.92);
}

.detail-info .primary-button {
  align-self: flex-start;
  margin-top: 24px;
}

.player-section {
  margin-top: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.32);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.48));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.36);
  font-size: 36px;
}

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

.detail-text-block {
  margin-top: 28px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.detail-text-block h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-text-block p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  white-space: pre-line;
}

.detail-related {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--deep);
  font-size: 22px;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(252, 231, 243, 0.85);
}

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

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

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

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

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-slide {
    min-height: 620px;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-section,
  .content-section,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage,
  .hero-slide {
    min-height: 680px;
  }

  .hero-slide {
    display: block;
    padding: 20px;
  }

  .hero-content {
    margin-top: 250px;
    padding: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 18px;
  }

  .hero-search-form,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

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

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

  .ranking-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .ranking-info {
    grid-column: 3;
  }

  .page-hero {
    padding: 26px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-poster {
    max-width: 330px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .category-strip,
  .movie-grid,
  .featured-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-card {
    grid-template-columns: 68px 1fr;
  }

  .hero-mini-card img {
    width: 68px;
    height: 82px;
  }

  .card-title {
    min-height: auto;
  }
}
