* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.35);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --blue: #38bdf8;
  --green: #22c55e;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.14), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  color: #111827;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 15px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

.hero {
  min-height: 72vh;
  padding: 0 0 42px;
}

.hero-stage {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  min-height: 72vh;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 45%),
    radial-gradient(circle at 24% 30%, rgba(245, 158, 11, 0.24), transparent 32rem);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1280px) / 2));
  transform: translateY(-50%);
  width: min(760px, calc(100% - 48px));
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  margin: 18px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1.18;
  color: #fff;
}

.hero-content p,
.page-hero p,
.section-head p,
.feature-panel p,
.detail-info .lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 740px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.search-strip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.search-strip button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.btn.primary,
.search-strip button {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  font-weight: 800;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.hero-tags {
  margin-top: 20px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  background: rgba(2, 6, 23, 0.55);
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

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

.section,
.section-narrow,
.detail-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-narrow {
  padding: 34px 0;
}

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

.section-head h2,
.compact-head h2,
.detail-text h2,
.site-footer h2 {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.more-link {
  color: var(--amber-2);
  font-weight: 700;
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.search-strip label,
.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--weak);
  font-size: 0.88rem;
}

.search-strip input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  padding: 0 14px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(150px, 0.6fr));
  gap: 14px;
}

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

.category-tile,
.category-card,
.feature-panel,
.movie-card,
.player-card,
.detail-info,
.detail-text article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.72));
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.category-tile,
.category-card {
  padding: 22px;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-tile strong,
.category-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
}

.category-tile span,
.category-card p,
.category-samples a {
  color: var(--muted);
  font-size: 0.94rem;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

.rank-num {
  color: var(--amber-2);
  font-weight: 900;
  font-size: 1.3rem;
  text-align: center;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.rank-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-text strong,
.card-title {
  color: #fff;
  font-weight: 800;
}

.rank-text em {
  color: var(--weak);
  font-style: normal;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--amber-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-title {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 46px;
  margin: 9px 0 0;
  color: var(--weak);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.76rem;
}

.page-hero {
  padding-top: 54px;
  padding-bottom: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--weak);
  font-size: 0.92rem;
}

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

.detail-section {
  padding: 42px 0 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.player-card {
  padding: 14px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.video-frame video,
.video-cover,
.video-cover img {
  width: 100%;
  height: 100%;
}

.video-frame video {
  object-fit: contain;
  background: #000;
}

.video-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #fff;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-cover img {
  object-fit: cover;
  filter: brightness(0.58) saturate(1.12);
}

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

.play-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play-ring span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 0 0 14px rgba(245, 158, 11, 0.17), 0 20px 60px rgba(0, 0, 0, 0.46);
  font-size: 2rem;
}

.detail-info {
  padding: 28px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.info-list span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(2, 6, 23, 0.4);
}

.info-list strong {
  color: var(--amber-2);
  font-size: 0.78rem;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-text article {
  padding: 24px;
}

.detail-text p {
  margin-top: 12px;
  color: var(--muted);
}

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

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

.site-footer {
  margin-top: 36px;
  padding: 42px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.5fr 0.5fr;
  gap: 32px;
}

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

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

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

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  color: var(--weak);
  font-size: 0.88rem;
}

[hidden] {
  display: none !important;
}

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

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

  .split-section,
  .detail-grid,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    position: static;
  }
}

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

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

  .hero,
  .hero-stage,
  .hero-slide > img {
    min-height: 78vh;
  }

  .hero-content {
    top: auto;
    bottom: 82px;
    left: 20px;
    transform: none;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .filter-row,
  .footer-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 44px 0;
  }

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

@media (max-width: 520px) {
  .nav-wrap,
  .section,
  .section-narrow,
  .detail-section,
  .footer-grid,
  .copyright,
  .mobile-nav {
    width: min(100% - 22px, 1280px);
  }

  .movie-grid,
  .related-grid,
  .side-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2rem;
  }
}
