* {
  box-sizing: border-box;
}

:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
}

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

img,
video {
  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: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.logo-text,
.footer-logo {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  padding: 24px 0;
  color: var(--gray-700);
  font-weight: 650;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 16px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  transition: right 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px 18px;
  background: var(--white);
}

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

.mobile-nav-link {
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-nav-link:hover {
  color: var(--rose);
  background: #fff1f2;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 50%, #fdf2f8 100%);
}

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

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

.hero-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(244, 63, 94, 0.18), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(236, 72, 153, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74) 56%, rgba(255, 255, 255, 0.58));
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 56px;
}

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

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

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--rose-dark);
}

.hero-copy p {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4e6;
  font-size: 14px;
  font-weight: 650;
}

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

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

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

.ghost-button,
.pill-link {
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--gray-200);
}

.primary-button:hover,
.ghost-button:hover,
.pill-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--rose);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.2);
}

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

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.search-box,
.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
}

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

.search-box button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

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

.section-block.inner-related {
  padding: 30px 0 0;
}

.soft-bg {
  background: linear-gradient(135deg, #f9fafb, #fff1f2);
}

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

.section-heading h2,
.rank-panel-head h2,
.sidebar-card h2,
.text-block h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

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

.section-heading a {
  color: var(--rose);
  font-weight: 800;
}

.centered {
  display: block;
  text-align: center;
}

.compact-heading {
  align-items: center;
}

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

.large-grid {
  margin-top: 26px;
}

.movie-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: #fecdd3;
  box-shadow: var(--shadow);
}

.movie-card-link,
.movie-info {
  display: block;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-type {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.movie-info strong {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info em {
  display: -webkit-box;
  min-height: 43px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

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

.compact-card .movie-card-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.compact-card .movie-cover {
  height: 100%;
  aspect-ratio: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(236, 72, 153, 0.08));
  transition: opacity 0.22s ease;
}

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

.category-card:hover::before {
  opacity: 1;
}

.category-card > * {
  position: relative;
}

.category-icon {
  font-size: 42px;
}

.category-card strong {
  margin-top: 12px;
  font-size: 22px;
}

.category-card em {
  margin-top: 8px;
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.6;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--rose-dark);
  font-size: 13px;
}

.rank-panel,
.sidebar-card,
.poster-card,
.detail-card {
  border-radius: 28px;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.rank-panel,
.sidebar-card,
.poster-card {
  padding: 22px;
}

.rank-panel-head {
  margin-bottom: 18px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--gray-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fff1f2;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 13px;
  font-weight: 900;
}

.rank-item img {
  width: 86px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-content {
  min-width: 0;
}

.rank-content strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content em {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  color: var(--gray-600);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content span {
  color: var(--gray-500);
  font-size: 12px;
}

.rank-score {
  color: var(--rose);
  font-weight: 900;
}

.full-rank .rank-item {
  grid-template-columns: auto 130px minmax(0, 1fr) auto;
}

.full-rank .rank-item img {
  width: 130px;
  height: 78px;
}

.page-hero {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 55%, #fff7ed 100%);
}

.small-hero {
  padding: 80px 0 70px;
}

.small-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.small-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.filter-section {
  padding: 34px 0 76px;
}

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

.empty-state {
  margin-top: 32px;
  padding: 40px;
  border-radius: 24px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--gray-200);
}

.detail-section {
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.1);
}

.player-overlay span {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 22px 48px rgba(244, 63, 94, 0.34);
}

.player-overlay.is-hidden {
  display: none;
}

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

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 650;
}

.text-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.text-block p {
  margin: 12px 0 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.review-block {
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background: var(--gray-50);
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
}

.poster-card strong {
  display: block;
  margin-top: 16px;
  font-size: 20px;
}

.poster-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

.sidebar-rank .rank-item,
.small-rank .rank-item {
  grid-template-columns: auto 72px minmax(0, 1fr);
}

.sidebar-rank .rank-score,
.small-rank .rank-score {
  display: none;
}

.sidebar-rank .rank-item img,
.small-rank .rank-item img {
  width: 72px;
  height: 48px;
}

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

.site-footer {
  padding: 44px 0 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
}

.footer-brand p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 48px 0 88px;
  }

  .hero-bg {
    width: 100%;
  }

  .hero-poster {
    transform: none;
  }

  .hero-control {
    display: none;
  }

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

  .movie-grid,
  .movie-list-grid,
  .category-grid,
  .wide-category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .footer-inner,
  .detail-title-row {
    display: block;
  }

  .full-rank .rank-item,
  .rank-item {
    grid-template-columns: auto 82px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .footer-links {
    margin-top: 20px;
  }
}
