:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --pink-50: #fdf2f8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  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(--gray-800);
  background: linear-gradient(135deg, var(--rose-50), var(--orange-50) 48%, var(--pink-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 248, 248, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
}

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

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

.brand-text {
  font-size: clamp(20px, 2vw, 27px);
  background: linear-gradient(90deg, var(--rose-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-400), var(--orange-400));
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.28);
  font-size: 15px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.primary-nav a,
.mobile-panel a {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.mobile-panel a:hover {
  color: var(--rose-600);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.site-search input,
.library-search,
.library-filter {
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search input {
  width: 220px;
  padding: 10px 16px;
}

.site-search input:focus,
.library-search:focus,
.library-filter:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.site-search button,
.btn,
.text-link,
.section-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.site-search button {
  padding: 10px 17px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
}

.site-search button:hover,
.btn:hover,
.text-link:hover,
.section-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-100);
  color: var(--rose-600);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  padding: 12px 16px 18px;
  background: rgba(255, 248, 248, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-search {
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
}

.mobile-search input {
  width: 100%;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 12%, rgba(251, 113, 133, 0.34), transparent 32%), radial-gradient(circle at 86% 18%, rgba(251, 146, 60, 0.28), transparent 28%), var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.05);
  transform: scale(1.05);
  opacity: 0.38;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68) 48%, rgba(225, 29, 72, 0.22));
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  color: var(--white);
  padding: 78px 0 86px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rose-600);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 760;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.32);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-600);
}

.btn.glass {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
}

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

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--rose-400), var(--orange-400));
}

.section {
  padding: 58px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-header h1 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 860;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  padding: 11px 17px;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(244, 63, 94, 0.18);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--orange-50));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.58));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  font-weight: 860;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--rose-600);
  font-size: 12px;
  font-weight: 780;
  margin-bottom: 8px;
}

.movie-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--gray-900);
}

.movie-body h2 a:hover {
  color: var(--rose-600);
}

.movie-body p {
  margin: 9px 0 13px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: var(--rose-50);
  font-size: 12px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  min-height: 160px;
}

.compact-card .poster img {
  height: 100%;
  min-height: 160px;
}

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

.compact-card .movie-body h2 {
  font-size: 17px;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--shadow-card);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.86)), var(--tile-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.category-tile:hover::before {
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: relative;
}

.category-tile span {
  font-size: 22px;
  font-weight: 860;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.page-main {
  padding: 32px 0 64px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 7vw, 72px);
  color: var(--gray-900);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 241, 242, 0.92)), radial-gradient(circle at 90% 20%, rgba(251, 146, 60, 0.36), transparent 32%);
  box-shadow: var(--shadow-soft);
}

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

.page-hero p {
  max-width: 720px;
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--gray-500);
}

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

.filter-panel {
  margin-top: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.search-panel {
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(120px, 160px));
}

.library-search,
.library-filter {
  width: 100%;
  padding: 12px 15px;
}

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

.category-card-large {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.sample-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 150px;
  overflow: hidden;
}

.sample-strip span {
  background-image: var(--sample-image);
  background-size: cover;
  background-position: center;
}

.category-card-large > div {
  padding: 22px;
}

.category-card-large h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 24px;
}

.category-card-large p {
  color: var(--gray-500);
  line-height: 1.7;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.34), rgba(244, 63, 94, 0.18)), var(--poster-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.movie-player.is-ready::before,
.movie-player.is-ready .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-element {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.28), rgba(244, 63, 94, 0.20));
  cursor: pointer;
  transition: opacity 0.24s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
  box-shadow: 0 20px 44px rgba(244, 63, 94, 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.detail-header {
  padding: 28px 0 8px;
}

.detail-header h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.detail-header p {
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1.8;
}

.detail-section,
.info-panel {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.detail-section h2,
.info-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--rose-100), var(--orange-50));
  box-shadow: var(--shadow-card);
}

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

.info-panel dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 20px;
}

.info-panel dt {
  color: var(--gray-500);
}

.info-panel dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.detail-tags a {
  background: var(--rose-50);
}

.related-section {
  padding-bottom: 0;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #1f1b2e);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  margin: 10px 0;
}

.site-footer a:hover {
  color: var(--rose-400);
}

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

@media (max-width: 1040px) {
  .primary-nav,
  .header-inner > .site-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    width: min(300px, 70vw);
    transform: rotate(0);
  }

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

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

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

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

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

@media (max-width: 740px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .header-inner {
    height: 62px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero-content {
    padding-top: 52px;
    padding-bottom: 92px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .side-poster {
    max-width: 260px;
  }

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

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}
