:root {
  --page-bg: #fff7fb;
  --surface: #ffffff;
  --surface-soft: #fff1f7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f2d6e2;
  --brand: #ec4899;
  --brand-strong: #db2777;
  --brand-soft: #fce7f3;
  --violet: #8b5cf6;
  --shadow: 0 18px 45px rgba(219, 39, 119, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 48%, #fff7fb 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(244, 114, 182, 0.28);
  background: rgba(255, 247, 251, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 900;
  color: #be185d;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.27);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-strong);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.12);
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  margin: 28px auto 54px;
  min-height: 520px;
  border-radius: 34px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.7) 42%, rgba(190, 24, 93, 0.26)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.15);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.4), transparent 26rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.22);
  border: 1px solid rgba(244, 114, 182, 0.32);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.05;
  font-weight: 900;
}

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

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

.button {
  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: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.button.light {
  color: var(--brand-strong);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(219, 39, 119, 0.12);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 5vw, 64px);
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.section {
  margin: 52px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 740px;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 145px;
  padding: 24px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  bottom: -66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-tile span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(219, 39, 119, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.07);
}

.badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(219, 39, 119, 0.88);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--brand-strong);
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(219, 39, 119, 0.08);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  font-weight: 950;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

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

.page-hero {
  margin: 34px 0 32px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, #be185d, #7c3aed);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 160px;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 34px rgba(219, 39, 119, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #f3bfd6;
  border-radius: 16px;
  color: #374151;
  background: #ffffff;
  outline: none;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-shell,
.detail-side,
.prose-box {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-shell {
  overflow: hidden;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.74));
  cursor: pointer;
  z-index: 2;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.36);
  font-size: 34px;
  transform: translateZ(0);
}

.player-info {
  padding: 22px 24px 26px;
}

.player-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.player-info p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.detail-side {
  overflow: hidden;
}

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

.side-content {
  padding: 20px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f8d7e7;
}

.meta-list dt {
  color: var(--muted);
  font-weight: 800;
}

.meta-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

.prose-box {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.prose-box h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.prose-box p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 2;
  font-size: 17px;
}

.site-footer {
  margin-top: 68px;
  padding: 34px 0;
  border-top: 1px solid rgba(244, 114, 182, 0.28);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

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

.no-result {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.no-result.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 690px;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(260px, 70vw);
  }

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

  .rank-list,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-wrap,
  .page-main,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

  .hero {
    border-radius: 24px;
    min-height: 720px;
  }

  .hero-slide {
    padding: 24px;
  }

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

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

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

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

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

  .rank-num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .rank-thumb {
    width: 74px;
  }

  .play-button {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
