:root {
  --sand-50: #faf8f3;
  --sand-100: #f5f0e6;
  --sand-200: #ebe2cd;
  --sand-300: #ddc9a3;
  --sand-500: #c49a5c;
  --sand-600: #b07d44;
  --sand-700: #8f6235;
  --sand-800: #6d4a29;
  --sand-900: #4a3218;
  --dune-50: #fdf6ed;
  --dune-100: #fae9d1;
  --dune-300: #ebb76a;
  --dune-500: #d97c1e;
  --dune-600: #c05f14;
  --dune-700: #9c4613;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(74, 50, 24, .14);
  --soft-shadow: 0 12px 30px rgba(74, 50, 24, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sand-900);
  background: radial-gradient(circle at top left, rgba(217, 124, 30, .14), transparent 34rem), var(--sand-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(235, 226, 205, .85);
  box-shadow: 0 8px 24px rgba(74, 50, 24, .06);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
  box-shadow: 0 12px 26px rgba(217, 124, 30, .26);
  font-size: 14px;
}

.brand-name {
  font-size: 22px;
  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: 22px;
  color: var(--sand-700);
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--dune-500);
  transition: width .2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

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

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--sand-800);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 12px;
  flex-wrap: wrap;
}

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

.mobile-nav .nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sand-100);
}

.hero {
  padding: 30px 0 18px;
}

.hero-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: var(--sand-900);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 25%, rgba(250, 233, 209, .28), transparent 24rem), linear-gradient(0deg, rgba(74, 50, 24, .74), rgba(74, 50, 24, .10));
}

.hero-content,
.hero-poster,
.hero-dots {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--dune-100);
  background: rgba(255, 255, 255, .16);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero h1 {
  margin: 22px 0 18px;
  color: var(--white);
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 30px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  padding: 6px 10px;
  color: var(--sand-800);
  background: var(--dune-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.section-link,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-primary {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: var(--dune-500);
  box-shadow: 0 14px 28px rgba(217, 124, 30, .34);
}

.btn-secondary {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
}

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

.hero-poster {
  border: 10px solid rgba(255, 255, 255, .20);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}

.hero-dot.is-active {
  background: var(--dune-300);
}

.main-wrap,
.page-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  margin-top: 54px;
}

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

.section-heading .eyebrow {
  color: var(--dune-700);
  background: var(--dune-100);
}

.section-heading h1,
.section-heading h2 {
  margin: 12px 0 8px;
  color: var(--sand-900);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--sand-700);
}

.section-link {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  color: var(--dune-700);
  background: var(--dune-100);
}

.search-panel {
  margin: 26px 0 28px;
  padding: 20px;
  border: 1px solid var(--sand-200);
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: grid;
  gap: 10px;
  color: var(--sand-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--sand-300);
  border-radius: 15px;
  outline: none;
  padding: 0 16px;
  color: var(--sand-900);
  background: var(--white);
  font-size: 16px;
}

.search-box input:focus {
  border-color: var(--dune-500);
  box-shadow: 0 0 0 4px rgba(217, 124, 30, .12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  color: var(--sand-700);
  background: var(--sand-100);
}

.filter-chip.is-active {
  color: var(--white);
  background: var(--dune-500);
}

.search-empty {
  display: none;
  margin: 18px 0 0;
  color: var(--sand-700);
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(235, 226, 205, .95);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand-200);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .32s ease;
}

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(74, 50, 24, .78);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.movie-card-title,
.compact-title {
  display: block;
  color: var(--sand-900);
  font-weight: 900;
}

.movie-card-title {
  min-height: 48px;
  font-size: 17px;
  line-height: 1.4;
}

.movie-card-title:hover,
.compact-title:hover,
.category-card:hover h2 {
  color: var(--dune-600);
}

.movie-card-meta,
.movie-card-desc,
.compact-card p,
.info-row,
.detail-summary p,
.detail-review p {
  color: var(--sand-700);
}

.movie-card-meta {
  margin: 8px 0 0;
  font-size: 13px;
}

.movie-card-desc {
  min-height: 66px;
  margin: 10px 0 14px;
  font-size: 14px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--sand-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-no {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-600));
  font-weight: 900;
}

.compact-poster {
  overflow: hidden;
  border-radius: 14px;
}

.compact-poster img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.compact-card p {
  margin: 5px 0 0;
  font-size: 14px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--sand-200);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(245, 240, 230, .86));
  box-shadow: var(--soft-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

.category-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

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

.page-hero {
  margin: 32px 0 24px;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--sand-900), var(--sand-700));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 12px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--sand-700);
  font-weight: 700;
}

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

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

.detail-main,
.detail-side,
.detail-summary,
.detail-review {
  border: 1px solid var(--sand-200);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-main {
  overflow: hidden;
}

.player {
  position: relative;
  background: #000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .18));
}

.player-start span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 124, 30, .92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
  font-size: 30px;
}

.player.is-playing .player-start {
  display: none;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-tags {
  margin: 18px 0 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.info-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sand-100);
  font-weight: 700;
}

.info-row strong {
  color: var(--sand-900);
}

.detail-summary,
.detail-review {
  padding: 24px;
  margin-top: 20px;
}

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

.detail-side {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.related-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--sand-50);
}

.related-item img {
  width: 56px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  font-size: 15px;
}

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

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

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, var(--sand-100), var(--sand-200));
  border-top: 1px solid var(--sand-200);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 26px;
}

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

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--sand-700);
}

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--sand-300);
  color: var(--sand-600);
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 46px;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-shell {
    min-height: 690px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 28px;
  }

  .hero-poster {
    max-width: 210px;
    margin: 0 auto;
    order: -1;
  }

  .hero-dots {
    left: 28px;
    bottom: 28px;
  }

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

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

  .compact-card {
    grid-template-columns: auto 68px minmax(0, 1fr);
  }

  .page-hero {
    padding: 30px;
  }

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