:root {
  --pink: #db2777;
  --pink-soft: #fce7f3;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #16a34a;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(219, 39, 119, 0.14);
  --paper: #ffffff;
  --bg: #fff7fb;
  --shadow: 0 24px 60px rgba(124, 58, 237, 0.14);
  --shadow-hover: 0 30px 80px rgba(219, 39, 119, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f7 0%, #f5f3ff 45%, #eff6ff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 10% 0%, rgba(219, 39, 119, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.16), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.13), transparent 36rem);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 35px rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 16px 34px rgba(219, 39, 119, 0.35);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--pink-soft);
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--pink);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 78px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  opacity: 0;
  transform: translateX(-50%);
}

.hero-slide.active .hero-bg {
  opacity: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.08);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(88, 28, 135, 0.72) 45%, rgba(219, 39, 119, 0.62) 100%),
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.5), transparent 26rem);
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  content: "";
  background: linear-gradient(180deg, transparent, #fff7fb);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: currentColor;
}

.eyebrow.dark {
  color: var(--pink);
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-content p,
.page-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

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

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

.primary-button,
.home-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 18px 38px rgba(219, 39, 119, 0.33);
}

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

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

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: min(58vw, 520px);
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 72px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

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

.light-section {
  background: rgba(255, 255, 255, 0.6);
}

.quick-search-section {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.search-panel,
.filter-bar {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-card h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-panel h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.home-search,
.filter-bar {
  display: flex;
}

.home-search {
  gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(219, 39, 119, 0.5);
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.12);
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(124, 58, 237, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft));
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.hero-poster:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.75));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.34);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 38px;
  height: 32px;
  place-items: center;
  color: #713f12;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #facc15);
  font-weight: 950;
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 950;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #5b6472;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span,
.detail-tags a {
  padding: 6px 10px;
  color: var(--purple);
  background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft));
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.72), rgba(124, 58, 237, 0.78), rgba(37, 99, 235, 0.68));
}

.tile-content {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
}

.tile-content strong,
.tile-content em {
  display: block;
}

.tile-content strong {
  margin-bottom: 8px;
  font-size: 23px;
  font-weight: 950;
}

.tile-content em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.inline-heading {
  margin-bottom: 20px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-columns: 290px;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 6px 20px;
  scroll-snap-type: x mandatory;
}

.compact-card {
  scroll-snap-align: start;
}

.ranking-panel,
.side-card,
.detail-card,
.player-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-panel,
.side-card,
.detail-card {
  padding: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
  background: var(--pink-soft);
  transform: translateX(4px);
}

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

.rank-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-info strong {
  overflow: hidden;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item b {
  color: var(--orange);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
}

.page-hero::after {
  position: absolute;
  right: -10%;
  bottom: -45%;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.small-hero .section-inner {
  position: relative;
  z-index: 2;
  padding: 76px 0;
}

.small-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
}

.filter-bar {
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  margin-bottom: 28px;
}

.strong-filter {
  grid-template-columns: minmax(240px, 1fr) 210px 210px;
}

.empty-state {
  display: none;
  padding: 40px;
  color: var(--muted);
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.empty-state.show {
  display: block;
}

.movie-card.hidden-by-filter {
  display: none;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.breadcrumb em {
  color: var(--ink);
  font-style: normal;
}

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

.player-card {
  padding: 10px;
  margin-bottom: 24px;
  background: #0b1020;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(219, 39, 119, 0.3), transparent 21rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.74));
}

.player-cover span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 60px rgba(219, 39, 119, 0.45);
  font-size: 32px;
}

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

.player-cover.is-hidden {
  display: none;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

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

.detail-meta-row span {
  padding: 8px 12px;
  color: #4b5563;
  border-radius: 999px;
  background: #f3f4f6;
  font-weight: 800;
}

.detail-meta-row span:last-child {
  color: #7c2d12;
  background: #ffedd5;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.detail-facts div {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f7, #f5f3ff);
}

.detail-facts span,
.detail-facts strong,
.detail-facts a {
  display: block;
}

.detail-facts span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-facts strong,
.detail-facts a {
  font-weight: 950;
}

.detail-card h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-card p,
.detail-card blockquote {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-card blockquote {
  padding: 18px 20px;
  border-left: 5px solid var(--pink);
  border-radius: 18px;
  background: #fff1f7;
}

.detail-tags a {
  margin-bottom: 8px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 20px;
  object-fit: cover;
}

.full-button {
  width: 100%;
}

.no-padding {
  width: 100%;
}

.related-block {
  padding-bottom: 0;
}

.site-footer {
  padding: 54px 0;
  color: #4b5563;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner p {
  max-width: 640px;
  margin: 10px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

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

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

  .hero-slide,
  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 860px;
  }

  .hero-poster {
    max-width: 420px;
  }

  .detail-side {
    position: static;
  }
}

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

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

  .home-hero {
    min-height: 780px;
  }

  .hero-slide {
    gap: 28px;
    padding-top: 54px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: clamp(34px, 13vw, 52px);
  }

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

  .hero-poster img {
    height: 340px;
  }

  .hero-controls {
    right: 16px;
    bottom: 42px;
  }

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

  .home-search {
    flex-direction: column;
  }

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

  .section-block {
    padding: 52px 0;
  }

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

  .rank-item {
    grid-template-columns: 30px 58px 1fr auto;
  }

  .detail-card,
  .ranking-panel,
  .side-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 66px;
  }

  .brand-text {
    font-size: 19px;
  }

  .featured-grid,
  .movie-grid,
  .category-grid,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .horizontal-scroll {
    grid-auto-columns: 82%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
