:root {
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-soft: #fdf2f8;
  --color-card: #ffffff;
  --color-pink: #ec4899;
  --color-rose: #f43f5e;
  --color-line: #f3d5e5;
  --shadow-card: 0 18px 45px rgba(190, 24, 93, 0.12);
  --shadow-hover: 0 26px 60px rgba(190, 24, 93, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fff 0%, #fff7fb 45%, #ffffff 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.3);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong,
.footer-brand strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 4px;
}

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

.desktop-nav a,
.mobile-nav a {
  font-weight: 700;
  color: #374151;
  transition: color 0.25s ease;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 210px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.header-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--color-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-pink);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: linear-gradient(135deg, #fff1f7 0%, #ffffff 42%, #ffe4ef 100%);
}

.hero-grid-layer {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: linear-gradient(rgba(236, 72, 153, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 72, 153, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 54%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 68%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-pink);
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.page-hero p,
.detail-lead {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.hero-lead {
  margin: 26px 0 32px;
  max-width: 680px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.btn-ghost {
  color: var(--color-pink);
  background: #fff;
  border-color: #fbcfe8;
}

.btn-ghost.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-light {
  color: var(--color-pink);
  background: #fff;
}

.hero-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-mini-list a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #fbcfe8;
  font-size: 14px;
  font-weight: 700;
}

.hero-showcase {
  position: relative;
  border-radius: 32px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.hero-slides {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 26px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 38px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-content {
  max-width: 520px;
  color: #fff;
}

.hero-slide-content span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-slide-content h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.hero-slide-content p {
  margin: 0 0 22px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.hero-dots {
  position: absolute;
  left: 34px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

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

.soft-section {
  padding: 72px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--color-pink);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  border: 1px solid rgba(251, 207, 232, 0.72);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

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

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

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

.poster-year,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #be185d;
  background: rgba(255, 255, 255, 0.88);
}

.rank-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(236, 72, 153, 0.88);
  backdrop-filter: blur(12px);
}

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

.movie-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

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

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

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

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-card {
  display: block;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  padding: 24px;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-tile span,
.category-card span {
  color: var(--color-pink);
  font-weight: 900;
  font-size: 13px;
}

.category-tile strong,
.category-card h2 {
  display: block;
  margin: 10px 0;
  font-size: 24px;
}

.category-tile em {
  color: var(--color-muted);
  font-style: normal;
}

.category-card {
  padding: 26px;
}

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

.category-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-links a {
  color: #be185d;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f7, #fff, #ffe4ef);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(236, 72, 153, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 72, 153, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 76px;
  max-width: 880px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 0.35fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}

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

.empty-state {
  display: none;
  padding: 26px;
  margin-top: 18px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-muted);
  background: #fff;
  border: 1px dashed #f9a8d4;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  padding: 76px 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
  aspect-ratio: 3 / 4;
}

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

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-info h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 820px;
}

.detail-tags {
  margin: 24px 0 30px;
}

.player-section {
  scroll-margin-top: 96px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  background: #020617;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.32), rgba(15, 23, 42, 0.72)), linear-gradient(135deg, rgba(17, 24, 39, 0.46), rgba(190, 24, 93, 0.46));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  width: 82px;
  height: 82px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.42);
  font-size: 34px;
  padding-left: 4px;
}

.player-cover strong {
  font-size: clamp(24px, 4vw, 44px);
}

.player-cover em {
  font-style: normal;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

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

.story-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #fbcfe8;
  box-shadow: var(--shadow-card);
}

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

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 82px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
}

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

  .home-hero-inner {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .hero-showcase {
    max-width: 760px;
  }
}

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

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

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

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

  .hero-slides {
    min-height: 420px;
  }

  .content-section {
    padding-top: 54px;
  }

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

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

  .filter-search-wrap {
    grid-column: 1 / -1;
  }

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

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

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

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

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

  .home-hero-inner,
  .page-hero-inner,
  .detail-hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .home-hero-copy {
    padding-top: 46px;
  }

  .home-hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

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

  .hero-slide {
    padding: 26px;
  }

  .hero-slides {
    min-height: 390px;
  }

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .detail-info h1 {
    font-size: 34px;
  }

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

  .player-icon {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
