:root {
  --sand-50: #fdfaf7;
  --sand-100: #f9f3ed;
  --sand-200: #eadbca;
  --earth-900: #473c33;
  --earth-800: #5d4f43;
  --earth-700: #746255;
  --earth-600: #8a7465;
  --earth-400: #b7a89b;
  --earth-100: #efe6dc;
  --desert-700: #b75617;
  --desert-600: #dd6f1f;
  --desert-500: #ee8a3a;
  --desert-100: #fdf2e5;
  --white: #ffffff;
  --black: #111111;
  --shadow-soft: 0 18px 45px rgba(71, 60, 51, 0.12);
  --shadow-card: 0 10px 30px rgba(71, 60, 51, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 18px rgba(71, 60, 51, 0.10);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-text {
  font-size: 26px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--desert-600), var(--desert-500));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(221, 111, 31, 0.32);
}

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

.nav-links a,
.mobile-nav a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--sand-100);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--earth-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 20px;
  color: var(--earth-700);
  font-weight: 650;
}

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

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--earth-900);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.hero-slide.is-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: linear-gradient(to top, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.48), rgba(17, 17, 17, 0.10));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 90px 0 86px;
  color: var(--white);
}

.hero-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--desert-600);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(221, 111, 31, 0.30);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-light {
  background: var(--white);
  color: var(--earth-900);
  box-shadow: var(--shadow-card);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: var(--white);
  font-size: 28px;
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-content {
  padding: 70px 0;
}

.section-block {
  margin-bottom: 78px;
}

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

.section-title {
  margin: 0;
  color: var(--earth-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--earth-600);
  font-size: 16px;
  line-height: 1.8;
}

.gradient-panel {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--desert-100), var(--sand-100));
}

.earth-panel {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
  background: var(--earth-100);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--earth-100), var(--sand-200));
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.03));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--earth-900);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: var(--desert-600);
  color: var(--white);
}

.card-content {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3em;
  color: var(--earth-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 10px 0 14px;
  color: var(--earth-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--earth-600);
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--sand-100);
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--desert-100);
  color: var(--desert-700);
  font-size: 12px;
  font-weight: 700;
}

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

.scroll-row .movie-card {
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--earth-900), var(--earth-700));
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-card:hover img {
  opacity: 0.32;
  transform: scale(1.08);
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.page-hero h1 {
  margin: 0;
  color: var(--earth-900);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.07em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.6fr));
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid rgba(234, 219, 202, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(71, 60, 51, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--earth-700);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(238, 138, 58, 0.14);
}

.is-filtered-out {
  display: none !important;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-number {
  color: var(--desert-600);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.ranking-item img {
  width: 150px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--earth-100);
}

.ranking-item h2 {
  margin: 0 0 8px;
  color: var(--earth-900);
  font-size: 20px;
  font-weight: 900;
}

.ranking-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--earth-600);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-wrap {
  padding: 38px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--earth-600);
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow-soft);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--desert-600);
  color: var(--white);
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(221, 111, 31, 0.42);
}

.detail-card,
.side-card {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--earth-900);
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sand-200);
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--earth-700);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--earth-900);
  font-size: 23px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: var(--earth-700);
  font-size: 16px;
  line-height: 1.95;
}

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

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

.side-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 950;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--sand-100);
}

.related-item img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--earth-100);
}

.related-item h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: var(--earth-900);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item span {
  color: var(--earth-600);
  font-size: 12px;
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 38px;
  padding: 52px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--earth-300, #d8cfc5);
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--desert-500);
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 22px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

  .ranking-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

  .brand-text {
    font-size: 22px;
  }

  .hero-content {
    padding: 70px 0 76px;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 54px 112px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .ranking-item img {
    width: 112px;
    height: 72px;
  }

  .ranking-number {
    font-size: 20px;
  }

  .detail-wrap {
    padding-top: 24px;
  }

  .related-item {
    grid-template-columns: 98px 1fr;
  }

  .related-item img {
    width: 98px;
    height: 64px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
