:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --violet: #8b5cf6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1f5f9;
  --paper: #ffffff;
  --soft: #fff1f7;
  --shadow: 0 24px 80px rgba(236, 72, 153, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 28rem), #fff7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(244, 114, 182, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #111827;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.25);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 32vw);
  padding: 6px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.hero-search input,
.page-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.header-search input {
  padding: 0 10px;
}

.header-search button,
.hero-search button,
.page-search button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
}

.header-search button {
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff0f7;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--pink);
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  isolation: isolate;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 150px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-backdrop,
.watch-hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(236, 72, 153, 0.12)), var(--cover);
  background-size: cover;
  background-position: center;
}

.hero-carousel::after,
.watch-hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.42), transparent 24rem), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38));
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 18px;
  color: #ffe4f0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2,
.watch-copy h1,
.page-hero h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 72px);
}

.hero-content h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 52px);
}

.hero-content p,
.watch-copy p,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags a,
.tag-row span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #ffe4ef;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.36);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.ranking-item:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.62)), var(--cover);
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hero-poster span,
.play-dot,
.play-cover span {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.35);
}

.hero-poster span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  font-size: 24px;
}

.hero-tools {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-search,
.page-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-search input,
.page-search input {
  padding: 0 16px;
  font-size: 16px;
}

.hero-search button,
.page-search button {
  padding: 13px 22px;
}

.hero-category-links,
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links {
  margin-top: 16px;
}

.hero-category-links a,
.category-cloud a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.hero-category-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.category-cloud a {
  color: #be185d;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.15);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

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

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

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

.section.tinted {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(255, 228, 240, 0.78), rgba(237, 233, 254, 0.68));
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading > a {
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-weight: 900;
  white-space: nowrap;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(236, 72, 153, 0.12);
  overflow: hidden;
  transition: 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.52)), var(--cover);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.movie-card.compact .poster {
  aspect-ratio: 16 / 10;
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.82);
  transition: 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 12px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 48px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  display: -webkit-box;
  min-height: 44px;
  color: #6b7280;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.page-hero,
.watch-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #ffffff;
  isolation: isolate;
  background: #111827;
}

.page-hero > div,
.watch-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.page-hero h1,
.watch-copy h1 {
  font-size: clamp(40px, 7vw, 76px);
}

.page-hero.soft::before {
  background-image: linear-gradient(110deg, rgba(17, 24, 39, 0.9), rgba(236, 72, 153, 0.52)), var(--cover);
}

.ranking-hero::before {
  background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.92), rgba(124, 58, 237, 0.62)), var(--cover);
}

.category-cloud.slim {
  margin-bottom: 24px;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 22px;
  color: #ffffff;
  border-radius: 26px;
  background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.74)), var(--cover);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 46px rgba(236, 72, 153, 0.12);
  overflow: hidden;
  transition: 0.22s ease;
}

.category-card strong {
  font-size: 26px;
  font-weight: 950;
}

.category-card span {
  color: rgba(255, 255, 255, 0.84);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 112px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.09);
  transition: 0.22s ease;
}

.ranking-no {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-weight: 950;
}

.ranking-cover {
  display: block;
  width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background-image: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.38)), var(--cover);
  background-size: cover;
  background-position: center;
}

.ranking-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-info strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.ranking-info em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-info small {
  color: #9ca3af;
  font-weight: 700;
}

.ranking-score {
  color: #be185d;
  font-size: 28px;
  font-weight: 950;
}

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

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

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 0;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.28);
  overflow: hidden;
}

.player-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.65)), var(--cover);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.player-shell.is-ready::before,
.player-shell.is-playing::before {
  opacity: 0;
  pointer-events: none;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.play-cover span {
  width: 86px;
  height: 86px;
  border-radius: 30px;
  font-size: 30px;
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  pointer-events: none;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-panel,
.info-panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.11);
}

.detail-panel {
  padding: 32px;
}

.detail-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.detail-panel p {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.info-panel {
  height: max-content;
  padding: 26px;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-panel dt {
  color: #9ca3af;
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  color: #374151;
  font-weight: 800;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 34px;
  color: #be185d;
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
  font-weight: 900;
}

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

.site-footer {
  margin-top: 46px;
  padding: 44px 0 30px;
  color: #4b5563;
  background: #ffffff;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.footer-shell p {
  max-width: 620px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #fff0f7;
  font-weight: 800;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  color: #9ca3af;
}

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

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-poster {
    min-height: 300px;
  }

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

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }

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

  .nav-link {
    text-align: center;
  }

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

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    width: min(100% - 24px, 1180px);
    padding: 58px 0 210px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content h2,
  .watch-copy h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-content p,
  .watch-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-tools {
    bottom: 22px;
  }

  .hero-search,
  .page-search {
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-dots {
    position: static;
    margin-top: 14px;
  }

  .section {
    padding: 46px 0;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body strong {
    min-height: auto;
    font-size: 16px;
  }

  .ranking-item {
    grid-template-columns: 42px 84px 1fr;
    gap: 12px;
  }

  .ranking-cover {
    width: 84px;
  }

  .ranking-score {
    grid-column: 3;
    font-size: 18px;
  }

  .player-section {
    margin-top: -42px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .detail-panel,
  .info-panel {
    border-radius: 22px;
    padding: 22px;
  }

  .footer-shell {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .ranking-info em {
    white-space: normal;
  }
}
