:root {
  --golden-50: #fffbeb;
  --golden-100: #fef3c7;
  --golden-300: #fcd34d;
  --golden-400: #fbbf24;
  --golden-500: #f59e0b;
  --golden-600: #d97706;
  --golden-700: #b45309;
  --golden-800: #92400e;
  --golden-900: #78350f;
  --sunshine-50: #fff9f0;
  --sunshine-100: #fff3e0;
  --sunshine-500: #ffa726;
  --sunshine-700: #f57c00;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --line: #f3d18b;
  --card: #ffffff;
  --shadow-golden: 0 18px 45px rgba(251, 191, 36, 0.32);
  --shadow-warm: 0 14px 34px rgba(245, 158, 11, 0.15);
  --radius: 22px;
  --radius-sm: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--golden-50), var(--sunshine-50));
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-600));
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.39);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--golden-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-weight: 700;
}

.site-nav > a {
  padding: 9px 12px;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.site-nav > a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 7px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.header-search button,
.btn,
.hero-card__action,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  color: var(--golden-800);
  background: #ffffff;
  font-weight: 900;
  padding: 9px 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.header-search button:hover,
.btn:hover,
.hero-card__action:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.24);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.main-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #1f1305;
}

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

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

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(251, 191, 36, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 52%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 42px;
  padding-top: 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--golden-100);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  font-size: clamp(34px, 5.5vw, 66px);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.hero-actions a:first-child {
  color: var(--golden-900);
  background: linear-gradient(135deg, #ffffff, var(--golden-100));
}

.hero-actions a:last-child {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

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

.hero-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--golden-400);
}

.section-block {
  margin-bottom: 46px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 950;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-500);
}

.section-heading a {
  color: var(--golden-700);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-warm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--golden-100), var(--sunshine-100));
}

.movie-card__poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.055);
}

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-700));
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.movie-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card__meta {
  color: var(--golden-700);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-card p {
  margin: 0 0 12px;
  color: var(--ink-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.movie-card__tags span,
.detail-tags span,
.category-pills a span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--golden-800);
  background: var(--golden-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

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

.category-pills a {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-warm);
  font-weight: 950;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.category-pills a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
  transform: translateY(-4px);
}

.category-pills a:hover span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
  padding: 22px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-warm);
}

.filter-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 950;
}

.filter-panel p {
  margin: 0;
  color: var(--ink-500);
}

.filter-panel__controls {
  min-width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: 0;
  background: var(--golden-50);
}

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

.page-hero {
  padding: 64px 0 34px;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
  color: #ffffff;
}

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

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--golden-700);
  font-weight: 800;
}

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

.detail-card,
.sidebar-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-warm);
}

.detail-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  padding: 26px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-score {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 78px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-400), var(--golden-700));
  box-shadow: var(--shadow-golden);
  font-weight: 950;
}

.detail-score strong {
  font-size: 26px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink-500);
  font-weight: 800;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.detail-content h2,
.sidebar-card h2 {
  margin: 26px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 950;
}

.detail-content p {
  margin: 0 0 16px;
  color: var(--ink-700);
}

.sidebar-card {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--golden-100);
}

.related-item strong {
  display: block;
  line-height: 1.35;
  font-weight: 950;
}

.related-item span {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, var(--golden-800), var(--golden-900));
}

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

.site-logo--footer {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 430px;
  color: var(--golden-100);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer a,
.site-footer span {
  display: block;
  color: var(--golden-100);
  margin: 6px 0;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  text-align: center;
  color: var(--golden-100);
}

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

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

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

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

  .hero-card {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 64px;
  }

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

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 16px 18px;
    background: var(--golden-600);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-search {
    border-radius: 18px;
  }

  .header-search input {
    width: 100%;
  }

  .hero-carousel,
  .hero-slide__content {
    min-height: 560px;
  }

  .filter-panel,
  .section-heading,
  .detail-title-row {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .category-pills,
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .main-wrap {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .movie-grid,
  .movie-grid--six,
  .category-pills,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-copy h2 {
    letter-spacing: -0.03em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .movie-card {
    border-radius: 18px;
  }

  .related-item {
    grid-template-columns: 86px 1fr;
  }
}
