* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  backdrop-filter: blur(18px);
}

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #db2777, #7c3aed);
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(124, 58, 237, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

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

.brand-text em {
  margin-top: 3px;
  color: #8b5cf6;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 15px;
  color: #475569;
  border-radius: 999px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 14px 26px rgba(139, 92, 246, 0.24);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 2px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #1e1b4b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(219, 39, 119, 0.92), rgba(124, 58, 237, 0.84) 48%, rgba(15, 23, 42, 0.74));
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 600px;
  display: flex;
  align-items: center;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fdf2f8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 16px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-panel p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.75;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 20px 42px rgba(124, 58, 237, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.36);
}

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

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

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

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

.main-section {
  padding: 72px 0 0;
}

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

.section-title .eyebrow {
  color: #db2777;
}

.section-title h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 700px;
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: #7c3aed;
  font-weight: 700;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(124, 58, 237, 0.13);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(124, 58, 237, 0.14);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.movie-meta {
  color: #9333ea;
  font-size: 13px;
  font-weight: 700;
}

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

.movie-card p {
  min-height: 72px;
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
}

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

.tag-row span,
.filter-pill {
  padding: 6px 10px;
  color: #6d28d9;
  background: #f5f3ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rank-number {
  color: #db2777;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: #f5f3ff;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.rank-info em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  padding: 72px 0 48px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.56), transparent 32%), linear-gradient(135deg, #312e81, #7c3aed 55%, #db2777);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin: 0 0 28px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.22);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 34px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  background: #020617;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.68), rgba(30, 27, 75, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #db2777;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
  font-size: 34px;
  transform: translateZ(0);
}

.player-caption {
  padding: 24px;
  color: #fff;
}

.player-caption h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

.detail-card,
.text-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.detail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #f5f3ff;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #475569;
}

.detail-meta span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-meta b {
  color: #111827;
}

.text-panel {
  margin-top: 24px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.95;
}

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

.compact .movie-card-body {
  padding: 14px;
}

.compact h3 {
  font-size: 16px;
}

.compact p {
  min-height: 0;
  font-size: 13px;
}

.site-footer {
  margin-top: 86px;
  padding: 44px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.no-results {
  display: none;
  padding: 28px;
  color: #64748b;
  text-align: center;
  background: #fff;
  border-radius: 24px;
}

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

  .menu-button {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 540px;
  }

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

  .rank-layout,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-card {
    max-width: 440px;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .footer-inner,
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    height: 64px;
  }

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

  .hero,
  .hero-content {
    min-height: 500px;
  }

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

  .hero-panel p {
    font-size: 16px;
  }

  .main-section {
    padding-top: 48px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 40px 64px 1fr;
  }

  .rank-row img {
    width: 64px;
    height: 86px;
  }

  .player-caption,
  .detail-card,
  .text-panel {
    padding: 18px;
  }
}
