:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --gold: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f6;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff1f6 0%, #ffffff 36%, #faf5ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f6;
  color: var(--pink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.85s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(236, 72, 153, 0.34), transparent 34%),
    linear-gradient(120deg, rgba(236, 72, 153, 0.92), rgba(244, 63, 94, 0.78) 42%, rgba(88, 28, 135, 0.72)),
    rgba(0, 0, 0, 0.32);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  padding: 92px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  align-items: center;
  gap: 60px;
  color: #ffffff;
}

.hero-copy h1,
.page-hero h1,
.watch-info h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--pink);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.13);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34);
  border: 8px solid rgba(255, 255, 255, 0.22);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

main,
.page-shell,
.detail-shell {
  width: 100%;
}

.section-wrap,
.search-band,
.footer-inner,
.detail-shell,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-wrap {
  padding: 70px 0;
}

.search-band {
  position: relative;
  z-index: 4;
  margin-top: -58px;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading-center {
  text-align: center;
}

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

.section-heading h2,
.side-panel h2,
.detail-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-heading .section-kicker,
.page-hero .section-kicker,
.watch-info .section-kicker {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.search-box {
  max-width: 780px;
  margin: 0 auto;
}

.search-box input,
.inline-filter input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 24px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.search-box input:focus,
.inline-filter input:focus {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.12);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

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

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

.poster-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.section-warm {
  width: 100%;
  max-width: none;
  padding: 70px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, #ffedd5, #ffe4e6);
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.17);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card strong {
  font-size: 18px;
  line-height: 1.25;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-desc {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  color: #9ca3af;
  font-size: 13px;
}

.category-tile,
.category-overview-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.category-covers,
.overview-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-covers img,
.overview-covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.category-tile strong,
.category-overview-card strong {
  font-size: 21px;
}

.category-tile span:last-child,
.category-overview-card em {
  color: var(--muted);
  font-style: normal;
}

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

.category-overview-card {
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
}

.overview-copy {
  display: grid;
  gap: 12px;
}

.overview-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.page-shell,
.detail-shell {
  padding: 36px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.page-hero {
  padding: 56px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 14%, rgba(236, 72, 153, 0.22), transparent 30%),
    linear-gradient(135deg, #ffffff, #fff1f6 46%, #faf5ff);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.page-hero h1 {
  color: #111827;
}

.inline-filter {
  max-width: 680px;
  margin-top: 28px;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(5px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  font-weight: 900;
}

.ranking-row img {
  width: 82px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ranking-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy span,
.ranking-meta {
  color: var(--muted);
  font-size: 14px;
}

.watch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72)),
    rgba(2, 6, 23, 0.32);
}

.player-frame.is-started .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--pink);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 44px);
  text-align: center;
}

.watch-info,
.detail-card,
.side-panel {
  padding: 28px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
}

.watch-info h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.8vw, 54px);
  color: #111827;
}

.watch-info p {
  color: var(--muted);
  line-height: 1.8;
}

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

.meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.meta-grid dt {
  color: #9ca3af;
  font-size: 12px;
}

.meta-grid dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 800;
}

.watch-info .tag-list span {
  color: var(--pink);
  border-color: rgba(236, 72, 153, 0.18);
  background: rgba(236, 72, 153, 0.09);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.side-panel {
  position: sticky;
  top: 100px;
}

.side-recommendations {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.side-recommendations .movie-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  border-radius: 18px;
}

.side-recommendations .poster-wrap {
  height: 100%;
  min-height: 132px;
  aspect-ratio: auto;
}

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

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

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

.footer-inner {
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 46px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    display: none;
  }

  .featured-grid,
  .poster-grid,
  .search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poster-grid-six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .watch-panel,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 68px;
  }

  .main-nav {
    display: none;
  }

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

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

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

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

  .hero-content {
    padding-top: 70px;
  }

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

  .search-band {
    padding: 24px;
  }

  .section-wrap {
    padding: 50px 0;
  }

  .featured-grid,
  .poster-grid,
  .poster-grid-six,
  .search-results,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .watch-panel {
    gap: 20px;
  }

  .player-frame,
  .movie-video {
    min-height: 260px;
  }

  .watch-info,
  .detail-card,
  .side-panel {
    padding: 22px;
    border-radius: 24px;
  }

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

  .ranking-row {
    grid-template-columns: 44px 68px minmax(0, 1fr);
  }

  .ranking-meta {
    display: none;
  }

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

@media (max-width: 480px) {
  .featured-grid,
  .poster-grid,
  .poster-grid-six,
  .search-results,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
