:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --card: rgba(30, 41, 59, 0.62);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --gold: #f59e0b;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 78% 8%, rgba(248, 113, 22, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #111827;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.3);
}

.brand-text {
  font-size: 1.08rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--soft);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
  border-radius: 3px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.52);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.88)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 55%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 56px;
  padding-top: 120px;
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-meta span,
.meta-line span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.38);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.48);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.12);
}

.hero-poster {
  position: relative;
  align-self: center;
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-7deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  color: var(--text);
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.search-panel {
  position: relative;
  z-index: 30;
  margin-top: -36px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel.inside-page {
  margin-top: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.55);
  padding: 0 16px;
}

.search-box span {
  color: var(--gold);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  height: 52px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-results {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.search-results.is-active {
  display: grid;
}

.search-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.search-result-item img {
  width: 56px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  line-height: 1.35;
}

.search-result-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.section-block {
  padding: 62px 0 0;
}

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

.section-head.compact {
  margin-bottom: 16px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
}

.section-more {
  color: var(--gold);
  font-weight: 800;
}

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

.all-grid {
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition: 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.58);
  box-shadow: 0 22px 46px rgba(245, 158, 11, 0.12);
}

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

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

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

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

.rating-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--gold);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 0 0 10px;
  min-height: 2.75em;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--gold);
}

.movie-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.feature-panel,
.content-card,
.category-card,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.feature-panel {
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 36px 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.35);
  transition: 0.25s ease;
}

.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}

.rank-no {
  color: var(--gold);
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.rank-hot {
  color: var(--gold);
  font-weight: 800;
}

.category-grid-small,
.category-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.category-chip,
.category-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.35);
  padding: 18px;
  transition: 0.25s ease;
}

.category-chip:hover,
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}

.category-chip strong,
.category-chip span {
  display: block;
}

.category-chip span,
.category-card p {
  color: var(--muted);
}

.category-showcase {
  display: grid;
  gap: 24px;
}

.category-showcase-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.5);
}

.showcase-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.showcase-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.showcase-title a {
  color: var(--gold);
  font-weight: 800;
}

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

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

.page-main {
  padding-top: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent),
    rgba(15, 23, 42, 0.75);
  box-shadow: var(--shadow);
  padding: 54px;
}

.slim-hero {
  min-height: 250px;
}

.page-hero p {
  max-width: 760px;
  color: var(--soft);
}

.category-overview {
  padding-top: 28px;
}

.category-card {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), transparent 58%),
    rgba(15, 23, 42, 0.7);
}

.category-count {
  color: var(--gold);
  font-weight: 900;
}

.category-card h2 {
  margin: 18px 0 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-btn {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.4);
  padding: 8px 13px;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.ranking-grid {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  padding: 14px;
}

.ranking-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-poster img {
  width: 124px;
  height: 170px;
  object-fit: cover;
}

.ranking-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #111827;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-weight: 900;
}

.ranking-card h2 {
  margin: 8px 0 10px;
}

.ranking-card p {
  color: var(--soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  margin-bottom: 22px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

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

.detail-info h1 {
  margin-bottom: 14px;
}

.lead-text {
  max-width: 790px;
  color: var(--soft);
  font-size: 1.08rem;
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-start:hover {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.68));
}

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

.play-triangle {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.36);
  position: relative;
}

.play-triangle::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 26px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #111827;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 34px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin-top: 0;
}

.content-card p {
  color: var(--soft);
  white-space: pre-line;
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
  padding: 34px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  max-width: 560px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.footer-links a {
  color: var(--soft);
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  color: var(--muted);
  margin-top: 24px;
  font-size: 0.9rem;
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.94);
    padding: 12px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: end;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

  .split-layout,
  .detail-content,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero,
  .hero-content {
    min-height: 74vh;
  }

  .hero-content {
    padding-top: 90px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

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

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

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

  .movie-card p,
  .card-tags {
    display: none;
  }

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .ranking-card {
    grid-template-columns: 92px 1fr;
  }

  .ranking-poster img {
    width: 92px;
    height: 128px;
  }

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

  .rank-hot {
    display: none;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-triangle {
    width: 68px;
    height: 68px;
  }

  .play-triangle::after {
    left: 28px;
    top: 21px;
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 21px;
  }
}
