:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: rgba(255, 255, 255, 0.78);
  --line: rgba(236, 72, 153, 0.16);
  --shadow: 0 18px 45px rgba(88, 28, 135, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff1f2 0%, #faf5ff 46%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(88, 28, 135, 0.08);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-weight: 700;
  color: #374151;
}

.desktop-nav a,
.mobile-panel a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--pink);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.nav-search input,
.large-search input,
.mobile-panel input {
  border: 0;
  outline: 0;
  background: transparent;
  height: 42px;
  padding: 0 14px;
  min-width: 220px;
  color: var(--text);
}

.nav-search button,
.large-search button,
.mobile-panel button {
  border: 0;
  height: 42px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel form {
  display: flex;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  max-width: 1180px;
  min-height: 620px;
  margin: 26px auto 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fb7185, #a855f7, #60a5fa);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.72fr);
  gap: 32px;
  align-items: center;
  padding: 70px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 135, 0.72), rgba(17, 24, 39, 0.18)), var(--hero-image), linear-gradient(135deg, #fb7185, #a855f7, #60a5fa);
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-content {
  max-width: 680px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ec4899;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-label {
  color: #fbcfe8;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.86;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--pink-dark);
  background: #fdf2f8;
  border-color: #fbcfe8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 16px 32px rgba(236, 72, 153, 0.32);
}

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

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

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

.hero-poster span,
.play-mark,
.rank-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.42);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

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

.quick-panel,
.content-section,
.page-hero,
.detail-hero,
.player-section {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.quick-card,
.page-hero,
.highlight-strip,
.detail-content article,
.player-copy {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.quick-card {
  padding: 26px;
}

.quick-card span {
  color: var(--pink);
  font-weight: 900;
}

.quick-card h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.quick-card p {
  color: var(--muted);
  line-height: 1.8;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--pink-dark);
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.035em;
}

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

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(88, 28, 135, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  height: 258px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.movie-card.compact .card-cover {
  height: 210px;
}

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

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

.play-mark {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(236, 72, 153, 0.9);
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.82);
}

.card-body {
  padding: 18px;
}

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

.card-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  min-height: 50px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

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

.highlight-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9));
  color: #fff;
}

.highlight-strip .section-kicker,
.highlight-strip p {
  color: rgba(255, 255, 255, 0.82);
}

.highlight-strip h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.highlight-strip p {
  margin: 12px 0 0;
  line-height: 1.85;
}

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

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

.category-showcase a {
  min-height: 116px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(88, 28, 135, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-showcase a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(88, 28, 135, 0.14);
}

.category-showcase strong {
  display: block;
  color: var(--pink-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.category-showcase span {
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 46px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.05em;
}

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

.large-search {
  display: flex;
  max-width: 720px;
  margin-top: 20px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.large-search input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 22px;
}

.large-search button {
  height: 54px;
  padding: 0 28px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--pink-dark);
  background: #fff;
  box-shadow: 0 8px 18px rgba(88, 28, 135, 0.08);
}

.pagination a.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 120px 70px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(88, 28, 135, 0.09);
}

.rank-cover {
  position: relative;
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

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

.rank-index {
  font-size: 42px;
  font-weight: 950;
  color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
}

.rank-info h2 {
  margin: 0;
  font-size: 24px;
}

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

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
  margin-top: 30px;
  padding: 52px;
  overflow: hidden;
  color: #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(88, 28, 135, 0.72), rgba(17, 24, 39, 0.26)), var(--detail-image), linear-gradient(135deg, #fb7185, #a855f7, #60a5fa);
  background-size: cover;
  background-position: center;
}

.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.player-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  min-height: 420px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.25);
}

.video-shell video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), rgba(15, 23, 42, 0.82));
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.34);
}

.player-start strong {
  font-size: 20px;
}

.video-shell.is-playing .player-start {
  display: none;
}

.player-copy {
  padding: 30px;
}

.player-copy h2 {
  margin: 0;
  font-size: 30px;
}

.player-copy p {
  color: var(--muted);
  line-height: 1.8;
}

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

.detail-content article {
  padding: 30px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  color: #4b5563;
  line-height: 2;
  font-size: 16px;
}

.search-results:empty::before {
  content: "输入关键词后显示相关影片";
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.site-footer {
  margin-top: 70px;
  padding: 44px 22px 28px;
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.9), rgba(237, 233, 254, 0.9), rgba(219, 234, 254, 0.9));
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #4b5563;
}

.copyright {
  max-width: 1180px;
  margin: 28px auto 0;
  color: #6b7280;
  font-size: 14px;
}

.cover-image.is-hidden {
  opacity: 0;
}

@media (max-width: 1024px) {
  .nav-search,
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-hero,
  .player-section,
  .detail-content,
  .quick-panel {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 48px 34px;
  }

  .hero-poster {
    justify-self: start;
    width: min(260px, 72vw);
  }

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

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

@media (max-width: 720px) {
  .brand-text {
    font-size: 21px;
  }

  .hero-slider {
    margin: 16px 12px 0;
    min-height: 720px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 42px 24px 70px;
    align-content: center;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p,
  .detail-info p {
    font-size: 16px;
  }

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

  .quick-panel,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section {
    margin-top: 20px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-hero,
  .detail-hero,
  .highlight-strip,
  .quick-card {
    padding: 26px;
    border-radius: 24px;
  }

  .detail-hero {
    margin-left: 12px;
    margin-right: 12px;
  }

  .detail-poster {
    width: 210px;
  }

  .movie-grid,
  .category-showcase,
  .category-showcase.large,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-cover {
    height: 280px;
  }

  .highlight-strip {
    display: block;
  }

  .highlight-strip .btn {
    margin-top: 18px;
  }

  .rank-row {
    grid-template-columns: 86px 46px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .rank-cover {
    height: 112px;
  }

  .rank-index {
    font-size: 28px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .rank-info p {
    display: none;
  }

  .large-search {
    border-radius: 22px;
    display: grid;
  }

  .large-search button {
    width: 100%;
  }

  .video-shell,
  .video-shell video {
    min-height: 260px;
  }
}
