:root {
  --pink: #db2777;
  --pink-soft: #fdf2f8;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --blue: #2563eb;
  --cyan: #0891b2;
  --orange: #ea580c;
  --yellow: #ca8a04;
  --green: #059669;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3e8ff;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(124, 58, 237, 0.14);
  --shadow-strong: 0 26px 70px rgba(219, 39, 119, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, 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.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 38rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 35%, #f8fbff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

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

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(219, 39, 119, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: min(300px, 24vw);
}

.header-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 2px solid #fbcfe8;
  outline: none;
  color: #374151;
  background: #ffffff;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 11px 18px;
}

.header-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 5px rgba(244, 114, 182, 0.16);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--pink);
  background: #fdf2f8;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  padding: 14px 0 20px;
}

.mobile-menu .container {
  display: grid;
  gap: 12px;
}

.mobile-menu.is-open {
  display: block;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #db2777 0%, #7c3aed 52%, #2563eb 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.12) 75%, transparent 75%);
  background-size: 90px 90px, 110px 110px, 60px 60px;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  content: "";
  background: linear-gradient(0deg, #fff7fb 0%, transparent 100%);
}

.hero-slider {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  padding-top: 50px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 800px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 24px;
  color: #ffe4f3;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.78;
}

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

.hero-tags {
  margin-bottom: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  background: #f5e8ff;
}

.hero .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 32px rgba(219, 39, 119, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(219, 39, 119, 0.34);
}

.btn.light {
  color: var(--pink);
  background: #ffffff;
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.btn.small {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  display: block;
  width: min(420px, 100%);
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-poster::before {
  position: absolute;
  inset: 36px -22px -22px 42px;
  z-index: -1;
  content: "";
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(4px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
}

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

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

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

.category-strip {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  margin-bottom: 64px;
}

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

.category-card {
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: #ffffff;
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-strong);
}

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

.category-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
}

.grad-1 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.grad-2 { background: linear-gradient(135deg, #ef4444, #f97316); }
.grad-3 { background: linear-gradient(135deg, #f59e0b, #eab308); }
.grad-4 { background: linear-gradient(135deg, #22c55e, #10b981); }
.grad-5 { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.grad-6 { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.grad-7 { background: linear-gradient(135deg, #8b5cf6, #db2777); }
.grad-8 { background: linear-gradient(135deg, #f97316, #db2777); }

.section {
  margin-bottom: 72px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.panel {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(236, 72, 153, 0.11);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 247, 251, 0.92), rgba(245, 243, 255, 0.9), rgba(239, 246, 255, 0.9));
  box-shadow: var(--shadow);
}

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

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

.movie-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: 0 26px 56px rgba(219, 39, 119, 0.16);
}

.card-link {
  display: grid;
  height: 100%;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe, #dbeafe);
}

.poster-frame.wide {
  aspect-ratio: 16 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.poster-frame::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
  pointer-events: none;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.28);
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.66);
}

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

.card-title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.card-tags .tag {
  color: #be185d;
  background: #fce7f3;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 108px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 42px rgba(219, 39, 119, 0.13);
}

.rank-num {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #ffffff;
  font-size: 21px;
  font-weight: 1000;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.rank-item:nth-child(n + 4) .rank-num {
  color: #7c3aed;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

.rank-heat {
  color: var(--pink);
  font-size: 18px;
  font-weight: 1000;
}

.page-hero {
  margin: 34px auto 42px;
  padding: clamp(26px, 5vw, 54px);
  color: #ffffff;
  border-radius: 36px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: var(--shadow-strong);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

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

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08);
}

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

.search-panel input,
.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: start;
  margin-top: 34px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: var(--shadow-strong);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(236, 72, 153, 0.2), rgba(0, 0, 0, 0.74)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-panel.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 44px rgba(219, 39, 119, 0.42);
}

.play-button::before {
  display: inline-block;
  width: 0;
  height: 0;
  content: "";
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.detail-card,
.content-card {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
  font-weight: 1000;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.detail-stack {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.breadcrumb {
  margin-top: 26px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

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

.site-footer {
  margin-top: 84px;
  color: #ffffff;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.empty-state {
  padding: 60px 20px;
  color: #6b7280;
  text-align: center;
  border-radius: 28px;
  background: #ffffff;
}

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

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

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

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

  .hero-poster {
    width: min(360px, 75vw);
    margin: 0 auto 90px;
  }

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

  .rank-item {
    grid-template-columns: 54px 92px 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 66px;
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    min-height: 760px;
  }

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

  .hero-copy {
    padding-top: 24px;
  }

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

  .hero h2 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 16px;
  }

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

  .panel {
    padding: 16px;
  }

  .section-head,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .rank-item {
    grid-template-columns: 46px 76px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-title {
    font-size: 17px;
  }
}

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

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
