:root {
  --bg: #fff7fd;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #1f1a2d;
  --muted: #6b617a;
  --line: rgba(236, 72, 153, 0.16);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(141, 92, 246, 0.16);
  --soft-shadow: 0 14px 34px rgba(236, 72, 153, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(236, 72, 153, 0.20), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(59, 130, 246, 0.18), transparent 32rem),
    linear-gradient(135deg, #fff1f8 0%, #f6f1ff 48%, #eef7ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.35);
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 15px;
  border-radius: 999px;
  color: #46395f;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--pink);
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.10), rgba(139, 92, 246, 0.10));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--soft-shadow);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.section.tight {
  padding-top: 30px;
}

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

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

.section h1,
.section h2 {
  margin: 0;
  color: #171025;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section h1 {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
}

.section h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.section-desc {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 232, 255, 0.88));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: rgba(236, 72, 153, 0.24);
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -220px;
  background: rgba(59, 130, 246, 0.22);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.12);
  transform: scale(1.09);
  opacity: 0.28;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74) 46%, rgba(255, 255, 255, 0.28)),
    linear-gradient(180deg, rgba(255, 247, 253, 0.18), rgba(246, 241, 255, 0.90));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 48px;
  padding: clamp(28px, 6vw, 72px);
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.075em;
  color: #171025;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #514765;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

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

.hero-tags {
  margin: 20px 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #7b2d58;
  background: rgba(236, 72, 153, 0.10);
  border: 1px solid rgba(236, 72, 153, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
}

.tag-row span {
  padding: 6px 9px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(236, 72, 153, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.28);
}

.btn.ghost {
  color: #50385d;
  background: rgba(255, 255, 255, 0.70);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(139, 92, 246, 0.20);
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 24px 72px rgba(39, 23, 59, 0.24);
  border: 8px solid rgba(255, 255, 255, 0.74);
}

.hero-score {
  position: absolute;
  right: -14px;
  top: 28px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 6vw, 72px);
  right: clamp(28px, 6vw, 72px);
  bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(139, 92, 246, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 38px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.18);
}

.quick-search {
  position: relative;
  z-index: 6;
  width: min(1040px, calc(100% - 32px));
  margin: -38px auto 0;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: end;
}

.search-panel label,
.search-box {
  display: grid;
  gap: 8px;
  color: #6f5979;
  font-size: 13px;
  font-weight: 900;
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 18px;
  padding: 0 16px;
  color: #291b36;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-pill,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill {
  min-height: 96px;
  padding: 18px;
}

.category-pill:hover,
.category-card:hover,
.movie-card:hover,
.compact-card:hover,
.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(139, 92, 246, 0.18);
}

.category-pill strong,
.category-card strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
  color: #241637;
}

.category-pill span,
.category-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.12));
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  font-size: 13px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #836f91;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #211332;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-poster img {
  width: 92px;
  height: 118px;
  object-fit: cover;
  border-radius: 18px;
}

.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 950;
  color: #20142e;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-panel {
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.side-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(236, 72, 153, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 15px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #251636;
  font-size: 15px;
  font-weight: 950;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
}

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

.category-card .btn {
  margin-top: 22px;
}

.breadcrumbs {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #816f8d;
  font-size: 14px;
  font-weight: 800;
}

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

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

.player-card,
.detail-info,
.detail-text {
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #120b1c;
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #120b1c;
  object-fit: contain;
}

.play-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.20), rgba(18, 11, 28, 0.44));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 36px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 58px rgba(236, 72, 153, 0.45);
}

.player-caption {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.detail-info {
  padding: 24px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(39, 23, 59, 0.18);
}

.detail-info h1 {
  margin: 22px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.10);
  color: #584a69;
  font-weight: 800;
}

.info-list span:first-child {
  color: #8c7b98;
}

.detail-text {
  margin-top: 24px;
  padding: 28px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-text p {
  margin: 0 0 18px;
  color: #514765;
  font-size: 16px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 64px;
  padding: 48px 0 28px;
  color: #f1e8f7;
  background: linear-gradient(135deg, #1e1230, #31204c 55%, #15122a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 36px;
}

.site-footer p {
  max-width: 520px;
  color: #d8cee2;
  line-height: 1.8;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #ddd1ea;
  transition: color 0.2s ease;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  display: inline-flex;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

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

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

  .hero-content,
  .split-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster-wrap {
    max-width: 320px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-content {
    min-height: 720px;
    padding: 34px 24px 86px;
    align-content: start;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

  .quick-search {
    margin-top: 18px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

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

  .section-head {
    display: block;
  }

  .ranking-item {
    grid-template-columns: 42px 76px minmax(0, 1fr);
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .rank-poster img {
    width: 76px;
    height: 100px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section,
  .hero,
  .category-strip,
  .breadcrumbs,
  .footer-grid,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

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

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

  .player-caption,
  .info-list div {
    display: grid;
  }
}
