:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(180, 83, 9, 0.18);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  color: var(--amber-700);
}

.brand-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--amber-600);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #7c2d12;
  font-weight: 650;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: var(--amber-100);
  color: var(--amber-900);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.filter-panel input,
.filter-panel select,
.search-box input {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  min-width: 220px;
}

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

button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.28);
}

.btn.secondary {
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav.is-open {
  display: grid;
}

main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  margin: 28px auto 42px;
  min-height: 560px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 32px;
  padding: 68px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(245, 158, 11, 0.38), transparent 35%),
    linear-gradient(90deg, rgba(24, 16, 8, 0.92), rgba(45, 24, 8, 0.76) 44%, rgba(0, 0, 0, 0.28));
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.86);
  font-weight: 800;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

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

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

.hero-card {
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

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

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 68px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.hero-dot.is-active {
  background: #fff;
}

.section {
  margin: 56px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  color: #111827;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 25px 55px rgba(234, 88, 12, 0.25);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #fb7185, #ea580c);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #22c55e, #0f766e);
}

.category-tile:nth-child(4n) {
  background: linear-gradient(135deg, #8b5cf6, #db2777);
}

.category-icon {
  font-size: 38px;
  margin-bottom: 18px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(120, 53, 15, 0.18);
}

.poster {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background: #451a03;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 55%);
  opacity: 0.72;
}

.play-dot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(245, 158, 11, 0.95);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

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

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.meta-row span,
.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 750;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  background: #fff7ed;
  color: #9a3412;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.filter-panel label span {
  display: block;
  margin: 0 0 7px 4px;
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
}

.page-hero {
  margin: 28px 0 32px;
  padding: 46px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-600);
  text-align: center;
}

.rank-row img {
  width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  margin: 28px 0 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f0902;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

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

.player-cover span {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.96);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

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

.detail-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.1);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.article-box {
  margin: 26px 0;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(120, 53, 15, 0.08);
}

.article-box h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-box p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.search-box input {
  flex: 1;
  min-width: 0;
}

.search-results {
  display: grid;
  gap: 16px;
  margin: 28px 0 56px;
}

.search-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.search-item h2 {
  margin: 0 0 8px;
}

.search-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

.site-footer {
  margin-top: 64px;
  padding: 42px 0;
  color: #ffedd5;
  background: linear-gradient(180deg, var(--amber-900), #431407);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #fed7aa;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hidden-card {
  display: none;
}

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

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

  .nav-wrap {
    justify-content: space-between;
  }

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

@media (max-width: 880px) {
  .top-search {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
    align-items: center;
  }

  .hero-dots {
    left: 34px;
  }

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

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

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

  .rank-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  main,
  .nav-wrap,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 650px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-card {
    display: none;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

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

  .page-hero,
  .article-box,
  .detail-card {
    padding: 24px;
    border-radius: 22px;
  }

  .search-box {
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-num {
    text-align: left;
  }

  .rank-row img {
    width: 100%;
  }
}
