:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #ffe4e6;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(244, 63, 94, 0.14);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ffffff;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.28);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-weight: 600;
}
.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--rose);
}
.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search input,
.mobile-nav input,
.search-panel input,
.search-panel select {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
}
.header-search input:focus,
.mobile-nav input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}
.header-search button,
.mobile-nav button,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}
.header-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.25);
}
.secondary-btn {
  color: var(--rose);
  background: #ffffff;
  border: 2px solid var(--rose);
}
.ghost-btn {
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.compact-card:hover,
.category-card:hover,
.ranking-item:hover {
  transform: translateY(-3px);
}
.menu-toggle {
  display: none;
  border: 0;
  background: #fff1f2;
  color: var(--rose);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
}
.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 16px;
}
.mobile-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}
.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.mobile-nav input {
  flex: 1;
}
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 18px 80px;
  background: linear-gradient(135deg, #ffe4e6 0%, #fff7ed 48%, #fdf2f8 100%);
}
.blob {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.36;
  mix-blend-mode: multiply;
  animation: blobMove 9s infinite;
}
.blob-one {
  top: 13%;
  left: 10%;
  background: #fda4af;
}
.blob-two {
  top: 22%;
  right: 10%;
  background: #f9a8d4;
  animation-delay: 2s;
}
.blob-three {
  bottom: 9%;
  left: 28%;
  background: #fcd34d;
  animation-delay: 4s;
}
@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -42px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 24px) scale(0.94);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.hero-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 22px 55px rgba(244, 63, 94, 0.26);
  animation: pulseSoft 2.6s infinite;
}
@keyframes pulseSoft {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #e11d48, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 auto 28px;
  max-width: 760px;
  color: #4b5563;
  font-size: clamp(18px, 3vw, 25px);
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 63, 94, 0.18);
  color: #be123c;
  font-weight: 700;
}
.hero-links a:hover {
  background: #ffffff;
  box-shadow: var(--shadow);
}
.section {
  padding: 78px 18px;
}
.section-soft {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}
.section-warm {
  background: linear-gradient(135deg, #fffbeb, #fff1f2);
}
.container {
  max-width: 1180px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head.center {
  display: block;
  text-align: center;
}
.section-head h1,
.section-head h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  text-align: center;
  border-radius: 26px;
  padding: 26px 18px;
  background: #ffffff;
  border: 1px solid #fff1f2;
  transition: all 0.28s ease;
}
.feature-card:hover {
  background: #fff1f2;
}
.feature-card strong {
  display: flex;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.2);
}
.feature-card h2,
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.movie-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.movie-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.28s ease;
}
.movie-card:hover {
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.13);
}
.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff1f2;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}
.movie-card:hover .movie-poster img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}
.score {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 48px;
  text-align: center;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  background: rgba(244, 63, 94, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.movie-info {
  padding: 20px;
}
.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--rose);
  font-weight: 800;
  font-size: 13px;
}
.movie-info h2,
.movie-info h3 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.35;
}
.movie-info h2 a:hover,
.movie-info h3 a:hover {
  color: var(--rose);
}
.movie-info p {
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-row span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #be123c;
  background: #ffe4e6;
}
.compact-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scrollbar-width: thin;
}
.compact-card {
  flex: 0 0 236px;
  transition: all 0.28s ease;
}
.compact-card img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
  transition: transform 0.45s ease;
}
.compact-card span {
  display: block;
  margin-top: 14px;
  font-weight: 850;
  color: var(--ink);
}
.compact-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.ranking-list {
  display: grid;
  gap: 18px;
}
.ranking-item {
  display: grid;
  grid-template-columns: 58px 110px 1fr 70px;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.28s ease;
  padding: 12px 18px 12px 12px;
}
.rank-num {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--rose);
  font-size: 20px;
  font-weight: 900;
}
.ranking-item img {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.rank-main strong,
.rank-main em {
  display: block;
}
.rank-main strong {
  font-size: 20px;
  margin-bottom: 8px;
}
.rank-main em {
  color: var(--muted);
  line-height: 1.6;
  font-style: normal;
}
.rank-score {
  justify-self: end;
  color: #b45309;
  font-size: 20px;
  font-weight: 900;
}
.page-hero {
  padding: 78px 18px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
}
.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  min-height: 180px;
  border-radius: 26px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.2);
  transition: all 0.28s ease;
}
.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #ec4899);
}
.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #fb7185, #f59e0b);
}
.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}
.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}
.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: #fff1f2;
}
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  cursor: pointer;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}
.breadcrumb a {
  color: var(--rose);
  font-weight: 700;
}
.detail-shell {
  background: #f9fafb;
}
.detail-main {
  padding: 42px 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  background: #fff1f2;
}
.detail-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.player-box {
  position: relative;
  margin-top: 24px;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}
.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  z-index: 2;
}
.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72));
}
.player-cover.is-hidden {
  display: none;
}
.play-button {
  position: relative;
  z-index: 3;
  border: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 36px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.detail-card {
  border-radius: 28px;
  background: #ffffff;
  padding: 32px;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.08);
}
.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.detail-lead {
  color: #4b5563;
  font-size: 20px;
  line-height: 1.75;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.badges span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #be123c;
  background: #ffe4e6;
  font-weight: 800;
  font-size: 13px;
}
.rating-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b45309;
  font-weight: 900;
  margin: 18px 0;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.detail-block {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}
.detail-block h2,
.detail-block h3 {
  margin: 0 0 16px;
}
.detail-block p {
  color: #4b5563;
  line-height: 1.85;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.site-footer {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer-grid h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
.footer-grid p,
.footer-grid li {
  color: var(--muted);
  line-height: 1.8;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-bottom {
  text-align: center;
  color: #6b7280;
  border-top: 1px solid var(--line);
  padding: 18px;
}
@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .mobile-nav.open {
    display: block;
  }
  .feature-grid,
  .movie-grid.four,
  .movie-grid,
  .category-grid,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-panel {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-wrap {
    padding: 12px 14px;
  }
  .brand {
    font-size: 19px;
  }
  .hero {
    min-height: auto;
    padding-top: 80px;
  }
  .section,
  .page-hero {
    padding: 54px 14px;
  }
  .section-head {
    display: block;
  }
  .feature-grid,
  .movie-grid.four,
  .movie-grid,
  .category-grid,
  .footer-grid,
  .detail-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }
  .ranking-item {
    grid-template-columns: 42px 78px 1fr;
    padding-right: 12px;
  }
  .ranking-item img {
    width: 78px;
    height: 78px;
  }
  .rank-score {
    display: none;
  }
  .detail-card {
    padding: 22px;
  }
  .play-button {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
