:root {
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f9a8d4;
  --soft: #fff1f2;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff 0%, #fff5f7 46%, #fff 100%);
}

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

img,
video {
  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;
  border-bottom: 1px solid rgba(249, 168, 212, 0.45);
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(254, 242, 242, 0.96), rgba(255, 247, 237, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--pink);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #374151;
  background: rgba(255, 255, 255, 0.75);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  font-weight: 700;
}

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

.hero-shell {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 76vh;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.55s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(236, 72, 153, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(127, 29, 29, 0.72), rgba(17, 24, 39, 0.45)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 80px 0 96px;
  color: #fff;
}

.hero-copy h1 {
  margin: 14px 0 12px;
  max-width: 830px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

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

.hero-copy p {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 228, 230, 0.9);
}

.hero-copy .eyebrow {
  color: #fff;
  background: rgba(236, 72, 153, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.tag,
.detail-tags .tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #be123c;
  font-size: 12px;
  font-weight: 700;
  background: #ffe4e6;
}

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

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.32);
}

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

.primary-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button.light {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.72);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.lifted {
  position: relative;
  z-index: 6;
  margin-top: -44px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card,
.category-tile,
.detail-card,
.side-card,
.hot-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 168, 212, 0.35);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 132px;
  border-radius: 24px;
  padding: 24px;
}

.stat-card span,
.stat-card em,
.movie-meta,
.movie-desc,
.hot-row em,
.horizontal-card em,
.side-card span,
.detail-card p,
.page-hero p,
.site-footer p {
  color: var(--muted);
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.stat-card em {
  font-style: normal;
}

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

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--pink);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.2);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fdf2f8, #fee2e2);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62));
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.32);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--red));
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row .tag {
  font-size: 11px;
  padding: 4px 8px;
}

.soft-band {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8, #eef2ff);
}

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

.category-tile {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
}

.category-tile span {
  font-size: 32px;
}

.category-tile strong {
  font-size: 21px;
}

.category-tile em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
}

.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 18px;
}

.horizontal-card {
  display: grid;
  min-width: 260px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.horizontal-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.horizontal-card span {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.horizontal-card em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-style: normal;
}

.hot-panel {
  border-radius: 26px;
  padding: 24px;
}

.hot-list {
  display: grid;
  gap: 10px;
}

.hot-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(253, 242, 248, 0.75);
}

.hot-row span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--red));
}

.hot-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-row em {
  font-size: 12px;
  font-style: normal;
}

.page-bg {
  background: linear-gradient(180deg, #fff1f2 0, #fff 320px);
}

.page-hero {
  padding: 72px 0 50px;
  background:
    radial-gradient(circle at 76% 12%, rgba(236, 72, 153, 0.22), transparent 28%),
    linear-gradient(135deg, #fff1f2, #ffedd5, #fdf2f8);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-top: 26px;
}

.catalog-tools input,
.catalog-tools select {
  min-height: 48px;
  border: 1px solid rgba(249, 168, 212, 0.5);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-row button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #9f1239;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
}

.filter-row button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 210px;
}

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

.wide-card .movie-info {
  justify-content: center;
  padding: 22px;
}

.wide-card .movie-info strong {
  min-height: 0;
  font-size: 24px;
}

.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.category-emoji {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 16px;
  border-radius: 24px;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.spacing-top {
  margin-top: 46px;
}

.detail-page {
  background: #fff;
}

.detail-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: blur(1px) saturate(1.05);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(236, 72, 153, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 40%);
}

.detail-top {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0;
}

.crumb {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #fff;
  font-weight: 800;
  background: rgba(236, 72, 153, 0.42);
}

.detail-top h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: -0.05em;
}

.detail-top p {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: -80px;
  position: relative;
  z-index: 5;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(0, 0, 0, 0.42));
}

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

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.38);
}

.detail-card,
.side-card {
  border-radius: 26px;
  padding: 26px;
}

.detail-card {
  margin-top: 24px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.title-row h2,
.detail-card h3 {
  margin: 0;
}

.title-row p {
  margin: 8px 0 0;
}

.detail-card h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 22px;
}

.detail-card p {
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

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

.poster-card strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.poster-card span {
  display: block;
  margin-top: 6px;
}

.side-card h3 {
  margin: 0 0 16px;
}

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

.side-related .horizontal-card {
  grid-template-columns: 96px minmax(0, 1fr);
  min-width: 0;
}

.side-related .horizontal-card img {
  height: 78px;
}

.featured-list {
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid rgba(249, 168, 212, 0.35);
  background: linear-gradient(180deg, #fff, #fdf2f8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--pink);
}

.footer-bottom {
  border-top: 1px solid rgba(249, 168, 212, 0.25);
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero-content,
  .detail-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .detail-side {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero-content {
    padding: 70px 0 90px;
  }

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

  .section-grid,
  .movie-grid.large,
  .movie-grid,
  .category-grid,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 160px;
  }

  .wide-card .movie-info {
    padding: 14px;
  }

  .wide-card .movie-info strong {
    font-size: 18px;
  }

  .category-title-row,
  .title-row,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .hot-row {
    grid-template-columns: 38px 1fr;
  }

  .hot-row em {
    display: none;
  }
}
