
: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;
  --black: #000000;
  --shadow: 0 18px 50px rgba(74, 50, 24, 0.16);
  --soft-shadow: 0 10px 30px rgba(74, 50, 24, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--sand-900);
  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%;
}

.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.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(74, 50, 24, 0.08);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--dune-600), var(--sand-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 8px 20px rgba(217, 124, 30, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--sand-700);
  font-weight: 700;
}

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

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--dune-600);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--sand-100);
  color: var(--sand-800);
  font-size: 18px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--sand-200);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-900), var(--dune-700));
}

.hero-slide {
  min-height: 650px;
  display: none;
  position: relative;
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(235, 183, 106, 0.34), transparent 30%),
    linear-gradient(180deg, transparent, rgba(74, 50, 24, 0.84));
}

.hero-inner {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 72px 0 78px;
}

.hero-copy {
  color: #ffffff;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--dune-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--dune-100);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.hero-desc {
  margin: 22px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  background: var(--dune-100);
  color: var(--dune-700);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-primary,
.btn-ghost,
.search-inline button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 0;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.search-inline button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 12px 28px rgba(217, 124, 30, 0.34);
}

.btn-primary:hover,
.search-inline button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 124, 30, 0.42);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sand-200), var(--dune-300));
}

.poster-glow {
  position: absolute;
  inset: auto 18% -30px 18%;
  height: 60px;
  background: rgba(235, 183, 106, 0.6);
  filter: blur(30px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-control {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.hero-control.active {
  background: var(--dune-500);
  border-color: var(--dune-500);
}

.quick-search-panel,
.section-block,
.detail-content-grid {
  margin-top: 38px;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.quick-search-panel h2,
.section-head h2,
.hot-board h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 0;
  color: var(--sand-900);
  line-height: 1.2;
}

.quick-search-panel p,
.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--sand-700);
}

.search-inline,
.filter-bar,
.search-page-box {
  display: flex;
  gap: 12px;
}

.search-inline input,
.filter-bar input,
.filter-bar select,
.search-page-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--sand-200);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--sand-50);
  color: var(--sand-900);
  outline: none;
}

.search-inline input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-page-box input:focus {
  border-color: var(--dune-500);
  box-shadow: 0 0 0 4px rgba(217, 124, 30, 0.12);
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-more,
.text-link {
  color: var(--dune-600);
  font-weight: 900;
}

.category-grid,
.movie-grid,
.overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand-200);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(74, 50, 24, 0.9));
}

.category-tile span,
.category-tile em {
  position: absolute;
  left: 16px;
  z-index: 1;
  color: #ffffff;
}

.category-tile span {
  bottom: 38px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  bottom: 15px;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.category-tile:hover img {
  transform: scale(1.06);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-100), var(--dune-100));
}

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

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

.play-mask {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 13px;
  font-weight: 900;
}

.poster-link:hover .play-mask {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--dune-600);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.movie-card-body {
  padding: 13px 14px 15px;
}

.movie-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.32;
  color: var(--sand-900);
}

.movie-meta,
.movie-one-line {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--sand-700);
}

.movie-one-line {
  min-height: 42px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.hot-board {
  position: sticky;
  top: 90px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.hot-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hot-board-head a {
  color: var(--dune-600);
  font-weight: 900;
  font-size: 13px;
}

.hot-board ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.hot-board li a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--sand-50);
}

.hot-board b {
  color: var(--dune-600);
}

.hot-board span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.hot-board em {
  font-style: normal;
  color: var(--sand-600);
  font-size: 12px;
}

.page-hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 12% 25%, rgba(217, 124, 30, 0.18), transparent 24%),
    linear-gradient(135deg, var(--sand-100), var(--dune-50));
  overflow: hidden;
}

.page-hero.soft {
  background:
    radial-gradient(circle at 90% 20%, rgba(217, 124, 30, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, var(--sand-100));
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  font-size: 17px;
}

.filter-bar {
  max-width: 780px;
  margin-top: 24px;
}

.filter-bar select {
  max-width: 180px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.overview-cover {
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand-100);
}

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

.category-overview-card h2 {
  margin: 4px 0 8px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand-100);
}

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

.rank-cover b {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--dune-600);
}

.rank-row h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.rank-row p {
  color: var(--sand-700);
}

.search-page-box {
  max-width: 720px;
  margin-top: 24px;
}

.search-page-box input {
  min-height: 54px;
  font-size: 16px;
}

.search-result-info {
  margin-bottom: 18px;
  color: var(--sand-700);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--sand-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-size: cover;
  background-position: center;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(235, 183, 106, 0.24), transparent 30%),
    linear-gradient(180deg, transparent, rgba(74, 50, 24, 0.96));
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  padding: 74px 0 62px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sand-200), var(--dune-300));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.breadcrumb a {
  color: #ffffff;
}

.breadcrumb em {
  font-style: normal;
}

.detail-copy h1 {
  max-width: 850px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-meta span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 13px;
}

.detail-tags {
  margin-bottom: 28px;
}

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

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
}

.player-top h2 {
  margin: 0;
  font-size: 18px;
}

.player-top span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

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

.player-start {
  position: absolute;
  inset: 52px 0 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

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

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  font-size: 28px;
}

.player-start strong {
  font-size: 18px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.content-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card p {
  color: var(--sand-700);
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.info-card dd {
  margin: -8px 0 0;
  color: var(--sand-900);
}

.site-footer {
  margin-top: 60px;
  padding: 42px 0 24px;
  background: var(--sand-100);
  border-top: 1px solid var(--sand-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

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

.footer-grid a {
  display: block;
  margin-top: 8px;
}

.footer-grid h3 {
  margin: 0 0 10px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--sand-200);
  font-size: 13px;
}

.image-missing {
  background: linear-gradient(135deg, var(--sand-200), var(--dune-300));
  object-fit: contain;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

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

  .hot-board {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .detail-hero-inner,
  .quick-search-panel,
  .category-overview-card,
  .rank-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 260px;
  }

  .hero-carousel,
  .hero-slide,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    padding-bottom: 78px;
  }

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

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

  .filter-bar,
  .search-inline {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .movie-one-line,
  .tag-row {
    display: none;
  }

  .hero-controls {
    overflow-x: auto;
    justify-content: flex-start;
  }

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