:root {
  --bg: #120e08;
  --bg-soft: #1f160c;
  --panel: rgba(45, 31, 14, 0.82);
  --panel-strong: rgba(70, 46, 16, 0.92);
  --text: #fff8df;
  --muted: #d9c9a2;
  --line: rgba(255, 214, 129, 0.18);
  --gold: #f8c94b;
  --gold-strong: #f59e0b;
  --amber: #92400e;
  --red: #b45309;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(180, 83, 9, 0.22), transparent 32rem),
    linear-gradient(180deg, #120e08 0%, #1a1209 48%, #0c0906 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2b1705;
  background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #b45309);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.34);
}

.brand-name {
  font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #2b1705;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-stage,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  transition: opacity 0.85s ease, transform 1.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 14, 8, 0.96) 0%, rgba(18, 14, 8, 0.78) 42%, rgba(18, 14, 8, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 14, 8, 0.98) 0%, rgba(18, 14, 8, 0.1) 48%, rgba(18, 14, 8, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
  padding: 90px 0 150px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 8vw, 78px);
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.48);
}

.hero-desc {
  max-width: 700px;
  margin: 22px 0 0;
  color: #f7e8bd;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #ffe8a6;
  background: rgba(255, 255, 255, 0.08);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn.primary {
  color: #2b1705;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.btn.ghost {
  color: #ffe8a6;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-search-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 38px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(32, 22, 10, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  outline: none;
}

.hero-search input {
  width: min(52vw, 470px);
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.hero-search button {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #2b1705;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  cursor: pointer;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 232, 166, 0.8);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--gold);
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

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

.section-head h2,
.detail-text h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-text p,
.footer-inner p {
  color: var(--muted);
  line-height: 1.75;
}

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

.section-more {
  flex: 0 0 auto;
  color: #ffe8a6;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(72, 47, 17, 0.74), rgba(29, 20, 10, 0.9));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 201, 75, 0.55);
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.34);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.score-pill {
  right: 10px;
  bottom: 10px;
  min-width: 44px;
  height: 30px;
  color: #2b1705;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-height: 30px;
  padding: 0 10px;
  color: #ffe8a6;
  border: 1px solid rgba(255, 232, 166, 0.38);
  background: rgba(0, 0, 0, 0.55);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.38;
}

.card-meta,
.card-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.tag-row span {
  color: #ffe8a6;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

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

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 201, 75, 0.52);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.18);
}

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-card-body {
  padding: 18px;
}

.category-card-body h3 {
  margin: 0;
  font-size: 22px;
}

.category-card-body p {
  min-height: 76px;
  color: var(--muted);
  line-height: 1.65;
}

.category-card-body span {
  display: inline-flex;
  color: #2b1705;
  font-weight: 900;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.page-hero,
.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 20px;
}

.page-hero.slim {
  min-height: 260px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.filter-bar {
  width: 100%;
  max-width: none;
  margin-bottom: 26px;
  border-radius: 24px;
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

.filter-bar input {
  flex: 1 1 auto;
}

.filter-bar select {
  flex: 0 0 170px;
}

.empty-state {
  margin: 12px 0 22px;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
}

.breadcrumb a {
  color: #ffe8a6;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  font-size: clamp(38px, 7vw, 72px);
}

.detail-desc {
  max-width: 760px;
  color: #f7e8bd;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(248, 201, 75, 0.34);
  background: #050505;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2b1705;
  font-size: 34px;
  line-height: 1;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.42);
}

.player-shell.is-playing .play-layer {
  display: none;
}

.detail-text {
  max-width: 960px;
}

.detail-text h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 30px;
}

.detail-text p {
  margin: 0 0 26px;
  font-size: 18px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 22, 12, 0.4), rgba(12, 9, 6, 0.92));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #ffe8a6;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.footer-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

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

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

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

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(18, 14, 8, 0.96);
  }

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

  .hero,
  .hero-content {
    min-height: 700px;
  }

  .hero-search-panel,
  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    width: 100%;
  }

  .hero-search input {
    width: 100%;
  }

  .hero-dots {
    justify-content: center;
  }

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

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

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

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

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

  .filter-bar select {
    flex-basis: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 17px;
  }

  .content-section {
    padding: 38px 0;
  }

  .movie-grid,
  .listing-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-summary {
    display: none;
  }

  .play-icon {
    width: 66px;
    height: 66px;
  }
}
