:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f7;
  --ink: #1f2937;
  --muted: #6b7280;
  --muted-strong: #4b5563;
  --line: #f9c7d8;
  --brand: #db2777;
  --brand-dark: #be185d;
  --brand-soft: #fce7f3;
  --rose: #fb7185;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(190, 24, 93, 0.14);
  --shadow-soft: 0 10px 30px rgba(190, 24, 93, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #fff7fb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(249, 168, 212, 0.42);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.28);
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background: #111827;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.46), transparent 30rem),
    radial-gradient(circle at 80% 10%, rgba(251, 113, 133, 0.34), transparent 28rem);
  z-index: 2;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 56px;
  padding: 110px max(32px, calc((100vw - 1180px) / 2)) 88px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.015);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.34) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 3;
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffe4ef;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.eyebrow.dark {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #fbcfe8;
}

.hero h1,
.hero h2 {
  margin: 22px 0 16px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.hero-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 14px 34px rgba(219, 39, 119, 0.32);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

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

.ghost-button {
  min-height: 44px;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

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

.hero-poster {
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  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.36);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: center;
  margin-top: -52px;
  position: relative;
  z-index: 7;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-panel h2,
.content-section h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-text h2 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-panel h2,
.content-section h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.section-panel p,
.page-hero p,
.category-overview-card p,
.detail-text p,
.lead-text {
  color: var(--muted);
  line-height: 1.8;
}

.home-search,
.filter-bar {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid #fbcfe8;
}

.home-search input,
.search-box input,
.select-box select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.home-search button {
  min-width: 100px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
  background: var(--brand);
  cursor: pointer;
}

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

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

.text-link {
  color: var(--brand-dark);
  font-weight: 850;
}

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

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

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(249, 168, 212, 0.6);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: #f472b6;
  box-shadow: 0 18px 46px rgba(219, 39, 119, 0.18);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

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

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

.poster-tag,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.poster-tag {
  right: 12px;
  background: rgba(219, 39, 119, 0.86);
}

.rank-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.movie-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.movie-card-body h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--ink);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 750;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.96));
}

.category-tile img {
  position: absolute;
  inset: auto 0 0 auto;
  width: 58%;
  height: 70%;
  object-fit: cover;
  opacity: 0.28;
}

.category-tile strong,
.category-tile em,
.category-tile p,
.category-icon {
  position: relative;
  z-index: 2;
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--rose));
}

.category-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 21px;
  font-weight: 950;
}

.category-tile em {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 800;
}

.category-tile p {
  max-width: 220px;
  color: var(--muted);
  line-height: 1.65;
}

.page-main {
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

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

.page-hero {
  margin-bottom: 28px;
  padding: 38px;
  border-radius: 30px;
  background:
    radial-gradient(circle at right top, rgba(244, 114, 182, 0.22), transparent 26rem),
    linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.filter-bar {
  align-items: center;
  margin: 26px 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-box,
.select-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.select-box {
  max-width: 210px;
}

.filter-empty {
  margin: 20px 0;
  padding: 24px;
  border-radius: 20px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 850;
  text-align: center;
}

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

.category-overview-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #fbcfe8;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at left top, rgba(251, 113, 133, 0.24), transparent 28rem),
    linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(190, 24, 93, 0.2);
}

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

.detail-info h1 {
  font-size: clamp(32px, 5vw, 58px);
}

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

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

.detail-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #fbcfe8;
}

.detail-meta-list strong {
  color: var(--muted);
}

.detail-meta-list span {
  color: var(--brand-dark);
  font-weight: 850;
  text-align: right;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 800;
}

.player-section,
.detail-text {
  margin-top: 34px;
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-soft);
}

.player-section h2,
.detail-text h2 {
  font-size: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.22);
}

.player-shell video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-shell video {
  display: block;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: #111827;
  cursor: pointer;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.76));
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: saturate(1.06);
}

.play-symbol {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 18px 46px rgba(219, 39, 119, 0.4);
}

.player-cover strong {
  position: relative;
  z-index: 2;
  margin-top: 100px;
  font-size: 18px;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.related-section {
  padding-top: 34px;
}

.site-footer {
  margin-top: 40px;
  padding: 52px 0;
  color: #ffe4ef;
  background: linear-gradient(135deg, #831843, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 34px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 950;
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer h2 {
  margin-top: 0;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffe4ef;
  background: rgba(255, 255, 255, 0.1);
}

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

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

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

  .hero-poster {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

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

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero,
  .hero-track {
    min-height: 650px;
  }

  .hero-slide {
    padding: 96px 20px 78px;
  }

  .hero h1,
  .hero h2 {
    font-size: 44px;
  }

  .section-panel,
  .filter-bar,
  .category-overview-head,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .section-panel,
  .filter-bar {
    display: grid;
    border-radius: 24px;
  }

  .select-box {
    max-width: none;
  }

  .movie-grid,
  .page-grid,
  .compact-grid,
  .rank-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .detail-text,
  .category-overview-card {
    padding: 20px;
    border-radius: 24px;
  }

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

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

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

  .movie-grid,
  .page-grid,
  .compact-grid,
  .rank-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero-actions {
    display: grid;
  }
}
