:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.25);
}

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

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

.nav-link,
.nav-more-button,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-more-button:hover,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text);
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.12);
}

.nav-more {
  position: relative;
}

.nav-more-button {
  background: transparent;
}

.nav-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 180px;
  padding: 10px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.nav-more:hover .nav-more-menu {
  display: grid;
  gap: 4px;
}

.nav-more-menu a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 12px;
}

.nav-more-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-toggle span {
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

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

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.1)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.55) 28%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1280px) / 2));
  bottom: 90px;
  width: min(720px, calc(100% - 64px));
}

.hero-kicker,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.detail-meta span,
.poster-badge,
.rank-num {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-content p,
.page-hero p,
.detail-one-line {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  box-shadow: 0 18px 44px rgba(251, 191, 36, 0.25);
}

.ghost-button,
.text-link {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: max(32px, calc((100% - 1280px) / 2));
  bottom: 36px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 54px;
  background: var(--gold);
}

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

.search-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: -42px;
  padding: 26px;
  position: relative;
  z-index: 4;
  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 h2,
.section-heading h2,
.article-panel h2,
.category-overview-card h2 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

.search-panel p,
.article-panel p,
.category-overview-card p,
.site-footer p {
  margin: 0;
  color: var(--muted-2);
}

.section-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  outline: none;
  background: rgba(2, 6, 23, 0.68);
}

.search-box input:focus {
  border-color: rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: #111827;
  border-color: transparent;
  background: var(--gold);
}

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

.section-heading a {
  color: #fde68a;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(15, 23, 42, 0.92);
}

.movie-card.is-hidden {
  display: none;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(2, 6, 23, 0.95));
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(2, 6, 23, 0.76);
  color: #fde68a;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  min-height: 21px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.3;
}

.card-body p {
  min-height: 46px;
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
}

.two-column-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.glass-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.glass-panel {
  padding: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

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

.rank-list.large {
  max-height: 1280px;
  overflow: auto;
  padding-right: 6px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-item:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

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

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item small {
  margin-top: 4px;
  color: var(--muted-2);
}

.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  min-height: 110px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(239, 68, 68, 0.08)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-tile strong {
  font-size: 21px;
}

.category-tile span {
  color: var(--muted-2);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.18), transparent 24rem),
    linear-gradient(135deg, #111827, #020617);
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(40px, 5vw, 70px);
}

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

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

.slim-panel {
  margin-top: -28px;
  grid-template-columns: 1fr;
}

.search-box.full {
  width: 100%;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 24px;
}

.rank-search {
  margin: 0 0 24px;
  grid-template-columns: 1fr;
}

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

.detail-hero {
  min-height: 620px;
  padding: 92px 0 80px;
  background: #020617;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.04);
}

.detail-mask {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.5)),
    linear-gradient(0deg, #020617, transparent 44%);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: end;
}

.detail-poster {
  width: 310px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  max-width: 900px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.article-panel:first-child {
  grid-row: span 2;
}

.article-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.large-tags span {
  font-size: 15px;
}

.player-section {
  padding-top: 44px;
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}

.main-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--text);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.62)),
    rgba(2, 6, 23, 0.18);
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  box-shadow: 0 18px 50px rgba(251, 191, 36, 0.28);
  font-size: 30px;
}

.player-overlay strong {
  padding: 0 24px;
  font-size: clamp(20px, 3vw, 36px);
  text-align: center;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
}

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

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

  .two-column-block,
  .ranking-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-list.large {
    max-height: none;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    left: 20px;
    bottom: 84px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .category-overview-card,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(260px, 78vw);
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .section-wrap,
  .page-hero > div,
  .detail-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

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

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

  .hero-actions,
  .footer-links {
    flex-wrap: wrap;
  }

  .movie-grid,
  .movie-grid.dense,
  .related-grid,
  .ranking-grid,
  .category-overview-grid,
  .category-tile-grid {
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

  .rank-item {
    grid-template-columns: auto 52px 1fr;
  }

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