:root {
  color-scheme: dark;
  --page-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.88);
  --panel-soft: rgba(30, 41, 59, 0.78);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(8, 145, 178, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: rgba(15, 23, 42, 0.82);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #00111a;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

.main-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-link {
  color: #cbd5e1;
  font-size: 0.96rem;
  font-weight: 650;
  transition: color 0.18s ease, transform 0.18s ease;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.82);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-main {
  padding-bottom: 4rem;
}

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

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.35) 68%, rgba(2, 6, 23, 0.84) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.1) 48%, rgba(2, 6, 23, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 2rem;
  padding: 5.5rem 1rem 4rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.13);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero h1 {
  margin-top: 1.2rem;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.gradient-text {
  background: linear-gradient(90deg, #f8fafc, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 1.25rem;
  color: #cbd5e1;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(2, 8, 23, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.9);
}

.button-primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.button-primary:hover {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.hero-panel {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-meta-card {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  transition: width 0.18s ease, background 0.18s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--cyan);
}

.section {
  padding: 3.4rem 0 0;
}

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

.section-kicker {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.32rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 880;
  letter-spacing: -0.04em;
}

.section-desc {
  color: var(--muted);
  max-width: 780px;
  line-height: 1.8;
  margin-top: 0.55rem;
}

.grid {
  display: grid;
  gap: 1.15rem;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel-bg);
  box-shadow: 0 20px 54px rgba(2, 8, 23, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: #0f172a;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.9) 100%);
}

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

.play-badge {
  left: 0.65rem;
  bottom: 0.65rem;
  width: 2.35rem;
  height: 2.35rem;
  color: white;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.35);
}

.score-badge {
  right: 0.55rem;
  top: 0.55rem;
  padding: 0.28rem 0.55rem;
  gap: 0.2rem;
  color: var(--yellow);
  font-size: 0.75rem;
  background: rgba(2, 6, 23, 0.76);
}

.rank-badge {
  left: 0.55rem;
  top: 0.55rem;
  min-width: 2rem;
  height: 2rem;
  color: #00111a;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.movie-info {
  padding: 0.95rem;
}

.movie-title {
  display: block;
  font-weight: 800;
  color: white;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.movie-line {
  margin-top: 0.45rem;
  color: #94a3b8;
  font-size: 0.83rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.66);
}

.category-card {
  min-height: 170px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.84);
  box-shadow: 0 20px 48px rgba(2, 8, 23, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 850;
  color: white;
}

.category-card p {
  margin-top: 0.65rem;
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.92rem;
}

.catalog-tools {
  margin: 1.2rem 0 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px 150px;
  gap: 0.75rem;
}

.input,
.select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  color: white;
  background: rgba(15, 23, 42, 0.86);
  padding: 0 0.9rem;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

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

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.34;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72)), linear-gradient(0deg, #020617, transparent 58%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  padding: 4rem 1rem 3rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.breadcrumbs {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.detail-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.detail-summary {
  margin-top: 1.1rem;
  max-width: 880px;
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 1.05rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
}

.player-section {
  padding-top: 2.5rem;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player video {
  object-fit: contain;
  background: black;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  border: 0;
  color: white;
  background: rgba(2, 6, 23, 0.32);
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.player-cover span {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.32);
  font-weight: 850;
}

.movie-player.is-playing .player-cover {
  display: none;
}

.content-panel {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel-bg);
  box-shadow: 0 20px 54px rgba(2, 8, 23, 0.18);
}

.content-panel h2 {
  font-size: 1.45rem;
  font-weight: 850;
  margin-bottom: 0.85rem;
}

.content-panel p {
  color: #cbd5e1;
  line-height: 1.95;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

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

.empty-state {
  display: none;
  margin-top: 1rem;
  padding: 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.76);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1180px) {
  .grid-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .grid-featured,
  .grid-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 4.2rem;
  }

  .hero-panel {
    max-width: 340px;
  }

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

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

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

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

  .catalog-tools {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 1.18rem;
  }

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

  .hero-content {
    padding-top: 3.2rem;
  }

  .hero-panel {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .grid-cards,
  .grid-featured,
  .grid-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .movie-info {
    padding: 0.75rem;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
