:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --stone-50: #fafaf9;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 14px 30px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 28px 60px rgba(120, 53, 15, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--stone-50), var(--amber-50));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--amber-900);
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-sm);
}

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

.nav-links a {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--amber-800);
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--amber-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-900);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--amber-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(10px) saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.42), transparent 32%),
    linear-gradient(90deg, rgba(24, 16, 8, 0.95), rgba(120, 53, 15, 0.76), rgba(255, 237, 213, 0.25)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 96px;
}

.hero-copy {
  color: var(--white);
  max-width: 780px;
  animation: slide-up 0.6s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: var(--amber-800);
  background: var(--amber-100);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
  color: var(--amber-50);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  background: var(--amber-100);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 70px 0;
}

.section-warm {
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50), var(--amber-50));
}

.section-white {
  background: var(--white);
}

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

.section-head h2,
.inner-hero h1 {
  margin: 12px 0 0;
  color: var(--amber-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.more {
  color: var(--amber-700);
  font-weight: 800;
}

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

.hot-grid,
.category-grid,
.search-results {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-900);
  font-weight: 800;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--amber-700);
}

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

.movie-card.compact .card-body p {
  display: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.meta-row span {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--amber-50);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-cloud a,
.category-panel {
  display: block;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.category-cloud a:hover,
.category-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-cloud strong,
.category-panel-title {
  display: block;
  color: var(--amber-900);
  font-size: 20px;
  font-weight: 900;
}

.category-cloud span,
.category-panel p {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
  line-height: 1.6;
}

.page-main {
  min-height: 70vh;
}

.inner-hero {
  padding: 74px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.45), transparent 30%),
    linear-gradient(135deg, var(--amber-900), var(--amber-700), var(--orange-600));
}

.inner-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--amber-50);
  font-size: 18px;
  line-height: 1.8;
}

.inner-hero h1 {
  color: var(--white);
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-50);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.filter-bar {
  grid-template-columns: 1fr 180px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--gray-900);
  background: var(--white);
}

input:focus,
select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-num {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--amber-100);
}

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

.rank-title {
  color: var(--amber-900);
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 7px 0 0;
  color: var(--gray-600);
  line-height: 1.55;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 30px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--amber-800);
  font-weight: 700;
}

.player-card,
.detail-content,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.54));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask span {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-md);
  font-size: 30px;
}

.player-shell.playing .play-mask {
  opacity: 0;
  visibility: hidden;
}

.detail-content {
  margin-top: 22px;
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray-600);
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--amber-50);
}

.detail-content .tag-list span {
  color: var(--amber-800);
  background: var(--amber-100);
  border: 0;
}

.detail-content section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 119, 6, 0.13);
}

.detail-content h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 22px;
}

.detail-content p {
  margin: 0;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--amber-100);
  box-shadow: var(--shadow-md);
}

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

.side-card {
  padding: 18px;
}

.related-stack {
  display: grid;
  gap: 14px;
}

.related-stack .movie-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  box-shadow: none;
  border: 1px solid rgba(217, 119, 6, 0.14);
}

.related-stack .poster {
  height: 122px;
}

.related-stack .card-body {
  padding: 10px 10px 10px 0;
}

.site-footer {
  padding: 38px 0;
  color: var(--amber-50);
  background: var(--amber-900);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer strong {
  display: block;
  font-size: 22px;
}

.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--amber-100);
}

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

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hidden-card {
  display: none !important;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow-md);
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    width: min(280px, 76vw);
    margin: 0 auto;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 640px) {
  .container,
  .nav-wrap,
  .hero-controls {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

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

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

  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .detail-content {
    padding: 20px;
  }

  .related-stack .movie-card {
    grid-template-columns: 72px 1fr;
  }

  .related-stack .poster {
    height: 108px;
  }
}
