:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 18px 45px rgba(28, 25, 23, 0.14);
  --shadow-lg: 0 28px 80px rgba(28, 25, 23, 0.26);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(120, 53, 15, 0.96);
  color: var(--amber-50);
  border-bottom: 1px solid rgba(253, 230, 138, 0.18);
  transition: box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.24);
}

.nav-shell {
  width: min(100% - 32px, var(--container));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.brand-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.18);
  color: var(--amber-100);
  box-shadow: 0 0 28px rgba(253, 230, 138, 0.2);
}

.desktop-nav,
.nav-category-track,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--amber-100);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(146, 64, 14, 0.95);
  transform: translateY(-1px);
}

.nav-link-soft {
  background: rgba(28, 25, 23, 0.12);
}

.nav-category-row {
  border-top: 1px solid rgba(253, 230, 138, 0.12);
  background: rgba(120, 53, 15, 0.92);
}

.nav-category-track {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-category-track::-webkit-scrollbar,
.movie-carousel::-webkit-scrollbar {
  display: none;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(146, 64, 14, 0.65);
  color: var(--amber-50);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

main {
  padding-top: 112px;
}

.hero-slider {
  position: relative;
  height: 600px;
  min-height: 520px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 1.6s ease;
}

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

.hero-overlay,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.42) 55%, rgba(28, 25, 23, 0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-content h1,
.detail-hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-content p,
.detail-hero p,
.page-hero p {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 16px 35px rgba(217, 119, 6, 0.32);
}

.button-primary:hover {
  background: var(--amber-700);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.hero-arrow,
.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.hero-arrow-left {
  left: 22px;
}

.hero-arrow-right {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 68px 0;
  background: var(--white);
}

.section-soft {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

.section-amber {
  background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.section-category-overview {
  background: var(--stone-100);
}

.section-search-intro {
  padding: 36px 0;
  background: var(--stone-50);
}

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

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 6px;
  color: var(--stone-800);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--stone-600);
}

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

.intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.intro-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 3.8vw, 42px);
}

.intro-card p {
  margin: 0;
  color: var(--stone-600);
}

.movie-grid-four,
.movie-grid-three,
.category-grid,
.featured-layout,
.detail-grid {
  display: grid;
  gap: 24px;
}

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

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

.featured-layout {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.featured-side,
.aside-list {
  display: grid;
  gap: 16px;
}

.movie-carousel {
  display: grid;
  grid-auto-columns: 280px;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--white);
  color: var(--stone-700);
  border: 1px solid var(--stone-200);
  font-size: 24px;
}

.carousel-button:hover {
  background: var(--amber-50);
  color: var(--amber-700);
}

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

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

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--stone-800);
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

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

.movie-poster-wide {
  aspect-ratio: 16 / 9;
}

.movie-poster-small {
  width: 190px;
  min-height: 126px;
  aspect-ratio: 16 / 10;
  flex: 0 0 190px;
}

.category-pill,
.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.category-pill {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--amber-600);
}

.duration-pill {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 18px rgba(120, 53, 15, 0.28);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-tags-inline,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags-inline span,
.tag-cloud span {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 12px;
}

.movie-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--stone-400);
  font-size: 12px;
}

.movie-mini-meta span {
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--amber-50);
  color: var(--amber-800);
}

.movie-card-horizontal .movie-card-link {
  display: flex;
  gap: 14px;
}

.movie-card-horizontal .movie-info {
  flex: 1;
  padding: 14px 14px 14px 0;
}

.movie-card-horizontal .movie-info h3 {
  min-height: auto;
  font-size: 15px;
}

.movie-card-horizontal .movie-info p {
  min-height: auto;
  font-size: 13px;
}

.large-card-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: var(--white);
}

.large-card-caption h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 32px);
}

.large-card-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--stone-800);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.category-card-content {
  position: absolute;
  inset: auto 22px 22px 22px;
  color: var(--white);
}

.category-card-content strong,
.category-card-content em,
.category-card-content small {
  display: block;
}

.category-card-content strong {
  margin: 10px 0 4px;
  font-size: 26px;
  line-height: 1.1;
}

.category-card-content em {
  color: var(--amber-100);
  font-style: normal;
  font-weight: 800;
}

.category-card-content small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.category-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--amber-600);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--amber-800));
  color: var(--white);
}

.page-hero {
  padding: 86px 0 72px;
}

.page-hero-compact {
  padding-bottom: 54px;
}

.page-hero .container,
.detail-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: var(--amber-100);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-100);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--stone-50);
}

.search-box span {
  color: var(--amber-700);
  font-size: 22px;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stone-800);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chips-years {
  margin-bottom: 24px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--amber-50);
  color: var(--amber-800);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--amber-700);
  color: var(--white);
}

.filter-result-text {
  margin: 14px 0 0;
  color: var(--stone-500);
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  min-height: 470px;
  display: flex;
  align-items: end;
  padding: 90px 0 56px;
  background-position: center;
  background-size: cover;
}

.detail-section {
  background: var(--stone-50);
}

.detail-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.88fr);
  align-items: start;
}

.detail-main,
.detail-aside {
  display: grid;
  gap: 22px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
}

.player-icon {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.35);
  font-size: 30px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.detail-card,
.aside-card {
  padding: 24px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h2,
.aside-card h2 {
  margin: 0 0 16px;
  color: var(--stone-800);
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--stone-600);
  font-size: 16px;
  line-height: 1.9;
}

.detail-meta-table {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px 16px;
  margin-bottom: 20px;
}

.detail-meta-table span {
  color: var(--stone-500);
}

.detail-meta-table strong,
.detail-meta-table a {
  color: var(--stone-800);
  font-weight: 800;
}

.detail-meta-table a:hover {
  color: var(--amber-700);
}

.aside-card {
  position: sticky;
  top: 132px;
}

.aside-card + .aside-card {
  position: static;
}

.site-footer {
  background: var(--stone-900);
  color: var(--stone-300);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 50px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 17px;
}

.site-footer p {
  max-width: 440px;
  margin: 14px 0 0;
  color: var(--stone-400);
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--stone-300);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--amber-200);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  max-width: none;
  margin: 0;
  font-size: 13px;
}

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

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 64px);
    padding: 18px;
    overflow-y: auto;
    background: rgba(120, 53, 15, 0.98);
  }

  body.menu-open .mobile-nav {
    display: flex;
  }

  .mobile-nav .nav-link {
    justify-content: center;
  }

  main {
    padding-top: 112px;
  }

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

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

  .aside-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .nav-shell,
  .nav-category-track {
    width: min(100% - 24px, var(--container));
  }

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

  .hero-slider {
    height: 520px;
    min-height: 500px;
  }

  .hero-content h1,
  .detail-hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .hero-arrow-left {
    left: 10px;
  }

  .hero-arrow-right {
    right: 10px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head,
  .intro-card {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card-horizontal .movie-card-link {
    flex-direction: column;
  }

  .movie-poster-small {
    width: 100%;
    flex-basis: auto;
  }

  .detail-meta-table {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .nav-category-row {
    display: none;
  }

  main {
    padding-top: 64px;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-actions,
  .carousel-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

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

  .movie-carousel {
    grid-auto-columns: 82%;
  }

  .page-hero,
  .detail-hero {
    padding-top: 58px;
  }

  .player-status {
    display: none;
  }
}
