:root {
  color-scheme: light;
  --bg: #fff7fb;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.86);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #ffe4ec;
  --primary: #f43f5e;
  --primary-dark: #e11d48;
  --secondary: #ec4899;
  --shadow: 0 24px 70px rgba(244, 63, 94, 0.16);
  --shadow-soft: 0 14px 36px rgba(31, 41, 55, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.24), transparent 32rem),
    linear-gradient(180deg, #fff1f6 0%, #ffffff 42%, #fff7fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fb7185, #ec4899, #f43f5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-dark);
  background: #fff1f6;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: #fff1f6;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 54px 0 40px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 64px;
  background: rgba(251, 113, 133, 0.22);
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: 20px;
  background: rgba(236, 72, 153, 0.18);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(255, 228, 236, 0.9);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 246, 0.82)),
    var(--hero-image) center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.gradient-text {
  display: block;
  background: linear-gradient(90deg, #e11d48, #ec4899, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  margin: 20px 0 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.24);
}

.btn-secondary {
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

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

.hero-slider {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0%, rgba(17, 24, 39, 0.22) 38%, rgba(17, 24, 39, 0.9) 100%),
    var(--hero-image) center / cover;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide-content {
  color: #ffffff;
}

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

.hero-slide-content h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-slide-content p {
  margin: 0 0 22px;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.search-panel {
  margin-top: -24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 5;
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 150px auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff7fb;
  color: var(--primary-dark);
}

.search-input-wrap input,
.search-shell select {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #374151;
}

.search-shell select {
  padding: 0 14px;
  border-radius: 16px;
  background: #fff7fb;
}

.filter-reset {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 800;
  cursor: pointer;
}

.no-results {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: #9f1239;
  text-align: center;
  font-weight: 800;
}

.no-results.show {
  display: block;
}

.content-section {
  padding: 28px 0 64px;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

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

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

.category-card {
  position: relative;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #fff1f6);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.18);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4ec, #fff7fb);
}

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

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

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

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.3);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fff1f6;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.mini-card {
  position: relative;
  min-height: 150px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.mini-card img {
  height: 100%;
  object-fit: cover;
}

.mini-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(17, 24, 39, 0.9));
}

.mini-card-text {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #ffffff;
}

.mini-card-text strong,
.mini-card-text em {
  display: block;
}

.mini-card-text em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-style: normal;
}

.mini-rank {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
}

.page-hero {
  padding: 62px 0 30px;
}

.page-hero-card {
  position: relative;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 246, 0.88));
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-hero-card p {
  margin: 16px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.72)),
    var(--poster-image) center / cover;
  cursor: pointer;
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.detail-card {
  padding: clamp(22px, 3vw, 34px);
  margin-top: 24px;
}

.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 900;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1f6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.detail-block {
  margin-top: 26px;
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.detail-block p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  transition: background 0.25s ease;
}

.side-item:hover {
  background: #fff1f6;
}

.side-item img {
  aspect-ratio: 16 / 10;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.category-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.category-pill-row a {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fff1f6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 32px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-copy {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #4b5563;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .hero-copy,
  .hero-slider {
    min-height: 480px;
  }

  .search-shell {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-copy,
  .hero-slider {
    min-height: 430px;
    border-radius: 24px;
  }

  .search-shell {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

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

  .side-item {
    grid-template-columns: 78px 1fr;
  }
}
