:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #8b5cf6;
  --dark: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --soft: #fff1f8;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
  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;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #f9fafb 100%);
  color: var(--dark);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 21px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--dark);
}

.header-search button,
.mobile-search button,
.primary-button {
  border: 0;
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff0f7;
  padding: 10px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 16px 18px;
  background: #fff;
}

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

.mobile-nav nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 88px 18px 24px;
  background: rgba(17, 24, 39, 0.42);
}

.search-panel-box {
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.search-panel-head button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: var(--dark);
  cursor: pointer;
}

.search-results {
  max-height: 70vh;
  overflow: auto;
  padding: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff1f8;
}

.search-result img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

.search-result strong {
  display: block;
  margin-bottom: 6px;
}

.search-result small {
  color: var(--muted);
}

.hero {
  position: relative;
  height: min(680px, calc(100vh - 76px));
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.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;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(236, 72, 153, 0.45), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78) 46%, rgba(17, 24, 39, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 46px;
  color: #fff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #be185d;
  background: #fce7f3;
}

.hero .hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff, #fff5fb);
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  color: var(--dark);
}

.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.view-more {
  flex: 0 0 auto;
  color: var(--pink);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose) 58%, var(--purple));
  box-shadow: var(--shadow);
}

.category-card:after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(17, 24, 39, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

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

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

.play-chip,
.card-rank {
  position: absolute;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
}

.card-rank {
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  background: rgba(17, 24, 39, 0.82);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--pink);
}

.movie-card p {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-item img {
  width: 64px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

.rank-content strong {
  display: block;
  margin-bottom: 5px;
}

.rank-content small {
  color: var(--muted);
}

.rank-item em {
  color: var(--pink);
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 68px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.25), transparent 26%),
    linear-gradient(135deg, var(--pink), var(--rose) 55%, var(--purple));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-button {
  border: 1px solid #f9a8d4;
  border-radius: 999px;
  padding: 9px 14px;
  color: #be185d;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: #fff;
  background: #111827;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(3px);
}

.detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78));
}

.detail-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #fee2e2);
}

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

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

.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

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

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 52px 0 28px;
  background: #0b1020;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  font-size: 38px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.34);
}

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

.detail-main {
  padding: 58px 0;
}

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

.content-box,
.side-box {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.07);
}

.content-box {
  padding: 30px;
}

.content-box h2,
.side-box h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.content-box p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.side-box {
  padding: 20px;
}

.side-box .rank-item {
  grid-template-columns: 46px 1fr;
}

.side-box .rank-item img,
.side-box .rank-item em {
  display: none;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 20px;
}

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 680px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 48px;
    padding-bottom: 88px;
  }

  .hero-poster {
    width: min(260px, 80%);
    transform: rotate(0);
  }

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

  .detail-cover {
    width: min(240px, 72%);
  }

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

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

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .movie-card h2 {
    font-size: 15px;
  }

  .rank-item {
    grid-template-columns: 42px 54px 1fr;
  }

  .rank-item em {
    display: none;
  }

  .rank-item img {
    width: 54px;
    height: 72px;
  }

  .page-hero {
    padding: 44px 0;
  }

  .content-box {
    padding: 22px;
  }

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