:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --amber: #fde68a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fbcfe8;
  --soft: #fff7ed;
  --paper: #ffffff;
  --dark: #111827;
  --shadow: 0 20px 50px rgba(244, 63, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.13), transparent 32rem),
    linear-gradient(180deg, #fff1f2 0%, #fff7ed 32%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ec4899 0%, #f43f5e 54%, #fb923c 100%);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.25);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand {
  color: #fff;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.brand-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fef3c7;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  background: transparent;
}

.header-search button,
.hero-search button,
.primary-btn,
.ghost-btn,
.play-overlay button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 9px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  border-radius: 999px;
  margin-right: 3px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #db2777 0%, #f43f5e 50%, #fb923c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.24), transparent 25rem),
    radial-gradient(circle at 88% 12%, rgba(253, 230, 138, 0.3), transparent 26rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 46px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 58px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #7c2d12;
  background: rgba(254, 243, 199, 0.92);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.15);
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #fef3c7;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.primary-btn {
  color: #db2777;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.play-overlay button:hover,
.header-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.22);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 20px;
  font-size: 1rem;
}

.hero-search button {
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 420px;
}

.hero-poster {
  position: absolute;
  inset: 18px 0 18px 18px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.34);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(251, 146, 60, 0.35));
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.64));
}

.hero-card {
  position: absolute;
  right: 18px;
  bottom: 30px;
  left: 44px;
  z-index: 2;
  padding: 22px;
  background: rgba(17, 24, 39, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(18px);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

main {
  min-height: 60vh;
}

.content-section,
.page-block,
.detail-wrap,
.player-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.section-head h2,
.page-title-row h1,
.detail-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.section-head p,
.page-title-row p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--pink);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.featured {
  border-radius: 30px;
}

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

.movie-card.list {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card.list .poster {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

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

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.93);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--pink);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 4.7em;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.card-tags span,
.detail-tags span,
.hero-mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: #be123c;
  background: #ffe4e6;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-category {
  display: inline-flex;
  margin-top: 14px;
  color: var(--pink);
  font-size: 0.92rem;
  font-weight: 900;
}

.feature-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -82px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-strip .movie-card {
  box-shadow: 0 24px 60px rgba(127, 29, 29, 0.22);
}

.category-band {
  padding: 58px 0;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.18), rgba(236, 72, 153, 0.15), rgba(244, 63, 94, 0.12));
}

.category-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 168px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.68;
}

.page-hero {
  padding: 72px 0 44px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 24rem),
    linear-gradient(120deg, #ec4899, #f43f5e 54%, #fb923c);
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.8;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
  margin-top: 28px;
}

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

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.34));
  pointer-events: auto;
}

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

.play-overlay button {
  width: 88px;
  height: 88px;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.detail-side {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.side-info {
  padding: 20px;
}

.side-info h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.side-info dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px 12px;
  margin: 0;
  color: #4b5563;
}

.side-info dt {
  color: #9f1239;
  font-weight: 900;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  margin-top: 42px;
  margin-bottom: 64px;
}

.detail-title {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.detail-lead {
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-block {
  margin-top: 24px;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.08);
}

.article-block h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
}

.article-block p {
  margin: 0;
  color: #374151;
  line-height: 2;
}

.related-panel {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  box-shadow: var(--shadow);
}

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-list a:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.12);
}

.related-list img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.related-list strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-panel {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 20px;
  font-size: 1rem;
}

.search-panel button {
  border: 0;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #1f2937, #111827 48%, #030712);
}

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

.footer-inner h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.footer-inner p {
  max-width: 420px;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-inner a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

.footer-inner a:hover {
  color: #f9a8d4;
}

.footer-brand {
  color: #fff;
  font-size: 1.3rem;
}

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

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

  .player-wrap,
  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .detail-side {
    max-width: 420px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 4px;
  }

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

  .header-search {
    margin-left: auto;
  }

  .header-search input {
    width: 138px;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 20px;
    align-content: start;
  }

  .hero-copy {
    padding: 42px 0 0;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-poster {
    inset: 0;
    transform: none;
  }

  .hero-dots {
    bottom: 18px;
  }

  .feature-strip {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

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

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

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

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

  .header-search {
    width: 100%;
    order: 3;
  }

  .header-search input {
    flex: 1;
    width: auto;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-search {
    border-radius: 28px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 48px;
  }

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

  .movie-card.list {
    grid-template-columns: 1fr;
  }

  .movie-card.list .poster {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }

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

  .detail-title,
  .article-block {
    padding: 22px;
  }
}
