:root {
  --sand-50: #fdfaf7;
  --sand-100: #f9f3ed;
  --sand-200: #f2e6d9;
  --sand-300: #e8d4bd;
  --earth-100: #ede9e4;
  --earth-300: #c2b4a3;
  --earth-700: #635144;
  --earth-900: #473c33;
  --desert-50: #fff6ed;
  --desert-500: #ec8b3b;
  --desert-600: #dd6f1f;
  --desert-700: #b85a18;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 8px 24px rgba(71, 60, 51, 0.08);
  --shadow-md: 0 14px 35px rgba(71, 60, 51, 0.12);
  --shadow-lg: 0 24px 65px rgba(71, 60, 51, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  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(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.nav-bar {
  min-height: 68px;
  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;
  letter-spacing: -0.02em;
}

.brand {
  font-size: 1.55rem;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--desert-500), var(--desert-700));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(221, 111, 31, 0.28);
  font-size: 0.9rem;
}

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

.desktop-nav a,
.mobile-nav a,
.footer-grid a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 16px 16px;
  border-top: 1px solid var(--sand-200);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05));
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  width: min(820px, 100%);
  margin: 18px 0 14px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  width: min(760px, 100%);
  margin: 0 0 26px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  opacity: 0.92;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--desert-600);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(221, 111, 31, 0.26);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--desert-700);
  box-shadow: 0 16px 36px rgba(221, 111, 31, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s 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: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.main-space {
  padding: 64px 0 84px;
}

.section-block {
  margin: 0 0 74px;
}

.section-block.soft {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--desert-50), var(--sand-100));
}

.section-block.earth {
  padding: 34px;
  border-radius: 28px;
  background: var(--earth-100);
}

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

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--earth-900);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head h1,
.page-hero h1,
.detail-title h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--earth-700);
  max-width: 740px;
}

.section-link {
  color: var(--desert-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--earth-100), var(--sand-300));
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--desert-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--desert-600);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta span,
.meta-pills span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--earth-700);
  font-size: 0.78rem;
  font-weight: 750;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--earth-900);
  font-size: 1.08rem;
  line-height: 1.25;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--earth-700);
  font-size: 0.93rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card-large .card-poster {
  aspect-ratio: 16 / 10;
}

.movie-card-large h3 {
  font-size: 1.28rem;
}

.movie-card-horizontal .card-link {
  display: grid;
  grid-template-columns: 38% 1fr;
}

.movie-card-horizontal .card-poster {
  aspect-ratio: auto;
  min-height: 210px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 310px);
  gap: 22px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--sand-200);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--white), var(--sand-100));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.category-tile p {
  margin: 0;
  color: var(--earth-700);
}

.category-tile span {
  margin-top: 22px;
  color: var(--desert-600);
  font-weight: 850;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--sand-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(236, 139, 59, 0.16);
}

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

.detail-hero {
  padding: 44px 0 54px;
  background: linear-gradient(135deg, var(--earth-900), #2d251f);
  color: var(--white);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.breadcrumbs a:hover {
  color: var(--white);
}

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

.detail-title h1 {
  color: var(--white);
}

.detail-title p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  background: var(--earth-700);
  box-shadow: var(--shadow-lg);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.player-wrap {
  margin-top: -34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
  box-shadow: var(--shadow-lg);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.player-cover span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--desert-600);
  font-size: 2rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.player-box.is-playing .player-cover {
  display: none;
}

.content-card {
  margin-top: 30px;
  padding: 32px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0 0 18px;
  color: var(--earth-700);
}

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

.info-item {
  padding: 16px;
  border-radius: 18px;
  background: var(--sand-100);
}

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

.info-item span {
  color: var(--earth-700);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0 34px;
}

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

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--earth-300);
}

.footer-grid p {
  margin: 0;
}

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

.footer-grid li + li {
  margin-top: 9px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--earth-700);
  font-size: 0.92rem;
}

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

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

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

  .detail-cover {
    max-width: 360px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    padding: 36px 0 72px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid,
  .footer-grid,
  .filter-panel,
  .info-list {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-link {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .card-poster {
    aspect-ratio: 16 / 10;
    min-height: auto;
  }

  .section-block.soft,
  .section-block.earth,
  .content-card {
    padding: 24px;
  }

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

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

  .brand {
    font-size: 1.28rem;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .main-space {
    padding: 44px 0 60px;
  }

  .card-body {
    padding: 15px;
  }
}
