:root {
  --bg: #2b2419;
  --bg-soft: #352d20;
  --panel: rgba(66, 58, 44, 0.78);
  --panel-solid: #423a2c;
  --line: rgba(245, 158, 11, 0.28);
  --text: #f5f2ed;
  --muted: #d9cfbd;
  --muted-dark: #a89571;
  --accent: #f59e0b;
  --accent-strong: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(135deg, #2b2419 0%, #201911 48%, #423a2c 100%);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(168, 149, 113, 0.22);
  background: rgba(43, 36, 25, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2b2419;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}

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

.nav-link {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-strong);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  background: rgba(66, 58, 44, 0.5);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(32, 25, 17, 0.92) 0%, rgba(43, 36, 25, 0.72) 42%, rgba(43, 36, 25, 0.2) 100%),
    linear-gradient(0deg, #2b2419 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  min-height: 72vh;
  margin-left: max(18px, calc((100vw - 1200px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 86px;
}

.hero-meta,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta span,
.detail-meta span,
.meta-line span {
  padding: 4px 10px;
  border: 1px solid rgba(168, 149, 113, 0.26);
  border-radius: 999px;
  background: rgba(43, 36, 25, 0.45);
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-tags {
  margin-top: 22px;
  color: var(--accent-strong);
}

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

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #2b2419;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.25);
}

.btn.ghost {
  color: var(--accent-strong);
  background: rgba(245, 158, 11, 0.1);
}

.btn.full-btn {
  width: 100%;
  margin-top: 18px;
}

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

.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 242, 237, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--accent);
}

.section-pad {
  padding: 72px 0;
}

.soft-section {
  background: rgba(32, 25, 17, 0.32);
  border-top: 1px solid rgba(168, 149, 113, 0.14);
  border-bottom: 1px solid rgba(168, 149, 113, 0.14);
}

.search-panel,
.page-hero .container {
  padding: 34px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(66, 58, 44, 0.86), rgba(43, 36, 25, 0.74));
  box-shadow: var(--shadow);
}

.search-panel h2,
.page-hero h1,
.section-heading h2,
.detail-info h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.eyebrow,
.section-heading span {
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-panel p,
.page-hero p,
.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.search-box {
  margin-top: 24px;
}

.search-box.single {
  max-width: 520px;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  outline: 0;
  color: var(--text);
  background: rgba(43, 36, 25, 0.72);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.category-chips,
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-chips a,
.sub-nav a,
.text-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(168, 149, 113, 0.2);
  border-radius: 18px;
  background: rgba(66, 58, 44, 0.58);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #201911;
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #2b2419;
  background: var(--accent-strong);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  color: #2b2419;
  background: var(--accent-strong);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.card-body p {
  min-height: 3.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.78rem;
}

.tag-row.large span {
  font-size: 0.92rem;
}

.page-hero {
  padding: 56px 0 0;
}

.page-hero.compact .container {
  padding: 42px 34px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(168, 149, 113, 0.2);
  border-radius: var(--radius);
  background: rgba(66, 58, 44, 0.58);
}

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

.category-preview img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 44px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.26;
  filter: blur(10px);
  transform: scale(1.06);
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2b2419 0%, rgba(43, 36, 25, 0.82) 52%, rgba(43, 36, 25, 0.55) 100%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.detail-info p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.player-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  background: #090806;
  box-shadow: var(--shadow);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090806;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #2b2419;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.4));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 48px rgba(245, 158, 11, 0.38);
  font-size: 1.6rem;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.story-box,
.side-panel {
  padding: 28px;
  border: 1px solid rgba(168, 149, 113, 0.2);
  border-radius: var(--radius);
  background: rgba(66, 58, 44, 0.58);
}

.story-box h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 1.35rem;
}

.story-box p {
  margin: 0 0 28px;
  color: var(--muted);
  white-space: pre-line;
}

.side-panel dl {
  margin: 0;
}

.side-panel div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(168, 149, 113, 0.18);
}

.side-panel dt {
  color: var(--muted-dark);
}

.side-panel dd {
  margin: 0;
  text-align: right;
}

.site-footer {
  border-top: 1px solid rgba(168, 149, 113, 0.18);
  background: rgba(32, 25, 17, 0.72);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--accent-strong);
}

[data-card].is-hidden {
  display: none;
}

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 18px;
    background: rgba(43, 36, 25, 0.96);
  }

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

  .hero,
  .hero-content {
    min-height: 68vh;
  }

  .hero-content {
    padding-top: 80px;
  }

  .section-pad {
    padding: 48px 0;
  }

  .search-panel,
  .page-hero .container,
  .story-box,
  .side-panel {
    padding: 22px;
  }

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

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

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

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

  .detail-poster {
    max-width: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .wide-grid,
  .rank-list,
  .rank-list.full {
    grid-template-columns: 1fr;
  }

  .poster-link {
    aspect-ratio: 16 / 10;
  }
}
