:root {
  --golden-50: #fffbeb;
  --golden-100: #fef3c7;
  --golden-200: #fde68a;
  --golden-300: #fcd34d;
  --golden-400: #fbbf24;
  --golden-500: #f59e0b;
  --golden-600: #d97706;
  --golden-700: #b45309;
  --golden-800: #92400e;
  --golden-900: #78350f;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --white: #ffffff;
  --shadow-warm: 0 10px 30px rgba(146, 64, 14, 0.14);
  --shadow-golden: 0 14px 34px rgba(245, 158, 11, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--golden-50), #ffffff 45%, #fff7ed);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  box-shadow: var(--shadow-golden);
}

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

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

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

.brand-text {
  font-size: 22px;
  letter-spacing: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(180, 83, 9, 0.98);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #221100;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 12, 0, 0.9), rgba(30, 12, 0, 0.56) 45%, rgba(30, 12, 0, 0.14)), linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 92px 0 72px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7d6;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -2px;
}

.hero p {
  max-width: 720px;
  color: #fff4cf;
  font-size: 18px;
  line-height: 1.85;
  margin: 0;
}

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

.hero-meta span,
.meta-pill {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
  font-size: 14px;
  color: #fff7d6;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  box-shadow: var(--shadow-golden);
}

.btn-secondary {
  color: #7c2d12;
  background: #ffffff;
}

.btn-ghost {
  color: #fff7d6;
  background: rgba(255, 255, 255, 0.16);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
}

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.page-hero {
  color: #ffffff;
  padding: 98px 16px 54px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

.page-hero-inner,
.content-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff7d6;
  font-size: 18px;
  line-height: 1.8;
}

.content-wrap {
  padding: 48px 0 72px;
}

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

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading .section-kicker {
  background: var(--golden-100);
  color: var(--golden-700);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: #111827;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.quick-search {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 50px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-warm);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.quick-search label {
  display: grid;
  gap: 7px;
  color: #92400e;
  font-weight: 800;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  min-height: 48px;
  padding: 0 14px;
  outline: none;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-warm);
}

.search-box {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #92400e;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-lg);
  background: #241000;
  box-shadow: var(--shadow-warm);
  color: #ffffff;
  padding: 22px;
  display: grid;
  align-content: end;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.35s ease;
}

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

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

.category-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(33, 13, 0, 0.9), rgba(33, 13, 0, 0.22));
}

.category-card strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card em {
  color: #fff0bd;
  font-style: normal;
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-warm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body {
  padding: 14px;
}

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

.card-title:hover {
  color: var(--golden-600);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a5a10;
  font-size: 12px;
}

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

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

.feature-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  border-radius: var(--radius-lg);
}

.feature-card .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-warm);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #fbbf24;
}

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

.rank-title {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.rank-title:hover {
  color: var(--golden-600);
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-page {
  padding-top: 34px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 20px;
  color: #8a5a10;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--golden-700);
  font-weight: 800;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 28px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-golden);
}

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

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

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

.play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.45);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  border-left: 24px solid #ffffff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.detail-card,
.side-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-warm);
  padding: 24px;
}

.detail-card h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  color: #111827;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 22px;
}

.detail-meta span {
  border-radius: 999px;
  background: #fff1bf;
  color: #8a5a10;
  padding: 7px 11px;
  font-weight: 800;
  font-size: 13px;
}

.detail-copy {
  display: grid;
  gap: 22px;
}

.detail-copy h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
  font-weight: 900;
}

.detail-copy p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-copy .lead {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #78350f;
  font-weight: 800;
}

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

.tag-list span {
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 7px 12px;
  font-size: 14px;
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.detail-card .btn-ghost,
.content-wrap .btn-ghost {
  color: #92400e;
  background: #fef3c7;
}

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

.compact-card img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #fbbf24;
}

.compact-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.45;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-warm);
}

.empty-state.show {
  display: block;
}

.site-footer {
  color: #fff7d6;
  background: linear-gradient(135deg, #92400e, #78350f);
  padding: 46px 0 22px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 30px;
  align-items: start;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  color: #fde68a;
  font-size: 14px;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .filter-panel,
  .quick-search {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-item {
    grid-template-columns: 44px 96px 1fr;
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .rank-body p {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .compact-card {
    grid-template-columns: 82px 1fr;
  }

  .compact-card img {
    width: 82px;
  }
}
