:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #2b1c2a;
  --muted: #6b5a66;
  --line: rgba(236, 72, 153, 0.16);
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #9333ea;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(244, 114, 182, 0.24), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(147, 51, 234, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fff7fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  display: block;
}

button,
a,
input,
select {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 22px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5f4a5a;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.09);
}

.hero-carousel {
  position: relative;
  margin: 34px auto 28px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #201022, #3b1235 48%, #68214d);
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 560px;
  position: relative;
  isolation: isolate;
  color: #fff;
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.75s ease both;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: blur(2px) saturate(1.08);
  opacity: 0.34;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 24%, rgba(236, 72, 153, 0.55), transparent 28rem),
    linear-gradient(90deg, rgba(20, 9, 23, 0.92), rgba(44, 15, 52, 0.72) 54%, rgba(20, 9, 23, 0.46));
}

.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 330px;
  align-items: center;
  gap: 46px;
  padding: 54px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 13px;
}

.section-kicker {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.09);
  border-color: rgba(236, 72, 153, 0.15);
}

.hero-title {
  margin: 20px 0 14px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero-movie-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  font-weight: 900;
}

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

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.34);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button.light {
  color: var(--pink);
  background: #fff;
  box-shadow: 0 18px 42px rgba(190, 24, 93, 0.12);
}

.hero-poster-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.carousel-controls {
  position: absolute;
  right: 30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-controls button,
.carousel-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.carousel-dots {
  position: absolute;
  left: 54px;
  bottom: 38px;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.is-active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 44px 0;
}

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

.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 950;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(190, 24, 93, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: #fff;
  outline: 0;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(190, 24, 93, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(236, 72, 153, 0.35);
  box-shadow: 0 24px 56px rgba(190, 24, 93, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(147, 51, 234, 0.12));
}

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

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover {
  color: var(--pink);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  color: #8a7380;
  font-size: 13px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.08);
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  box-shadow: 0 22px 48px rgba(190, 24, 93, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #6366f1, #ec4899);
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 62px rgba(190, 24, 93, 0.22);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 950;
  font-size: 20px;
}

.category-card h2,
.category-card h3 {
  margin: 22px 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(190, 24, 93, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 22px;
  font-weight: 950;
}

.rank-item img {
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info a {
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 900;
}

.rank-info a:hover {
  color: var(--pink);
}

.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  margin: 34px auto 18px;
  padding: 54px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, #ec4899, #9333ea 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

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

.detail-hero {
  margin: 34px auto 26px;
  padding: 50px 0;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(236, 72, 153, 0.52), transparent 24rem),
    linear-gradient(135deg, #1f1028, #4a1646 58%, #7c245e);
  box-shadow: var(--shadow);
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(-1.5deg);
}

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

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

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.detail-title {
  margin: 20px 0 14px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 780;
}

.player-section {
  padding: 18px 0 44px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #130715;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(19, 7, 21, 0.42), rgba(190, 24, 93, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-layer span {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.36);
  font-size: 34px;
}

.play-layer strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(190, 24, 93, 0.08);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.content-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 2;
}

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

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

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  color: #fff;
  background: linear-gradient(135deg, #231125, #3c1738);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-weight: 750;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(236, 72, 153, 0.42);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 270px;
    padding: 44px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
    animation: fadeIn 0.25s ease both;
  }

  .site-nav a {
    justify-content: center;
  }

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

  .hero-inner {
    padding: 34px;
  }

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

  .hero-poster-card,
  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }

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

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

  .rank-number {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 18px;
  }

  .rank-item img {
    width: 70px;
  }

  .rank-item .button {
    grid-column: 1 / -1;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .hero-carousel,
  .page-hero,
  .detail-hero {
    border-radius: 24px;
  }

  .page-hero {
    padding: 34px 24px;
  }

  .hero-inner {
    padding: 28px 22px 72px;
  }

  .carousel-dots {
    left: 24px;
    bottom: 28px;
  }

  .carousel-controls {
    right: 20px;
    bottom: 16px;
  }

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

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

  .detail-hero {
    padding: 30px 0;
  }

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

  .button {
    width: 100%;
  }

  .content-panel {
    padding: 22px;
    border-radius: 24px;
  }
}
