:root {
  --sand-50: #fdfaf7;
  --sand-100: #f9f3ed;
  --sand-200: #f2e6d9;
  --sand-300: #e8d4bd;
  --earth-100: #ede9e4;
  --earth-300: #c2b4a3;
  --earth-500: #8c735f;
  --earth-600: #77624f;
  --earth-700: #635144;
  --earth-800: #53453a;
  --earth-900: #473c33;
  --desert-50: #fef9f3;
  --desert-100: #fdf2e5;
  --desert-400: #f2ad6b;
  --desert-600: #dd6f1f;
  --desert-700: #b75617;
  --white: #ffffff;
  --black: #000000;
  --shadow-md: 0 8px 20px rgba(71, 60, 51, 0.12);
  --shadow-lg: 0 18px 36px rgba(71, 60, 51, 0.16);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--earth-900);
  background: var(--sand-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 247, 0.92);
  border-bottom: 1px solid var(--sand-200);
  backdrop-filter: blur(14px);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--earth-900);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-600), var(--desert-400));
  box-shadow: 0 10px 24px rgba(221, 111, 31, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--earth-700);
  font-weight: 650;
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--desert-600);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sand-100);
  color: var(--earth-800);
  cursor: pointer;
}

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

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--earth-700);
  font-weight: 650;
}

.hero {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--earth-900);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 0 96px;
  color: var(--white);
}

.hero-inner {
  max-width: 820px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 28px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--desert-600);
  box-shadow: 0 16px 28px rgba(221, 111, 31, 0.28);
}

.button-primary:hover {
  background: var(--desert-700);
}

.button-soft {
  color: var(--earth-900);
  background: rgba(255, 255, 255, 0.82);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

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

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

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

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

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

.section-stack {
  padding: 70px 0;
}

.section-gap {
  margin-top: 76px;
}

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

.section-title {
  margin: 0;
  color: var(--earth-900);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--earth-600);
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  color: var(--desert-600);
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 28px 0 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.search-panel input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--white);
  background: transparent;
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.light-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 20px 0 34px;
  padding: 10px;
  border: 1px solid var(--sand-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.light-search input,
.light-search select {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--earth-800);
  background: transparent;
}

.light-search select {
  border-left: 1px solid var(--sand-200);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

.movie-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--earth-900);
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.09);
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: var(--earth-900);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover h3 {
  color: var(--desert-600);
}

.card-line {
  margin: 0 0 14px;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--earth-500);
  font-size: 12px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--earth-700);
  background: var(--sand-100);
  font-size: 12px;
  font-weight: 700;
}

.feature-band {
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--desert-50), var(--sand-100));
}

.earth-band {
  padding: 40px;
  border-radius: 32px;
  background: var(--earth-100);
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
}

.scroll-row > * {
  width: 310px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-hero {
  padding: 62px 0;
  background: linear-gradient(90deg, var(--desert-100), var(--sand-100));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--earth-700);
  font-size: 18px;
  line-height: 1.75;
}

.category-tile {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-tile h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-tile p {
  margin: 0;
  color: var(--earth-600);
  line-height: 1.65;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 180px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: var(--desert-600);
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

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

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--black);
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  cursor: pointer;
  z-index: 2;
}

.player-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding-left: 6px;
  border-radius: 999px;
  background: var(--desert-600);
  box-shadow: 0 20px 42px rgba(221, 111, 31, 0.36);
  font-size: 34px;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sand-200);
  color: var(--earth-600);
  font-size: 14px;
}

.content-block {
  margin-top: 22px;
}

.content-block h2 {
  margin: 0 0 12px;
  color: var(--earth-900);
  font-size: 22px;
}

.content-block p {
  margin: 0;
  color: var(--earth-700);
  line-height: 1.82;
}

.review-box {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--desert-50), var(--sand-100));
}

.sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.sidebar h2 {
  margin: 0 0 18px;
}

.side-link {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-200);
}

.side-link:last-child {
  border-bottom: 0;
}

.side-link img {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
}

.side-link h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.35;
}

.side-link p {
  margin: 0;
  color: var(--earth-600);
  font-size: 12px;
  line-height: 1.5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  color: var(--earth-600);
  font-size: 14px;
}

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

.site-footer {
  color: var(--earth-100);
  background: var(--earth-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.site-footer p,
.site-footer a {
  color: var(--earth-300);
  line-height: 1.7;
}

.site-footer a:hover {
  color: var(--desert-400);
}

.footer-title {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--earth-300);
  font-size: 13px;
}

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

.empty-state {
  display: none;
  padding: 48px;
  border-radius: 24px;
  color: var(--earth-600);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.empty-state.is-visible {
  display: block;
}

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

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

  .sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    padding: 54px 0 92px;
  }

  .hero-arrow {
    display: none;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-item {
    grid-template-columns: 44px 116px 1fr;
  }

  .rank-item .button {
    grid-column: 2 / -1;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .search-panel,
  .light-search {
    grid-template-columns: 1fr;
  }

  .light-search select {
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid var(--sand-200);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .feature-band,
  .earth-band,
  .detail-card {
    padding: 22px;
    border-radius: 24px;
  }

  .rank-item {
    grid-template-columns: 38px 1fr;
  }

  .rank-cover {
    grid-column: 1 / -1;
  }

  .rank-item .button {
    grid-column: 1 / -1;
  }

  .side-link {
    grid-template-columns: 96px 1fr;
  }

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