:root {
  --sand-50: #faf8f3;
  --sand-100: #f5f0e6;
  --sand-200: #eadcc8;
  --sand-300: #d8bf9a;
  --sand-500: #a3744c;
  --sand-600: #885e40;
  --sand-700: #6f4d38;
  --sand-900: #2e2118;
  --desert-100: #fdf2e0;
  --desert-300: #f5c08d;
  --desert-400: #f1b070;
  --desert-500: #ec944f;
  --desert-600: #d97935;
  --desert-700: #b5602a;
  --ink: #2a1d16;
  --muted: #7a6658;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(136, 94, 64, 0.18);
  --warm-shadow: 0 4px 20px rgba(236, 148, 79, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand-50), var(--desert-100) 42%, var(--sand-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--sand-50);
  background: linear-gradient(90deg, var(--sand-700), var(--desert-700));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sand-900);
  background: linear-gradient(135deg, var(--desert-300), var(--desert-500));
  box-shadow: var(--warm-shadow);
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
}

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

.hero-carousel {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: var(--white);
  background: var(--sand-900);
}

.hero-slide {
  display: none;
  min-height: 76vh;
  position: relative;
  isolation: isolate;
}

.hero-slide.active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.46;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 75% 18%, rgba(241, 176, 112, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(34, 20, 13, 0.96) 0%, rgba(69, 38, 23, 0.84) 48%, rgba(20, 10, 6, 0.62) 100%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76vh;
  padding: 78px 24px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 52px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--desert-100);
  background: rgba(236, 148, 79, 0.24);
  border: 1px solid rgba(245, 192, 141, 0.32);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-line,
.filter-row,
.quick-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--desert-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.quick-actions a,
.text-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.primary-btn,
.quick-actions a:first-child {
  color: var(--sand-900);
  background: linear-gradient(135deg, var(--desert-300), var(--desert-500));
  box-shadow: var(--warm-shadow);
}

.primary-btn:hover,
.quick-actions a:hover,
.text-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(181, 96, 42, 0.22);
}

.ghost-btn,
.quick-actions a,
.more-link,
.text-btn {
  color: var(--sand-50);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sand-700), var(--desert-500));
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 78px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--desert-400);
}

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: min(1120px, calc(100% - 36px));
  padding: 13px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 10, 7, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.hero-category-strip span {
  white-space: nowrap;
  color: var(--desert-300);
  font-weight: 800;
}

.hero-category-strip a {
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.section-block,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.page-shell {
  padding-top: 34px;
}

.intro-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-copy p,
.category-card p,
.card-body p,
.category-overview-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.quick-actions a,
.more-link,
.text-btn {
  color: var(--sand-900);
  background: var(--desert-100);
  border: 1px solid rgba(181, 96, 42, 0.14);
}

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

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

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

.compact-grid,
.wide-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(163, 116, 76, 0.18);
  box-shadow: 0 10px 30px rgba(136, 94, 64, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(241, 176, 112, 0.45), transparent 34%),
    linear-gradient(145deg, var(--sand-700), var(--desert-600));
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
}

.card-body {
  padding: 16px;
}

.card-body.compact {
  padding: 13px;
}

.card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
}

.card-title:hover {
  color: var(--desert-700);
}

.card-meta {
  margin: 8px 0;
  color: var(--sand-500);
  font-size: 12px;
  font-weight: 700;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.tag-line span {
  color: var(--sand-700);
  background: var(--sand-100);
  border-color: rgba(163, 116, 76, 0.12);
}

.hot-panel,
.search-panel,
.detail-side,
.detail-article,
.category-overview-card,
.page-hero,
.detail-hero {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(163, 116, 76, 0.16);
  box-shadow: 0 12px 34px rgba(136, 94, 64, 0.1);
}

.hot-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.hot-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.hot-list {
  display: grid;
  gap: 10px;
}

.hot-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--sand-50);
  border: 1px solid rgba(163, 116, 76, 0.12);
}

.hot-link:hover {
  background: var(--desert-100);
}

.list-rank {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--desert-600);
  font-weight: 850;
}

.hot-title {
  font-weight: 800;
}

.hot-meta {
  color: var(--muted);
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(241, 176, 112, 0.3), transparent 46%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(163, 116, 76, 0.16);
  box-shadow: 0 10px 28px rgba(136, 94, 64, 0.1);
  transition: all 0.22s ease;
}

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

.category-card > span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card div {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--sand-600);
  font-size: 13px;
}

.page-hero {
  margin-bottom: 28px;
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(236, 148, 79, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.8);
}

.rank-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 192, 141, 0.36), transparent 40%),
    linear-gradient(135deg, var(--sand-700), var(--desert-700));
}

.rank-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.search-panel {
  margin: 26px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 410px);
  gap: 18px;
  align-items: center;
}

.search-panel h2 {
  margin: 0 0 6px;
}

.search-panel p {
  margin: 0;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(163, 116, 76, 0.2);
  border-radius: 999px;
  outline: 0;
  color: var(--ink);
  background: var(--sand-50);
}

.search-box input:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(236, 148, 79, 0.14);
}

.filter-row {
  grid-column: 1 / -1;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(163, 116, 76, 0.16);
  border-radius: 999px;
  color: var(--sand-700);
  background: var(--sand-50);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  background: var(--desert-600);
}

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

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-card > div {
  padding: 22px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-700), var(--desert-600));
}

.category-thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 22px;
  color: var(--sand-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--desert-700);
}

.detail-shell {
  max-width: 1180px;
}

.detail-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(241, 176, 112, 0.28), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.detail-meta-line {
  margin: 16px 0;
  color: var(--sand-600);
  font-weight: 800;
}

.detail-tags span {
  background: var(--desert-100);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--sand-700), var(--desert-600));
  box-shadow: var(--shadow);
}

.player-section {
  margin: 28px 0;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #070402;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070402;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  padding-left: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sand-900);
  background: linear-gradient(135deg, var(--desert-300), var(--desert-500));
  box-shadow: 0 16px 34px rgba(236, 148, 79, 0.34);
  font-size: 34px;
}

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

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

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: #4a382d;
  line-height: 1.9;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

.detail-side dt {
  color: var(--sand-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--ink);
}

.block-btn {
  width: 100%;
}

.related-block {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 40px;
  color: var(--sand-100);
  background: linear-gradient(135deg, var(--sand-900), var(--sand-700));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  font-size: 22px;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

  .hot-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-content,
  .detail-hero,
  .search-panel,
  .intro-block,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-content {
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-arrow {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .nav-shell,
  .section-block,
  .page-shell,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-body p,
  .tag-line {
    display: none;
  }

  .page-hero,
  .detail-hero,
  .search-panel,
  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-category-strip {
    bottom: 14px;
  }

  .hero-dots {
    bottom: 74px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
