:root {
  --color-pink: #ec4899;
  --color-pink-dark: #db2777;
  --color-purple: #8b5cf6;
  --color-blue: #60a5fa;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-green: #22c55e;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --text-muted: #9ca3af;
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(31, 41, 55, 0.08);
  --shadow-card: 0 12px 28px rgba(236, 72, 153, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(31, 41, 55, 0.08);
}

.header-inner {
  max-width: var(--container);
  height: 70px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple), var(--color-blue));
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-pink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: #ffffff;
}

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

.mobile-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px 18px;
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 4px;
  color: #374151;
  font-weight: 600;
}

.main-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: linear-gradient(135deg, #f9a8d4 0%, #ddd6fe 48%, #bfdbfe 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.36;
  animation: floatBlob 11s ease-in-out infinite;
}

.hero::before {
  left: -90px;
  top: 120px;
  background: #ec4899;
}

.hero::after {
  right: -80px;
  bottom: -20px;
  background: #60a5fa;
  animation-delay: 2.5s;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.48), transparent 22%),
    radial-gradient(circle at 20% 78%, rgba(139, 92, 246, 0.28), transparent 30%);
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  min-height: 610px;
  margin: 0 auto;
  padding: 76px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-shadow: 0 18px 36px rgba(31, 41, 55, 0.18);
}

.hero-gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #be185d, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

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

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(88, 28, 135, 0.28);
  opacity: 0;
  transform: translateX(24px) scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.92));
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 30px;
  color: #ffffff;
}

.hero-slide-content h2 {
  margin: 10px 0 12px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta,
.meta-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill,
.card-tag,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.card-tag {
  color: var(--color-pink-dark);
  background: linear-gradient(90deg, #fce7f3, #ede9fe);
}

.info-pill {
  color: #4b5563;
  background: #f3f4f6;
}

.hero-dots {
  position: absolute;
  left: 30px;
  bottom: -34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.16);
}

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff, #eff6ff);
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--text-main);
}

.section-lead {
  margin: 0;
  color: var(--text-soft);
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(17, 24, 39, 0.42);
  transition: opacity 0.2s ease;
}

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

.card-play {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-pink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.card-type,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
}

.card-year {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: -12px;
  left: -12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.34);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 10px 0 8px;
  min-height: 46px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 850;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .card-body h3 {
  color: var(--color-pink);
}

.card-body p {
  margin: 0;
  min-height: 44px;
  color: var(--text-soft);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple), var(--color-blue));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -44px;
  top: -36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(139, 92, 246, 0.20);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 64px 0;
  background: linear-gradient(135deg, #f9a8d4, #ddd6fe, #bfdbfe);
  color: #ffffff;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  font-weight: 900;
  text-shadow: 0 16px 30px rgba(31, 41, 55, 0.16);
}

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

.filter-panel {
  margin: 36px 0 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 14px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0 14px;
  color: #374151;
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f9a8d4;
  box-shadow: 0 0 0 4px rgba(249, 168, 212, 0.24);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.85fr);
  gap: 30px;
  padding: 34px 0 70px;
}

.breadcrumb {
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-pink-dark);
  font-weight: 700;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  background: #0f172a;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050816;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.player-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-pink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 32px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.30);
  transition: transform 0.2s ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.06);
}

.player-overlay strong {
  max-width: 80%;
  font-size: 24px;
  line-height: 1.3;
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 900;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 850;
}

.detail-card p {
  color: #4b5563;
  font-size: 16px;
}

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

.side-card {
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 76px;
  height: 102px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f4f6;
}

.side-item strong {
  display: block;
  color: #1f2937;
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 13px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.site-footer {
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff, #eff6ff);
  border-top: 1px solid rgba(229, 231, 235, 0.74);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #1f2937;
}

.footer-inner p,
.footer-inner a {
  color: #6b7280;
  font-size: 14px;
}

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

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 26px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  border-radius: var(--radius-xl);
  color: var(--text-soft);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(28px, -20px, 0) scale(1.08);
  }
}

@media (max-width: 1080px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 48px;
    gap: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

  .hero-slide-content {
    padding: 22px;
  }

  .hero-slide-content h2 {
    font-size: 26px;
  }

  .section {
    padding: 52px 0;
  }

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

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

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

  .detail-card {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .header-inner {
    height: 64px;
  }

  .main-container {
    padding: 0 14px;
  }

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

  .card-body h3,
  .card-body p {
    min-height: auto;
  }

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

  .player-button {
    width: 68px;
    height: 68px;
  }
}
