:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 16px 45px rgba(244, 63, 94, 0.14);
  --shadow-card: 0 18px 44px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--rose-50) 0%, #ffffff 42%, #fff7fb 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-600));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.32);
}

.brand-text,
.footer-brand {
  font-size: 21px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--slate-600);
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose-600);
  background: var(--rose-50);
}

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

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.mobile-link {
  display: block;
  padding: 13px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.20), transparent 36%), linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fdf2f8 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(244, 63, 94, 0.22) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 84px 0 72px;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
}

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

.hero-copy {
  flex: 1 1 58%;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--rose-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--slate-950);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
}

.hero-copy h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 52px);
  background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.detail-meta,
.footer-links,
.filter-chips,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.primary-button.light {
  color: var(--rose-600);
  background: var(--white);
}

.ghost-button,
.section-link {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

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

.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid rgba(244, 63, 94, 0.14);
  font-weight: 700;
}

.tag-row span {
  padding: 7px 12px;
  font-size: 13px;
}

.detail-meta span,
.card-meta span {
  padding: 5px 10px;
  font-size: 12px;
}

.hero-poster {
  position: relative;
  flex: 0 0 min(38%, 430px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.66);
  border-radius: 36px;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
  box-shadow: 0 30px 80px rgba(244, 63, 94, 0.26);
}

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

.hero-poster img,
.card-poster img,
.detail-cover img,
.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.18);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.section-wrap,
.page-hero > div,
.detail-shell,
.footer-inner,
.category-grid,
.cta-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.section-head.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-head h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--slate-600);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #fdf2f8);
}

.card-poster img {
  transition: transform 0.45s ease;
}

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

.card-year,
.play-badge {
  position: absolute;
  z-index: 2;
}

.card-year {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.35);
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-content {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.card-content h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.42;
}

.card-content h3 a:hover,
.ranking-item h3 a:hover {
  color: var(--rose-600);
}

.card-content p,
.ranking-item p,
.content-card p,
.side-card dd,
.site-footer p {
  color: var(--slate-600);
  line-height: 1.75;
}

.card-content p {
  margin: 0;
  font-size: 14px;
}

.category-band {
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.85), rgba(253, 242, 248, 0.95));
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card-large a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile span,
.category-card-large h2 {
  color: var(--slate-950);
  font-size: 20px;
  font-weight: 900;
}

.category-tile small,
.category-card-large p {
  margin-top: 12px;
  color: var(--slate-600);
  line-height: 1.6;
}

.two-column-block,
.ranking-page-grid,
.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}

.movie-stack {
  display: grid;
  gap: 16px;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.card-horizontal .card-content h3 {
  min-height: auto;
}

.horizontal-poster {
  aspect-ratio: 4 / 3;
  height: 100%;
}

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

.ranking-list.large {
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ranking-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--rose-100);
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ranking-item p {
  margin: 0;
  font-size: 13px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: 44px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: radial-gradient(circle at 12% 12%, rgba(236, 72, 153, 0.20), transparent 35%), linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.slim-hero {
  padding: 64px 0;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 14px;
}

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

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

.category-card-large {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  color: var(--white);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 900;
}

.category-card-large strong {
  margin-top: 20px;
  color: var(--rose-600);
}

.filter-panel,
.advanced-search {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.advanced-search {
  grid-template-columns: 1fr 180px 180px;
}

.search-box input,
.advanced-search input,
.advanced-search select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 16px;
  outline: none;
  color: var(--slate-900);
  background: var(--white);
}

.search-box input:focus,
.advanced-search input:focus,
.advanced-search select:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.search-status {
  margin: -16px 0 24px;
  color: var(--slate-500);
  font-weight: 700;
}

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

.detail-hero {
  padding: 58px 0 72px;
}

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

.detail-info h1 {
  font-size: clamp(36px, 6vw, 66px);
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.64);
  border-radius: 34px;
  background: var(--rose-100);
  box-shadow: 0 24px 70px rgba(244, 63, 94, 0.24);
}

.player-section {
  padding-top: 54px;
  padding-bottom: 34px;
}

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

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

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

.player-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: calc(100% - 48px);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.content-card,
.side-card {
  padding: 28px;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.content-card h2,
.side-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 28px;
  font-size: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
}

.site-footer {
  margin-top: 50px;
  padding: 44px 0;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.site-footer p {
  max-width: 620px;
  margin: 14px 0 0;
}

.footer-links a {
  color: var(--slate-600);
  font-weight: 800;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .two-column-block,
  .ranking-page-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-stage {
    min-height: auto;
    padding: 54px 0 74px;
  }

  .hero-slide {
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }

  .hero-poster {
    width: min(360px, 100%);
    flex-basis: auto;
    margin: 0 auto;
  }

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .detail-cover {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

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

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

  .brand-text,
  .footer-brand {
    font-size: 18px;
  }

  .movie-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .card-horizontal {
    grid-template-columns: 120px 1fr;
  }

  .card-content {
    padding: 14px;
  }

  .card-content h3 {
    font-size: 16px;
  }

  .section-wrap {
    padding: 48px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 48px 0;
  }

  .movie-player {
    border-radius: 18px;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }
}
