
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 48%, #f8f3ff 100%);
  color: #241332;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(147, 51, 234, 0.14);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #6d28d9;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.26);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #5b4b68;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #6d28d9;
  background: #f3e8ff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3e8ff;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #6d28d9;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(88, 28, 135, 0.12);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.32), transparent 36%), linear-gradient(135deg, #581c87, #7e22ce 42%, #111827);
  color: #ffffff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: 10%;
  top: 80px;
  background: rgba(255, 255, 255, 0.14);
  animation: float 7s ease-in-out infinite;
}

.hero::after {
  width: 150px;
  height: 150px;
  left: 8%;
  bottom: 50px;
  background: rgba(236, 72, 153, 0.22);
  animation: float 9s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.hero-carousel {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.eyebrow {
  margin: 0 0 12px;
  color: #a855f7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero .eyebrow {
  color: #f0abfc;
}

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

.hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(147, 51, 234, 0.18);
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.26);
}

.btn.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(147, 51, 234, 0.24);
}

.hero-art {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32);
  transform: rotate(1deg);
}

.hero-art img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

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

.hero-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-info span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 56px;
  background: #ffffff;
}

.main-wrap,
.page-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-wrap {
  padding: 44px 0 72px;
}

.section {
  padding: 64px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: #241332;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-title {
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.92), rgba(255, 255, 255, 0.86));
  box-shadow: 0 20px 50px rgba(88, 28, 135, 0.08);
}

.page-title p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #6b5878;
  line-height: 1.8;
}

.section-more {
  color: #7e22ce;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(88, 28, 135, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(88, 28, 135, 0.16);
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  height: 30px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.card-body {
  padding: 16px;
}

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

.meta-line {
  margin: 8px 0 0;
  color: #7c6b88;
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #5b4b68;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-row span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #7e22ce;
  background: #f3e8ff;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 160px;
  padding: 22px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 22px 44px rgba(147, 51, 234, 0.18);
  transition: transform 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

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

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 90px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(88, 28, 135, 0.07);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #9333ea, #ec4899);
}

.rank-thumb {
  width: 90px;
  height: 70px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3e8ff;
}

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

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

.rank-item p {
  margin: 0;
  color: #6b5878;
  line-height: 1.5;
}

.score {
  color: #7e22ce;
  font-size: 24px;
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(88, 28, 135, 0.08);
}

.search-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #eadcfb;
  border-radius: 999px;
  outline: none;
  color: #241332;
  background: #faf5ff;
}

.search-panel input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-pills button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #6d28d9;
  background: #f3e8ff;
  font-weight: 800;
}

.filter-pills button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #9333ea, #ec4899);
}

.movie-card.hidden-card,
.rank-item.hidden-card {
  display: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #7c6b88;
  font-size: 14px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  cursor: pointer;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.34);
  font-size: 34px;
  padding-left: 5px;
}

.player-overlay.hidden {
  display: none;
}

.detail-card,
.content-card,
.side-card {
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(88, 28, 135, 0.08);
}

.detail-card {
  padding: 26px;
  margin-top: 22px;
}

.detail-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

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

.content-card {
  margin-top: 22px;
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 16px;
  color: #51425f;
  font-size: 16px;
  line-height: 1.9;
}

.side-card {
  padding: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  background: #f3e8ff;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: #faf5ff;
}

.related-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 5px;
  color: #7c6b88;
  font-size: 13px;
}

.site-footer {
  padding: 42px 0;
  color: #6b5878;
  background: #ffffff;
  border-top: 1px solid rgba(147, 51, 234, 0.12);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.footer-inner strong {
  color: #6d28d9;
  font-size: 20px;
}

.footer-inner p {
  margin: 10px 0 0;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #7e22ce;
  background: #f3e8ff;
  font-size: 13px;
  font-weight: 700;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

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

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

  .hero-carousel {
    min-height: 820px;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-art img {
    height: 360px;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0 70px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    gap: 26px;
  }

  .hero-controls {
    bottom: -44px;
  }

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

  .section {
    padding: 42px 0;
  }

  .section-head,
  .footer-inner,
  .search-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .rank-item {
    grid-template-columns: 44px 70px 1fr;
  }

  .rank-item .score {
    grid-column: 3;
    font-size: 18px;
  }

  .rank-thumb {
    width: 70px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-art,
  .hero-art img {
    min-height: 310px;
    height: 310px;
  }

  .page-title,
  .detail-card,
  .content-card {
    padding: 20px;
    border-radius: 22px;
  }
}
