:root {
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --orange-50: #fff7ed;
  --amber-50: #fffbeb;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --radius-xl: 1.25rem;
  --radius-lg: 0.875rem;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.10);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

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(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
  font-size: 0.8rem;
}

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

.main-nav a,
.mobile-panel a {
  color: var(--gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: var(--amber-700);
}

.nav-search {
  width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.hero-search input,
.page-search input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.page-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.nav-search button,
.hero-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--amber-700);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.page-search button:hover {
  background: var(--amber-800);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-800);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.mobile-panel.is-open {
  display: flex;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22));
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  min-height: 70vh;
  margin: 0 auto;
  padding: 88px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 390px;
  align-items: center;
  gap: 36px;
}

.hero-copy {
  color: var(--white);
  max-width: 720px;
}

.hero-badge,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.92);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 18px 0 4px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: #fde68a;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.hero-meta,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  background: var(--amber-700);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(180, 83, 9, 0.34);
}

.primary-button:hover {
  background: var(--amber-800);
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-search {
  margin-top: 30px;
  display: flex;
  max-width: 620px;
  gap: 10px;
}

.hero-search input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.94);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 20px;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  color: var(--white);
}

.hero-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.hero-mini {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.hero-mini img {
  grid-row: 1 / span 2;
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini span {
  align-self: end;
  font-weight: 800;
}

.hero-mini em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.88rem;
}

.content-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px;
}

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

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

.section-heading span {
  background: var(--amber-700);
  color: var(--white);
  padding: 5px 12px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.1;
}

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

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

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

.movie-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.72);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
  overflow: hidden;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.05);
}

.card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-tags {
  margin: 0 0 10px;
  gap: 6px;
  color: var(--amber-700);
}

.card-tags span {
  background: var(--amber-50);
  font-size: 0.75rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.card-body p {
  margin: 8px 0 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.movie-card-small .card-body p {
  display: none;
}

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

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

.category-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 231, 235, 0.9);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  font-weight: 900;
}

.category-card h2 {
  margin: 14px 0 8px;
  font-size: 1.22rem;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
}

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

.category-samples a,
.cross-links a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-800);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 78px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.84);
  box-shadow: var(--shadow-card);
}

.rank-cover img {
  width: 78px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 900;
}

.rank-content h2 {
  margin: 0;
  font-size: 1.18rem;
}

.rank-content h2 a:hover {
  color: var(--amber-700);
}

.rank-content p {
  margin: 5px 0 0;
  color: var(--gray-600);
}

.meta-line {
  color: var(--gray-500) !important;
  font-size: 0.92rem;
}

.heat-pill {
  justify-self: end;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--amber-800);
  background: var(--amber-50);
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-800), var(--orange-600));
}

.purple-hero {
  background: linear-gradient(135deg, #6d28d9, #c026d3);
}

.page-hero > div {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 72px 20px;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.05;
}

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

.page-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
  margin-top: 28px;
}

.page-search input {
  min-height: 56px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: var(--shadow-card);
}

.filter-toolbar select {
  border-radius: 16px;
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--gray-950);
}

.detail-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 20px 72px;
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster img {
  width: 260px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.detail-tags {
  color: var(--white);
}

.detail-main {
  padding-top: 42px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gray-950);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.video-card.is-playing .play-button {
  display: none;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  color: var(--white);
  font-weight: 700;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 30px;
}

.text-card,
.info-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: var(--shadow-card);
}

.text-card h2,
.info-card h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.text-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.04rem;
}

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

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.info-card dt {
  color: var(--gray-500);
}

.info-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.related-section {
  margin-top: 30px;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: var(--shadow-card);
}

.search-result-card img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

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

.search-result-card p {
  margin: 6px 0;
  color: var(--gray-600);
}

.search-empty {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--gray-600);
}

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

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-grid strong {
  display: block;
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.08rem;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 18px 20px;
  color: var(--gray-500);
}

[data-filter-card].is-hidden {
  display: none;
}

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

  .nav-search {
    margin-left: auto;
  }

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

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

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

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

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

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 64px;
    gap: 12px;
  }

  .nav-search {
    display: none;
  }

  .hero-inner {
    padding-top: 56px;
  }

  .hero-search,
  .page-search {
    flex-direction: column;
  }

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

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

  .rank-item {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .rank-number {
    position: absolute;
    margin-left: 44px;
    margin-top: -8px;
    width: 34px;
    height: 34px;
    font-size: 0.86rem;
  }

  .heat-pill {
    justify-self: start;
    grid-column: 2;
  }

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

  .detail-poster img {
    width: 180px;
  }

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

  .search-result-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .search-result-card img {
    width: 82px;
    height: 116px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini {
    grid-template-columns: 58px 1fr;
  }

  .hero-mini img {
    width: 58px;
    height: 78px;
  }
}
