:root {
  --page-bg: #030712;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --gold: #facc15;
  --muted: #9ca3af;
  --text: #f9fafb;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 15%, rgba(250, 204, 21, 0.10), transparent 30rem),
    linear-gradient(180deg, #030712 0%, #111827 54%, #030712 100%);
  color: var(--text);
}

img {
  background: #111827;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
}

.site-nav {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8 48%, #facc15);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
  font-weight: 900;
  color: #fff;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-copy strong,
.footer-logo {
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #fff;
}

.logo-copy em {
  margin-top: 4px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #d1d5db;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 18px;
  background: rgba(3, 7, 18, 0.96);
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

main {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  margin-top: 72px;
}

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

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

.hero-slide img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.72) 42%, rgba(3, 7, 18, 0.18) 100%),
    linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.22) 55%, rgba(3, 7, 18, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 78vh;
  margin: 0 auto;
  padding: 88px 24px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #bfdbfe;
  font-size: 14px;
}

.hero-content h1 {
  margin-top: 20px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin-top: 22px;
  max-width: 660px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.action-row,
.category-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary,
.btn-ghost {
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

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

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #d1d5db;
  padding: 5px 10px;
  font-size: 12px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width .2s ease, background .2s ease;
}

.hero-dot.active {
  width: 28px;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 24px;
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-search {
  margin-top: 26px;
  width: min(100%, 620px);
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.hero-search input,
.filter-form input,
.filter-form select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.hero-search button,
.filter-form button {
  min-height: 44px;
  white-space: nowrap;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
}

.page-wrap,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.page-hero {
  margin-top: 72px;
  padding: 80px 24px 46px;
  background:
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.28), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 18, 0.88));
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #bfdbfe;
}

.page-hero h1,
.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 760px;
  color: #d1d5db;
  line-height: 1.85;
  margin-top: 18px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
}

.section-more {
  color: #93c5fd;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(17, 24, 39, 0.94);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.card-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 7, 18, 0.84));
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
  background: rgba(37, 99, 235, 0.82);
}

.rank-badge {
  right: 12px;
  background: rgba(250, 204, 21, 0.92);
  color: #111827;
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
}

.card-title:hover {
  color: #93c5fd;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin-top: 9px;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.6;
}

.card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-width: none;
}

.card-strip::-webkit-scrollbar {
  display: none;
}

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

.category-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.16), transparent 11rem);
  transition: transform .22s ease, border-color .22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.46);
}

.category-card strong {
  font-size: 22px;
  color: #fff;
}

.category-card p {
  color: #d1d5db;
  line-height: 1.65;
  margin-top: 10px;
}

.category-card span {
  margin-top: 16px;
  color: #93c5fd;
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.feature-panel,
.rank-panel,
.text-panel,
.player-panel {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.76);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

.feature-panel {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 420px;
}

.feature-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h3 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.05;
}

.feature-copy p {
  color: #d1d5db;
  line-height: 1.85;
  margin-top: 18px;
}

.rank-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition: background .2s ease, transform .2s ease;
}

.mini-card:hover {
  background: rgba(59, 130, 246, 0.16);
  transform: translateX(4px);
}

.mini-card img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.9);
  color: #111827;
  font-weight: 900;
}

.mini-card b {
  display: block;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card p {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.detail-hero {
  position: relative;
  min-height: 74vh;
  margin-top: 72px;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 74vh;
  margin: 0 auto;
  padding: 76px 24px 56px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-info p {
  max-width: 780px;
  color: #d1d5db;
  line-height: 1.9;
  font-size: 18px;
  margin-top: 20px;
}

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

.player-section {
  max-width: 1100px;
}

.player-panel {
  padding: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.58));
  color: #fff;
  z-index: 2;
}

.player-cover.hidden {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.45);
  font-size: 34px;
  padding-left: 5px;
}

.text-panel {
  padding: 30px;
}

.text-panel h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}

.text-panel p {
  color: #d1d5db;
  line-height: 1.95;
  margin-top: 12px;
}

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

.hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(3, 7, 18, 0.78);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.footer-inner p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #93c5fd;
}

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

  .feature-layout,
  .feature-panel,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding-top: 46px;
  }

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

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

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    padding: 0 16px;
  }

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

  .hero-content {
    padding: 60px 18px 76px;
  }

  .hero-search,
  .filter-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .page-wrap {
    padding: 52px 16px 0;
  }

  .page-hero {
    padding: 64px 16px 34px;
  }

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

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

  .feature-copy,
  .text-panel {
    padding: 22px;
  }

  .detail-content {
    gap: 26px;
    min-height: auto;
  }

  .detail-hero {
    min-height: auto;
  }

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

@media (max-width: 520px) {
  .logo-copy em {
    display: none;
  }

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

  .movie-card.compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-card.compact .card-poster {
    height: 100%;
  }

  .card-strip {
    grid-auto-columns: 78%;
  }
}
