:root {
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --yellow: #facc15;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --green: #10b981;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fff7fb;
  --line: rgba(17, 24, 39, .08);
  --shadow: 0 20px 40px rgba(236, 72, 153, .14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 38%, #fff7ed 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 14px 30px rgba(236, 72, 153, .22);
}
.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: #fff;
  color: var(--pink);
  transform: translateY(-1px);
}
.search-form {
  position: relative;
  min-width: 250px;
}
.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
}
.search-form input {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}
.search-form input::placeholder {
  color: rgba(255, 255, 255, .78);
}
.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  padding: 10px 12px;
  font-size: 20px;
}
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(255,255,255,.34), transparent 34%), linear-gradient(135deg, #ec4899, #fb7185 46%, #fb923c);
}
.hero-slider {
  position: relative;
  min-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(190, 24, 93, .92), rgba(244, 63, 94, .74), rgba(251, 146, 60, .54));
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .46;
  transform: scale(1.04);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: 42px;
  padding: 88px 0 108px;
}
.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.04em;
}
.hero-copy p {
  max-width: 740px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .92);
}
.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(127, 29, 29, .35);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, .18);
  aspect-ratio: 3 / 4;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.badge.light {
  background: #fff;
  color: var(--pink);
}
.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn-primary {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 20px 40px rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  background: var(--yellow);
}
.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .18);
}
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, .55);
  transition: width .2s ease, background .2s ease;
}
.hero-dots button.active {
  width: 54px;
  background: #fff;
}
.section {
  padding: 70px 0;
}
.section.white {
  background: rgba(255, 255, 255, .62);
}
.section.blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff, #f0fdfa);
}
.section.green {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa, #eff6ff);
}
.section.orange {
  background: linear-gradient(135deg, #fffbeb, #fff7ed, #fff1f2);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-title h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--dark);
}
.section-title p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.title-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: var(--shadow);
  margin-right: 12px;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(236, 72, 153, .18);
}
.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}
.card-poster.tall {
  aspect-ratio: 3 / 4;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.movie-card:hover .card-poster img {
  transform: scale(1.08);
}
.play-chip,
.rank-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}
.play-chip {
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 22px rgba(236, 72, 153, .35);
}
.rank-chip {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.duration {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, .55);
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.meta-pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fdf2f8;
  color: #be185d;
  font-weight: 800;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  min-height: 150px;
  border-radius: 26px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: var(--shadow);
  transition: transform .2s ease, filter .2s ease;
}
.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee, #14b8a6);
}
.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f59e0b, #fb7185, #ec4899);
}
.category-card:hover {
  transform: translateY(-5px);
  filter: saturate(1.08);
}
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  line-height: 1.65;
}
.page-hero {
  padding: 76px 0 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
}
.page-title {
  max-width: 860px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.88);
  margin-bottom: 18px;
  font-weight: 800;
}
.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 18px;
  margin: 24px 0 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.filter-panel input,
.filter-panel select {
  background: #f9fafb;
  color: var(--dark);
  border: 1px solid var(--line);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .85fr);
  gap: 28px;
  align-items: start;
}
.panel {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.panel-pad {
  padding: 28px;
}
.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .25);
}
.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, rgba(236,72,153,.34), rgba(251,146,60,.24));
  transition: opacity .2s ease;
}
.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 24px 40px rgba(236,72,153,.35);
  font-size: 34px;
}
.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
}
.detail-text {
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.tag-list span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fdf2f8;
  color: #be185d;
  font-weight: 800;
}
.info-list {
  display: grid;
  gap: 12px;
}
.info-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.info-item strong {
  color: var(--dark);
}
.related-list {
  display: grid;
  gap: 12px;
}
.related-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
  transition: transform .2s ease, background .2s ease;
}
.related-item:hover {
  transform: translateX(4px);
  background: #ffe4ef;
}
.related-item img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}
.related-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.site-footer {
  padding: 46px 0;
  color: #fff;
  background: #111827;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,.72);
}
.hide-card {
  display: none !important;
}
@media (max-width: 980px) {
  .navbar {
    flex-wrap: wrap;
  }
  .nav-links,
  .search-form {
    display: none;
    width: 100%;
  }
  .nav-links.open,
  .search-form.open {
    display: flex;
  }
  .nav-links.open {
    flex-direction: column;
    align-items: stretch;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }
  .hero,
  .hero-slider {
    min-height: 720px;
  }
  .hero-copy p {
    font-size: 17px;
  }
  .section {
    padding: 46px 0;
  }
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
