:root {
  --bg: #080812;
  --bg-soft: #121225;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #b9b9ca;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --yellow: #fde047;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(236, 72, 153, 0.26), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(59, 130, 246, 0.24), transparent 30%),
    linear-gradient(135deg, #070710 0%, #111126 48%, #080812 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.94), rgba(139, 92, 246, 0.94), rgba(59, 130, 246, 0.94));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #1f1235;
  background: var(--yellow);
  box-shadow: 0 10px 25px rgba(253, 224, 71, 0.35);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 42px 22px 72px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(236, 72, 153, 0.22), transparent 40%),
    linear-gradient(240deg, rgba(59, 130, 246, 0.24), transparent 46%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 54px;
  min-height: 560px;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  animation: fadeUp 0.72s ease both;
}

.hero-art {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.hero-art img {
  height: 520px;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.06);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 10, 0.78));
}

.hero-glow {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  z-index: 2;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
  color: #ffe4f4;
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f5f2ff;
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.35);
}

.ghost-button,
.section-more {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.hero-dots {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  margin: -26px auto 0;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;
}

.page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

.page-top {
  padding-top: 54px;
}

.page-title-block {
  margin-bottom: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.16));
  box-shadow: var(--shadow);
}

.page-title-block h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.page-title-block p:last-child {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.search-panel input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  color: #ffffff;
  outline: none;
  background: rgba(6, 6, 16, 0.76);
}

.search-panel input:focus {
  border-color: rgba(236, 72, 153, 0.75);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

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

.filter-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.86), rgba(139, 92, 246, 0.86));
}

.content-section,
.category-strip {
  margin-top: 52px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  background: var(--card-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

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

.rank-badge,
.year-badge {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #10101c;
}

.rank-badge {
  left: 12px;
  background: var(--yellow);
}

.year-badge {
  right: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

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

.movie-meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  min-height: 52px;
  font-size: 18px;
  line-height: 1.4;
}

.movie-card h3 a:hover {
  color: #ffb3df;
}

.movie-card p {
  margin: 10px 0 12px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.category-tile img,
.category-overview-card img {
  height: 220px;
  object-fit: cover;
  opacity: 0.68;
  transition: 0.3s ease;
}

.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
  opacity: 0.82;
}

.category-tile::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(8, 8, 18, 0.9));
}

.category-tile span,
.category-tile strong,
.category-overview-card div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 54px;
  color: var(--yellow);
  font-weight: 900;
}

.category-tile strong {
  bottom: 18px;
  font-size: 17px;
}

.category-overview-card div {
  bottom: 20px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.category-overview-card span {
  color: var(--yellow);
  font-weight: 900;
}

.detail-main {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(59, 130, 246, 0.13));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-poster img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.detail-one-line {
  margin: 20px 0 22px;
  max-width: 780px;
  color: #e9e7f6;
  font-size: 20px;
}

.detail-tags {
  margin-top: 4px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.25), rgba(0, 0, 0, 0.76));
  cursor: pointer;
  z-index: 3;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #160b23;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 38px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.detail-content article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-content p {
  margin: 0;
  color: #d8d7e7;
  font-size: 17px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--card);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 26px;
}

.footer-inner p {
  max-width: 500px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-art,
  .hero-art img {
    min-height: 360px;
    height: 360px;
  }

  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    min-height: auto;
    max-height: 520px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .logo {
    font-size: 19px;
  }

  .page-main,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .movie-card h3 {
    min-height: 44px;
    font-size: 15px;
  }

  .movie-card p {
    min-height: 42px;
    font-size: 13px;
  }

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

  .page-title-block,
  .detail-hero {
    padding: 20px;
    border-radius: 24px;
  }

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