:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --amber-50: #fffbeb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 42px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 26px 80px rgba(190, 18, 60, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.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.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gray-900);
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-500));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

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

.nav-link,
.mobile-nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--rose-700);
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-section {
  position: relative;
  height: min(660px, calc(100vh - 72px));
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500), var(--orange-500));
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.75s ease, transform 1.1s ease;
  pointer-events: none;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  opacity: 0.42;
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 52%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
}

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

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.hero-copy h1,
.page-hero h1,
.detail-title-row h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-title-row p {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.side-cta a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 15px 30px;
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.ghost-button {
  padding: 13px 28px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.ghost-button:hover,
.side-cta a:hover,
.text-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

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

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

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

.section-heading.slim {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2,
.category-overview-card h2,
.story-card h2,
.info-card h2,
.side-cta h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-heading a,
.text-link {
  color: var(--rose-600);
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: var(--shadow-md);
}

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

.movie-card-compact .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-meta-line {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: #cbd5e1;
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.movie-card h2 a:hover,
.ranking-row h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--rose-600);
}

.movie-card p,
.ranking-row p,
.category-overview-card p,
.story-card p,
.info-card p,
.side-cta p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.75;
}

.tag-row {
  margin-top: 14px;
}

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

.tag-row.wide span {
  background: #fff7ed;
  color: #c2410c;
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
  font-weight: 950;
}

.category-band,
.collection-band {
  padding: 72px 0;
  background: rgba(255, 255, 255, 0.72);
}

.collection-band {
  background: linear-gradient(90deg, rgba(255, 228, 230, 0.88), rgba(252, 231, 243, 0.88), rgba(255, 237, 213, 0.88));
}

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

.category-tile {
  display: block;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: var(--shadow-md);
}

.category-tile span {
  display: block;
  margin-bottom: 14px;
  color: var(--gray-900);
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.75;
}

.two-column-section,
.ranking-layout,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.ranking-panel,
.ranking-list-panel,
.info-card,
.story-card,
.player-card,
.side-cta,
.filter-panel,
.category-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.ranking-panel,
.ranking-list-panel,
.info-card,
.story-card,
.side-cta,
.filter-panel {
  padding: 24px;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
}

.ranking-row:first-of-type {
  border-top: 0;
}

.row-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
  font-weight: 950;
}

.ranking-row-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}

.ranking-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-row h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 950;
}

.page-hero {
  padding: 70px 0 36px;
}

.page-hero h1 {
  color: var(--gray-900);
}

.page-hero p {
  color: var(--gray-500);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px 200px;
  gap: 14px;
  margin-bottom: 22px;
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--gray-500);
  transform: translateY(-50%);
}

.search-box input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input {
  padding: 0 16px 0 44px;
}

.filter-panel select {
  padding: 0 14px;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--orange-500));
}

.empty-state {
  display: none;
  padding: 80px 0;
  color: var(--gray-500);
  text-align: center;
  font-weight: 900;
}

.empty-state.is-visible {
  display: block;
}

.detail-shell {
  background: linear-gradient(135deg, var(--amber-50), var(--rose-50) 45%, #fdf2f8);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
}

.detail-bg {
  opacity: 0.42;
  filter: blur(1px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.detail-title-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  width: 220px;
  aspect-ratio: 3 / 4;
  border: 4px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.detail-title-row .section-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.detail-grid {
  padding: 42px 0 24px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  padding: 14px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #09090b;
}

.movie-video,
.player-overlay,
.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #09090b;
}

.player-overlay {
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay img {
  object-fit: cover;
  opacity: 0.54;
}

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

.play-button {
  position: relative;
  z-index: 3;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  font-size: 34px;
  line-height: 1;
  transform: translateX(2px);
}

.story-card h2,
.info-card h2,
.side-cta h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

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

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

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

.info-card li span {
  color: var(--gray-500);
}

.info-card li strong {
  text-align: right;
}

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

.side-cta {
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-500));
  color: var(--white);
}

.side-cta h2,
.side-cta p {
  color: var(--white);
}

.side-cta a {
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--rose-600);
  background: var(--white);
}

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

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

.site-footer {
  margin-top: 32px;
  padding: 52px 0 22px;
  color: rgba(255, 255, 255, 0.84);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand,
.site-footer h2 {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p {
  margin: 14px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid-large,
  .listing-grid,
  .compact-grid,
  .masonry-like,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-side {
    position: static;
  }

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

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

  .mobile-nav-toggle {
    display: block;
  }

  .hero-section {
    min-height: 620px;
  }

  .hero-overlay,
  .detail-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36));
  }

  .movie-grid-large,
  .listing-grid,
  .compact-grid,
  .masonry-like,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 180px;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-section {
    min-height: 660px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title-row h1 {
    font-size: 38px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid-large,
  .listing-grid,
  .compact-grid,
  .masonry-like,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }

  .detail-hero {
    min-height: 620px;
  }
}
