:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 114, 182, 0.22);
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.20), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #fef3c7 100%);
}

body.menu-open {
  overflow: hidden;
}

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 var(--line);
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.25);
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.22s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
}

.menu-button {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  color: var(--pink);
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.10);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.hero-bg::before {
  width: 420px;
  height: 420px;
  top: 120px;
  left: -120px;
  background: rgba(236, 72, 153, 0.24);
}

.hero-bg::after {
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: 70px;
  background: rgba(249, 115, 22, 0.20);
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}

.hero-carousel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 242, 0.74));
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 520px;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  padding: clamp(32px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.eyebrow,
.movie-meta-line,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow span,
.movie-meta-line span,
.breadcrumb a,
.breadcrumb span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.10);
}

.hero h1,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p,
.page-title p,
.detail-title p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.85;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.26);
}

.btn-soft {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
  border-color: rgba(236, 72, 153, 0.16);
}

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

.hero-art {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.92), rgba(255, 247, 237, 0.10) 42%, rgba(17, 24, 39, 0.36)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.45), transparent 45%);
}

.hero-card-float {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  width: min(300px, calc(100% - 56px));
  padding: 18px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(14px);
}

.hero-card-float strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-card-float small {
  color: rgba(255, 255, 255, 0.76);
}

.hero-controls {
  position: absolute;
  left: clamp(26px, 5vw, 64px);
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 14px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-control:hover {
  color: #ffffff;
  background: var(--pink);
}

.hero-search-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.12);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-row input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 16px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
}

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

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9d174d;
  background: rgba(236, 72, 153, 0.10);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 64px 0 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--pink);
  font-weight: 900;
}

.section h1,
.section h2,
.page-title h1,
.detail-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.category-card p,
.detail-section p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: 0 26px 54px rgba(236, 72, 153, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

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

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

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

.rank-badge,
.poster-link > span:not(.poster-shade):not(.duration),
.duration {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-badge,
.poster-link > span:not(.poster-shade):not(.duration) {
  top: 12px;
  left: 12px;
}

.duration {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.70);
}

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

.movie-card h2,
.category-card h2 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  min-height: 54px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #be185d;
  background: rgba(236, 72, 153, 0.10);
  font-size: 12px;
  font-weight: 700;
}

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

.category-chip,
.category-card {
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.10);
  transition: 0.22s ease;
}

.category-chip {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}

.category-chip:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.30);
}

.category-chip span,
.category-card h2 {
  font-weight: 900;
  color: #111827;
}

.category-chip small {
  color: var(--muted);
  line-height: 1.55;
}

.category-card {
  padding: 22px;
}

.category-card .card-actions {
  margin-top: 18px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.rank-panel,
.side-panel,
.filter-bar,
.detail-card,
.player-box,
.detail-section {
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.10);
}

.rank-panel {
  padding: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 13px 10px;
  border-bottom: 1px solid rgba(236, 72, 153, 0.10);
  border-radius: 16px;
}

.rank-row:hover {
  background: rgba(236, 72, 153, 0.08);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: var(--pink);
  font-weight: 900;
  text-align: right;
}

.side-panel {
  padding: 20px;
  position: sticky;
  top: 96px;
}

.side-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.page-shell {
  padding: 56px 0 0;
}

.page-title {
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 241, 242, 0.72));
  box-shadow: var(--shadow);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

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

.detail-card {
  padding: clamp(24px, 4vw, 42px);
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.fact {
  padding: 14px;
  border-radius: 20px;
  background: rgba(236, 72, 153, 0.08);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.fact strong {
  display: block;
  margin-top: 4px;
  color: #111827;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.25), rgba(236, 72, 153, 0.20));
}

.play-trigger span {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.42);
  font-size: 34px;
}

.player-box.is-playing .play-trigger {
  display: none;
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.detail-section {
  padding: 26px;
  margin-bottom: 24px;
}

.detail-section p {
  color: #374151;
  font-size: 16px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(236, 72, 153, 0.08);
}

.related-item img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.related-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.68), rgba(255, 237, 213, 0.76), rgba(254, 243, 199, 0.66));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #4b5563;
}

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

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .side-panel {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero {
    min-height: auto;
  }

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

  .hero-art,
  .hero-art img {
    min-height: 360px;
  }

  .hero-controls {
    left: 28px;
    bottom: 20px;
  }

  .search-row,
  .filter-bar,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 360px;
    margin: 0 auto;
  }

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

@media (max-width: 620px) {
  .nav-wrap {
    height: 64px;
  }

  .hero-inner,
  .section,
  .page-shell,
  .detail-hero,
  .player-section,
  .detail-content {
    width: min(100% - 22px, 1180px);
  }

  .hero-inner {
    padding-top: 34px;
  }

  .hero-copy,
  .page-title,
  .detail-card {
    padding: 24px;
  }

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

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

  .movie-card p {
    min-height: auto;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 1fr 62px;
  }
}
