
:root {
  color-scheme: light;
  --site-bg: #faf8f3;
  --card-bg: #ffffff;
  --sand-50: #faf8f3;
  --sand-100: #f5f0e6;
  --sand-200: #ebe2cd;
  --sand-300: #ddc9a3;
  --sand-500: #c49a5c;
  --sand-700: #8f6235;
  --sand-800: #6d4a29;
  --sand-900: #4a3218;
  --dune-400: #e19838;
  --dune-500: #d97c1e;
  --dune-600: #c05f14;
  --shadow-soft: 0 18px 45px rgba(74, 50, 24, 0.12);
  --shadow-card: 0 12px 32px rgba(74, 50, 24, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(225, 152, 56, 0.16), transparent 30%),
    linear-gradient(180deg, #faf8f3 0%, #fff 45%, #faf8f3 100%);
}

img.is-missing {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(74, 50, 24, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sand-900);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--dune-500), var(--sand-700));
  box-shadow: 0 12px 24px rgba(217, 124, 30, 0.28);
}

.brand-name {
  font-size: 19px;
  background: linear-gradient(90deg, var(--dune-600), var(--sand-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: var(--sand-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--dune-600);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sand-100);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--sand-800);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--sand-200);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 20px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--sand-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-slide img.is-missing + .hero-overlay {
  background:
    radial-gradient(circle at 70% 20%, rgba(217, 124, 30, 0.42), transparent 30%),
    linear-gradient(130deg, rgba(74, 50, 24, 1), rgba(143, 98, 53, 0.92));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 21, 11, 0.92) 0%, rgba(34, 21, 11, 0.72) 40%, rgba(34, 21, 11, 0.22) 100%),
    linear-gradient(0deg, rgba(34, 21, 11, 0.78) 0%, rgba(34, 21, 11, 0.10) 50%);
}

.hero-content {
  position: absolute;
  left: max(20px, calc((100vw - 1280px) / 2 + 20px));
  top: 50%;
  transform: translateY(-50%);
  width: min(720px, calc(100% - 40px));
  color: #fff;
}

.eyebrow {
  color: #f5d4a3;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 22px;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

.hero-desc {
  font-size: 18px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
}

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

.hero-tags span,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
  box-shadow: 0 18px 36px rgba(217, 124, 30, 0.32);
}

.btn-secondary {
  color: var(--sand-900);
  background: var(--sand-100);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(74, 50, 24, 0.16);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-title h2,
.page-title h1 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  color: var(--sand-900);
  margin: 0;
}

.section-title p,
.page-title p {
  color: var(--sand-700);
  margin-top: 8px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(74, 50, 24, 0.16);
}

.poster-wrap {
  display: block;
  position: relative;
  height: 260px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 124, 30, 0.38), transparent 26%),
    linear-gradient(145deg, var(--sand-900), var(--sand-700));
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
  z-index: 0;
}

.poster-wrap img:not(.is-missing) {
  position: relative;
  z-index: 1;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
  box-shadow: 0 12px 22px rgba(217, 124, 30, 0.34);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--sand-900);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-info h3 a:hover {
  color: var(--dune-600);
}

.movie-meta {
  color: var(--sand-700);
  font-size: 13px;
  margin: 0 0 8px;
}

.movie-desc {
  min-height: 45px;
  color: var(--sand-800);
  font-size: 14px;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--sand-800);
  background: var(--sand-100);
}

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

.category-card {
  display: block;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--sand-50));
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(221, 201, 163, 0.58);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-weight: 900;
  color: var(--sand-900);
}

.category-card p {
  color: var(--sand-700);
  margin-bottom: 16px;
}

.filter-panel {
  margin: 0 0 30px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--sand-700);
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sand-200);
  color: var(--sand-900);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--dune-400);
  box-shadow: 0 0 0 4px rgba(217, 124, 30, 0.12);
}

.empty-message {
  display: none;
  padding: 30px;
  text-align: center;
  border-radius: 20px;
  color: var(--sand-700);
  background: var(--sand-100);
}

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

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

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

.play-overlay-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, rgba(217, 124, 30, 0.92), rgba(192, 95, 20, 0.94));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-shell.playing .play-overlay-button {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.detail-card {
  padding: 28px;
}

.breadcrumb {
  color: var(--sand-700);
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--dune-600);
}

.detail-card h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  margin: 0 0 16px;
}

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

.detail-meta .meta-pill {
  color: var(--sand-900);
  background: var(--sand-100);
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.detail-section p {
  color: var(--sand-800);
  white-space: pre-line;
}

.side-card {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.side-card h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sand-900), var(--sand-700));
}

.related-item strong {
  display: block;
  color: var(--sand-900);
  margin-bottom: 4px;
}

.related-item span {
  color: var(--sand-700);
  font-size: 13px;
}

.search-results {
  min-height: 240px;
}

.load-hint {
  color: var(--sand-700);
  padding: 24px;
  border-radius: 20px;
  background: var(--sand-100);
}

.site-footer {
  margin-top: 60px;
  background: var(--sand-900);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand .brand-name {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-name {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-carousel {
    min-height: 600px;
  }

  .hero-content {
    top: 52%;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

  .poster-wrap {
    height: 240px;
  }

  .section-title {
    display: block;
  }
}
