:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-600: #ea580c;
  --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 4px 18px rgba(68, 64, 60, 0.08);
  --shadow-md: 0 12px 35px rgba(68, 64, 60, 0.13);
  --shadow-lg: 0 24px 70px rgba(68, 64, 60, 0.22);
}

* {
  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;
  background: var(--stone-50);
  color: var(--stone-800);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-900);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.logo-text {
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--amber-900);
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a,
.mobile-drawer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-drawer a:hover {
  color: var(--amber-600);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--amber-900);
  font-size: 28px;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  padding: 12px 24px 22px;
  border-top: 1px solid var(--amber-200);
  background: var(--amber-50);
}

.mobile-drawer a {
  display: block;
  padding: 11px 0;
  color: var(--amber-900);
  font-weight: 650;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.45), transparent 38%), linear-gradient(135deg, #1c1917, #78350f 48%, #1c1917);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96) 0%, rgba(28, 25, 23, 0.78) 42%, rgba(28, 25, 23, 0.28) 100%), linear-gradient(0deg, rgba(28, 25, 23, 0.9), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-height: 680px;
  padding: 92px 24px 96px;
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber-600);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-eyebrow {
  color: var(--amber-200);
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(253, 230, 138, 0.32);
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 18px 0 16px;
  line-height: 1.08;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.04em;
}

.hero h2 {
  font-size: clamp(34px, 4.8vw, 58px);
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #f5f5f4;
  font-size: 18px;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 26px;
}

.hero-tags span,
.detail-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-actions,
.category-overview-head,
.section-head,
.search-band,
.detail-info,
.detail-meta,
.card-meta,
.rank-meta,
.filter-panel,
.global-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn,
.section-link,
.home-search button,
.global-search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.section-link:hover,
.home-search button:hover,
.global-search-box button:hover {
  transform: translateY(-2px);
}

.btn.primary,
.home-search button,
.global-search-box button {
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
}

.btn.ghost {
  color: var(--amber-100);
  border-color: rgba(253, 230, 138, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.hero-controls button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-controls button.is-active {
  width: 34px;
  background: var(--amber-300);
}

.band {
  background: var(--amber-50);
  border-bottom: 1px solid var(--amber-100);
}

.search-band {
  min-height: 108px;
  justify-content: space-between;
}

.search-band h2,
.section-head h2,
.category-overview-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--stone-800);
}

.home-search,
.global-search-box {
  min-width: min(520px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 8px;
}

.home-search input,
.global-search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  outline: none;
  background: var(--white);
  color: var(--stone-700);
}

.home-search input {
  border: 0;
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-head p,
.category-overview-head p,
.page-hero p,
.detail-one-line {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--stone-600);
}

.section-link {
  color: var(--amber-700);
  background: var(--amber-50);
  border-color: var(--amber-200);
  white-space: nowrap;
}

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

.category-tile {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--amber-700), var(--stone-900));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-row:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.5s ease;
}

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

.category-tile div {
  position: relative;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.85), transparent);
  width: 100%;
}

.category-tile span {
  color: var(--amber-200);
  font-size: 13px;
  font-weight: 750;
}

.category-tile h3 {
  margin: 8px 0;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: #e7e5e4;
  font-size: 14px;
}

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

.small-grid {
  grid-template-columns: repeat(6, 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 a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.poster-shell {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at top, var(--amber-100), var(--stone-800));
}

.poster-shell img,
.detail-poster img,
.rank-row img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.poster-year {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(28, 25, 23, 0.75);
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  background: rgba(245, 158, 11, 0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--stone-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.rank-meta,
.detail-meta {
  flex-wrap: wrap;
  margin-top: auto;
  gap: 8px;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
  background: var(--stone-100);
  color: var(--stone-600);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.ranking-section {
  background: linear-gradient(135deg, var(--stone-900), #3f2a11);
  color: var(--white);
}

.ranking-section .section-head h2,
.ranking-section .section-head p {
  color: var(--white);
}

.rank-grid,
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-list {
  grid-template-columns: 1fr;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-row img {
  width: 86px;
  height: 116px;
  border-radius: 14px;
  background: var(--stone-100);
}

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

.rank-row h3 {
  margin: 0 0 6px;
  color: var(--stone-800);
}

.rank-row p {
  margin: 0 0 8px;
  color: var(--stone-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero,
.detail-hero {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.26), transparent 30%), linear-gradient(135deg, var(--amber-50), var(--stone-50));
  padding: 58px 0;
  border-bottom: 1px solid var(--amber-100);
}

.page-hero h1 {
  color: var(--stone-900);
  font-size: clamp(38px, 5vw, 64px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--amber-600);
}

.filter-panel {
  position: sticky;
  top: 82px;
  z-index: 10;
  flex-wrap: wrap;
  padding: 14px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.filter-panel input {
  flex: 1 1 320px;
}

.filter-panel select {
  width: auto;
  min-width: 150px;
}

.filter-count,
.search-status {
  color: var(--stone-500);
  font-size: 14px;
  font-weight: 700;
}

.category-overview-card,
.content-card,
.player-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.overview-stack {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.detail-hero {
  background: linear-gradient(135deg, #1c1917, #4a2f0c 55%, #111827);
  color: var(--white);
  padding-bottom: 72px;
}

.detail-hero .breadcrumbs,
.detail-hero .breadcrumbs a,
.detail-hero .breadcrumbs strong {
  color: #fde68a;
}

.detail-shell {
  display: grid;
  gap: 28px;
}

.player-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 38px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.play-overlay.is-hidden {
  display: none;
}

.detail-info {
  align-items: flex-start;
  gap: 28px;
}

.detail-poster {
  width: min(260px, 34vw);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-one-line {
  color: #f5f5f4;
  font-size: 18px;
}

.detail-meta {
  margin: 18px 0 8px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
}

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

.global-search-box {
  margin-bottom: 18px;
  border-radius: 24px;
}

.search-status {
  margin-bottom: 24px;
}

.site-footer {
  margin-top: 30px;
  background: var(--stone-900);
  color: var(--stone-400);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: var(--amber-100);
  font-size: 22px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
}

.footer-col h3 {
  color: var(--amber-100);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  text-align: center;
  color: var(--stone-500);
}

.is-image-error {
  opacity: 0;
}

.is-hidden-by-filter {
  display: none;
}

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

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

@media (max-width: 820px) {
  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    margin-left: 0;
    padding: 92px 24px 84px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.96) 0%, rgba(28, 25, 23, 0.72) 65%, rgba(28, 25, 23, 0.38) 100%);
  }

  .search-band,
  .section-head,
  .category-overview-head,
  .detail-info,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .home-search,
  .global-search-box {
    width: 100%;
    min-width: 0;
  }

  .rank-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 210px;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

  .category-tile {
    min-height: 220px;
  }

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

  .rank-row img {
    width: 72px;
    height: 96px;
  }

  .filter-panel {
    position: static;
  }

  .filter-panel select,
  .filter-panel input {
    width: 100%;
  }

  .detail-info {
    gap: 18px;
  }

  .detail-poster {
    width: 170px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
