:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #f59e0b;
  --amber-500: #d97706;
  --amber-600: #b45309;
  --amber-800: #78350f;
  --amber-950: #451a03;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3e4c5;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 42%, #fffaf0);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(120, 53, 15, 0.06);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 26px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-500), #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-500);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--amber-700);
  font-size: 28px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 20px 18px;
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px;
}

.section.compact {
  padding-top: 42px;
}

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

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.05em;
  color: #111827;
}

.section-title p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(135deg, #451a03, #111827 58%, #0f172a);
}

.hero-track {
  position: relative;
  min-height: 650px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.08) contrast(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(69, 26, 3, 0.76) 48%, rgba(17, 24, 39, 0.38));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 96px 20px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: center;
  color: #fff;
}

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

.hero-content h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--amber-100);
  color: var(--amber-800);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

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

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #fff;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero-side {
  display: grid;
  gap: 14px;
}

.hero-feature-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.hero-feature-card img {
  width: 112px;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
}

.hero-feature-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-feature-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
}

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

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

.hero-dots button.active {
  background: var(--amber-400);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

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

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

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  color: var(--amber-600);
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.category-grid,
.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, var(--amber-50));
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -36px;
  bottom: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 70%);
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  color: #111827;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fff7ed);
}

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

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

.rating-badge,
.type-badge {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.rating-badge {
  left: 14px;
  background: var(--amber-500);
}

.type-badge {
  right: 14px;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--amber-500);
}

.movie-card p {
  min-height: 66px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.07);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 0 14px;
  color: #374151;
  background: #fffaf0;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.06);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
}

.rank-row img {
  width: 82px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--amber-100);
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.rank-score {
  color: var(--amber-600);
  font-size: 20px;
  font-weight: 900;
}

.detail-top {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(135deg, #451a03, #111827 70%);
  color: #fff;
}

.detail-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 20px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  background: var(--amber-100);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.83);
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.player-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 20px 28px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
  cursor: pointer;
  transition: opacity 0.18s ease;
}

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

.play-circle {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), #ea580c);
  font-size: 36px;
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.38);
}

.article-block {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px;
}

.article-card {
  padding: 30px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.9;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.mini-card img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--amber-100);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.mini-card em {
  color: var(--amber-600);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

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

.site-footer {
  margin-top: 50px;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900, #78350f), var(--amber-950));
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-200);
}

.site-footer p {
  max-width: 500px;
  margin: 0;
  color: #fde68a;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--amber-200);
}

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

.footer-links a {
  color: #fde68a;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 30px;
  color: #fde68a;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
}

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-slider,
  .hero-track,
  .hero-content {
    min-height: 780px;
  }

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

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

  .hero-search {
    display: grid;
    gap: 8px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .movie-grid,
  .category-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .rank-row {
    grid-template-columns: 46px 64px minmax(0, 1fr);
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 21px;
  }

  .section {
    padding: 52px 16px;
  }

  .section-title {
    display: block;
  }

  .movie-grid,
  .category-grid,
  .related-grid,
  .footer-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .poster-link {
    height: 360px;
  }

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

  .hero-feature-card img {
    width: 86px;
    height: 116px;
  }

  .hero-arrow {
    display: none;
  }

  .detail-cover img {
    height: 460px;
  }
}
