:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(190, 18, 60, 0.13);
  --shadow-card: 0 16px 32px rgba(17, 24, 39, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(254, 205, 211, 0.65);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.top-nav {
  max-width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-text {
  font-size: 24px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.25);
}

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

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

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

.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);
}

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

.mobile-nav {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 241, 242, 0.8);
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 96px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.38;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 63, 94, 0.48), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.82) 48%, rgba(17, 24, 39, 0.45) 100%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 6vw, 74px);
}

.hero-movie-title {
  margin-top: 12px !important;
  color: #fecdd3;
  font-size: clamp(28px, 4vw, 46px) !important;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--rose-700);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-copy .hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}

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

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

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 22px;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.ghost-button {
  color: var(--rose-700);
  background: #ffffff;
  border: 1px solid var(--rose-100);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  justify-self: end;
  width: min(410px, 100%);
  border: 8px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
  background: #ffffff;
}

.section-block,
.home-search-wrap,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-content {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.home-search-wrap {
  padding-top: 42px;
}

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

.section-heading h2,
.filter-panel h2,
.content-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--rose-600);
  font-size: 15px;
}

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

.movie-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 205, 211, 0.72);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-200);
  box-shadow: var(--shadow-soft);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--rose-50);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 10px;
  bottom: 10px;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(12px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 38px;
  height: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.3);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--rose-600);
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 205, 211, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.category-preview a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--rose-50);
}

.category-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-preview span {
  display: block;
  padding: 8px;
  color: var(--gray-800);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-panel {
  margin-top: 26px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(254, 205, 211, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.filter-tools {
  flex: 1;
  display: grid;
  max-width: 760px;
  gap: 12px;
}

.filter-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--gray-900);
  background: #ffffff;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  outline: none;
}

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

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--gray-600);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 750;
}

.filter-button.active,
.filter-button:hover {
  color: #ffffff;
  background: var(--rose-600);
  border-color: var(--rose-600);
}

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

.page-hero {
  margin-top: 42px;
  padding-top: 78px;
  padding-bottom: 78px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #111827 0%, #881337 58%, #e11d48 100%);
  border-radius: 0 0 34px 34px;
  box-shadow: var(--shadow-soft);
}

.compact-hero,
.ranking-hero {
  border-radius: 34px;
}

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

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 18px;
  line-height: 1.9;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 42px;
  padding-top: 44px;
  padding-bottom: 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.52), transparent 36%),
    linear-gradient(135deg, #111827 0%, #3f0f1a 60%, #831843 100%);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-intro {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.player-section {
  padding-top: 64px;
}

.narrow-heading {
  max-width: 900px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.28), rgba(15, 23, 42, 0.36));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-600), #fb7185);
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.35);
  font-size: 34px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  padding-top: 42px;
}

.content-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 205, 211, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.content-card p {
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 16px;
  line-height: 2;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.meta-card div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rose-100);
}

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

.meta-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 650;
}

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

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--rose-100);
  background: linear-gradient(180deg, var(--rose-50), #ffffff);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-inner p {
  max-width: 360px;
  margin: 14px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 900;
}

.footer-inner a:not(.footer-logo) {
  display: block;
  margin-top: 10px;
  color: var(--gray-600);
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px 36px;
  color: var(--gray-500);
  border-top: 1px solid var(--rose-100);
  text-align: center;
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .top-nav {
    min-height: 64px;
    padding: 0 18px;
  }

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

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 68px;
    padding-bottom: 90px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 72vw);
    transform: rotate(0deg);
  }

  .section-heading,
  .filter-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tools {
    width: 100%;
    max-width: none;
  }

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

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

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

  .detail-poster {
    width: min(280px, 72vw);
  }

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

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

@media (max-width: 600px) {
  .section-block,
  .home-search-wrap,
  .filter-panel,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-copy p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .detail-intro {
    font-size: 16px;
  }

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

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

  .movie-title {
    font-size: 15px;
  }

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

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