:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-solid: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --orange: #f97316;
  --orange-soft: #fb923c;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.18), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(239, 68, 68, 0.16), transparent 28%),
    linear-gradient(180deg, #020617 0%, var(--bg) 36%, #0f172a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(20px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.16);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
}

.menu-button span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.44) 100%),
    radial-gradient(circle at 60% 14%, rgba(249, 115, 22, 0.26), transparent 28%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(64vw, 920px);
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  mask-image: linear-gradient(90deg, transparent 0%, black 24%, black 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.hero-copy {
  width: min(690px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  font-size: 14px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-size: clamp(42px, 7vw, 92px);
}

.hero p,
.page-hero p,
.detail-title p {
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.46);
  background: rgba(249, 115, 22, 0.16);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-soft), var(--red));
}

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

.hero-meta span,
.detail-meta span,
.tag-row span,
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  color: var(--muted-strong);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 56px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.quick-search {
  position: relative;
  z-index: 5;
  margin-top: -46px;
}

.quick-search-inner,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  outline: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
}

.search-box input:focus,
.select-box select:focus {
  border-color: rgba(249, 115, 22, 0.6);
}

.section {
  padding: 76px 0 0;
}

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

.section-kicker {
  margin: 0 0 10px;
  color: var(--orange-soft);
  font-weight: 700;
}

.section h2,
.category-card h2,
.site-footer h2,
.detail-block h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-header p,
.category-card p,
.detail-block p,
.site-footer p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card,
.category-card,
.rank-row,
.detail-card,
.player-shell {
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

.poster-link img,
.rank-cover img,
.related-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img,
.rank-row:hover .rank-cover img,
.related-card:hover .related-cover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.score-badge,
.rank-hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 800;
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-body h2,
.rank-info h2,
.related-card h2 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a,
.rank-info h2 a,
.related-card h2 a {
  transition: color 0.2s ease;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.related-card h2 a:hover {
  color: var(--orange-soft);
}

.card-body p,
.rank-info p,
.related-card p {
  margin: 10px 0 0;
  color: var(--muted-strong);
  line-height: 1.7;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.category-card {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-card strong {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(239, 68, 68, 0.95));
}

.category-card h2 {
  font-size: 22px;
}

.category-card p {
  margin: 12px 0 0;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  padding: 86px 0 34px;
  position: relative;
  overflow: hidden;
}

.page-hero:before,
.detail-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.18), transparent 28%),
    radial-gradient(circle at 90% 5%, rgba(239, 68, 68, 0.18), transparent 24%);
  pointer-events: none;
}

.page-hero .container,
.detail-hero .container {
  position: relative;
}

.filter-panel {
  margin-bottom: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.rank-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  font-weight: 900;
}

.rank-cover {
  width: 84px;
  height: 116px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
}

.rank-info h2 {
  margin-top: 0;
}

.rank-hot {
  width: 56px;
  height: 56px;
}

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

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.82));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

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

.play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 24px 50px rgba(239, 68, 68, 0.34);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid currentColor;
}

.detail-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.detail-card + .detail-card,
.detail-block + .detail-block {
  margin-top: 20px;
}

.detail-block p {
  margin-top: 12px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.7);
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.related-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

.related-card .card-body {
  padding: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.site-footer {
  margin-top: 96px;
  padding: 46px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.78);
}

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

.footer-brand {
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.16);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  color: var(--muted-strong);
  text-align: center;
}

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

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

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

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

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

  .menu-button {
    display: flex;
  }

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

  .hero-slide img {
    width: 100%;
    opacity: 0.38;
    mask-image: none;
  }

  .quick-search-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-header,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .rank-hot {
    display: none;
  }
}

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

  .brand-text {
    font-size: 19px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 38px;
  }

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

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

  .rank-cover {
    display: none;
  }

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