:root {
  color-scheme: light;
  --rose: #ec4899;
  --purple: #7c3aed;
  --indigo: #4f46e5;
  --blue: #0ea5e9;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: rgba(148, 163, 184, 0.24);
  --shadow: 0 20px 60px rgba(79, 70, 229, 0.16);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 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;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 36rem),
    linear-gradient(135deg, #fff7fb 0%, #f5f3ff 42%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(219, 39, 119, 0.92), rgba(124, 58, 237, 0.9), rgba(37, 99, 235, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(88, 28, 135, 0.18);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-text {
  font-size: 22px;
}

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

.nav-links a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: 0.25s ease;
}

.nav-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.25);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background-image:
    linear-gradient(90deg, rgba(76, 5, 49, 0.94) 0%, rgba(76, 29, 149, 0.82) 46%, rgba(30, 64, 175, 0.68) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 46px;
  padding: 70px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 950;
  text-wrap: balance;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 720;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 820;
  transition: 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--purple));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.32);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--purple);
  background: #fff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.16);
}

.hero-card {
  position: relative;
  border-radius: 30px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(14px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.28), rgba(79, 70, 229, 0.28));
}

.hero-card-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 820;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.25s ease;
}

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

.section {
  padding: 58px 0;
}

.section-tight {
  padding: 34px 0 58px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 700px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 166px;
  padding: 22px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.88), rgba(124, 58, 237, 0.88), rgba(14, 165, 233, 0.82));
  box-shadow: var(--shadow-card);
  transition: 0.3s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(37, 99, 235, 0.86), rgba(6, 182, 212, 0.8));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.9), rgba(168, 85, 247, 0.88), rgba(99, 102, 241, 0.85));
}

.category-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(88, 28, 135, 0.22);
}

.category-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
  margin-bottom: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.75);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(79, 70, 229, 0.25));
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 54%);
  transition: 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.36;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.category-label {
  color: var(--rose);
  font-weight: 850;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(76, 5, 49, 0.94), rgba(88, 28, 135, 0.87), rgba(30, 64, 175, 0.82)),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.28), transparent 24rem);
  padding: 74px 0 58px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

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

.search-panel {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

.search-card {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 18px;
  padding: 0 18px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: 0.2s ease;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: #5b21b6;
  background: #f3e8ff;
  font-weight: 760;
  transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--purple));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: 0.24s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.rank-num {
  font-size: 24px;
  font-weight: 950;
  text-align: center;
  color: var(--purple);
}

.rank-thumb {
  width: 90px;
  height: 66px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(79, 70, 229, 0.2));
}

.rank-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-score {
  color: var(--rose);
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(105deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 135, 0.86), rgba(37, 99, 235, 0.74)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  min-height: 520px;
  padding: 72px 0 54px;
}

.detail-poster {
  border-radius: 30px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 22px;
}

.detail-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.045em;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.22), transparent 26rem),
    linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
  transition: 0.25s ease;
}

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

.play-bubble {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.36);
  font-size: 36px;
  transform: translateZ(0);
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 13px;
}

.side-card,
.content-card {
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.side-card h2,
.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.side-card p,
.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.92;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #6d28d9;
  background: #f3e8ff;
  font-size: 13px;
  font-weight: 760;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

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

.site-footer {
  margin-top: 42px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-text,
.footer-links a {
  color: #d1d5db;
  line-height: 1.8;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

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

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

  .hero-content,
  .player-wrap {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 44px 0;
  }

  .detail-poster {
    max-width: 260px;
  }

  .rank-item {
    grid-template-columns: 54px 78px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

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

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

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

  .hero-title,
  .detail-title,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-content {
    padding: 48px 0 80px;
  }

  .hero-copy,
  .detail-one,
  .page-hero p {
    font-size: 16px;
  }

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

  .rank-item {
    grid-template-columns: 46px 70px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-thumb {
    width: 70px;
    height: 54px;
  }

  .section {
    padding: 42px 0;
  }
}
