:root {
  --bg: #1c120b;
  --bg-deep: #0f0b08;
  --panel: #fffaf0;
  --panel-soft: #fff7e6;
  --text: #2a1d12;
  --muted: #7a5b38;
  --gold: #f59e0b;
  --gold-dark: #b45309;
  --amber: #fbbf24;
  --line: rgba(146, 64, 14, 0.22);
  --shadow: 0 20px 55px rgba(79, 36, 8, 0.22);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 40%, #fffaf0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fffbeb;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.96), rgba(120, 53, 15, 0.96), rgba(28, 25, 23, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  backdrop-filter: blur(14px);
}

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

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

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #ea580c);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
  font-size: 24px;
}

.brand-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: #fde68a;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #ffedd5;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.desktop-nav a:hover {
  color: #fde68a;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 14px;
  color: #fffbeb;
  background: rgba(146, 64, 14, 0.48);
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffedd5;
}

.mobile-nav a:hover {
  background: rgba(146, 64, 14, 0.45);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.35), transparent 28%),
              radial-gradient(circle at 80% 35%, rgba(234, 88, 12, 0.35), transparent 28%),
              linear-gradient(120deg, #451a03 0%, #78350f 45%, #1c1917 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: patternMove 18s linear infinite;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
  padding: 70px 0 96px;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(253, 230, 138, 0.38);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #fbbf24);
  -webkit-background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  color: #fffbeb;
}

.hero-intro {
  margin: 0 0 26px;
  color: #fed7aa;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(253, 230, 138, 0.25);
}

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

.btn-primary,
.btn-secondary,
.card-action,
.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary,
.search-button {
  color: white;
  background: linear-gradient(90deg, var(--gold), #ea580c);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.28);
}

.btn-secondary {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover,
.card-action:hover,
.search-button:hover {
  transform: translateY(-2px);
}

.hero-poster-panel {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(253, 230, 138, 0.24);
  backdrop-filter: blur(18px);
}

.hero-poster-panel::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(234, 88, 12, 0.1));
  filter: blur(18px);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #1c1917);
}

.hero-poster img,
.movie-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster-panel:hover img,
.movie-card:hover .movie-poster img {
  transform: scale(1.07);
}

.hero-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.hero-mini a {
  min-height: 70px;
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  color: #fffbeb;
  background: rgba(28, 25, 23, 0.5);
  border: 1px solid rgba(253, 230, 138, 0.16);
  font-size: 13px;
  line-height: 1.45;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fde68a;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

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

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: #292524;
  letter-spacing: -0.04em;
}

.section-desc,
.page-hero p,
.detail-lead {
  max-width: 800px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.section-link {
  color: var(--gold-dark);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(79, 36, 8, 0.28);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #292524);
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--gold), #ea580c);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffedd5;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #1c1917;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 68px;
  margin: 0 0 14px;
  color: #6b4f2c;
  line-height: 1.7;
  font-size: 14px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.card-action {
  min-height: 38px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(90deg, var(--gold), #ea580c);
  font-size: 14px;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  padding: 8px 11px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.26);
  font-size: 13px;
}

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

.category-tile {
  min-height: 230px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fffaf0, #ffedd5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-main-link {
  display: grid;
  gap: 12px;
}

.category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, var(--gold), #ea580c);
  font-size: 26px;
}

.category-tile strong {
  font-size: 24px;
  color: #292524;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.category-preview {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-preview a {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
}

.search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 6;
}

.search-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 24px 70px rgba(79, 36, 8, 0.25);
  border: 1px solid var(--line);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 999px;
  outline: none;
  color: #292524;
  background: #fffaf0;
  font-size: 16px;
}

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

.page-hero {
  padding: 72px 0 58px;
  color: white;
  background: radial-gradient(circle at 22% 20%, rgba(251, 191, 36, 0.28), transparent 28%),
              linear-gradient(135deg, #1c1917, #78350f 55%, #431407);
}

.page-hero h1 {
  color: #fffbeb;
}

.page-hero p {
  color: #fed7aa;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: #fcd34d;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #fffbeb;
}

.detail-hero {
  padding: 56px 0;
  color: white;
  background: radial-gradient(circle at 75% 10%, rgba(251, 191, 36, 0.22), transparent 30%),
              linear-gradient(135deg, #1c1917, #78350f 62%, #292524);
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #78350f, #292524);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-title h1 {
  color: #fffbeb;
  margin-bottom: 14px;
}

.detail-lead {
  color: #fed7aa;
}

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

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(253, 230, 138, 0.2);
  font-weight: 800;
}

.player-section {
  padding: 56px 0 36px;
  background: #0c0a09;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fffbeb;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.24), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 3;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ea580c);
  box-shadow: 0 22px 46px rgba(234, 88, 12, 0.35);
  font-size: 36px;
}

.play-text {
  font-size: 20px;
  font-weight: 900;
}

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

.content-card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.content-card p {
  color: #5b4630;
  line-height: 1.9;
  font-size: 17px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #1c1917, #451a03, #1c1917);
  border-top: 1px solid rgba(251, 191, 36, 0.22);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 36px;
  padding: 48px 0 34px;
}

.footer-grid h2,
.footer-grid h3 {
  color: #fde68a;
  margin: 0 0 14px;
}

.footer-grid p {
  max-width: 520px;
  color: #fed7aa;
  line-height: 1.8;
}

.footer-grid a {
  display: inline-block;
  margin: 0 16px 10px 0;
  color: #ffedd5;
  font-weight: 700;
}

.footer-grid a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  color: #fed7aa;
  font-size: 14px;
}

@keyframes patternMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-inner,
  .detail-grid,
  .footer-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 780px;
  }

  .hero-inner {
    min-height: 780px;
    padding-top: 48px;
  }

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

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

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

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    min-height: 850px;
  }

  .hero-inner {
    min-height: 850px;
    gap: 28px;
  }

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

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

  .section-head {
    display: block;
  }

  .search-box {
    display: block;
  }

  .search-box input {
    width: 100%;
    margin-bottom: 12px;
  }

  .search-button {
    width: 100%;
  }

  .content-card {
    padding: 22px;
  }
}
