:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f6;
  --text: #17131f;
  --muted: #706678;
  --line: #f3d7e2;
  --pink: #ec4899;
  --rose: #f43f5e;
  --deep: #7f1d58;
  --shadow: 0 22px 60px rgba(126, 34, 85, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, #ffe4f1 0, transparent 28rem), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-brand span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #4b4254;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--pink);
  background: #fff0f7;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.home-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.home-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.home-search button,
.btn-primary,
.btn-secondary,
.btn-ghost {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.home-search button,
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
}

.btn-secondary {
  color: var(--deep);
  background: white;
  border: 1px solid rgba(236, 72, 153, 0.18);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.header-search button:hover,
.mobile-search button:hover,
.home-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

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

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

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #21041a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 3, 18, 0.9), rgba(65, 10, 46, 0.68), rgba(244, 63, 94, 0.2)), radial-gradient(circle at 76% 24%, rgba(236, 72, 153, 0.42), transparent 26rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.1fr 380px;
  align-items: center;
  gap: 58px;
  padding: 72px 0;
}

.hero-copy {
  color: white;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .hero-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero h1 {
  margin: 22px 0 8px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #ffd8e8;
  font-size: clamp(24px, 3vw, 42px);
}

.hero p {
  max-width: 700px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  color: var(--deep);
  background: #fff0f7;
  border: 1px solid rgba(236, 72, 153, 0.15);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-poster {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 3 / 4.2;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
}

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-panel {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  margin-top: -42px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search label {
  color: var(--deep);
  font-weight: 900;
}

.home-search input {
  flex: 1;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.quick-cats a {
  color: #8a2c62;
  background: #fff0f7;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
}

section.container {
  margin-top: 64px;
}

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

.section-head h2 {
  margin: 12px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--pink);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(126, 34, 85, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.34);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
  transition: transform 0.3s ease;
}

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.35);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #fb7185, #db2777);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.28);
}

.movie-info {
  padding: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-info h3 {
  margin: 8px 0 7px;
  min-height: 3.2em;
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-info p {
  margin: 0 0 12px;
  min-height: 3.2em;
  color: var(--muted);
  font-size: 13px;
}

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

.hero-thumb {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 26px;
  background: #21041a;
  box-shadow: var(--shadow);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-thumb span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.hero-thumb:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

.split-sections {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
}

.ranking-box,
.category-box,
.story-card,
.player-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ranking-box,
.category-box {
  padding: 24px;
}

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

.card-compact {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: stretch;
}

.card-compact .poster {
  aspect-ratio: auto;
  height: 100%;
}

.card-compact .movie-info p,
.card-compact .tag-row {
  display: none;
}

.card-compact .movie-info h3 {
  min-height: auto;
}

.category-grid-mini {
  display: grid;
  gap: 12px;
}

.category-grid-mini a,
.category-card {
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #fff0f7);
  border: 1px solid rgba(236, 72, 153, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-grid-mini a:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(126, 34, 85, 0.12);
}

.category-grid-mini strong,
.category-card h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--deep);
}

.category-grid-mini span,
.category-card p {
  color: var(--muted);
  font-size: 14px;
}

.page-hero,
.detail-hero {
  padding: 82px 0 54px;
  color: white;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 22rem), linear-gradient(135deg, #831843, #be185d 52%, #f43f5e);
}

.compact-hero,
.search-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
}

.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.page-hero p,
.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: white;
}

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

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

.filter-tools {
  margin-top: 36px;
}

.filter-bar {
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(126, 34, 85, 0.08);
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  min-width: 160px;
}

.large-filter select {
  min-width: 140px;
}

.filter-card.is-hidden {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
}

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

.detail-meta span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.detail-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.player-section {
  margin-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #09040a;
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #09040a;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  color: white;
  border: 0;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  z-index: 3;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
}

.cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 4, 18, 0.72), rgba(131, 24, 67, 0.58));
}

.cover-play {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.35);
  font-size: 34px;
}

.player-cover strong {
  position: relative;
  max-width: 80%;
  text-align: center;
  font-size: clamp(22px, 3vw, 42px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
}

.story-card h2 {
  margin: 14px 0 12px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b4254;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  margin-bottom: 72px;
}

.site-footer {
  margin-top: 72px;
  color: white;
  background: linear-gradient(135deg, #18111d, #2a1021);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-brand strong {
  font-size: 22px;
}

.site-footer p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr 300px;
  }

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

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 54px 0 92px;
  }

  .hero-poster {
    width: 240px;
    justify-self: center;
  }

  .quick-panel,
  .split-sections,
  .detail-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search,
  .filter-bar,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search input,
  .filter-bar input,
  .filter-bar select,
  .mobile-search input {
    width: 100%;
  }

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

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

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

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

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

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

  .hero h2 {
    font-size: 25px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .quick-panel {
    margin-top: -28px;
    padding: 16px;
  }

  .movie-grid,
  .spotlight-row,
  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .movie-info p {
    display: none;
  }

  .tag-row {
    display: none;
  }

  .page-hero,
  .detail-hero {
    padding: 58px 0 38px;
  }

  .detail-poster {
    width: 220px;
    justify-self: center;
  }

  .player-shell {
    border-radius: 18px;
  }

  .story-card {
    padding: 20px;
  }
}
