:root {
  --page-bg: #fff7fb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.36);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(88, 28, 135, 0.14);
  --radius: 24px;
  --red: #ef4444;
  --pink: #ec4899;
  --orange: #f97316;
  --purple: #8b5cf6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 8%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(249, 115, 22, 0.16), transparent 26rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #eef2ff 100%);
}

body.is-menu-open {
  overflow: hidden;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ef4444, #ec4899 52%, #f97316);
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ef4444;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.18);
}

.brand-text {
  font-size: 1.34rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff7ad;
  border-color: rgba(255, 255, 255, 0.82);
}

.search-box {
  position: relative;
  width: min(300px, 28vw);
}

.site-search {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 420px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}

.search-panel.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff1f2;
}

.search-result img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  border-radius: 2px;
  background: #fff;
}

.hero-shell {
  padding: 28px 0 12px;
}

.hero-stage {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  height: min(680px, calc(100vh - 108px));
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 35px 90px rgba(30, 41, 59, 0.28);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 42%, rgba(17, 24, 39, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.78) 0%, transparent 48%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 88px);
  bottom: clamp(40px, 9vw, 110px);
  width: min(680px, calc(100% - 48px));
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.8;
}

.hero-meta,
.meta-row,
.detail-badges,
.detail-score,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-badges span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 14px 28px;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  box-shadow: 0 16px 35px rgba(139, 92, 246, 0.34);
}

.ghost-btn {
  padding: 13px 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.player-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

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

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

.content-section,
.category-block {
  width: min(1280px, calc(100% - 32px));
  margin: 46px auto;
}

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

.section-head h2,
.category-block h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-head p,
.category-block p {
  margin: 9px 0 0;
  color: var(--muted);
}

.section-more {
  padding: 10px 18px;
  color: #7c3aed;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.13);
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(88, 28, 135, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(88, 28, 135, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  font-weight: 800;
  font-size: 0.82rem;
}

.play-dot {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

.movie-info {
  display: block;
  padding: 14px;
}

.movie-info strong,
.wide-card strong {
  display: block;
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-info em,
.wide-card em {
  display: block;
  margin-top: 7px;
  min-height: 38px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
}

.meta-row {
  margin-top: 10px;
  gap: 7px;
  color: #6b7280;
  font-size: 0.8rem;
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.category-entry {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: 0 20px 46px rgba(236, 72, 153, 0.18);
}

.category-entry::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -54px;
  bottom: -58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-entry strong,
.category-entry em,
.category-preview {
  position: relative;
  z-index: 1;
  display: block;
}

.category-entry strong {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.category-entry em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.category-preview {
  margin-top: 16px;
}

.category-preview span {
  display: inline-flex;
  max-width: 100%;
  margin: 0 6px 6px 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
}

.from-pink {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.from-orange,
.from-amber {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.from-purple,
.from-indigo {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.from-blue,
.from-cyan {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.from-rose {
  background: linear-gradient(135deg, #fb7185, #ec4899);
}

.from-emerald {
  background: linear-gradient(135deg, #10b981, #14b8a6);
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 42px;
  padding: clamp(42px, 7vw, 78px);
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(236, 72, 153, 0.84), rgba(249, 115, 22, 0.86)),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.28), transparent 22rem);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  margin: 12px 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.small-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.8;
}

.category-block {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(88, 28, 135, 0.08);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #374151;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(88, 28, 135, 0.08);
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(90deg, #ef4444, #ec4899);
}

.movie-filter-item.is-hidden {
  display: none;
}

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

.wide-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px 154px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(88, 28, 135, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card:hover {
  transform: translateX(4px);
  box-shadow: 0 22px 44px rgba(88, 28, 135, 0.14);
}

.wide-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.wide-card img {
  width: 154px;
  height: 96px;
  object-fit: cover;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.45s ease;
}

.wide-body {
  min-width: 0;
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 30px 70px rgba(30, 41, 59, 0.25);
}

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

.detail-info {
  padding: clamp(22px, 4vw, 46px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(253, 224, 71, 0.24), transparent 22rem),
    linear-gradient(135deg, #ef4444, #ec4899 52%, #7c3aed);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

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

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.detail-info p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.8;
}

.detail-score {
  margin-top: 24px;
  gap: 8px 14px;
}

.detail-score strong {
  font-size: 1.45rem;
}

.detail-score span {
  color: rgba(255, 255, 255, 0.76);
  margin-right: 8px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.24), rgba(0, 0, 0, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
  cursor: pointer;
}

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

.player-button {
  padding: 16px 32px;
  color: #fff;
  background: linear-gradient(90deg, #ef4444, #ec4899, #8b5cf6);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
  font-size: 1rem;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.text-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(88, 28, 135, 0.08);
}

.text-card h2 {
  margin: 0 0 14px;
  color: #111827;
}

.text-card p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

.detail-text .tag-list {
  grid-column: 1 / -1;
}

.detail-text .tag-list span {
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.92);
}

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: linear-gradient(90deg, #581c87, #1e3a8a, #312e81);
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

@media (max-width: 820px) {
  .navbar {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    color: #374151;
    border-bottom: 0;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #ec4899;
    background: #fff1f2;
  }

  .search-box {
    width: 100%;
  }

  .search-panel {
    left: 0;
    right: 0;
    width: 100%;
  }

  .hero-stage {
    min-height: 560px;
    height: 74vh;
    border-radius: 26px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.35));
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 28px;
    right: auto;
  }

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

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

  .wide-card {
    grid-template-columns: 46px 92px 1fr;
  }

  .wide-card img {
    width: 92px;
    height: 124px;
  }

  .detail-hero,
  .detail-text,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 1.08rem;
  }

  .hero-stage,
  .content-section,
  .category-block,
  .page-hero,
  .detail-hero,
  .player-section,
  .footer-grid,
  .footer-bottom {
    width: calc(100% - 22px);
  }

  .grid-four,
  .grid-six,
  .category-grid {
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info em {
    display: none;
  }

  .page-hero,
  .detail-info {
    border-radius: 24px;
  }

  .detail-cover {
    width: min(280px, 100%);
    margin: 0 auto;
  }
}
