* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111827;
  background: #f8fafc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #f8fafc 38%, #fff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 45%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.22);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-size: 24px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  color: #db2777;
  background: #fdf2f8;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.header-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: none;
  padding: 10px 14px;
  color: #334155;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #fff;
  background: #ec4899;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.mobile-panel {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.sub-link {
  margin-left: 16px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: relative;
  min-height: 680px;
  display: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827, #312e81);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.1) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.66) 45%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.68) 0%, transparent 56%);
}

.hero-content {
  position: relative;
  max-width: 1240px;
  min-height: 680px;
  margin: 0 auto;
  padding: 92px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.48fr);
  gap: 42px;
  align-items: center;
  color: #fff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ec4899;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.35);
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.hero h1 {
  margin: 18px 0 18px;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 900;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-link,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 13px 30px;
  color: #fff;
  background: #ec4899;
  box-shadow: 0 16px 38px rgba(236, 72, 153, 0.34);
}

.primary-button:hover,
.section-link:hover,
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.32);
}

.ghost-button {
  padding: 12px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4.15;
  background: linear-gradient(135deg, #111827, #831843);
}

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

.hero-poster:hover img {
  transform: scale(1.04);
}

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

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

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

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 24px 0;
}

.content-section.last-section {
  padding-bottom: 76px;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-link,
.card-link {
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.08;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #312e81 48%, #831843);
}

.poster-wrap img,
.category-cover img,
.rank-row img,
.detail-cover img,
.related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover .category-cover img,
.related-card:hover .related-cover img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(236, 72, 153, 0.92);
  font-weight: 800;
  font-size: 13px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #db2777;
  font-size: 13px;
  font-weight: 800;
}

.card-title {
  margin: 7px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
}

.card-title.compact {
  font-size: 18px;
}

.card-title a:hover {
  color: #db2777;
}

.card-body p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.tag-row span {
  color: #64748b;
  background: #f1f5f9;
  backdrop-filter: none;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.category-chip {
  padding: 9px 16px;
  border-radius: 999px;
  color: #db2777;
  background: #fdf2f8;
  font-weight: 800;
  transition: all 0.2s ease;
}

.category-chip:hover {
  color: #fff;
  background: #ec4899;
  transform: translateY(-2px);
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-cover {
  display: block;
  min-height: 230px;
  background: linear-gradient(135deg, #111827, #831843);
  overflow: hidden;
}

.category-body {
  padding: 22px 20px 18px 0;
}

.category-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 24px;
}

.category-body p {
  margin: 0 0 14px;
  color: #64748b;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 24px 0 30px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  outline: none;
  padding: 12px 14px;
  color: #334155;
  background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-panel {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-row {
  display: grid;
  grid-template-columns: 50px 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: #fdf2f8;
}

.rank-no {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  font-weight: 900;
}

.rank-row img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  background: #111827;
}

.rank-info strong {
  display: block;
  color: #111827;
}

.rank-info small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.rank-score {
  color: #db2777;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #581c87 52%, #be185d);
  color: #fff;
}

.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px 24px 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  font-weight: 900;
}

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

.detail-hero {
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 24px 70px;
  color: #fff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.48;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.06);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64));
}

.detail-main {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding-top: 30px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4.08;
  background: linear-gradient(135deg, #111827, #831843);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-copy p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  z-index: 3;
}

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

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #ec4899;
  box-shadow: 0 16px 46px rgba(236, 72, 153, 0.42);
  cursor: pointer;
  font-size: 30px;
  padding-left: 7px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 0;
}

.article-panel,
.side-panel {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 20px;
  color: #475569;
  font-size: 17px;
}

.side-panel {
  padding: 22px;
  align-self: start;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.side-links a:hover {
  background: #fdf2f8;
  color: #db2777;
}

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

.related-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.related-cover {
  aspect-ratio: 3 / 4.05;
  background: linear-gradient(135deg, #111827, #831843);
  overflow: hidden;
}

.related-card h3 {
  margin: 0;
  padding: 14px 14px 4px;
  color: #111827;
  font-size: 17px;
}

.related-card p {
  margin: 0;
  padding: 0 14px 14px;
  color: #64748b;
  font-size: 13px;
}

.not-found {
  display: none;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  color: #64748b;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.not-found.is-visible {
  display: block;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 42px;
}

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

.site-footer p {
  max-width: 450px;
  margin: 12px 0 0;
  color: #94a3b8;
}

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

.footer-links a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

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

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

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

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

  .hero-content,
  .detail-main,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
  }

  .category-grid,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero,
  .hero-slide,
  .hero-content,
  .hero-bg img {
    min-height: 620px;
  }

  .hero-content {
    padding: 60px 18px 78px;
  }

  .content-section,
  .page-hero-inner,
  .detail-hero-inner,
  .player-section,
  .detail-content {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-title {
    font-size: 17px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 260px;
  }

  .category-body {
    padding: 20px;
  }

  .rank-row {
    grid-template-columns: 42px 54px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .detail-main {
    padding-top: 18px;
  }

  .detail-cover {
    max-width: 260px;
  }

  .article-panel {
    padding: 22px;
  }
}

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

  .hero-actions {
    display: grid;
  }
}
