:root {
  --sand-50: #fffaf0;
  --sand-100: #f6ecd9;
  --sand-200: #ead7b8;
  --stone-900: #231c18;
  --stone-800: #322820;
  --stone-700: #51453b;
  --stone-600: #706258;
  --stone-300: #cab9a5;
  --desert-700: #a65f2e;
  --desert-600: #c77739;
  --desert-500: #e0954c;
  --gold-400: #f1c27a;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(66, 43, 23, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-900);
  background:
    radial-gradient(circle at 8% 6%, rgba(224, 149, 76, 0.18), transparent 28%),
    linear-gradient(180deg, #fff7e8 0%, #fffaf0 38%, #f7ead7 100%);
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.86);
  border-bottom: 1px solid rgba(166, 95, 46, 0.12);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff6e8;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--desert-700), var(--gold-400));
  box-shadow: 0 12px 22px rgba(166, 95, 46, 0.22);
}

.brand-text {
  font-size: 1.08rem;
}

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

.main-nav a,
.nav-more > button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-more > button:hover {
  color: var(--desert-700);
}

.nav-more {
  position: relative;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(166, 95, 46, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-more:hover .nav-panel,
.nav-more:focus-within .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-panel a {
  padding: 8px 10px;
  border-radius: 12px;
}

.nav-panel a:hover {
  background: rgba(224, 149, 76, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(166, 95, 46, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 20px 80px;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 0;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 38px;
  box-shadow: var(--shadow);
  background: var(--stone-900);
}

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

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 30%, rgba(241, 194, 122, 0.25), transparent 26%),
    linear-gradient(90deg, rgba(26, 18, 13, 0.92), rgba(34, 21, 12, 0.45) 62%, rgba(34, 21, 12, 0.78));
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 690px;
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--desert-600);
}

.hero-copy .eyebrow {
  color: var(--gold-400);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  color: rgba(255, 250, 240, 0.86);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #8d4b20;
  background: rgba(224, 149, 76, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero .tag-row span {
  color: #fff4dc;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

.primary-btn,
.site-search button,
.player-button {
  color: #fff8ed;
  background: linear-gradient(135deg, var(--desert-700), var(--desert-500));
  box-shadow: 0 16px 30px rgba(166, 95, 46, 0.24);
}

.ghost-btn,
.section-more {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.site-search button:hover,
.player-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  align-self: center;
  justify-self: end;
  width: min(100%, 350px);
  border: 8px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  left: 60px;
  bottom: 38px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
  width: 30px;
  background: var(--gold-400);
}

.search-panel,
.feature-block,
.category-card,
.detail-hero,
.content-card,
.player-section,
.info-panel {
  border: 1px solid rgba(166, 95, 46, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.search-panel {
  margin: 34px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: center;
}

.search-panel h2,
.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.search-panel p,
.section-head p,
.page-title p,
.content-card p,
.info-panel p {
  color: var(--stone-600);
}

.site-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fffaf4;
  border: 1px solid rgba(166, 95, 46, 0.14);
}

.site-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.section {
  margin-top: 44px;
}

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

.section-head p {
  max-width: 660px;
  margin: 8px 0 0;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 15px 34px rgba(66, 43, 23, 0.11);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(66, 43, 23, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff7ea;
  background: rgba(35, 28, 24, 0.76);
  backdrop-filter: blur(10px);
  font-weight: 900;
  font-size: 0.84rem;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--desert-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--stone-600);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.movie-card.compact .poster-link img {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card {
  padding: 26px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(224, 149, 76, 0.14);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 1.65rem;
}

.category-card p {
  max-width: 520px;
  color: var(--stone-600);
}

.category-card .cover-strip {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.cover-strip img {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(66, 43, 23, 0.16);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(66, 43, 23, 0.09);
}

.rank-no {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff8ed;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--stone-900), var(--desert-600));
  font-weight: 900;
}

.rank-item img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text em {
  color: var(--stone-600);
  font-style: normal;
  font-size: 0.88rem;
}

.page-title {
  margin: 34px 0 24px;
  padding: 38px;
  border-radius: var(--radius-xl);
  color: #fffaf0;
  background:
    radial-gradient(circle at 78% 12%, rgba(241, 194, 122, 0.28), transparent 24%),
    linear-gradient(135deg, #2c211a, #8f5129 68%, #d28a46);
  box-shadow: var(--shadow);
}

.page-title p {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.82);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--stone-600);
  font-size: 0.92rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  margin-top: 24px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 48px rgba(66, 43, 23, 0.18);
}

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

.detail-title h1 {
  margin-top: 0;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #8d4b20;
  background: rgba(224, 149, 76, 0.14);
  font-weight: 900;
  font-size: 0.9rem;
}

.detail-intro {
  font-size: 1.05rem;
  color: var(--stone-700);
}

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

.player-section {
  overflow: hidden;
  background: #15100d;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080604;
}

.video-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(16, 10, 6, 0.12), rgba(16, 10, 6, 0.5));
  cursor: pointer;
}

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

.player-button {
  min-width: 150px;
}

.player-note {
  padding: 16px 18px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.92rem;
}

.content-card,
.info-panel {
  padding: 24px;
  margin-bottom: 22px;
}

.content-card h2,
.info-panel h2,
.info-panel h3 {
  margin: 0 0 12px;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.7);
}

.side-list img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.side-list strong,
.side-list em {
  display: block;
}

.side-list em {
  color: var(--stone-600);
  font-style: normal;
  font-size: 0.84rem;
}

.notice-empty {
  display: none;
  margin: 20px 0;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--stone-600);
}

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

.site-footer {
  padding: 48px 20px;
  color: rgba(255, 250, 240, 0.78);
  background: #231c18;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #fffaf0;
  font-size: 1.3rem;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: #fffaf0;
}

@media (max-width: 980px) {
  .hero-shell {
    min-height: 700px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 46px;
  }

  .hero-poster {
    width: 210px;
    justify-self: start;
  }

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

  .search-panel,
  .detail-hero,
  .detail-grid,
  .rank-layout {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-panel {
    position: static;
    width: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(224, 149, 76, 0.08);
  }

  .hero {
    padding: 12px;
  }

  .hero-shell {
    min-height: 650px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 32px 24px 86px;
  }

  .hero-control {
    left: 24px;
    bottom: 24px;
  }

  main {
    padding: 18px 14px 60px;
  }

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

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

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

  .site-search {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .site-search input {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .movie-card p,
  .tag-row {
    display: none;
  }

  .page-title,
  .detail-hero,
  .content-card,
  .info-panel {
    padding: 20px;
  }
}
