:root {
  --page: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f7;
  --ink: #19111f;
  --muted: #6f6475;
  --line: rgba(191, 68, 118, 0.14);
  --rose: #f43f7d;
  --rose-deep: #e11d48;
  --pink: #ec4899;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(120, 22, 73, 0.16);
  --radius: 28px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 5% 0%, rgba(236, 72, 153, 0.14), transparent 28rem),
    radial-gradient(circle at 95% 8%, rgba(124, 58, 237, 0.12), transparent 26rem),
    linear-gradient(180deg, #fff8fc 0%, #ffffff 42%, #fff6fb 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(244, 63, 125, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(190, 24, 93, 0.08);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--rose-deep));
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.3);
}

.logo-text {
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  padding: 8px 2px;
  color: #4c4351;
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 3px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--pink), var(--rose-deep));
  transition: right 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose-deep);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: #fff3f8;
  border: 1px solid rgba(244, 63, 125, 0.18);
  border-radius: 999px;
}

.nav-search input {
  width: 210px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 8px 8px 14px;
  color: var(--ink);
}

.nav-search button,
.primary-button,
.ghost-button,
.card-more {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.primary-button,
.card-more {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose-deep));
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.25);
}

.nav-search button {
  padding: 8px 16px;
}

.primary-button,
.ghost-button,
.text-button,
.card-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 24px;
}

.ghost-button {
  color: #be185d;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(244, 63, 125, 0.22);
}

.text-button {
  color: #ffffff;
  font-weight: 800;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff1f7;
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-deep);
  border-radius: 999px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

.hero-glow {
  position: absolute;
  inset: 4% 8% auto;
  height: 280px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.28), rgba(124, 58, 237, 0.2));
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  border-radius: 38px;
  overflow: hidden;
  background: #170d1b;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: stretch;
  gap: 28px;
  padding: 56px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 13, 27, 0.96) 0%, rgba(35, 15, 37, 0.78) 48%, rgba(35, 15, 37, 0.32) 100%),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.05);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 690px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fb9fc6;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.7rem);
}

.hero h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 4vw, 3.7rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

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

.hero-media {
  align-self: center;
  justify-self: end;
  width: min(340px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-control-row {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.section-block {
  width: min(1200px, calc(100% - 32px));
  margin: 64px auto;
}

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

.section-heading p {
  margin: 0 0 4px;
  color: var(--rose-deep);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--rose-deep);
  font-weight: 900;
}

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

.category-tile,
.category-card-large {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(190, 24, 93, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 125, 0.32);
  box-shadow: 0 24px 60px rgba(190, 24, 93, 0.15);
}

.category-tile span,
.category-card-title {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 900;
}

.category-tile em,
.category-card-large p {
  color: var(--muted);
  font-style: normal;
  font-size: 0.94rem;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(190, 24, 93, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(190, 24, 93, 0.16);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #2b1027, #64133d);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose-deep));
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 42px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  border-radius: 999px;
  font-weight: 900;
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.32;
}

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

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.movie-desc {
  min-height: 4.6em;
}

.movie-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.movie-labels span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #be185d;
  background: #fff1f7;
  border: 1px solid rgba(244, 63, 125, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 56px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(31, 13, 35, 0.94), rgba(139, 28, 88, 0.86)),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.24), transparent 22rem);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.page-search {
  max-width: 620px;
  margin-top: 28px;
}

.page-filter-input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.category-list-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  color: #be185d;
  background: #fff1f7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.card-more {
  width: max-content;
  padding: 10px 18px;
  margin-top: auto;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb a {
  color: var(--rose-deep);
  font-weight: 800;
}

.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(25, 12, 29, 0.96), rgba(123, 24, 78, 0.88)),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 24rem);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.detail-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.64);
}

.detail-meta strong {
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-section {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #050208;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(16, 4, 18, 0.32);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--pink), var(--rose-deep));
  border-radius: 50%;
  box-shadow: 0 24px 58px rgba(225, 29, 72, 0.45);
  font-size: 2.1rem;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.content-main,
.content-side {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(190, 24, 93, 0.08);
}

.content-main h2,
.content-side h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.content-main p,
.content-side p {
  color: #4d4251;
  margin: 0 0 22px;
}

.content-main p:last-child,
.content-side p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #170d1b, #2b1027 55%, #4a1234);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 40px;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 560px;
  margin: 18px 0 0;
}

.footer-logo .logo-text {
  color: #ffffff;
}

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

.footer-links h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-links a {
  display: block;
  margin: 8px 0;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

  .hero-media {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 250px minmax(0, 1fr);
  }

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

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

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

  .hero-slide {
    padding: 34px 26px 92px;
  }

  .hero-control-row {
    left: 24px;
    right: 24px;
  }

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

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

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .detail-cover {
    width: min(280px, 100%);
  }

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

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

@media (max-width: 560px) {
  .header-inner,
  .hero,
  .section-block,
  .page-hero,
  .breadcrumb,
  .detail-hero,
  .watch-section {
    width: min(100% - 22px, 1200px);
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .hero-slider {
    min-height: 700px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

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

  .primary-button,
  .ghost-button,
  .text-button {
    width: 100%;
  }

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

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

  .content-main,
  .content-side {
    padding: 22px;
  }

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