* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: #1a1f2e;
  color: #f3f4f6;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(26, 31, 46, 0.78);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f9fafb;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 2.05rem;
  height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8a84d, #b87d15);
  color: #111827;
  font-size: 0.82rem;
  box-shadow: 0 0 28px rgba(212, 148, 31, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link,
.mobile-link {
  color: #d1d5db;
  border-radius: 0.75rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 0.65rem 0.9rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #e8a84d;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 0.5rem 1rem 1rem;
  background: rgba(26, 31, 46, 0.96);
}

.mobile-nav.open {
  display: grid;
  gap: 0.35rem;
}

.mobile-link {
  padding: 0.8rem 0.95rem;
}

.hero {
  min-height: 84vh;
  position: relative;
  display: flex;
  align-items: stretch;
  padding-top: 4.75rem;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(232, 168, 77, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(26, 31, 46, 0.98), rgba(26, 31, 46, 0.72) 45%, rgba(26, 31, 46, 0.26)),
    linear-gradient(0deg, #1a1f2e, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 2.25rem;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #e8a84d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #f9fafb;
  line-height: 1.03;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  letter-spacing: -0.05em;
}

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

.hero p,
.page-hero p,
.detail-lead {
  max-width: 760px;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.78rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #d4941f;
  color: #fff;
  box-shadow: 0 14px 32px rgba(212, 148, 31, 0.22);
}

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

.btn-primary:hover {
  background: #b87d15;
  box-shadow: 0 18px 38px rgba(212, 148, 31, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-card h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 1.18rem;
}

.hero-card-list {
  display: grid;
  gap: 0.75rem;
}

.hero-mini {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.hero-mini img {
  width: 5rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 0.8rem;
}

.hero-mini strong {
  display: block;
  color: #f9fafb;
  margin-bottom: 0.2rem;
}

.hero-mini span {
  color: #9ca3af;
  font-size: 0.86rem;
}

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

.hero-dots button {
  width: 2.25rem;
  height: 0.32rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
  background: #e8a84d;
}

.section-padding {
  padding: 4.5rem 0;
}

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

.section-head h2 {
  margin: 0;
  color: #f9fafb;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.25rem 0 0;
  color: #9ca3af;
  line-height: 1.7;
}

.section-link {
  color: #e8a84d;
  font-weight: 700;
  white-space: nowrap;
}

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

.movie-card,
.category-card,
.list-card,
.info-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: 1.2rem;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 168, 77, 0.42);
  box-shadow: 0 20px 60px rgba(212, 148, 31, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #243b53;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
}

.play-dot {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.rank-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d4941f;
  color: #fff;
  font-weight: 800;
}

.movie-card-body {
  padding: 1rem;
}

.movie-title {
  display: block;
  color: #f9fafb;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.movie-title:hover {
  color: #e8a84d;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #9ca3af;
  font-size: 0.88rem;
}

.movie-meta span,
.detail-meta span,
.tag-cloud span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.24rem 0.55rem;
}

.movie-card p,
.list-card p {
  color: #aeb7c5;
  font-size: 0.93rem;
  line-height: 1.62;
}

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

.category-card {
  min-height: 12.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.25rem;
  padding: 1.2rem;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(232, 168, 77, 0.13);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.35rem;
}

.category-card p {
  color: #aeb7c5;
  line-height: 1.7;
}

.list-stack {
  display: grid;
  gap: 0.9rem;
}

.list-card {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 1.15rem;
}

.list-poster {
  overflow: hidden;
  border-radius: 0.95rem;
  background: #243b53;
}

.list-poster img {
  width: 100%;
  height: 7.2rem;
  object-fit: cover;
}

.list-content {
  min-width: 0;
}

.list-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.list-head a {
  color: #f9fafb;
  font-size: 1.12rem;
  font-weight: 800;
}

.list-rank {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(212, 148, 31, 0.18);
  color: #e8a84d;
  font-weight: 800;
}

.page-hero {
  padding: 9rem 0 3.25rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 168, 77, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(36, 59, 83, 0.9), rgba(26, 31, 46, 0.96));
}

.compact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.search-panel {
  display: flex;
  gap: 0.75rem;
  max-width: 760px;
  margin-top: 1.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.search-panel input {
  width: 100%;
  min-height: 3rem;
  border: 0;
  outline: 0;
  border-radius: 0.75rem;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
}

.search-panel input::placeholder {
  color: #9ca3af;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: #9ca3af;
  font-size: 0.95rem;
}

.breadcrumbs a:hover {
  color: #e8a84d;
}

.detail-layout {
  padding-top: 7.5rem;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.player-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28));
}

.player-poster.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  position: relative;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(212, 148, 31, 0.92);
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 0 0 12px rgba(212, 148, 31, 0.16);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.25rem;
  background: #243b53;
}

.detail-title {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  color: #d1d5db;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

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

.info-panel h2,
.info-panel h3 {
  margin: 0 0 0.8rem;
  color: #f9fafb;
  font-size: 1.25rem;
}

.info-panel p {
  color: #d1d5db;
  line-height: 1.85;
}

.side-list {
  display: grid;
  gap: 0.75rem;
}

.side-link {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.side-link img {
  width: 4.8rem;
  height: 3.2rem;
  border-radius: 0.7rem;
  object-fit: cover;
}

.side-link strong {
  display: block;
  color: #f9fafb;
  line-height: 1.35;
}

.side-link span {
  color: #9ca3af;
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #2d374c;
}

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

.footer-brand p,
.footer-bottom {
  color: #9ca3af;
}

.footer-brand p {
  max-width: 540px;
  line-height: 1.8;
}

.footer-grid h2 {
  color: #f3f4f6;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

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

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

.footer-bottom {
  padding: 1.2rem 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1rem;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
}

.empty-state.show {
  display: block;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .detail-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

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

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

  .list-card {
    grid-template-columns: 8rem 1fr;
  }

  .list-poster img {
    height: 6rem;
  }
}

@media (max-width: 560px) {
  .container-custom {
    padding: 0 0.85rem;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-actions,
  .detail-actions,
  .search-panel {
    flex-direction: column;
  }

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

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

  .list-poster img {
    height: 12rem;
  }

  .page-hero {
    padding-top: 7rem;
  }
}
