: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;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3e8c6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 38%, #ffffff);
}

body.menu-open {
  overflow: hidden;
}

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;
  background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.24);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-2deg);
}

.logo-title {
  display: block;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--amber-200);
}

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

.main-nav a,
.mobile-nav a {
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.main-nav a {
  padding: 10px 14px;
}

.main-nav a:hover,
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
  margin-top: 6px;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #2b1604;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  opacity: 0.76;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 44%, rgba(252, 211, 77, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.84) 44%, rgba(120, 53, 15, 0.24));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: center;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--amber-200);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero h1 span,
.hero-title-accent {
  color: var(--amber-300);
}

.hero-desc {
  max-width: 720px;
  margin: 0;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  color: var(--amber-900);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: var(--amber-100);
}

.btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.btn-outline:hover {
  color: var(--amber-900);
  background: #ffffff;
}

.hero-panel {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.hero-panel-title {
  margin: 14px 0 4px;
  font-size: 20px;
  font-weight: 900;
}

.hero-panel-meta {
  color: var(--amber-100);
  font-size: 14px;
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--amber-300);
}

.section {
  padding: 62px 0;
}

.section-soft {
  background: linear-gradient(90deg, var(--amber-100), #fff7ed);
}

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

.section-head h2,
.page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(120, 53, 15, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #ffffff);
}

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

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

.badge-row {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.88);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-meta {
  margin: 8px 0 0;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.card-desc {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  min-height: 138px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.14);
}

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

.category-tile span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.06);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
}

.rank-thumb {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  margin: 0;
  font-weight: 900;
  font-size: 17px;
}

.rank-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-heat {
  color: var(--amber-700);
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  padding: 18px;
  margin: 26px 0;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #ead8a8;
  padding: 0 14px;
  color: var(--text);
  outline: none;
  background: #fffdf7;
}

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

.page-hero {
  padding: 64px 0 36px;
  background: linear-gradient(135deg, var(--amber-50), #ffffff);
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--amber-700);
  font-weight: 800;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(270px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.24);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--amber-900);
  background: #ffffff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.detail-card,
.content-card {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}

.detail-meta b {
  color: var(--amber-800);
}

.article-body {
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

.article-body h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
}

.article-body p {
  margin: 0 0 18px;
}

.site-footer {
  margin-top: 52px;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 38px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

  .hero {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 34px;
    padding-bottom: 72px;
  }

  .hero-panel {
    max-width: 360px;
  }

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

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

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

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

  .logo-title {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

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

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .category-list {
    grid-template-columns: 1fr;
  }

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

  .rank-heat {
    grid-column: 3;
  }

  .play-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
