:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f6;
  --text: #171321;
  --muted: #6f6575;
  --line: rgba(236, 72, 153, 0.14);
  --brand: #db2777;
  --brand-2: #f43f5e;
  --brand-3: #fb7185;
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.13), transparent 32rem),
    linear-gradient(135deg, #fff7fb 0%, #ffffff 52%, #fff1f6 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(219, 39, 119, 0.25);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  color: #4b4552;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand);
  background: rgba(244, 63, 94, 0.09);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.09);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
}

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 28px auto 56px;
  border-radius: 36px;
  overflow: hidden;
  background: #1f1020;
  box-shadow: 0 34px 90px rgba(190, 24, 93, 0.26);
}

.hero-track,
.hero-slide {
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.05) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 8, 20, 0.93) 0%, rgba(31, 16, 32, 0.72) 46%, rgba(244, 63, 94, 0.12) 100%),
    linear-gradient(0deg, rgba(16, 8, 16, 0.72), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding: clamp(36px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy {
  color: #ffffff;
  max-width: 700px;
}

.hero-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe4ef;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(244, 63, 94, 0.10);
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 34px rgba(219, 39, 119, 0.28);
}

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

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

.hero-poster {
  position: relative;
  display: block;
  height: 450px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.hero-poster img,
.detail-poster,
.poster-frame img,
.rank-cover img,
.mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: clamp(36px, 7vw, 92px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.home-search-section,
.content-section,
.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 58px;
}

.home-search-section {
  padding: 38px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading span,
.page-hero span {
  color: var(--brand);
}

.section-heading h2,
.page-hero h1,
.detail-main-text h1 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.home-search {
  display: flex;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.home-search input,
.search-box input,
.filter-select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.home-search input {
  padding: 0 18px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  background: #2a1328;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(33, 10, 32, 0.94), rgba(244, 63, 94, 0.14));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 18px 46px rgba(190, 24, 93, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(190, 24, 93, 0.17);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(251, 113, 133, 0.42), transparent 46%),
    linear-gradient(135deg, #1f1020, #9f1239);
}

.poster-img {
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.poster-img.image-missing {
  opacity: 0;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(219, 39, 119, 0.88);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-line span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.movie-card h3,
.rank-info h3,
.category-panel h2 {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.movie-card p,
.rank-info p,
.category-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 14px 40px rgba(190, 24, 93, 0.10);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 44px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 26rem),
    linear-gradient(135deg, #be185d, #f43f5e 54%, #fb7185);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.slim-hero h1,
.slim-hero p,
.slim-hero span {
  color: #ffffff;
}

.slim-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow);
}

.search-box {
  flex: 1;
  min-width: 240px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.search-box input,
.filter-select {
  height: 48px;
}

.filter-actions {
  display: flex;
  gap: 12px;
}

.filter-select {
  min-width: 150px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
}

.filter-hidden {
  display: none !important;
}

.category-panel-list {
  display: grid;
  gap: 20px;
}

.category-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow);
}

.category-panel-image {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-soft);
  font-weight: 800;
  color: var(--text);
}

.mini-img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  align-items: start;
}

.player-card,
.detail-side,
.detail-main-text {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 12px;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #160916;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  z-index: 1;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(22, 9, 22, 0.48), rgba(219, 39, 119, 0.28));
  cursor: pointer;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 24px solid var(--brand);
}

.player-overlay strong {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.detail-side {
  padding: 16px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
}

.detail-tags {
  margin-top: 16px;
}

.detail-main-text {
  padding: clamp(24px, 4vw, 44px);
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.detail-meta strong {
  color: var(--brand);
}

.lead-text {
  color: #3b3340;
  font-size: 19px;
  line-height: 1.8;
}

.detail-main-text h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-main-text p {
  color: #51495a;
  line-height: 1.9;
}

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

.related-grid .movie-card p {
  display: none;
}

.site-footer {
  margin-top: 76px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #201120, #3f1635 54%, #831843);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.footer-inner p {
  max-width: 600px;
  margin: 10px 0 0;
  line-height: 1.7;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 1040px) {
  .hero-content,
  .detail-layout,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-side {
    display: none;
  }

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

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

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

  .nav-toggle {
    display: block;
  }

  .brand-text {
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-slider,
  .hero-track,
  .hero-slide,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 32px 24px 82px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-dots {
    left: 24px;
    bottom: 26px;
  }

  .home-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .home-search input {
    height: 48px;
  }

  .section-heading,
  .footer-inner,
  .filter-panel {
    display: grid;
    align-items: start;
  }

  .filter-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-grid,
  .movie-grid,
  .rank-grid,
  .rank-list,
  .mini-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

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