:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --dark: #15110a;
  --text: #3b2607;
  --muted: #8a5a16;
  --line: rgba(180, 83, 9, 0.18);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--orange-50) 48%, var(--amber-50) 100%);
  line-height: 1.6;
}

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: 80;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  padding: 10px 15px;
  color: var(--amber-900);
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--amber-100);
  color: var(--amber-800);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-100);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--amber-900);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(255, 251, 235, 0.98);
}

.mobile-nav-row,
.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-category-grid {
  margin-top: 10px;
}

.mobile-category-link {
  padding: 9px 12px;
  color: var(--amber-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  height: 600px;
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at top left, #fed7aa, #451a03 70%);
  transform: scale(1.03);
}

.hero-slide.active > img {
  animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-overlay,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(21, 17, 10, 0.96), rgba(21, 17, 10, 0.1) 58%, rgba(21, 17, 10, 0.34));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding: 0 0 76px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-actions,
.detail-meta,
.quick-links,
.footer-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.ghost-btn,
.search-strip button,
.video-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.3);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover,
.search-strip button:hover,
.video-start:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.08);
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.36);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-btn {
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-slider:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.56);
}

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

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

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

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

.hero-dots button.active {
  width: 34px;
  background: var(--amber-500);
}

.quick-search-panel,
.page-section,
.split-section,
.filter-panel,
.detail-content,
.player-section {
  margin-top: 54px;
}

.quick-search-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  transform: translateY(-46px);
  margin-bottom: -46px;
  backdrop-filter: blur(18px);
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-strip input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  color: var(--amber-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-links {
  margin-top: 14px;
}

.quick-links a,
.tag-row span,
.detail-meta span,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: var(--amber-800);
  background: var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.section-head.small {
  align-items: center;
}

.section-head h2 {
  margin: 0 0 8px;
  color: var(--amber-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-head span {
  display: block;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(120, 53, 15, 0.18);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #fef3c7, #f97316 42%, #451a03 100%);
}

.card-poster img,
.category-covers img,
.compact-card img,
.detail-cover img,
.video-shell video,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-poster img,
.category-covers img,
.compact-card img,
.detail-cover img,
.detail-bg,
.hero-slide > img {
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.card-poster img.image-missing,
.category-covers img.image-missing,
.compact-card img.image-missing,
.detail-cover img.image-missing,
.detail-bg.image-missing,
.hero-slide > img.image-missing {
  opacity: 0;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(217, 119, 6, 0.95);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(217, 119, 6, 0.96);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 17px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0;
  color: var(--amber-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-700);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  min-height: 25px;
  padding: 3px 9px;
  font-size: 12px;
}

.tag-row.big span {
  min-height: 32px;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.movie-card.wide .card-poster {
  aspect-ratio: 16 / 9;
}

.ranking-panel,
.amber-band,
.category-overview-card,
.story-card,
.ranking-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.88), rgba(255, 237, 213, 0.88));
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 26px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.ranking-list,
.rank-table,
.category-overview-list {
  display: grid;
  gap: 10px;
}

.ranking-item,
.rank-row,
.compact-card {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item {
  grid-template-columns: 42px 1fr auto;
  padding: 11px;
}

.ranking-item:hover,
.rank-row:hover,
.compact-card:hover {
  background: #fff;
  transform: translateX(4px);
}

.ranking-item b,
.rank-row b {
  color: var(--orange-600);
  font-size: 18px;
}

.ranking-item span,
.rank-row span {
  color: var(--amber-900);
  font-weight: 800;
}

.ranking-item small,
.rank-row small,
.compact-card small {
  color: var(--muted);
}

.amber-band {
  padding: 30px;
}

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

.category-box {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(180, 83, 9, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(120, 53, 15, 0.16);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 13px;
}

.category-covers img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: radial-gradient(circle, #fed7aa, #92400e);
}

.category-box strong {
  display: block;
  color: var(--amber-900);
  font-size: 17px;
}

.category-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.subpage {
  padding-bottom: 50px;
}

.page-hero {
  margin-top: 34px;
  padding: 54px;
  overflow: hidden;
  position: relative;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.42), transparent 36%),
    linear-gradient(135deg, #451a03, #78350f 48%, #ea580c);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.compact-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--amber-800);
  font-weight: 800;
}

.breadcrumb.light {
  color: #ffedd5;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.category-overview {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  padding: 28px;
}

.category-overview-text span {
  color: var(--orange-600);
  font-weight: 900;
}

.category-overview-text h2 {
  margin: 10px 0;
  color: var(--amber-900);
  font-size: 32px;
}

.category-overview-text p {
  color: var(--muted);
}

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

.compact-card img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: radial-gradient(circle, #fed7aa, #92400e);
}

.compact-card strong {
  display: block;
  color: var(--amber-900);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar.slim {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.rank-table {
  gap: 8px;
}

.rank-row {
  grid-template-columns: 52px minmax(0, 1fr) 220px 90px;
  padding: 13px 16px;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  filter: blur(2px);
  background: radial-gradient(circle, #fed7aa, #451a03);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 42px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  min-height: 500px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, #fed7aa, #92400e);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.detail-info h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.detail-one-line {
  width: min(780px, 100%);
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-meta span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-info .primary-btn {
  margin-top: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 36%),
    linear-gradient(135deg, #0c0a09, #451a03);
  box-shadow: 0 30px 70px rgba(69, 26, 3, 0.24);
}

.video-shell video {
  display: block;
  background: #0c0a09;
}

.video-start {
  position: absolute;
  left: 50%;
  top: 50%;
  gap: 10px;
  min-height: 58px;
  padding: 0 32px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.video-start span {
  font-size: 18px;
}

.video-shell.playing .video-start {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
}

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

.story-card p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  color: #ffedd5;
  background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #fcd34d;
}

.footer-links a {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 13px;
}

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

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

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

  .split-section,
  .detail-content,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel.open {
    display: block;
  }

  .hero-slider {
    height: 560px;
  }

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

  .quick-search-panel {
    transform: none;
    margin-top: 22px;
    margin-bottom: 0;
  }

  .search-strip,
  .filter-bar,
  .filter-bar.slim,
  .detail-layout,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .detail-layout {
    min-height: auto;
  }

  .detail-cover {
    width: min(280px, 80vw);
  }

  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .dense-grid,
  .spotlight-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .story-card,
  .amber-band,
  .ranking-panel {
    padding: 20px;
  }

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

  .video-start {
    min-height: 50px;
    padding: 0 22px;
  }
}
