* {
  box-sizing: border-box;
}

:root {
  --pink: #db2777;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 42%, #ecfeff 100%);
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.32);
  font-size: 14px;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--pink);
  background: #fdf2f8;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.top-search input,
.filter-controls input,
.filter-controls select {
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: #ffffff;
  padding: 11px 16px;
  min-width: 0;
  width: 100%;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search button,
.btn,
.hero-arrows button,
.pagination a,
.pagination span,
.nav-toggle {
  border: 0;
  cursor: pointer;
}

.top-search button {
  padding: 11px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 800;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 430px;
  overflow: auto;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.12);
  display: none;
  padding: 8px;
}

.search-results.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff1f2;
}

.search-result img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce7f3, #cffafe);
}

.search-result strong {
  display: block;
  color: #111827;
}

.search-result span {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff1f2;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--pink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #be185d 0%, #f43f5e 48%, #7c3aed 100%);
  min-height: 680px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at bottom right, rgba(8, 145, 178, 0.32), transparent 32%);
}

.hero-blob {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: floatBlob 10s infinite ease-in-out;
}

.hero-blob.one {
  top: 70px;
  left: 5%;
  background: #ffffff;
}

.hero-blob.two {
  right: 5%;
  top: 170px;
  background: #f9a8d4;
  animation-delay: 2s;
}

.hero-blob.three {
  left: 42%;
  bottom: -80px;
  background: #67e8f9;
  animation-delay: 4s;
}

.hero-shell {
  position: relative;
  max-width: 1200px;
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 20px 46px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #be185d;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 900;
}

.hero-copy .eyebrow {
  color: #ffe4e6;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  max-width: 780px;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-tags,
.detail-meta,
.card-meta,
.footer-links,
.tag-cloud,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.hero-tags span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.detail-info .btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn.soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  height: min(62vw, 470px);
  min-height: 390px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.32);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #fce7f3, #cffafe);
}

.hero-poster img {
  transition: transform 0.7s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 52%);
}

.hero-tools {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 54px;
  background: #ffffff;
}

.hero-arrows {
  display: flex;
  gap: 12px;
}

.hero-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
}

.stat-strip,
.section-block,
.page-hero,
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: -54px;
  position: relative;
  z-index: 5;
}

.stat-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.stat-card span {
  color: var(--muted);
}

.section-block {
  padding-top: 76px;
  padding-bottom: 76px;
}

.section-tint {
  max-width: none;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.section-tint > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

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

.movie-card.is-compact .poster-link {
  aspect-ratio: 4 / 5;
}

.poster-link img {
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 55%);
}

.card-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(219, 39, 119, 0.9);
  font-size: 12px;
}

.rank-number {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.card-meta {
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.category-tile {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.02);
}

.tile-1 {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tile-2 {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.tile-3 {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.tile-4 {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.tile-icon {
  font-size: 34px;
}

.category-tile strong {
  font-size: 24px;
}

.category-tile small {
  opacity: 0.86;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.ranking-row:hover {
  background: #fff1f2;
}

.rank-badge {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
}

.ranking-row strong {
  align-self: end;
}

.ranking-row em {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding-top: 58px;
  padding-bottom: 36px;
}

.compact-hero {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.08);
}

.filter-title {
  margin-bottom: 14px;
  color: #111827;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.category-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-link,
.tag-cloud a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  color: #4b5563;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.chip-link:hover,
.tag-cloud a:hover {
  color: var(--pink);
  background: #fff1f2;
}

.detail-main {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(14px);
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(219, 39, 119, 0.2));
}

.detail-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 58px 20px 70px;
}

.detail-content .breadcrumb {
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #fce7f3, #cffafe);
}

.detail-info .section-kicker {
  color: #fbcfe8;
}

.detail-info h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.detail-one {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  margin: 24px 0 28px;
}

.detail-meta a,
.detail-meta span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  max-width: 1100px;
  margin: -68px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(219, 39, 119, 0.32), rgba(2, 6, 23, 0.18));
}

.play-trigger span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.play-trigger.is-hidden {
  display: none;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.08);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
}

.detail-tags {
  grid-column: 1 / -1;
}

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

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: #111827;
}

.footer-inner {
  padding-top: 38px;
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-links {
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

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

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .top-search {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .top-search {
    display: flex;
  }

  .site-header.is-open .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .top-search {
    min-width: 0;
  }

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

  .hero-poster {
    min-height: 330px;
    transform: none;
  }

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

  .category-grid,
  .stat-strip,
  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .hero-section,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    padding-top: 46px;
    padding-bottom: 92px;
  }

  .hero-copy h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-desc,
  .detail-one {
    font-size: 16px;
  }

  .hero-tools {
    bottom: 24px;
  }

  .stat-strip,
  .movie-grid,
  .category-grid,
  .ranking-list,
  .detail-body,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    margin-top: 0;
    padding-top: 24px;
  }

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

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

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

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

  .movie-grid {
    gap: 18px;
  }
}
