:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --slate-900: #111827;
  --slate-700: #374151;
  --slate-500: #6b7280;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(190, 24, 93, 0.16);
  --shadow-strong: 0 30px 75px rgba(17, 24, 39, 0.22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 114, 182, 0.22), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(251, 113, 133, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7fb 0%, #fff1f2 48%, #fdf2f8 100%);
  min-height: 100vh;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(251, 207, 232, 0.72);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--pink-600);
}

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

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

.nav-link {
  padding: 10px 16px;
  color: var(--slate-700);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink-600);
  background: var(--pink-50);
  transform: translateY(-1px);
}

.global-search {
  position: relative;
  width: 280px;
}

.global-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pink-200);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  color: var(--slate-900);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.global-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.global-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 460px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid var(--pink-100);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
}

.global-results.visible {
  display: grid;
  gap: 8px;
}

.global-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.global-result-item:hover {
  background: var(--pink-50);
}

.global-result-item img {
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-50));
}

.global-result-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.global-result-item span {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--pink-50);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--pink-600);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  position: relative;
}

.hero-stage {
  min-height: 600px;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, var(--slate-900), var(--pink-600));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 42px;
  padding: clamp(28px, 6vw, 72px);
  color: #ffffff;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.9s ease;
}

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

.hero-text {
  max-width: 720px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--pink-600);
  background: rgba(253, 242, 248, 0.92);
  font-weight: 800;
  font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-heading h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 16px 34px rgba(219, 39, 119, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(244, 114, 182, 0.35));
}

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

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
}

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

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 64px auto;
}

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

.section-title h2,
.ranking-panel h2,
.story-card h2,
.info-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--slate-500);
}

.section-more {
  flex: none;
  color: var(--pink-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 207, 232, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 114, 182, 0.7);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), #ffffff);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.28);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--pink-600);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card p {
  min-height: 60px;
  margin: 0 0 14px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.tag-cloud span {
  color: var(--pink-600);
  background: var(--pink-50);
}

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

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.category-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

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

.ranking-panel,
.story-card,
.info-card {
  border: 1px solid rgba(251, 207, 232, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.08);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--pink-50);
}

.rank-row b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.rank-row span {
  min-width: 0;
  font-weight: 800;
}

.rank-row em {
  grid-column: 2;
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 36px;
  overflow: hidden;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-strong);
}

.soft-hero {
  color: var(--slate-900);
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 114, 182, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(253, 242, 248, 0.88));
}

.soft-hero p {
  color: var(--slate-500);
}

.rank-hero {
  background: linear-gradient(135deg, var(--slate-900), var(--pink-600));
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.filter-status {
  min-width: 120px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.detail-hero {
  min-height: 560px;
  display: block;
}

.detail-hero-inner {
  width: 100%;
}

.breadcrumb,
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb:hover {
  color: #ffffff;
}

.detail-heading {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-top: 36px;
}

.detail-poster {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050505;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.78), rgba(219, 39, 119, 0.34));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.overlay-play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 18px 40px rgba(219, 39, 119, 0.4);
  font-size: 30px;
}

.story-card {
  margin-top: 28px;
  padding: 28px;
}

.story-card h2 + p {
  margin-top: 12px;
}

.story-card p {
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 17px;
}

.story-card p + h2 {
  margin-top: 28px;
}

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

.info-card {
  padding: 24px;
}

.info-card h2 {
  font-size: 24px;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pink-100);
}

.info-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-card b {
  color: var(--pink-600);
}

.tag-cloud {
  margin-top: 16px;
}

.site-footer {
  margin-top: 80px;
  padding: 44px 0;
  border-top: 1px solid rgba(251, 207, 232, 0.72);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
}

.footer-inner p {
  color: var(--slate-500);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-content: start;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--pink-50);
}

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

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

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

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

  .site-nav.open,
  .global-search.open {
    display: flex;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: start;
    padding-bottom: 8px;
  }

  .global-search {
    width: 100%;
    padding-bottom: 16px;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .content-section,
  .hero,
  .page-hero,
  .detail-hero,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 28px;
  }

  .hero h1,
  .page-hero h1,
  .detail-heading h1 {
    font-size: 38px;
  }

  .section-title,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

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

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

  .hero-controls {
    bottom: 14px;
  }

  .site-logo {
    font-size: 18px;
  }
}
