* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 25px rgba(17, 24, 39, 0.10);
  --shadow-xl: 0 25px 60px rgba(17, 24, 39, 0.18);
  --radius: 18px;
  --max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--white) 42%, var(--gray-50) 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: var(--max-width);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.logo-text {
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--amber-700);
}

.nav-search-button,
.mobile-menu-button {
  border: 0;
  background: transparent;
  color: var(--gray-700);
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-search-button {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  font-size: 24px;
}

.nav-search-button:hover,
.mobile-menu-button:hover {
  color: var(--amber-700);
}

.header-search-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
}

.header-search-panel.open {
  display: block;
}

.header-search-form,
.mobile-search-form {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 10px;
}

.header-search-form input,
.mobile-search-form input,
.page-search input {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  background: var(--white);
}

.header-search-form input:focus,
.mobile-search-form input:focus,
.page-search input:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.header-search-form button,
.mobile-search-form button,
.page-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  color: var(--white);
  background: var(--amber-700);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header-search-form button:hover,
.mobile-search-form button:hover,
.page-search button:hover,
.primary-button:hover {
  background: var(--amber-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.secondary-button {
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.92);
}

.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  padding: 12px 24px 22px;
}

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

.mobile-link {
  display: block;
  padding: 10px 0;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 70vh;
  margin: 0 auto;
  padding: 86px 24px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(180, 83, 9, 0.90);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.90);
}

.hero-meta span {
  padding: 4px 0;
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.main-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}

.main-section.tight {
  padding-top: 42px;
  padding-bottom: 42px;
}

.wide-band {
  background: linear-gradient(90deg, var(--orange-50), var(--amber-50));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-700);
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  font-size: 24px;
  transition: transform 0.25s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15), transparent);
  transition: opacity 0.3s ease;
}

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

.movie-year,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.movie-year {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: rgba(180, 83, 9, 0.92);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(180, 83, 9, 0.92);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s ease;
}

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

.movie-card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-meta-row span {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 700;
  white-space: nowrap;
}

.movie-meta-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.mini-tags {
  margin-top: 12px;
}

.mini-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.stat-card,
.info-card,
.content-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-card {
  padding: 24px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 83, 9, 0.24);
  box-shadow: var(--shadow-md);
}

.category-card h3,
.info-card h2,
.content-card h2,
.category-card h2 {
  margin: 0 0 10px;
}

.category-card p,
.content-card p,
.info-card p {
  color: var(--gray-600);
}

.category-card .count {
  display: inline-flex;
  margin-top: 12px;
  color: var(--amber-700);
  font-weight: 800;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: var(--gray-700);
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--amber-700);
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  color: var(--amber-700);
  font-size: 34px;
  line-height: 1;
}

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

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-search {
  width: min(520px, 100%);
  display: flex;
  gap: 10px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pills a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.filter-pills a:hover,
.filter-pills a.active {
  color: var(--white);
  background: var(--amber-700);
}

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-900);
  box-shadow: var(--shadow-xl);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(180, 83, 9, 0.94);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  font-size: 32px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.play-button:hover {
  transform: scale(1.08);
  background: var(--amber-800);
}

.player-title {
  padding: 18px 22px 22px;
  color: var(--white);
}

.player-title h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.player-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
}

.content-card,
.info-card {
  padding: 26px;
  margin-top: 24px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

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

.info-list dt {
  color: var(--gray-600);
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.poster-panel {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.poster-panel .panel-body {
  padding: 20px;
}

.index-list {
  columns: 4 220px;
  column-gap: 26px;
}

.index-list a {
  display: block;
  break-inside: avoid;
  margin-bottom: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--gray-700);
  background: var(--white);
}

.index-list a:hover {
  color: var(--amber-700);
  box-shadow: var(--shadow-sm);
}

.search-results-empty {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-600);
  text-align: center;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 0;
  color: var(--gray-300);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--gray-300);
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: #f59e0b;
}

.footer-bottom {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 22px;
  color: var(--gray-500);
  text-align: center;
}

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

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .header-inner {
    padding: 0 18px;
  }

  .logo-text {
    font-size: 17px;
  }

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

  .hero-content {
    padding: 72px 18px 88px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 70%, rgba(0, 0, 0, 0.24) 100%);
  }

  .main-section,
  .page-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .movie-grid,
  .movie-grid.featured-grid,
  .movie-grid.ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .movie-card-body p {
    min-height: auto;
  }

  .page-tools,
  .page-search {
    align-items: stretch;
    flex-direction: column;
  }

  .player-title h2 {
    font-size: 19px;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .movie-grid.featured-grid,
  .movie-grid.ranking-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
