:root {
  --pink: #ec4899;
  --pink-soft: #fce7f3;
  --blue: #3b82f6;
  --blue-soft: #dbeafe;
  --purple: #8b5cf6;
  --purple-soft: #ede9fe;
  --slate: #0f172a;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 34%, #eff6ff 100%);
  font-family: 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;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.80);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.desktop-nav,
.header-actions,
.header-chips {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 28px;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.20s ease, transform 0.20s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
}

.header-actions {
  gap: 14px;
}

.header-chips {
  gap: 8px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  transition: all 0.20s ease;
}

.quick-chip:hover {
  color: var(--pink);
  transform: translateY(-1px);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.10);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #334155;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #eef2f7;
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: linear-gradient(110deg, #f9a8d4 0%, #c084fc 48%, #93c5fd 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 25%),
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.22), transparent 24%),
    rgba(15, 23, 42, 0.10);
}

.hero-inner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 44px 0 96px;
}

.hero-slider {
  width: 100%;
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
}

.hero-slide.active {
  display: flex;
}

.hero-copy {
  max-width: 650px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  max-width: 760px;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.72;
}

.hero-tags,
.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.20s ease, box-shadow 0.20s ease, background 0.20s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.30);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.ghost-button.light {
  color: #fff;
}

.hero-poster {
  position: relative;
  width: min(360px, 34vw);
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.36);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: -54px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.20s ease;
}

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.content-section {
  padding: 68px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -45px -50px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  opacity: 0.34;
  background: currentColor;
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.20);
}

.category-tile strong,
.category-tile span,
.category-tile em {
  display: block;
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 10px;
  color: #111827;
}

.category-tile span:not(.tile-icon) {
  color: #5b6473;
  line-height: 1.65;
}

.category-tile em {
  margin-top: 18px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.tone-pink { color: #f472b6; background: linear-gradient(135deg, #fdf2f8, #fce7f3); }
.tone-blue { color: #60a5fa; background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.tone-purple { color: #a78bfa; background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.tone-indigo { color: #818cf8; background: linear-gradient(135deg, #eef2ff, #e0e7ff); }
.tone-rose { color: #fb7185; background: linear-gradient(135deg, #fff1f2, #ffe4e6); }
.tone-orange { color: #fb923c; background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.tone-red { color: #f87171; background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.tone-cyan { color: #22d3ee; background: linear-gradient(135deg, #ecfeff, #cffafe); }
.tone-green { color: #4ade80; background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.tone-slate { color: #94a3b8; background: linear-gradient(135deg, #f8fafc, #e2e8f0); }

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

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

.movie-card {
  display: block;
  min-width: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
  opacity: 0.92;
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
}

.movie-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.movie-body strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-desc {
  min-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: auto;
  min-height: 124px;
}

.movie-card-compact .movie-body {
  align-content: center;
}

.movie-card-compact .movie-tags span:nth-child(n+3) {
  display: none;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-hero {
  padding: 80px 0 70px;
  background: linear-gradient(110deg, #f9a8d4, #c084fc 48%, #93c5fd);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.75;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.soft-hero,
.search-hero {
  background: linear-gradient(110deg, #fbcfe8, #c4b5fd 50%, #bfdbfe);
}

.rank-hero {
  background: linear-gradient(110deg, #fb7185, #a78bfa 52%, #38bdf8);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 900;
  font-size: 14px;
}

.search-field {
  margin-bottom: 18px;
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border 0.20s ease, box-shadow 0.20s ease;
}

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

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: #64748b;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

.preview-stack {
  display: grid;
  gap: 32px;
  padding-bottom: 68px;
}

.category-preview {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.small-head {
  margin-bottom: 22px;
}

.small-head h2 {
  font-size: 28px;
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 68px 0;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.05);
  opacity: 0.72;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.34));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.detail-poster {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.18);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.detail-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 20px;
  line-height: 1.78;
}

.detail-meta,
.detail-tags {
  margin-top: 22px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
}

.detail-copy .primary-button {
  margin-top: 30px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.detail-main,
.side-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-main {
  padding: 28px;
}

.detail-main h2,
.side-card h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.detail-main p {
  margin: 0 0 26px;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

.video-frame {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.42));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.36);
}

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

.detail-side {
  position: sticky;
  top: 98px;
}

.side-card {
  padding: 22px;
}

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

.side-list .movie-card-compact {
  box-shadow: none;
  border: 1px solid #eef2f7;
}

.side-list .movie-card-compact:hover {
  transform: translateY(-2px);
}

.site-footer {
  margin-top: 34px;
  padding: 54px 0 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-top: 1px solid #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 42px;
}

.footer-grid p {
  max-width: 460px;
  margin: 16px 0 0;
  color: #64748b;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a:not(.footer-brand) {
  color: #64748b;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--pink);
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .hero-poster {
    width: min(300px, 33vw);
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-chips {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 680px;
    padding: 44px 0 108px;
  }

  .hero-slide,
  .hero-slide.active {
    display: grid;
    gap: 32px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-dots {
    bottom: -58px;
  }

  .page-hero-inner {
    display: grid;
  }

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

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

  .detail-poster {
    width: min(280px, 76vw);
  }

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

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

  .brand,
  .footer-brand {
    font-size: 19px;
  }

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

  .movie-card:not(.movie-card-compact) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-card:not(.movie-card-compact) .poster-wrap {
    aspect-ratio: auto;
    min-height: 150px;
  }

  .movie-desc {
    min-height: auto;
  }

  .content-section {
    padding: 48px 0;
  }

  .section-head {
    display: grid;
  }

  .detail-main {
    padding: 18px;
  }

  .play-cover span {
    width: 68px;
    height: 68px;
  }
}
