:root {
  color-scheme: light;
  --site-pink: #ec4899;
  --site-purple: #9333ea;
  --site-blue: #2563eb;
  --site-cyan: #06b6d4;
  --site-orange: #f97316;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-soft: #fff1f7;
  --site-card: #ffffff;
  --site-border: rgba(236, 72, 153, 0.16);
  --site-shadow: 0 24px 60px rgba(143, 56, 171, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--site-text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34rem),
    linear-gradient(180deg, #fff6fb 0%, #f8fbff 46%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple), var(--site-blue));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
}

.logo-text {
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple), var(--site-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-link:hover,
.dropdown:hover .dropdown-button {
  color: var(--site-pink);
  background: rgba(236, 72, 153, 0.08);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--site-shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
}

.dropdown-menu a:hover {
  color: var(--site-pink);
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.08), rgba(147, 51, 234, 0.08));
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 30vw);
}

.header-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--site-text);
  outline: none;
  transition: 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 46px 0 18px;
}

.header-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(236, 72, 153, 0.58);
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.12);
}

.header-search button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  background: rgba(236, 72, 153, 0.06);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #9333ea 48%, #2563eb);
}

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

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

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(88, 28, 135, 0.58), rgba(236, 72, 153, 0.24)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 630px;
  padding: 84px 0 120px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffe4f2;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-title {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tag {
  color: #be185d;
  background: #ffe4f2;
}

.hero-actions,
.section-title-row,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  color: var(--site-pink);
  background: #fff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(255, 255, 255, 0.25);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
}

.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.24);
}

.btn-soft {
  color: #be185d;
  background: #ffe4f2;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 44px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: 0.2s ease;
}

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

.section {
  padding: 54px 0;
}

.section-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.section-title-row {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple), var(--site-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--site-muted);
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 228, 242, 0.84)),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.22), transparent 8rem);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.12);
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.2);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: var(--site-card);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(236, 72, 153, 0.2);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #eef2ff);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.68), transparent 56%);
  opacity: 0.78;
}

.movie-badge,
.movie-year,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
}

.movie-year {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(10px);
}

.play-hover {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 20px;
  line-height: 1.38;
}

.movie-card h3 a:hover {
  color: var(--site-pink);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--site-muted);
  line-height: 1.65;
}

.movie-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
}

.rank-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #fce7f3;
}

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

.rank-number {
  top: 8px;
  left: 8px;
  min-width: 34px;
  justify-content: center;
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
}

.rank-card h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.rank-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--site-muted);
  line-height: 1.55;
}

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

.page-hero {
  padding: 64px 0 28px;
}

.page-hero-box {
  overflow: hidden;
  padding: 42px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 18rem),
    linear-gradient(135deg, var(--site-pink), var(--site-purple), var(--site-blue));
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.search-panel {
  grid-template-columns: 1fr auto;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
  min-height: 48px;
  padding: 0 16px;
}

.empty-state {
  padding: 32px;
  border-radius: 24px;
  color: var(--site-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
}

.detail-wrap {
  padding: 42px 0 70px;
}

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

.breadcrumb a:hover {
  color: var(--site-pink);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.35);
}

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

.player-cover-button {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.player-cover-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(88, 28, 135, 0.38));
}

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

.player-play-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 24px 58px rgba(236, 72, 153, 0.45);
  font-size: 38px;
}

.detail-panel,
.text-panel {
  padding: 28px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--site-shadow);
}

.detail-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-intro {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-actions {
  margin-top: 22px;
}

.text-panel {
  margin-top: 24px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.text-panel p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 40px;
  color: #fff;
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple), var(--site-blue));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

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

.footer-bottom {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .logo {
    font-size: 24px;
  }

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

  .hero-content {
    padding: 66px 0 100px;
  }

  .hero-actions,
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-card h3 {
    font-size: 17px;
    min-height: 48px;
  }

  .movie-card-body {
    padding: 13px;
  }

  .page-hero-box,
  .detail-panel,
  .text-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 78px 1fr;
  }

  .rank-card .btn {
    grid-column: 1 / -1;
  }

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

@media (max-width: 430px) {
  .category-grid,
  .movie-grid,
  .movie-grid.compact,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
