:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0f1117;
  --bg-card: #151923;
  --bg-card-2: #1f2937;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(251, 191, 36, 0.35);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --amber-dark: rgba(120, 53, 15, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #000000 0%, #111827 45%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.96), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.navbar {
  max-width: var(--max);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #111827;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32);
  font-size: 15px;
}

.brand-text {
  font-size: 26px;
  background: linear-gradient(90deg, #fde68a, #fef3c7, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #d1d5db;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.2), transparent 36%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.14), transparent 34%),
    #050505;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 24px 84px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.28);
  color: #fcd34d;
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 1.1;
  font-weight: 850;
  color: white;
}

.hero p,
.page-hero p {
  max-width: 740px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.movie-meta span,
.detail-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.13);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.tag-row span {
  padding: 7px 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #111827;
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: #f9fafb;
}

.btn-ghost:hover {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
}

.hero-art {
  position: relative;
  z-index: 1;
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 500px;
  background: #111827;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-6deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  color: white;
  font-size: 20px;
}

.hero-card-caption span {
  color: var(--muted);
  font-size: 14px;
}

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

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

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

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

.section {
  margin-top: 68px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-title {
  margin: 0;
  color: white;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 850;
}

.section-title span {
  color: var(--amber-soft);
}

.section-link {
  color: var(--muted);
  font-weight: 700;
}

.section-link:hover {
  color: var(--amber-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.94));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.quality-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

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

.movie-title {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-title:hover,
.movie-card:hover .movie-title {
  color: var(--amber-soft);
}

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

.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-meta span {
  padding: 4px 8px;
  color: #fbbf24;
  font-size: 12px;
}

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

.compact-card .movie-title {
  font-size: 15px;
}

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

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(31, 41, 55, 0.94), rgba(15, 23, 42, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.45);
}

.category-tile h2,
.category-tile h3 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.category-section {
  margin-top: 48px;
}

.category-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-section-title h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fbbf24;
  font-size: 24px;
}

.category-section-title h2::before {
  content: "";
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: var(--amber-soft);
}

.list-stack {
  display: grid;
  gap: 16px;
}

.list-movie {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.78);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.list-movie:hover {
  background: rgba(55, 65, 81, 0.78);
  border-color: rgba(251, 191, 36, 0.3);
}

.list-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.list-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 20px;
  font-weight: 850;
}

.list-heading a:hover {
  color: var(--amber-soft);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.list-content p {
  margin: 8px 0 13px;
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(2, 6, 23, 0.88));
}

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

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin: 30px 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
  color: #111827;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.28);
  font-size: 34px;
  transform: translateX(3px);
}

.player-info {
  padding: 20px 24px 24px;
}

.player-info h1,
.detail-card h2,
.side-card h2 {
  margin: 0;
  color: white;
  font-weight: 850;
}

.player-info h1 {
  font-size: 30px;
}

.player-info p {
  margin: 10px 0 0;
  color: var(--muted);
}

.detail-card,
.side-card {
  padding: 24px;
}

.detail-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.detail-card p {
  color: #d1d5db;
  margin: 0 0 18px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
  background: #0f172a;
}

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

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.detail-chip {
  padding: 7px 10px;
}

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

.hidden-by-filter {
  display: none !important;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.92);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
  gap: 34px;
}

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

.footer-brand p {
  max-width: 520px;
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fef3c7;
  font-size: 18px;
}

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

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

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

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

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

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

@media (max-width: 860px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .hero {
    min-height: 790px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 72px 18px 74px;
  }

  .hero-poster {
    min-height: 310px;
    transform: none;
  }

  .hero-poster img {
    min-height: 310px;
  }

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

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

@media (max-width: 640px) {
  .main {
    padding: 42px 16px;
  }

  .movie-grid,
  .movie-grid.six-col,
  .related-grid,
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .list-movie {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .list-content p {
    display: none;
  }

  .list-heading {
    font-size: 16px;
  }

  .rank-index {
    width: 34px;
    height: 34px;
  }

  .player-info h1 {
    font-size: 24px;
  }

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