* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: #292524;
  --line: #44403c;
  --text: #fafaf9;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --red: #ef4444;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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(12, 10, 9, 0.86);
  border-bottom: 1px solid rgba(68, 64, 60, 0.7);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #1c1917;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.logo-text {
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #d6d3d1;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-2);
  background: rgba(245, 158, 11, 0.1);
}

.header-search,
.mobile-search,
.quick-search {
  display: flex;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.quick-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--text);
  background: rgba(41, 37, 36, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.quick-search button,
.primary-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--amber);
  color: #1c1917;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.quick-search button:hover,
.primary-btn:hover {
  background: var(--amber-2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 11px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 24px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero {
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0c0a09 6%, rgba(12, 10, 9, 0.78) 38%, rgba(12, 10, 9, 0.1)), linear-gradient(to right, rgba(12, 10, 9, 0.72), transparent 68%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 7vw, 90px);
  bottom: clamp(32px, 7vw, 86px);
  max-width: 700px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--amber-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero p {
  max-width: 640px;
  margin: 0 0 18px;
  color: #d6d3d1;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row,
.quick-links,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-tags span,
.tag-row span,
.quick-links a,
.detail-meta span,
.card-meta span {
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  font-weight: 800;
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.76);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  right: 32px;
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.hero-rail {
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.82);
  padding: 16px;
  align-self: stretch;
  box-shadow: var(--shadow);
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--amber-2);
  font-weight: 800;
}

.rail-head a {
  color: var(--muted);
  font-size: 13px;
}

.quick-search-panel,
.content-section,
.filter-bar,
.breadcrumb,
.detail-hero,
.player-section,
.detail-content,
.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  padding-top: 14px;
  padding-bottom: 26px;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(68, 64, 60, 0.9);
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.72);
  padding: 14px;
  box-shadow: var(--shadow);
}

.quick-links {
  margin-top: 14px;
}

.content-section {
  padding-top: 52px;
  padding-bottom: 16px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.section-head p,
.page-hero p,
.category-card p,
.category-tile p {
  margin: 0;
  color: var(--muted);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.74);
  border-radius: 20px;
  background: rgba(28, 25, 23, 0.86);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.58);
  transform: translateY(-7px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1c1917;
}

.large-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 55%);
}

.score,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--amber-2);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #1c1917;
}

.card-info {
  padding: 15px;
}

.card-info h3,
.compact-card h3,
.rank-row h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.card-info p,
.compact-card p,
.rank-row p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta span {
  color: #d6d3d1;
  background: rgba(68, 64, 60, 0.48);
  border-color: rgba(68, 64, 60, 0.78);
}

.compact-card {
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: rgba(245, 158, 11, 0.08);
}

.compact-card img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-2);
  font-weight: 900;
}

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

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

.category-tile,
.category-card {
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.88));
  padding: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-5px);
}

.tile-images,
.category-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

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

.tile-images img,
.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile h3,
.category-card h2 {
  margin: 0 0 8px;
}

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

.page-hero {
  padding-top: 58px;
  padding-bottom: 34px;
}

.small-hero > div {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: 28px;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.2), transparent 32rem), linear-gradient(135deg, #1c1917, #0c0a09);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 12px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.86);
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: 20px;
  background: rgba(28, 25, 23, 0.8);
  padding: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateX(4px);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-2);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row strong {
  color: var(--amber-2);
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  padding-top: 26px;
  padding-bottom: 34px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(36px, 7vw, 64px);
}

.detail-line {
  max-width: 850px;
  margin: 0 0 18px;
  color: #d6d3d1;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-meta span {
  background: rgba(41, 37, 36, 0.8);
  border-color: rgba(68, 64, 60, 0.84);
}

.detail-info .primary-btn {
  margin-top: 26px;
  width: fit-content;
}

.player-section {
  padding-top: 16px;
  padding-bottom: 40px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  color: var(--text);
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #1c1917;
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.play-overlay strong {
  transform: translateY(-18px);
  font-size: 20px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-bottom: 18px;
}

.detail-content article,
.detail-content aside {
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.78);
  padding: 24px;
}

.detail-content h2 {
  margin: 0 0 12px;
}

.detail-content p {
  margin: 0 0 22px;
  color: #d6d3d1;
}

.detail-content dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-content dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(68, 64, 60, 0.64);
}

.detail-content dt {
  color: var(--muted-2);
  font-size: 13px;
}

.detail-content dd {
  margin: 0;
  color: #f5f5f4;
}

.site-footer {
  margin-top: 68px;
  border-top: 1px solid rgba(68, 64, 60, 0.78);
  background: #0a0908;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--amber-2);
}

.site-footer h3 {
  margin: 0 0 10px;
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 30px;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-head {
    grid-column: 1 / -1;
  }

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

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

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

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

  .hero {
    padding: 14px;
  }

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

  .hero-rail,
  .rank-grid,
  .category-list-grid,
  .detail-hero,
  .detail-content,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row strong {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 14px;
  }

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

  .hero-stage {
    min-height: 500px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 64px;
  }

  .hero-control {
    display: none;
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

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

  .quick-search {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

  .compact-card {
    grid-template-columns: 30px 56px minmax(0, 1fr);
  }

  .compact-card img {
    width: 56px;
    height: 76px;
  }
}
