
:root {
  color-scheme: dark;
  --page-bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(168, 85, 247, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --purple: #a855f7;
  --purple-light: #d8b4fe;
  --pink: #ec4899;
  --cyan: #38bdf8;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.46);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(236, 72, 153, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 78%);
}

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: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
}

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

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(216, 180, 254, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.84));
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.38);
}

.logo-text,
.footer-logo {
  background: linear-gradient(90deg, #d8b4fe, #f9a8d4, #93c5fd);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 20px;
}

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

.nav-link,
.mobile-nav a {
  color: #cbd5e1;
  border-radius: 14px;
  padding: 10px 14px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.header-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  outline: none;
  background: rgba(15, 23, 42, 0.74);
  color: var(--text);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 14px;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(216, 180, 254, 0.76);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
  background: rgba(15, 23, 42, 0.95);
}

.header-search button,
.filter-panel button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search button,
.primary-button {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 38px rgba(168, 85, 247, 0.34);
  font-weight: 800;
}

.secondary-button {
  padding: 0 18px;
  border: 1px solid rgba(216, 180, 254, 0.34);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 750;
}

.ghost-button {
  padding: 0 18px;
  color: #d8b4fe;
  background: transparent;
  font-weight: 750;
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.92);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 48px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 72px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -16% -16%;
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.28);
  opacity: 0.36;
  transform: scale(1.08);
}

.hero-overlay,
.detail-bg::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.64) 48%, rgba(2, 6, 23, 0.92) 100%),
    radial-gradient(circle at 80% 35%, rgba(168, 85, 247, 0.36), transparent 26rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #d8b4fe;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
}

.hero h2 {
  margin: 18px 0 0;
  color: #f9a8d4;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
}

.hero p,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9d5ff;
  font-size: 12px;
  padding: 6px 10px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  isolation: isolate;
  display: block;
  border: 1px solid rgba(216, 180, 254, 0.28);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.78), rgba(236, 72, 153, 0.48), rgba(56, 189, 248, 0.38));
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.section,
.page-hero,
.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.text-link {
  color: #d8b4fe;
  font-weight: 800;
}

.search-section {
  padding-bottom: 20px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
}

.filter-panel button {
  align-self: end;
  min-height: 46px;
  padding: 0 18px;
  background: rgba(168, 85, 247, 0.22);
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  border-color: rgba(216, 180, 254, 0.42);
  box-shadow: 0 24px 80px rgba(168, 85, 247, 0.16);
  transform: translateY(-6px);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.88) 100%);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 56px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.66));
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(216, 180, 254, 0.36);
  box-shadow: 0 24px 78px rgba(168, 85, 247, 0.14);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  top: 12px;
  left: 12px;
  min-width: 58px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-copy em {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: #d8b4fe;
}

.movie-card p {
  display: -webkit-box;
  min-height: 68px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-grid .movie-card p {
  min-height: 45px;
  -webkit-line-clamp: 2;
}

.rank-section {
  position: relative;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 70px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-item:hover {
  border-color: rgba(216, 180, 254, 0.36);
  background: rgba(30, 41, 59, 0.76);
  transform: translateX(4px);
}

.rank-number {
  color: #f9a8d4;
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 70px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  font-style: normal;
}

.rank-score {
  color: #fde68a;
  font-size: 20px;
  font-weight: 900;
}

.page-hero {
  margin-top: 34px;
  padding: 74px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.12)),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #c4b5fd;
  font-size: 14px;
}

.breadcrumb strong {
  color: #ffffff;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.15);
  opacity: 0.44;
  transform: scale(1.1);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 38px;
  align-items: center;
  padding: 54px 0 70px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 254, 0.26);
  border-radius: 32px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video,
.player-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.movie-video {
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #020617;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(1.16);
}

.player-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.3);
  filter: blur(34px);
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.54);
  font-size: 34px;
  line-height: 1;
}

.player-status {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.6);
  padding: 8px 14px;
  color: #ffffff;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-tags {
  margin-top: 22px;
}

.detail-tags a:hover {
  border-color: rgba(216, 180, 254, 0.5);
  background: rgba(168, 85, 247, 0.24);
}

.content-card {
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}

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

.content-card h2:not(:first-child) {
  margin-top: 34px;
}

.content-card p {
  color: #dbeafe;
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.info-list div {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 6px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1fr;
  gap: 30px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-inner p {
  max-width: 500px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #cbd5e1;
  padding: 8px 12px;
}

.footer-links a:hover {
  border-color: rgba(216, 180, 254, 0.38);
  color: #ffffff;
}

[data-filter-card].is-hidden {
  display: none;
}

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

  .menu-button {
    display: block;
  }

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

@media (max-width: 900px) {
  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: 720px;
    gap: 28px;
    padding-top: 64px;
  }

  .hero-poster {
    max-width: 360px;
    transform: none;
  }

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

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

  .page-hero {
    padding: 42px 26px;
  }

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

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

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

@media (max-width: 620px) {
  .header-inner,
  .section,
  .page-hero,
  .detail-layout,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .logo-text {
    font-size: 18px;
  }

  .mobile-nav.open {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    min-height: 760px;
    padding-bottom: 84px;
  }

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

  .section {
    padding: 48px 0;
  }

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

  .filter-panel,
  .category-grid,
  .movie-grid,
  .rank-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 60px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .detail-layout {
    padding-top: 34px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
