:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #fb923c;
  --blue: #60a5fa;
  --blue-deep: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 45%, #eff6ff 100%);
  min-height: 100vh;
}

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

img,
video,
svg {
  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.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.3);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(4deg);
}

.logo-text {
  font-size: 28px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
}

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

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.32), transparent 28%), linear-gradient(120deg, #ec4899 0%, #fb923c 47%, #60a5fa 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
}

.hero-inner {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: center;
  padding: 64px 0 82px;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.05;
}

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

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  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) scale(1.03);
}

.btn.primary {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.22);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn.soft {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.38));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 72px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: #ffffff;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 82px;
  fill: #fff7ed;
}

.section,
.page-section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.75), rgba(252, 231, 243, 0.75));
}

.section.blue {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(253, 242, 248, 0.8));
}

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

.section-kicker {
  padding: 7px 12px;
  color: var(--pink-dark);
  background: #fce7f3;
  margin-bottom: 10px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink);
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.is-hidden {
  display: none;
}

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

.movie-card.featured .card-cover {
  aspect-ratio: 16 / 11;
}

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

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

.type-pill,
.rank-no {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.type-pill {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: #9d174d;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.rank-no {
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
}

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: #4b5563;
  background: #f3f4f6;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}

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

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

.category-tile span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.compact-card img {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-info {
  min-width: 0;
}

.compact-info strong,
.compact-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-info strong {
  margin-bottom: 6px;
}

.compact-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.compact-card b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.cta-card {
  border-radius: 34px;
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  color: #ffffff;
  background: linear-gradient(120deg, var(--pink), var(--orange), var(--blue));
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.06em;
}

.cta-card p {
  margin: 0 auto 28px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(120deg, var(--pink), var(--orange), var(--blue));
}

.page-title {
  max-width: 840px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.search-panel {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.movie-search,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.movie-search:focus,
.filter-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-clear {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.filter-empty {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-panel,
.side-panel {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  background: #030712;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button-core {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: var(--pink);
  background: #ffffff;
  font-size: 38px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-button-core {
  transform: scale(1.08);
}

.detail-content {
  padding: clamp(22px, 4vw, 34px);
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #9d174d;
  background: linear-gradient(90deg, #fce7f3, #ffedd5);
}

.detail-content h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.detail-tags {
  margin-bottom: 26px;
}

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

.prose-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.review-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 18px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(90deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 52px 0;
}

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

.site-footer p,
.site-footer a {
  display: block;
  color: #d1d5db;
  line-height: 1.8;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #9ca3af;
}

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

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

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

  .hero-poster {
    max-width: 420px;
    min-height: 360px;
    margin: 0 auto;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 46px 0 86px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 28px;
  }

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

  .hero-dots {
    bottom: 52px;
  }

  .grid.featured,
  .grid.cards,
  .grid.two,
  .category-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head a {
    margin-top: 14px;
  }

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

  .detail-content {
    padding: 22px;
  }

  .compact-card {
    grid-template-columns: 74px minmax(0, 1fr) auto;
  }

  .compact-card img {
    width: 74px;
    height: 74px;
  }
}
