:root {
  --purple: #9333ea;
  --pink: #db2777;
  --blue: #2563eb;
  --cyan: #00c2ff;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.48);
  --shadow: 0 22px 48px rgba(74, 44, 130, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 48%, #eff6ff 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  content: "";
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.34;
}

body::before {
  top: -10rem;
  left: -8rem;
  background: radial-gradient(circle, #d8b4fe 0%, rgba(216, 180, 254, 0) 68%);
}

body::after {
  right: -10rem;
  bottom: -12rem;
  background: radial-gradient(circle, #93c5fd 0%, rgba(147, 197, 253, 0) 68%);
}

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

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

button,
input,
select {
  font: inherit;
}

.glass-effect {
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.text-gradient {
  color: transparent;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.nebula-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe);
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 58px rgba(59, 30, 100, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-width: 0 0 1px;
  border-radius: 0;
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(240px, 430px) 1fr auto;
  gap: 1.2rem;
  align-items: center;
  max-width: 1280px;
  min-height: 76px;
  padding: 0 1.25rem;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: 1.35rem;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--blue));
  box-shadow: 0 0 28px rgba(147, 51, 234, 0.42);
}

.site-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-search-form input {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 1rem;
  color: var(--ink);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
}

.site-search-form input:focus {
  border-color: rgba(147, 51, 234, 0.62);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

.site-search-form button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.1rem;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.site-search-form button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--blue));
  box-shadow: 0 14px 28px rgba(147, 51, 234, 0.28);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.72);
}

.desktop-nav {
  display: flex;
  gap: 1.1rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0;
  font-weight: 800;
  color: #4b5563;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--purple);
}

.nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0.32rem 0;
  border-radius: 2px;
  background: #4b5563;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  padding: 0 1.25rem 1rem;
  margin: 0 auto;
}

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

.mobile-nav nav {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.mobile-nav a {
  padding: 0.78rem 1rem;
  font-weight: 800;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: #12091f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-position: center;
  background-size: cover;
  filter: blur(10px) brightness(0.64);
  transform: scale(1.08);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(9, 5, 18, 0.94), rgba(28, 16, 46, 0.7), rgba(9, 5, 18, 0.34)), linear-gradient(0deg, rgba(9, 5, 18, 0.72), rgba(9, 5, 18, 0.06));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: 3rem;
  align-items: end;
  max-width: 1280px;
  min-height: 72vh;
  padding: 5rem 1.25rem 5.5rem;
  margin: 0 auto;
}

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

.hero-kicker,
.section-kicker {
  margin: 0 0 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #facc15;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.02;
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 3.4rem);
  line-height: 1.12;
}

.hero p {
  max-width: 720px;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.72rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #5b21b6;
  border: 1px solid rgba(147, 51, 234, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: 1.8rem;
  display: flex;
  gap: 0.55rem;
  transform: translateX(50%);
}

.hero-dots button {
  width: 0.82rem;
  height: 0.82rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 2.3rem;
  background: #ffffff;
}

.page-section,
.content-page {
  max-width: 1280px;
  padding: 3.2rem 1.25rem 0;
  margin: 0 auto;
}

.content-page {
  padding-top: 2rem;
}

.compact-section {
  padding-top: 1.5rem;
}

.intro-section {
  padding-top: 3.8rem;
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.section-heading.centered {
  display: block;
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.article-section h2 {
  margin: 0;
  font-weight: 900;
  color: #1f2937;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.section-heading p,
.page-hero p,
.intro-section p,
.article-section p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.85;
}

.section-heading a {
  font-weight: 900;
  color: var(--purple);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: #ffffff;
  border-radius: var(--radius);
  background: #171026;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: brightness(0.7);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(15, 8, 30, 0.92), rgba(15, 8, 30, 0.08));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 1.15rem;
}

.category-tile span {
  padding-top: 7.2rem;
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p {
  padding-bottom: 1.1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 1.15rem;
}

.three-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(74, 44, 130, 0.12);
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.22), rgba(219, 39, 119, 0.18));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.26rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 900;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.88);
}

.movie-card-body {
  padding: 0.92rem;
}

.movie-card-title {
  display: -webkit-box;
  min-height: 2.6rem;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.3;
  color: #1f2937;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-title:hover {
  color: var(--purple);
}

.movie-card-meta {
  margin: 0.45rem 0;
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-text {
  display: -webkit-box;
  min-height: 4.35rem;
  margin: 0.55rem 0 0.75rem;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row span {
  min-height: 1.55rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  color: #6d28d9;
  background: rgba(243, 232, 255, 0.8);
}

.highlight-section {
  padding: 2rem;
  border-radius: 28px;
}

.ranking-strip,
.ranking-page-grid,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem;
}

.mini-card {
  position: relative;
  display: grid;
  gap: 0.45rem;
  overflow: hidden;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(74, 44, 130, 0.1);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.mini-card span:not(.rank-number) {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card small {
  color: var(--muted);
}

.rank-number {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  color: #ffffff;
  font-weight: 900;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.page-hero,
.detail-hero,
.article-section,
.filter-panel,
.category-overview-card {
  border-radius: 28px;
}

.page-hero {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.overview-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.category-overview-card {
  padding: 1.35rem;
}

.category-overview-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.category-overview-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 1.3rem;
  align-items: end;
  padding: 1.35rem;
  margin-top: 1.5rem;
}

.filter-panel h2 {
  margin: 0 0 0.35rem;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.filter-controls label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  color: #4b5563;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  color: var(--ink);
  border: 1px solid rgba(147, 51, 234, 0.16);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
}

.empty-message {
  padding: 3rem 1rem;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--purple);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
}

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

.detail-copy h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 840px;
  font-size: 1.06rem;
}

.detail-meta {
  margin: 1rem 0;
}

.big-tags {
  margin-bottom: 1.2rem;
}

.player-section {
  margin-top: 1.4rem;
}

.player-section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.8rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #05010a;
  box-shadow: 0 30px 70px rgba(5, 1, 10, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #05010a;
  object-fit: contain;
}

.player-start {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(4.4rem, 9vw, 6.2rem);
  height: clamp(4.4rem, 9vw, 6.2rem);
  color: #ffffff;
  border: 0;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.92), rgba(219, 39, 119, 0.92));
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
  margin-left: 0.2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.player-start.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.article-section {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.4rem;
}

.article-section h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.65rem;
}

.article-section h2 + p {
  margin-top: 0;
}

.article-section p + h2 {
  margin-top: 1.7rem;
}

.article-section p {
  margin-bottom: 0;
  white-space: pre-line;
}

.site-footer {
  max-width: 1280px;
  padding: 2rem 1.25rem;
  margin: 4rem auto 1.5rem;
  border-radius: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
  font-weight: 900;
}

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

.site-footer h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #4b5563;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--purple);
}

.copyright {
  padding-top: 1.2rem;
  margin-top: 1.2rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

@media (max-width: 1040px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .site-header-inner > .site-search-form {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .site-logo {
    font-size: 1.12rem;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding-top: 3rem;
    padding-bottom: 4.8rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .section-heading,
  .category-overview-header {
    display: block;
  }

  .section-heading a,
  .category-overview-header a {
    margin-top: 0.7rem;
  }

  .movie-grid,
  .ranking-strip,
  .ranking-page-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 430px) {
  .movie-grid,
  .ranking-strip,
  .ranking-page-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}
