:root {
  --dark-950: #070a12;
  --dark-900: #0d1320;
  --mirror-900: #132033;
  --mirror-800: #243b53;
  --realm-500: #d4941f;
  --realm-400: #e8a84d;
  --realm-300: #f3c879;
  --text-main: #f8fafc;
  --text-muted: #98a4b6;
  --line-soft: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 22px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 10%, rgba(232, 168, 77, 0.14), transparent 34rem),
    radial-gradient(circle at 84% 0%, rgba(40, 91, 150, 0.26), transparent 35rem),
    linear-gradient(180deg, #070a12 0%, #0d1320 52%, #070a12 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.container-custom {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--realm-400), #b87d15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.backdrop-glass,
.site-header,
.filter-panel,
.category-card,
.movie-card,
.detail-panel,
.player-shell,
.info-card {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.78);
}

.nav-shell {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--realm-500), #7c4a07);
  box-shadow: 0 14px 35px rgba(212, 148, 31, 0.25);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--realm-400), #f4d391);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: #d7dde8;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--realm-400);
}

.menu-button {
  display: none;
  color: var(--text-main);
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.98), rgba(7, 10, 18, 0.72) 45%, rgba(7, 10, 18, 0.35)),
    linear-gradient(180deg, rgba(7, 10, 18, 0.24), #070a12 98%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 43rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  align-items: center;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(232, 168, 77, 0.28);
  border-radius: 999px;
  color: var(--realm-300);
  background: rgba(212, 148, 31, 0.12);
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 42rem;
  margin: 0;
  color: #c4ccda;
  font-size: 1.08rem;
}

.hero-meta,
.meta-line,
.detail-meta,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--text-muted);
}

.hero-meta {
  margin: 1.35rem 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.85rem;
  padding: 0.75rem 1.35rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--realm-500), #a45d00);
  box-shadow: 0 18px 35px rgba(212, 148, 31, 0.23);
}

.btn-ghost {
  border: 1px solid var(--line-soft);
  color: #e8edf7;
  background: rgba(255, 255, 255, 0.075);
}

.btn-primary:hover,
.btn-ghost:hover,
.card-hover:hover,
.category-card:hover {
  transform: translateY(-0.25rem);
}

.hero-search {
  display: flex;
  width: min(100%, 38rem);
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding: 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.075);
}

.hero-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 2.8rem;
  color: var(--text-main);
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  background: rgba(8, 12, 20, 0.78);
  padding: 0 0.9rem;
  outline: none;
}

.hero-search button {
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

.hero-poster-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  background: var(--mirror-900);
}

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

.hero-poster-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px);
}

.hero-poster-caption strong {
  display: block;
  font-size: 1.15rem;
}

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

.hero-control,
.hero-dot {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.hero-control {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-heading h2,
.filter-panel h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.filter-panel p,
.page-title p,
.detail-title p,
.category-card p,
.card-body p,
.detail-text p,
.site-footer p {
  color: var(--text-muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 1.15rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(232, 168, 77, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #182336, #0d1320);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score,
.rank-num {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.score {
  top: 0.75rem;
  right: 0.75rem;
  min-width: 2.75rem;
  height: 2rem;
  border-radius: 999px;
  color: #0f172a;
  background: var(--realm-400);
}

.rank-num {
  top: 0.75rem;
  left: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  color: #fff;
  background: rgba(7, 10, 18, 0.72);
}

.card-body {
  padding: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 1.9rem;
  margin-bottom: 0.6rem;
}

.card-body h3 {
  margin: 0 0 0.55rem;
  font-size: 1.06rem;
  line-height: 1.35;
}

.card-body p {
  min-height: 3.2rem;
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
}

.meta-line {
  gap: 0.5rem;
  font-size: 0.86rem;
}

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

.category-card {
  border-radius: 1.2rem;
  padding: 1.2rem;
  min-height: 10rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  border-color: rgba(232, 168, 77, 0.34);
}

.category-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0 0 1rem;
}

.category-card span {
  color: var(--realm-400);
  font-weight: 800;
}

.page-title {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.page-title p {
  max-width: 48rem;
  margin: 1rem 0 0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-radius: 1.3rem;
  padding: 1.25rem;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 0.75rem;
}

.no-results {
  display: none;
  margin: 2rem 0;
  color: var(--text-muted);
  text-align: center;
}

.detail-hero {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--realm-400);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #000;
  box-shadow: var(--shadow-card);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 5rem;
  height: 5rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--realm-500), #7c4a07);
  box-shadow: 0 16px 34px rgba(212, 148, 31, 0.35);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
}

.detail-panel,
.info-card {
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.detail-title h1 {
  margin-top: 0.75rem;
}

.detail-title p {
  font-size: 1.05rem;
}

.detail-meta {
  margin: 1rem 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 1.1rem;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #182336, #0d1320);
}

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

.detail-text h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.detail-text p {
  margin: 0 0 1rem;
}

.info-list {
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.info-list strong {
  color: var(--text-main);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 10, 18, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-brand {
  font-size: 1.5rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  text-align: center;
  padding: 1.2rem;
}

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

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

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

  .hero-poster-card {
    display: none;
  }
}

@media (max-width: 760px) {
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    padding: 0.9rem;
    background: rgba(7, 10, 18, 0.96);
  }

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

  .nav-link {
    padding: 0.85rem;
    border-radius: 0.75rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-slider,
  .hero-content {
    min-height: 38rem;
  }

  .hero-search {
    flex-direction: column;
  }

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

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
