:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.28);
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #fff1f8 0%, #f6f0ff 45%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #ffffff;
  font-weight: 700;
}

.nav a,
.nav button {
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.nav a:hover,
.nav button:hover {
  color: #ffe4f1;
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 245px;
}

.header-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px 46px 11px 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #ffffff;
  padding: 10px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 590px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.54), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--pink);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.35);
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--pink);
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.32);
}

.btn-primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.btn-light {
  color: var(--pink-dark);
  background: #ffffff;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 40px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.82), rgba(237, 233, 254, 0.88), rgba(219, 234, 254, 0.88));
}

.section-white {
  background: rgba(255, 255, 255, 0.92);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  display: inline-flex;
  color: var(--pink-dark);
  font-weight: 900;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(31, 41, 55, 0.09);
  transition: 0.22s ease;
}

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

.movie-card a {
  display: block;
  height: 100%;
}

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

.poster img {
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

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

.horizontal-card a {
  display: grid;
  grid-template-columns: 142px 1fr;
}

.horizontal-card .poster {
  min-height: 190px;
  aspect-ratio: auto;
}

.large-card .poster {
  aspect-ratio: 16 / 9;
}

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

.category-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.1);
  transition: 0.22s ease;
}

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

.category-icon {
  font-size: 36px;
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
}

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

.page-hero {
  padding: 70px 0 42px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 24px 0 32px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 68px 100px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  height: 130px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 8px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
  padding: 42px 0 70px;
}

.player-panel,
.detail-panel,
.side-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
}

.player-top {
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #312e81, #831843);
}

.player-top h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.player-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111827;
}

.player-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  filter: saturate(1.1);
}

.play-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink);
  box-shadow: 0 20px 55px rgba(236, 72, 153, 0.42);
  font-size: 30px;
}

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

.detail-panel {
  margin-top: 26px;
  padding: 28px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.detail-panel p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 2;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-item {
  padding: 13px 14px;
  border-radius: 16px;
  color: #475569;
  background: #f8fafc;
}

.info-item strong {
  color: var(--ink);
}

.side-panel {
  padding: 22px;
}

.side-movie {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.side-movie img {
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
}

.side-movie h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.side-movie p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-empty {
  padding: 36px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.cta-band {
  border-radius: 30px;
  padding: 42px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-band p {
  max-width: 700px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-inner p,
.footer-inner a {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.is-hidden-card {
  display: none !important;
}

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-menu .header-search {
    display: flex;
    margin: 10px 0 14px;
  }

  .hero {
    height: 620px;
  }

  .hero-slide::after {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.28));
  }

  .hero-content {
    align-items: end;
    padding-bottom: 78px;
  }

  .section {
    padding: 44px 0;
  }

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

  .grid-4,
  .grid-3,
  .grid-2,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card a,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .horizontal-card .poster {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .rank-row img {
    width: 100%;
    height: 220px;
  }

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

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

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