:root {
  color-scheme: dark;
  --site-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.86);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --amber: #facc15;
}

html {
  scroll-behavior: smooth;
}

.site-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.24);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 42%, rgba(34, 211, 238, 0.08), transparent 24rem),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 44%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 48px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p,
.section-head p,
.hot-sidebar p,
.category-card p,
.detail-article p,
.site-footer p {
  color: #cbd5e1;
  line-height: 1.8;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-stats span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.category-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn,
.section-link {
  color: #e2e8f0;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.category-card a:hover span {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  font-size: 34px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: #67e8f9;
}

.site-section {
  padding: 72px 0;
}

.section-glow {
  position: relative;
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 240px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 62%);
  pointer-events: none;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.hot-sidebar h2,
.detail-article h2,
.detail-side h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  max-width: 660px;
}

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

.category-pills a,
.category-card a,
.hot-sidebar,
.filter-panel,
.detail-side,
.detail-article {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.category-pills a {
  min-height: 132px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-pills a:hover,
.movie-card:hover,
.category-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-pills strong,
.category-card h2 {
  display: block;
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.category-pills span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.filter-panel {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 26px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 52px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.64);
  border: 1px solid var(--line);
}

.search-box input {
  width: 100%;
  outline: none;
  color: #fff;
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #022c22;
  background: #67e8f9;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card[hidden] {
  display: none;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
  opacity: 0.82;
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.76);
}

.rank-badge {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: #020617;
  background: var(--amber);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  min-height: 48px;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #94a3b8;
  line-height: 1.65;
  font-size: 13px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.tag-row span {
  padding: 4px 7px;
  font-size: 11px;
}

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

.hot-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 28px;
}

.hot-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.hot-list-item {
  display: grid;
  grid-template-columns: 28px 56px 1fr;
  gap: 12px;
  align-items: center;
  color: #e2e8f0;
  text-decoration: none;
}

.hot-list-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.list-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #020617;
  background: #67e8f9;
  font-weight: 900;
}

.hot-list-item strong,
.hot-list-item em {
  display: block;
}

.hot-list-item em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.inner-page {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.72), rgba(15, 23, 42, 0.92));
}

.compact-hero {
  padding: 72px 0;
}

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

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

.category-card a {
  display: block;
  min-height: 300px;
  padding: 20px;
  border-radius: 28px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

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

.category-card span {
  margin-top: 18px;
  color: #fff;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.detail-hero {
  min-height: 600px;
  display: flex;
  align-items: end;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb,
.breadcrumb-sep {
  color: #bae6fd;
  text-decoration: none;
  font-weight: 800;
}

.detail-main {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-top: 28px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
}

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

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.player-section {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.68)),
    rgba(2, 6, 23, 0.36);
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-large {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.48);
}

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

.detail-article,
.detail-side {
  border-radius: 28px;
  padding: 28px;
}

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

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0 0 22px;
}

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

.detail-side dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 34px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

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

  .hero-section {
    height: auto;
    min-height: 720px;
  }

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

  .hero-content {
    padding: 72px 0 96px;
  }

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

  .hot-sidebar {
    position: static;
  }

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

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

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

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-control {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .site-section {
    padding: 48px 0;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 14px;
    min-height: 42px;
  }

  .card-body p {
    display: none;
  }

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

  .detail-article,
  .detail-side,
  .filter-panel,
  .hot-sidebar {
    padding: 18px;
    border-radius: 22px;
  }
}
