* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.86);
  --text: #151322;
  --muted: #686174;
  --line: rgba(244, 114, 182, 0.22);
  --rose: #f43f5e;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(111, 34, 89, 0.14);
  --soft-shadow: 0 14px 40px rgba(111, 34, 89, 0.10);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff1f7 0%, #ffffff 42%, #eef6ff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.16);
  box-shadow: 0 10px 28px rgba(111, 34, 89, 0.08);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #111827;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  font-weight: 700;
  color: #4b4656;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: var(--rose);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input {
  width: 240px;
  border: 1px solid rgba(244, 114, 182, 0.24);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff8fb;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  background: #fff1f7;
  color: var(--rose);
  font-size: 24px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-search {
  grid-column: 1 / -1;
}

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #160b1d;
}

.hero-slide {
  display: none;
  min-height: 620px;
  position: relative;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(8px) saturate(1.1);
  opacity: 0.44;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 63, 94, 0.72), transparent 34%),
    linear-gradient(110deg, rgba(15, 8, 22, 0.94) 0%, rgba(113, 20, 73, 0.78) 48%, rgba(31, 20, 82, 0.84) 100%);
}

.hero-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 58px;
}

.hero-copy h1 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 850px;
}

.hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.8;
  margin: 0 0 28px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffd3df;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.card-tags span {
  color: #9f1239;
  background: #fff1f7;
  border-color: rgba(244, 114, 182, 0.18);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.32);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
  background: #ffffff;
}

.quick-search-panel,
.content-section,
.page-hero,
.detail-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-copy h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.text-card h2 {
  margin: 8px 0 0;
  letter-spacing: -0.04em;
}

.quick-search-copy p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chips a,
.filter-tabs button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 11px 16px;
  color: #7a1d43;
  background: #fff1f7;
  font-weight: 900;
  border: 1px solid rgba(244, 114, 182, 0.18);
  cursor: pointer;
}

.category-chips a:hover,
.filter-tabs button.is-active,
.filter-tabs button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.content-section {
  padding-top: 64px;
  padding-bottom: 16px;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head.compact h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-link {
  color: #be123c;
  background: #fff1f7;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(244, 114, 182, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2c1024;
}

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

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

.poster-tag,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.26);
}

.rank-badge {
  right: auto;
  left: 12px;
  font-style: normal;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--rose);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
  color: #7b7285;
  font-size: 13px;
  font-weight: 700;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #e879b4;
}

.hot-board {
  padding-top: 82px;
}

.ranking-grid .movie-card:nth-child(-n + 3) {
  border-color: rgba(245, 158, 11, 0.28);
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  scroll-snap-align: start;
}

.category-strip {
  max-width: 1320px;
  margin: 0 auto;
  padding: 54px 24px 0;
}

.page-hero {
  margin-top: 34px;
  min-height: 260px;
  display: grid;
  align-items: center;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
  box-shadow: var(--shadow);
  padding-top: 48px;
  padding-bottom: 48px;
}

.page-hero .section-kicker {
  color: #ffe3ed;
}

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

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-search.large input {
  width: min(540px, 58vw);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  min-height: 220px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(244, 114, 182, 0.12);
  overflow: hidden;
}

.category-overview-card span {
  color: var(--rose);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 12px 0 12px;
  font-size: 30px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  transform: rotate(3deg);
}

.mini-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.detail-hero {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  overflow: hidden;
  background: #120914;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: blur(9px) saturate(1.05);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(16, 8, 18, 0.94), rgba(112, 22, 69, 0.78), rgba(21, 20, 65, 0.86));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 62px;
  padding-bottom: 62px;
}

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

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.detail-copy h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 830px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
  line-height: 1.85;
  margin-bottom: 26px;
}

.player-section {
  padding-top: 52px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: #000000;
  color: #ffffff;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 38px;
  box-shadow: 0 22px 54px rgba(236, 72, 153, 0.42);
}

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

.text-card,
.info-grid {
  border-radius: 26px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(244, 114, 182, 0.12);
}

.text-card h2 {
  font-size: 28px;
}

.text-card p {
  color: #514a5b;
  line-height: 2;
  font-size: 17px;
}

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

.info-grid div {
  border-radius: 18px;
  padding: 18px;
  background: #fff7fb;
}

.info-grid strong,
.info-grid span {
  display: block;
}

.info-grid strong {
  color: var(--rose);
  margin-bottom: 8px;
}

.site-footer {
  margin-top: 80px;
  background: #160b1d;
  color: #ffffff;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

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

.hidden-card {
  display: none;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-search {
    margin-left: auto;
  }

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

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

@media (max-width: 860px) {
  .header-inner {
    padding: 0 16px;
  }

  .header-search {
    display: none;
  }

  .hero-content,
  .quick-search-panel,
  .page-hero,
  .detail-layout,
  .detail-text,
  .category-overview-card a {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 72px;
    gap: 34px;
  }

  .hero-poster {
    max-width: 300px;
    margin: 0 auto;
  }

  .quick-search-panel {
    margin: -24px 16px 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-section,
  .page-hero,
  .detail-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

  .detail-poster {
    max-width: 280px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-logo span:last-child {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 680px;
  }

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

  .movie-card {
    border-radius: 20px;
  }

  .page-hero {
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero-search,
  .hero-search.large {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input,
  .hero-search.large input {
    width: 100%;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}