:root {
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(41, 37, 36, 0.16);
  --soft-shadow: 0 12px 30px rgba(41, 37, 36, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fffbeb 0%, var(--stone-100) 34%, #ffffff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-900), var(--amber-700), #c2410c);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.28);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--amber-900);
  background: linear-gradient(135deg, #fff7ed, #fde68a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--amber-100);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-track {
  position: relative;
  min-height: 70vh;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  opacity: 0.82;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.90), rgba(12, 10, 9, 0.50), rgba(12, 10, 9, 0.12)), linear-gradient(0deg, rgba(12, 10, 9, 0.86), rgba(12, 10, 9, 0.04) 58%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(68, 64, 60, 0.20);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.30);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.74), rgba(255, 255, 255, 0.92));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--stone-900);
}

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

.section-more {
  min-width: max-content;
  color: var(--amber-800);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

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

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #dc2626);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--stone-600);
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fef3c7;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--stone-900);
}

.card-body p {
  margin: 0 0 12px;
  color: var(--stone-600);
  line-height: 1.7;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--amber-800);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--stone-800));
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

.category-card strong {
  margin-top: 18px;
  color: var(--amber-100);
}

.page-title {
  padding: 58px 0 42px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.65), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

.page-title h1 {
  max-width: 900px;
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.03em;
}

.page-title p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--amber-100);
  font-weight: 700;
}

.breadcrumbs em {
  color: rgba(255, 255, 255, 0.45);
  font-style: normal;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 200px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(214, 211, 209, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--stone-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: none;
  color: var(--stone-800);
  background: var(--white);
  font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.hidden-by-filter {
  display: none !important;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 72px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(214, 211, 209, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-900));
  font-size: 20px;
  font-weight: 900;
}

.ranking-row img {
  width: 92px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--stone-800);
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--stone-600);
  line-height: 1.65;
}

.detail-hero {
  padding: 56px 0;
  color: var(--white);
  background: radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.62), transparent 30%), linear-gradient(135deg, var(--stone-950), var(--stone-800) 48%, var(--amber-900));
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-800));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  padding: 54px 0 30px;
  background: var(--stone-950);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  font-size: 34px;
}

.detail-article {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
}

.detail-copy {
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--soft-shadow);
}

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

.detail-copy p {
  margin: 0 0 22px;
  color: var(--stone-700);
  line-height: 1.9;
  font-size: 17px;
}

.side-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  box-shadow: var(--soft-shadow);
}

.side-panel h2 {
  margin: 0 0 16px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-list a {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.side-list img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--stone-800);
}

.side-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--stone-900);
}

.side-list span {
  color: var(--stone-600);
  font-size: 13px;
}

.site-footer {
  margin-top: 0;
  color: var(--stone-200);
  background: linear-gradient(90deg, var(--stone-900), var(--stone-800), var(--stone-900));
}

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

.footer-inner h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
  color: var(--stone-300);
  line-height: 1.8;
}

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

.footer-inner a {
  color: var(--stone-300);
}

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

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

@media (max-width: 1060px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 780px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
  }

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

  .nav-link {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero,
  .hero-track,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-grid,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 48px 72px 1fr;
  }

  .ranking-row .btn {
    grid-column: 1 / -1;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
  }

  .ranking-row img {
    width: 72px;
    height: 102px;
  }

  .detail-copy {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

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

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

  .card-body h2,
  .card-body h3 {
    font-size: 18px;
  }
}
