:root {
  --sand-50: #faf8f3;
  --sand-100: #f4efe4;
  --sand-200: #eadfce;
  --sand-400: #c7ac8c;
  --sand-600: #a3744c;
  --sand-700: #885e40;
  --sand-800: #5b4030;
  --sand-900: #2d211b;
  --desert-50: #fff3e7;
  --desert-300: #f1b070;
  --desert-500: #ec944f;
  --desert-600: #d97935;
  --desert-700: #b5602a;
  --ink: #251b16;
  --muted: #745a4c;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(91, 64, 48, 0.16);
  --warm-shadow: 0 14px 36px rgba(236, 148, 79, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand-50) 0%, #ffffff 46%, var(--sand-50) 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.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 12px 26px rgba(45, 33, 27, 0.26);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.logo-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--desert-300);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--sand-100);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--sand-50);
  background: rgba(255, 255, 255, 0.12);
}

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

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 0 72px;
}

.hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 920px;
  color: var(--white);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--desert-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1,
.hero h2 {
  max-width: 850px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.46);
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--sand-100);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-badges,
.card-meta,
.hero-actions,
.inline-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-badges span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 11px;
  color: var(--white);
  background: rgba(136, 94, 64, 0.82);
  backdrop-filter: blur(10px);
}

.hero-badges span:first-child {
  background: var(--desert-600);
}

.hero-actions {
  margin-top: 26px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--desert-600);
  box-shadow: 0 12px 28px rgba(217, 121, 53, 0.34);
}

.btn-primary:hover {
  background: var(--desert-700);
  transform: translateY(-2px);
  box-shadow: var(--warm-shadow);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.32);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.search-strip {
  width: min(1280px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-strip h2,
.section-heading h2,
.detail-section h2,
.player-panel h2,
.info-card h2,
.footer-logo {
  margin: 0;
  color: var(--sand-900);
  font-weight: 900;
}

.search-strip p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-warm {
  background: linear-gradient(90deg, var(--desert-50), var(--sand-50));
}

.section-soft {
  background: var(--sand-100);
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading a {
  color: var(--desert-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(91, 64, 48, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand-800);
}

.card-media img,
.feature-media img,
.poster-card img,
.category-thumbs img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-media img,
.feature-card:hover .feature-media img {
  transform: scale(1.08);
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(217, 121, 53, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(45, 33, 27, 0.84);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.feature-body h3 {
  margin: 0;
  color: var(--sand-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-body h3 a:hover,
.feature-body h3 a:hover,
.info-card a:hover {
  color: var(--desert-700);
}

.card-body p {
  min-height: 48px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  gap: 8px;
  color: var(--sand-600);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--sand-50);
}

.card-tags {
  margin-top: 10px;
  color: var(--desert-700);
  font-size: 13px;
  line-height: 1.5;
}

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

.feature-card {
  display: grid;
  grid-template-columns: minmax(180px, 42%) 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-media {
  min-height: 300px;
  overflow: hidden;
  background: var(--sand-800);
}

.feature-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-body h3 {
  font-size: 28px;
}

.feature-body p {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.category-grid,
.category-panel-grid {
  display: grid;
  gap: 20px;
}

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

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

.category-tile,
.category-panel {
  display: block;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(91, 64, 48, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile span,
.category-panel h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--sand-900);
  font-size: 22px;
  font-weight: 900;
}

.category-tile em,
.category-panel p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 106px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sand-800);
}

.page-hero {
  padding: 88px 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 10%, rgba(236, 148, 79, 0.35), transparent 28%), linear-gradient(120deg, var(--sand-800), var(--sand-900));
}

.page-hero-compact {
  padding: 62px 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--sand-100);
  font-size: 18px;
  line-height: 1.8;
}

.inline-links {
  margin-top: 24px;
}

.inline-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--sand-50);
  background: rgba(255, 255, 255, 0.12);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(91, 64, 48, 0.10);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--sand-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--sand-200);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--sand-50);
  outline: none;
}

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

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

.detail-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 0 58px;
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--sand-100);
  font-weight: 700;
}

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

.detail-title-block h1 {
  max-width: 900px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.06;
}

.detail-title-block p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--sand-100);
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-panel,
.detail-section,
.info-card,
.poster-card {
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-panel,
.detail-section,
.info-card {
  padding: 24px;
}

.player-panel h2,
.detail-section h2,
.info-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--desert-600);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  font-size: 34px;
}

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

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  background: var(--sand-700);
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  aspect-ratio: 3 / 4;
}

.poster-card .btn-primary {
  width: calc(100% - 32px);
  margin: 16px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--sand-600);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--ink);
}

.site-footer {
  color: var(--sand-200);
  background: linear-gradient(180deg, var(--sand-800), var(--sand-900));
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 10px;
  color: var(--sand-50);
  font-size: 24px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--sand-400);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--sand-50);
  font-size: 18px;
}

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

.footer-links a:hover {
  color: var(--desert-300);
}

.footer-bottom {
  padding: 18px 16px;
  color: var(--sand-400);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

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

  .feature-grid,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--sand-700), var(--sand-800));
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

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

  .hero-content {
    padding-bottom: 76px;
  }

  .hero-arrow {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .hero-arrow:hover {
    transform: scale(1.04);
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .search-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-grid-four,
  .movie-grid-six,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-media {
    min-height: 260px;
  }

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

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

@media (max-width: 480px) {
  .movie-grid-four,
  .movie-grid-six,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .card-body p {
    min-height: 0;
  }
}
