:root {
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --gold-900: #78350f;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: rgba(255, 255, 255, 0.84);
  --line: rgba(180, 83, 9, 0.14);
  --shadow: 0 18px 50px rgba(146, 64, 14, 0.16);
  --gold-shadow: 0 8px 24px rgba(251, 191, 36, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, var(--gold-50), #ffffff 48%, #fff7ed);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-600));
  box-shadow: var(--gold-shadow);
}

.top-nav {
  max-width: 1280px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  opacity: 0.94;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #ffffff;
  transition: transform 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 11px;
  cursor: pointer;
}

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

.home-page {
  padding-bottom: 50px;
}

.inner-page,
.detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600), var(--gold-800));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  filter: saturate(1.12) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(251, 191, 36, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.36) 50%, rgba(0, 0, 0, 0.62)),
    linear-gradient(0deg, rgba(120, 53, 15, 0.74), rgba(120, 53, 15, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 84px 20px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.72s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #fffbeb;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 8px 0;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gold-800);
  background: var(--gold-100);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.ghost-light-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--gold-900);
  background: #ffffff;
  box-shadow: var(--gold-shadow);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.ghost-light-btn,
.text-link {
  color: var(--gold-800);
  background: var(--gold-100);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-light-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow);
}

.hero-poster {
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-poster img {
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

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

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

.hero-dots button.active {
  background: #ffffff;
}

.filter-panel {
  max-width: 1280px;
  margin: -34px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.filter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--gold-800);
  font-weight: 800;
}

.search-box input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
}

.search-box input:focus,
.filter-controls select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.filter-controls {
  display: flex;
  gap: 12px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 20px 0;
}

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

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  color: #111827;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-icon {
  color: var(--gold-600);
  font-size: 26px;
  margin-right: 8px;
}

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

.category-chip {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  color: var(--gold-900);
  background: linear-gradient(135deg, #ffffff, var(--gold-100));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip span {
  font-size: 20px;
  font-weight: 900;
}

.category-chip small {
  color: var(--muted);
  line-height: 1.6;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 10px 25px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}

.compact .poster-link {
  height: 220px;
}

.poster-link img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

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

.quality-badge,
.year-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.quality-badge {
  top: 12px;
  left: 12px;
}

.year-badge {
  right: 12px;
  bottom: 12px;
}

.rank-number {
  right: 12px;
  top: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover,
.rank-title:hover,
.category-overview-card h2 a:hover {
  color: var(--gold-600);
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span:last-child,
.rank-meta span:last-child {
  color: var(--gold-600);
  font-weight: 900;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-cover {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
}

.rank-cover span {
  position: absolute;
  left: 9px;
  top: 9px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
  font-weight: 900;
}

.rank-content {
  min-width: 0;
}

.rank-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.rank-content p {
  display: -webkit-box;
  margin: 8px 0 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--gold-400), var(--gold-600), var(--gold-800));
  box-shadow: var(--gold-shadow);
}

.mini-hero h1,
.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.mini-hero p,
.detail-info p {
  max-width: 860px;
  margin: 0;
  color: #fff7ed;
  line-height: 1.8;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 84px;
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-poster-stack img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 26px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  height: 430px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.lead-text {
  font-size: 20px;
}

.movie-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.movie-facts div {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.movie-facts dt {
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
}

.movie-facts dd {
  margin: 6px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.player-section {
  margin-top: 32px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.play-button span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 7px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
  box-shadow: var(--gold-shadow);
  font-size: 40px;
}

.player-frame.is-playing .play-button,
.play-button.hidden {
  display: none;
}

.detail-copy {
  padding-top: 40px;
}

.detail-copy h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 28px;
}

.detail-copy p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 18px;
  line-height: 1.95;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.06);
}

.site-footer {
  margin-top: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-800), var(--gold-900));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 20px;
}

.footer-inner p {
  max-width: 760px;
  color: #fde68a;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  color: #fffbeb;
}

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

@keyframes fadeUp {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    box-shadow: var(--gold-shadow);
  }

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

  .nav-links a {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.18);
  }

  .nav-links a::after {
    display: none;
  }

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

  .hero-content {
    padding-top: 58px;
  }

  .hero-poster {
    display: none;
  }

  .filter-inner {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    flex-direction: column;
  }

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

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

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

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

@media (max-width: 620px) {
  .top-nav {
    min-height: 60px;
    padding: 0 14px;
  }

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

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

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

  .hero-copy p {
    font-size: 17px;
  }

  .content-section,
  .inner-page,
  .detail-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .rank-grid,
  .full-rank,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    height: 340px;
  }

  .rank-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .rank-cover {
    height: 132px;
  }

  .movie-facts {
    grid-template-columns: 1fr;
  }

  .play-button span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
