:root {
  --bg: #120f0c;
  --bg-soft: #1d1712;
  --bg-card: #251c15;
  --bg-card-2: #302319;
  --text: #f7ead4;
  --muted: #b89f7b;
  --muted-2: #8d765a;
  --line: rgba(226, 186, 120, 0.16);
  --accent: #e2b66f;
  --accent-2: #f3d39b;
  --danger: #d56a4d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 151, 74, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(108, 75, 45, 0.35), transparent 28rem),
    linear-gradient(180deg, #120f0c 0%, #17110d 45%, #0f0d0b 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 15, 12, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2b1b0e;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px rgba(226, 182, 111, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.04em;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-2);
  background: rgba(226, 182, 111, 0.12);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.96), rgba(18, 15, 12, 0.62), rgba(18, 15, 12, 0.9)),
    radial-gradient(circle at 72% 30%, rgba(226, 182, 111, 0.28), transparent 24rem);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 84px 0;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  color: #dbc7aa;
  font-size: 18px;
  max-width: 760px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn.primary {
  color: #211508;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.page-hero {
  padding: 78px 0 36px;
}

.section {
  padding: 56px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

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

.section-action {
  color: var(--accent-2);
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  transition: 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 182, 111, 0.4);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(226, 182, 111, 0.28), rgba(255, 255, 255, 0.03)),
    var(--bg-card-2);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
}

.poster-wrap img.image-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: auto 12px 14px 12px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #211508;
  background: var(--accent-2);
  border-radius: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

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

.one-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  margin-top: 8px;
}

.card-tags,
.detail-tags,
.filter-row,
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags {
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(226, 182, 111, 0.11);
  border: 1px solid rgba(226, 182, 111, 0.14);
  font-size: 12px;
}

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

.category-card,
.info-panel,
.search-panel,
.player-card,
.detail-main,
.rank-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 20px;
  min-height: 154px;
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 182, 111, 0.42);
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.category-card span {
  color: var(--accent-2);
}

.filter-row {
  margin: 18px 0 28px;
}

.input,
.select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.input {
  min-width: min(420px, 100%);
}

.select option {
  background: #21170f;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  padding: 18px;
  margin-bottom: 24px;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050403;
}

.play-overlay {
  position: absolute;
  inset: auto 50% 36px auto;
  transform: translateX(50%);
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #211508;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.player-status {
  color: var(--muted);
  margin: 12px 4px 0;
  min-height: 24px;
}

.detail-main {
  padding: 28px;
}

.detail-main h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.breadcrumb {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 14px;
}

.detail-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-main h2,
.sidebar h2 {
  font-size: 24px;
  margin: 28px 0 10px;
}

.detail-main p {
  color: #dfcbb0;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.info-panel {
  padding: 22px;
  margin-bottom: 22px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  text-align: right;
}

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

.related-list a,
.rank-row {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.related-list a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

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

.rank-row {
  align-items: center;
}

.rank-row strong {
  color: var(--accent-2);
}

.rank-row span {
  color: var(--muted);
}

.search-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.site-footer {
  margin-top: 70px;
  padding: 36px 0;
  color: var(--muted);
  background: #0c0907;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 64px 0;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .input,
  .select {
    width: 100%;
  }
}
