:root {
  --color-bg: #020617;
  --color-bg-soft: #0f172a;
  --color-bg-card: #111827;
  --color-line: rgba(148, 163, 184, 0.18);
  --color-cyan: #06b6d4;
  --color-cyan-bright: #22d3ee;
  --color-orange: #fb923c;
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-soft: #cbd5e1;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-card: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.glass-effect {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 28, 0.98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.23);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 26px 80px rgba(6, 182, 212, 0.16);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  color: #00111a;
  box-shadow: 0 14px 38px rgba(6, 182, 212, 0.32);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.58);
  color: var(--color-text);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-cyan-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: white;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.3);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.desktop-nav a,
.mobile-nav a {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--color-soft);
  transition: background 0.25s ease, color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: white;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: white;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
}

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

.hero-carousel {
  position: relative;
  min-height: 720px;
  background: #020617;
}

.hero-slides {
  position: relative;
  min-height: 720px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.73), rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 45%, rgba(2, 6, 23, 0.94) 100%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  gap: 44px;
  align-items: center;
  min-height: 720px;
  padding-block: 120px 90px;
}

.hero-copy {
  max-width: 780px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  color: var(--color-cyan-bright);
  font-size: clamp(24px, 3vw, 42px);
}

.hero-copy p,
.page-hero p,
.section-heading p,
.movie-card-body p,
.detail-content p,
.poster-card p,
.site-footer p {
  color: var(--color-soft);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.movie-meta span {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  padding: 6px 10px;
  color: #bff6ff;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-poster {
  position: relative;
  min-height: 520px;
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  padding: 10px 16px;
  color: white;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  font-size: 26px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.hero-dots button.is-active {
  background: var(--color-cyan-bright);
}

.section-block {
  padding-block: 72px;
}

.muted-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0));
}

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

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p {
  max-width: 760px;
  margin: 0;
}

.section-link {
  color: var(--color-cyan-bright);
  font-weight: 800;
}

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

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

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.75);
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.group:hover .video-card-thumb {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.88));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  background: rgba(34, 211, 238, 0.92);
  padding: 7px 12px;
  color: #00111a;
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  background: rgba(251, 146, 60, 0.96);
  padding: 7px 10px;
  color: #1f1304;
  text-align: center;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.movie-card-body h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-card .movie-card-body p {
  -webkit-line-clamp: 2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.category-card span {
  color: var(--color-cyan-bright);
  font-weight: 900;
}

.category-card strong {
  color: var(--color-soft);
  line-height: 1.7;
}

.ranking-panel {
  position: sticky;
  top: 98px;
  border-radius: var(--radius-card);
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0 0 18px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.25s ease;
}

.rank-row:hover {
  background: rgba(34, 211, 238, 0.08);
}

.rank-row img {
  width: 86px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong,
.rank-row small {
  display: block;
}

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

.rank-row small {
  margin-top: 4px;
  color: var(--color-muted);
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  padding: 20px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--color-cyan-bright);
  font-weight: 900;
}

.search-box input,
.filter-controls select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.74);
  color: white;
  outline: none;
}

.search-box input {
  min-height: 52px;
  padding: 0 16px;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filter-controls select {
  min-height: 46px;
  padding: 0 12px;
}

.filter-status {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.page-main {
  padding-top: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 120px 70px;
  background:
    radial-gradient(circle at 74% 10%, rgba(34, 211, 238, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
}

.compact-hero {
  padding-block: 110px 56px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: center;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.hero-stat-card {
  border-radius: 26px;
  padding: 28px;
}

.hero-stat-card strong,
.hero-stat-card span {
  display: block;
}

.hero-stat-card strong {
  margin-bottom: 12px;
  font-size: 30px;
}

.hero-stat-card span {
  color: var(--color-soft);
  line-height: 1.7;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 24px;
}

.category-overview-head h2 {
  margin: 0 0 12px;
}

.category-overview-head p {
  margin: 0 0 18px;
  color: var(--color-soft);
  line-height: 1.75;
}

.mini-poster-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mini-poster-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.detail-main {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12), transparent 36rem);
}

.detail-hero {
  padding-block: 104px 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-cyan-bright);
}

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

.detail-primary {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
  color: white;
  text-align: center;
}

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

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.95);
  color: #00111a;
  font-size: 28px;
  box-shadow: 0 18px 46px rgba(6, 182, 212, 0.38);
}

.player-overlay strong {
  max-width: 78%;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-content {
  padding: clamp(22px, 4vw, 36px);
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 54px);
}

.detail-content h2 {
  margin: 28px 0 12px;
  color: white;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 20px;
}

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

.poster-card div,
.side-card {
  padding: 22px;
}

.poster-card h2,
.side-card h2 {
  margin: 0 0 12px;
}

.side-card {
  border-radius: var(--radius-card);
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--color-muted);
}

.side-card dd {
  margin: 0;
  color: white;
}

.side-card a {
  color: var(--color-cyan-bright);
}

.related-section {
  padding-top: 36px;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-block: 38px;
  background: rgba(2, 6, 23, 0.85);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 680px;
  margin: 0;
}

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

.footer-links a {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  padding: 10px 14px;
  color: var(--color-soft);
}

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

  .hero-content,
  .split-layout,
  .page-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .hero-poster {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel,
  .hero-slides,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-block: 110px 88px;
  }

  .hero-controls {
    bottom: 24px;
  }

  .section-block {
    padding-block: 48px;
  }

  .section-heading,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding-block: 96px 48px;
  }
}

@media (max-width: 520px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-tags span,
  .detail-tags span,
  .movie-meta span {
    font-size: 11px;
  }

  .rank-row {
    grid-template-columns: 72px 1fr;
  }

  .rank-row img {
    width: 72px;
    height: 46px;
  }
}
