:root {
  --bg: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(245, 158, 11, 0.22);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #f97316;
  --black: #030712;
  --radius: 18px;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-width: 0 0 1px;
  border-color: var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
  font-size: 0.85rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
}

.desktop-nav a {
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.header-search input {
  width: 180px;
  padding: 10px 12px;
}

.header-search button,
.search-page-form button,
.primary-btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.search-page-form button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.26);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  border-width: 1px 0 0;
}

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 26, 0.74) 42%, rgba(10, 14, 26, 0.1) 100%),
    linear-gradient(90deg, rgba(10, 14, 26, 0.86), rgba(10, 14, 26, 0.12));
}

.hero-copy {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  max-width: 1180px;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.1rem);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted-strong);
  font-size: 1.1rem;
}

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

.tag-list span,
.year-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-light);
  padding: 4px 10px;
  font-size: 0.78rem;
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 2rem;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--amber);
}

.page-section {
  padding: 64px 0;
}

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

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.section-heading a {
  color: var(--amber-light);
  font-weight: 700;
}

.eyebrow {
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

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

.movie-card,
.movie-row,
.rank-card,
.category-tile {
  overflow: hidden;
  border-radius: var(--radius);
}

.movie-card,
.movie-row,
.rank-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.card-hover {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card-hover:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-poster {
  height: 260px;
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
}

.card-body,
.row-body,
.rank-info {
  padding: 18px;
}

.card-body h3,
.row-body h3,
.rank-info h3,
.large-copy h3 {
  margin: 0;
  color: white;
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.movie-row:hover h3,
.rank-card:hover h3 {
  color: var(--amber-light);
}

.card-body p,
.row-body p,
.rank-info p,
.large-copy p,
.category-tile p {
  color: var(--muted);
  margin: 9px 0 0;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.82rem;
}

.movie-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
}

.row-poster {
  height: 140px;
}

.movie-card-large .large-poster {
  height: 360px;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 60%);
}

.large-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
}

.category-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: center;
  border-radius: 24px;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.08)),
    var(--panel);
}

.category-band h2 {
  margin: 8px 0;
  font-size: 2rem;
}

.category-band p {
  margin: 0;
  color: var(--muted);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-cloud a,
.detail-links a,
.pagination a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  padding: 9px 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.chip-cloud a:hover,
.detail-links a:hover,
.pagination a:hover {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-light);
}

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

.category-tile {
  display: block;
  min-height: 150px;
  padding: 24px;
}

.category-tile span {
  display: block;
  color: var(--amber-light);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.rank-list-full {
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 64px 128px 1fr;
  align-items: center;
  gap: 0;
}

.rank-number {
  display: grid;
  place-items: center;
  color: var(--amber-light);
  font-size: 1.4rem;
  font-weight: 900;
}

.rank-poster {
  height: 92px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(249, 115, 22, 0.09)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 74px 0;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.6fr));
  gap: 12px;
  border-radius: 18px;
  margin-bottom: 26px;
  padding: 16px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 13px;
}

.filter-panel select option {
  background: var(--bg);
}

.empty-state {
  display: none;
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

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

.search-page-form input {
  flex: 1;
  padding: 14px 16px;
}

.search-results:not(:empty) {
  margin-bottom: 30px;
}

.search-title {
  margin: 0 0 20px;
  font-size: 1.8rem;
}

.detail-hero {
  position: relative;
  padding: 60px 0 44px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.detail-head {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  height: 430px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.detail-info p {
  max-width: 820px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

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

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  padding: 8px 13px;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.player-section {
  padding: 32px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22)),
    rgba(0, 0, 0, 0.12);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
}

.player-overlay.is-hidden {
  display: none;
}

.play-badge {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.3);
  font-size: 1.5rem;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  color: var(--muted-strong);
  font-size: 0.9rem;
  pointer-events: none;
}

.detail-content {
  padding: 18px 0 32px;
}

.content-card {
  border-radius: 24px;
  padding: 32px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--amber-light);
  font-size: 1.65rem;
}

.content-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: var(--muted);
  margin-top: 9px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--amber-light);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6b7280;
  padding: 18px;
  text-align: center;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero {
    height: 560px;
  }

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

  .wide-grid,
  .category-band,
  .detail-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    font-size: 1rem;
  }

  .hero {
    height: 520px;
  }

  .hero-copy {
    bottom: 72px;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .feature-grid,
  .wide-grid,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-row,
  .rank-card {
    grid-template-columns: 96px 1fr;
  }

  .rank-number {
    grid-column: 1 / -1;
    justify-content: start;
    padding: 12px 16px 0;
  }

  .row-poster,
  .rank-poster {
    height: 120px;
  }

  .card-poster {
    height: 230px;
  }

  .detail-poster {
    height: 380px;
  }

  .content-card {
    padding: 22px;
  }

  .search-page-form {
    flex-direction: column;
  }
}
