:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 22px 60px rgba(244, 63, 94, 0.22);
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--rose-50), var(--white) 32%, var(--gray-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

main {
  min-height: 64vh;
}

.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.8);
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose-500);
  transition: right 0.2s ease;
}

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

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

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

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

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(120deg, #ffe4e6, #fff1f2 48%, #fdf2f8);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(circle at 20% 18%, rgba(236, 72, 153, 0.22), transparent 30%), radial-gradient(circle at 80% 12%, rgba(244, 63, 94, 0.18), transparent 28%), radial-gradient(circle at 50% 90%, rgba(255, 228, 230, 0.8), transparent 36%);
}

.hero-inner {
  position: relative;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 74px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 46px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--gray-900);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.85;
}

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

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

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

.button-soft {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(244, 63, 94, 0.14);
}

.button-primary:hover,
.button-soft:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-stage {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 34px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.98) translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.78));
}

.hero-slide-content {
  position: relative;
  padding: 34px;
  color: var(--white);
}

.hero-slide-content .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero-slide-content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

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

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 62px 0;
}

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

.section-title h2,
.page-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-title p,
.page-title p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.page-hero {
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500));
  color: var(--white);
}

.page-hero .page-title {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.14);
}

.movie-card[hidden] {
  display: none;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: var(--rose-100);
  overflow: hidden;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(17, 24, 39, 0.42);
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  display: block;
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-meta span,
.detail-pill,
.filter-chip,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  padding: 4px 8px;
  color: var(--rose-600);
  background: var(--rose-50);
}

.movie-info strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-tags {
  display: block;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: grid;
  gap: 10px;
  color: var(--gray-700);
  font-weight: 750;
}

.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  padding: 9px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--rose-500);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--rose-100);
  box-shadow: var(--shadow-sm);
}

.category-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.72));
}

.category-card:hover .category-cover {
  transform: scale(1.06);
}

.category-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--white);
}

.category-content strong {
  font-size: 24px;
}

.category-content span {
  color: rgba(255, 255, 255, 0.82);
}

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

.rank-card {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.rank-num {
  width: 42px;
  color: var(--rose-500);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: var(--rose-100);
}

.rank-info {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.rank-info strong {
  overflow: hidden;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info span {
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 700;
}

.rank-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-wrap {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 34px 0 68px;
}

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

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

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

.panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0f172a;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(15, 23, 42, 0.42));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  font-size: 28px;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.detail-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-pill,
.tag {
  padding: 7px 11px;
}

.detail-pill {
  color: var(--rose-600);
  background: var(--rose-50);
}

.tag {
  color: var(--gray-700);
  background: var(--gray-100);
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

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

.side-cover {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  background-color: var(--rose-100);
}

.side-panel {
  display: grid;
  gap: 18px;
}

.side-block {
  padding: 22px;
}

.side-block h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--rose-100);
}

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

.related-link span {
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 42px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.footer-links a {
  color: var(--gray-600);
  font-weight: 650;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--gray-500);
  font-size: 13px;
}

@media (max-width: 1060px) {
  .hero-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 520px;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    padding: 50px 0;
  }

  .hero-stage {
    min-height: 430px;
  }

  .section-header,
  .footer-inner {
    display: block;
  }

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

  .rank-card {
    grid-template-columns: auto 76px minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 19px;
  }

  .movie-grid,
  .category-grid {
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info strong {
    min-height: 42px;
    font-size: 16px;
  }

  .movie-line {
    display: none;
  }

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

  .hero-slide-content {
    padding: 24px;
  }

  .side-cover {
    min-height: 340px;
  }
}
