: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-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 12px 30px rgba(28, 25, 23, 0.12);
  --shadow-lg: 0 24px 70px rgba(28, 25, 23, 0.25);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

img.is-hidden {
  display: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
  padding-top: 64px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(120, 53, 15, 0.98);
  color: var(--amber-50);
  transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(120, 53, 15, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
  box-shadow: 0 0 28px rgba(253, 230, 138, 0.32);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-100);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(146, 64, 14, 0.74);
  color: var(--amber-50);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 260px;
}

.header-search input,
.filter-bar input,
.search-page-box input,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(253, 230, 138, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--stone-800);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-bar input:focus,
.search-page-box input:focus,
.search-panel input:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.header-search button,
.search-page-box button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--amber-50);
  background: var(--amber-600);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(146, 64, 14, 0.65);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-100);
}

.mobile-panel {
  display: none;
  padding: 8px 16px 16px;
  background: rgba(146, 64, 14, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 4px;
}

.hero,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--stone-900);
  color: var(--white);
}

.hero {
  min-height: 560px;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-image,
.page-hero > img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.25), rgba(28, 25, 23, 0.72)), linear-gradient(90deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.12));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(820px, calc(100% - 48px));
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--amber-50);
  background: rgba(217, 119, 6, 0.88);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions,
.detail-copy .primary-button {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.ghost-button {
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
  font-size: 30px;
  line-height: 1;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

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

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

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

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

.section-heading h2,
.search-panel h2,
.footer-grid h2,
.detail-side h2,
.prose-block h2 {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading p,
.search-panel p {
  margin: 0;
  color: var(--stone-600);
}

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

.movie-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));
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.38), transparent 40%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

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

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

.poster-gradient,
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.movie-card-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--amber-50);
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 900;
}

.poster-frame > .movie-card-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

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

.movie-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-meta {
  margin-top: auto;
  color: var(--stone-500);
  font-size: 13px;
}

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

.movie-card-horizontal .poster-frame {
  width: 180px;
  flex: 0 0 180px;
  aspect-ratio: 16 / 10;
}

.movie-card-large .poster-frame-feature {
  aspect-ratio: 16 / 9;
}

.poster-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.poster-info .movie-card-title,
.poster-info .movie-card-meta {
  color: var(--white);
}

.scroll-row {
  position: relative;
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 280px);
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

.scroll-button {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  color: var(--stone-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 26px;
}

.scroll-left {
  left: -12px;
}

.scroll-right {
  right: -12px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.featured-layout .movie-card-horizontal {
  margin-bottom: 16px;
}

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

.category-tile,
.category-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 230px;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--shadow-md);
}

.category-tile img,
.category-card-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img,
.category-card-image:hover img {
  transform: scale(1.08);
}

.category-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
}

.category-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.category-copy em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.rank-list,
.ranking-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.ranking-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card {
  grid-template-columns: auto 110px 1fr;
}

.rank-row:hover,
.ranking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rank-number,
.ranking-index {
  color: var(--amber-700);
  font-size: 22px;
  font-weight: 900;
}

.rank-info,
.ranking-copy {
  display: grid;
  gap: 4px;
}

.rank-info strong,
.ranking-copy strong {
  color: var(--stone-800);
}

.rank-info em,
.ranking-copy em,
.ranking-copy span {
  color: var(--stone-600);
  font-style: normal;
  font-size: 14px;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-panel {
  align-self: start;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--stone-700);
  background: linear-gradient(180deg, var(--amber-50), var(--white));
  box-shadow: var(--shadow-sm);
}

.page-hero {
  min-height: 360px;
}

.compact-hero {
  background: radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.compact-hero .container {
  position: relative;
  z-index: 2;
  padding: 78px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

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

.category-card-body p {
  margin: 0 0 16px;
  color: var(--stone-600);
}

.category-samples {
  display: grid;
  gap: 6px;
}

.category-samples a {
  color: var(--amber-700);
  font-weight: 700;
}

.filter-bar {
  margin-bottom: 24px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  border-radius: 999px;
  padding: 8px 12px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--stone-200);
}

.pagination a.is-current,
.pagination a:hover {
  color: var(--amber-50);
  background: var(--amber-600);
  border-color: var(--amber-600);
}

.ranking-hero {
  min-height: 430px;
}

.ranking-hero > img {
  position: absolute;
  inset: 0;
  min-height: 430px;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  padding: 88px 0 72px;
}

.detail-hero {
  min-height: 560px;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  filter: blur(2px);
  transform: scale(1.02);
}

.detail-hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--shadow-lg);
}

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

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
  color: rgba(255, 255, 255, 0.84);
}

.tag-list span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 28px;
}

.player-card,
.detail-side,
.prose-block {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.player-title,
.detail-side,
.prose-block {
  padding: 24px;
}

.player-title h2,
.detail-side h2,
.prose-block h2 {
  margin-top: 0;
}

.player-title p,
.prose-block p {
  color: var(--stone-600);
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--stone-500);
}

.detail-side dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 700;
}

.prose-block {
  max-width: 900px;
}

.prose-block p {
  margin-bottom: 22px;
  font-size: 17px;
}

.search-page-box {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
}

.site-footer {
  padding: 54px 0 26px;
  color: var(--stone-300);
  background: var(--stone-900);
}

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

.footer-grid p {
  color: var(--stone-400);
}

.footer-grid h2 {
  color: var(--amber-100);
  font-size: 18px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--stone-800);
  padding-top: 24px;
  color: var(--stone-500);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

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

@media (max-width: 720px) {
  main {
    padding-top: 64px;
  }

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

  .hero-control {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

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

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

  .movie-card-horizontal .poster-frame {
    width: 100%;
    flex-basis: auto;
  }

  .ranking-card {
    grid-template-columns: auto 1fr;
  }

  .ranking-thumb {
    display: none;
  }

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

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

  .search-page-box {
    flex-direction: column;
  }
}
