:root {
  --bg: #160f08;
  --panel: #241509;
  --panel-soft: #321f10;
  --text: #fff7ed;
  --muted: #f6d6a8;
  --weak: #b99061;
  --brand: #f59e0b;
  --brand-2: #fbbf24;
  --brand-dark: #92400e;
  --line: rgba(251, 191, 36, 0.20);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
    linear-gradient(180deg, #170d06 0%, #211207 48%, #120a06 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(24, 14, 7, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-dark));
  color: #1c1006;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand.mini .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.brand.mini .brand-text {
  font-size: 18px;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: #1d1108;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
  background: rgba(255, 247, 237, 0.10);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 11px 92px 11px 16px;
}

.header-search input::placeholder {
  color: var(--weak);
}

.header-search button {
  position: absolute;
  right: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #1b1007;
  font-weight: 800;
  padding: 8px 14px;
}

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

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 70px;
}

.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 20px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  border-radius: 34px;
  background: #1d1209;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 10, 4, 0.96) 0%, rgba(28, 14, 6, 0.82) 42%, rgba(28, 14, 6, 0.26) 100%),
    linear-gradient(0deg, rgba(20, 10, 4, 0.76), transparent 50%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 6vw, 78px);
  top: 50%;
  width: min(620px, 88%);
  transform: translateY(-50%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-2);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.tag,
.hero-tags span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #ffe4b8;
  background: rgba(255, 247, 237, 0.08);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #1c1006;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.30);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line);
}

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

.hero-dots {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 6vw, 78px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: -36px auto 48px;
  max-width: 1180px;
  position: relative;
  z-index: 5;
}

.quick-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(36, 21, 9, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.58);
}

.quick-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.quick-card span {
  color: var(--weak);
  font-size: 14px;
}

.content-section {
  margin: 64px 0;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 247, 237, 0.06);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #3b210d, #140b05);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.score-pill,
.rank-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  color: #1d1108;
  background: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  bottom: auto;
  background: rgba(255, 247, 237, 0.92);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 13px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--weak);
  font-size: 12px;
}

.page-title {
  max-width: 920px;
  padding: 52px 0 20px;
}

.filter-cloud,
.pagination,
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 34px;
}

.filter-cloud a,
.pagination a,
.pagination span,
.category-cloud a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.pagination .current,
.filter-cloud a:hover,
.category-cloud a:hover,
.pagination a:hover {
  color: #1d1108;
  background: var(--brand-2);
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 54px 0 36px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #2b190b;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-info .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.player-card,
.text-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 247, 237, 0.06);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.player-wrap {
  position: relative;
  background: #050505;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.52));
  pointer-events: none;
}

.play-button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1d1108;
  background: var(--brand-2);
  font-size: 34px;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.38);
  pointer-events: auto;
}

.player-note {
  padding: 12px 18px;
  color: var(--weak);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.text-card {
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-card p {
  color: var(--muted);
  line-height: 1.9;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 24px;
  margin: 24px 0 50px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.side-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
}

.side-item span {
  color: var(--weak);
  font-size: 13px;
}

.static-page {
  max-width: 920px;
}

.static-page h2 {
  margin-top: 34px;
}

.static-page p,
.static-page li {
  color: var(--muted);
  line-height: 1.9;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin: 22px 0 30px;
}

.search-panel input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 14px 16px;
  outline: 0;
}

.search-panel button {
  border: 0;
  border-radius: 18px;
  background: var(--brand-2);
  color: #1d1108;
  padding: 0 22px;
  font-weight: 900;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #1d1108;
  background: var(--brand-2);
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30);
}

.back-top.is-visible {
  display: block;
}

.site-footer {
  background: linear-gradient(180deg, #2b1708, #120904);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 22px 36px;
}

.footer-brand p,
.footer-col a {
  color: var(--muted);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3 {
  margin: 0 0 8px;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 30px;
  color: var(--weak);
  border-top: 1px solid var(--line);
}

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

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

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

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }

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

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

  .header-search {
    order: 3;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(20, 10, 4, 0.96), rgba(20, 10, 4, 0.38));
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 70px;
    transform: none;
  }

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

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

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

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

@media (max-width: 620px) {
  main,
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

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

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