:root {
  --brand-pink: #ec4899;
  --brand-orange: #f97316;
  --brand-yellow: #f59e0b;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --line-soft: #f3e8ef;
  --page-bg: #fff7ed;
  --card-bg: #ffffff;
  --dark: #111827;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 55px rgba(236, 72, 153, 0.16);
  --shadow-card: 0 12px 34px rgba(31, 41, 55, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.15), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.16), transparent 28%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fff7ed 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.10);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

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

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 24px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-5deg);
}

.brand-text {
  display: grid;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 22px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-pink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #374151;
  background: #fff1f2;
  font-size: 24px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fee2e2;
  padding: 12px 24px 18px;
  background: #ffffff;
}

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

.hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.98), rgba(249, 115, 22, 0.95));
  box-shadow: var(--shadow-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(251, 191, 36, 0.26), transparent 24%);
  pointer-events: none;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 600px;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 40px;
  align-items: center;
  padding: 64px;
}

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

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: -1.8px;
}

.hero-desc {
  width: min(620px, 100%);
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.10);
  color: #be185d;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.button-primary {
  color: var(--brand-pink);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.18);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-dark {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
}

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

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.72));
}

.hero-score {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 12px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.hero-control {
  position: absolute;
  left: 64px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

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

.section {
  padding: 66px 0 16px;
}

.section-alt {
  padding: 66px 0;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.88), rgba(255, 247, 237, 0.88));
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.section-head p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(31, 41, 55, 0.16);
}

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

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

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(17, 24, 39, 0.66));
  opacity: 0.95;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-no {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #ec4899);
  font-size: 15px;
}

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

.movie-card-body h3 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--brand-pink);
}

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

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(236, 72, 153, 0.08);
  transition: transform 0.22s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #be185d;
}

.category-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 54px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #be185d;
  font-weight: 800;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: none;
  font-size: 15px;
}

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

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #be185d;
  background: #fce7f3;
  font-weight: 800;
  cursor: pointer;
}

.no-results {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 24px;
  background: #ffffff;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 34px;
  align-items: stretch;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel {
  padding: 44px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-title h1 {
  margin-bottom: 14px;
}

.detail-intro {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 26px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-meta div {
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
}

.detail-meta b {
  display: block;
  color: #be185d;
  margin-bottom: 4px;
}

.player-section {
  padding: 34px 0 10px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.72)),
    var(--cover-image);
  background-size: cover;
  background-position: center;
}

.player-cover.is-hidden {
  display: none;
}

.player-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange));
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(236, 72, 153, 0.30);
}

.content-card {
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  line-height: 1.9;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #be185d;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
}

.related-card .movie-card-body p {
  min-height: 58px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  color: #d1d5db;
  background: #111827;
}

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

.footer-inner p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.back-top {
  color: #ffffff;
  font-weight: 800;
}

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

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

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

  .hero-visual {
    max-width: 420px;
  }

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel.is-open {
    display: grid;
    gap: 12px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    border-radius: 26px;
  }

  .hero-slide {
    min-height: auto;
    padding: 34px 24px 72px;
  }

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

  .hero-desc {
    font-size: 15px;
  }

  .hero-control {
    left: 24px;
    bottom: 24px;
  }

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

  .section-head,
  .footer-inner {
    display: block;
  }

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

  .page-hero,
  .detail-panel,
  .content-card {
    padding: 26px;
  }

  .detail-cover {
    min-height: auto;
    aspect-ratio: 2 / 3;
  }

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

@media (max-width: 460px) {
  .main-shell,
  .hero,
  .page-hero,
  .detail-hero,
  .footer-inner,
  .nav-shell {
    width: min(100% - 20px, 1180px);
  }

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p {
    display: none;
  }
}
