:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.header-inner,
.topic-nav-inner,
.footer-inner,
.page-main,
.hero-content,
.hero-dots {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--red));
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

.brand-name {
  font-size: 1.45rem;
}

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

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

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

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

.topic-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.topic-nav-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.nav-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
}

.nav-chip:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.44);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
}

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

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

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

.hero-stage {
  position: relative;
  height: 70vh;
  min-height: 560px;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.45) 42%, transparent 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding-right: min(48vw, 540px);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber-2);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.section-head h2,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.95;
}

.hero-site-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 {
  max-width: 760px;
  margin-top: 14px;
  color: var(--amber-2);
  font-size: clamp(1.7rem, 3.2vw, 3.2rem);
}

.hero-desc {
  max-width: 680px;
  margin: 20px 0 22px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-meta,
.hero-tags,
.detail-meta,
.tag-row,
.detail-tags,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  color: #fff;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.92rem;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

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

.primary-button,
.secondary-button,
.card-foot a,
.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-button,
.card-foot a {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
}

.secondary-button,
.section-link {
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.card-foot a:hover,
.text-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--amber-2);
}

.page-main {
  padding-top: 38px;
  padding-bottom: 68px;
}

.search-panel {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 18px;
  position: relative;
  z-index: 20;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 20px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box span {
  color: var(--amber-2);
  font-size: 1.4rem;
}

.search-box input {
  width: 100%;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-results.open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
}

.search-result:hover {
  background: rgba(148, 163, 184, 0.12);
}

.search-result img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
}

.search-result small {
  color: var(--soft);
}

.category-strip,
.content-section,
.category-overview,
.ranking-layout,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
}

.category-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-tile {
  min-height: 126px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.78));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  margin-top: 56px;
}

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

.section-head h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.section-head p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 70px rgba(245, 158, 11, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #111827;
  background: var(--amber-2);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  min-width: 38px;
  height: 32px;
  place-items: center;
  color: #111827;
  background: var(--amber-2);
  border-radius: 10px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span {
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.movie-card h3 {
  min-height: 3.1em;
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.42;
}

.movie-card h3 a:hover {
  color: var(--amber-2);
}

.movie-card p {
  min-height: 4.7em;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.tag-row {
  min-height: 31px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.score {
  color: var(--amber-2);
  font-size: 1.2rem;
  font-weight: 900;
}

.card-foot a {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(59, 130, 246, 0.09)),
    rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  color: var(--soft);
}

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

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 16px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
  border-radius: 22px;
}

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

.filter-row + .filter-row {
  margin-top: 12px;
}

.filter-row button {
  color: var(--muted);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
}

.filter-row button:hover,
.filter-row button.active {
  color: #111827;
  background: var(--amber-2);
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow: hidden;
  border-radius: 18px;
}

.category-cover img {
  width: 100%;
  height: 78px;
  object-fit: cover;
}

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

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  color: var(--amber-2);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.ranking-side,
.side-panel {
  position: sticky;
  top: 132px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.ranking-side h2,
.side-panel h2 {
  margin: 0 0 16px;
}

.ranking-side ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-side a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  line-height: 1.45;
}

.ranking-side a:hover {
  color: #fff;
}

.ranking-side span {
  display: grid;
  height: 28px;
  place-items: center;
  color: #111827;
  background: var(--amber-2);
  border-radius: 8px;
  font-weight: 900;
}

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

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

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.1));
  border: 0;
  cursor: pointer;
}

.video-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #111827;
  background: var(--amber-2);
  border-radius: 999px;
  font-size: 2rem;
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.35);
}

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

.detail-copy {
  margin-top: 24px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.detail-one-line {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.detail-copy section {
  margin-top: 28px;
}

.detail-copy h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.detail-tags {
  margin-top: 24px;
}

.detail-side > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-panel {
  position: static;
  margin-top: 18px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px 12px;
  margin: 0 0 20px;
}

.side-panel dt {
  color: var(--soft);
}

.side-panel dd {
  margin: 0;
  color: var(--text);
}

.wide {
  width: 100%;
}

.related-grid .movie-card p {
  min-height: 3.2em;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 28px;
  padding: 38px 0;
}

.footer-inner p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a,
.footer-topics a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-topics a:hover {
  color: var(--amber-2);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--soft);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.92rem;
}

.hidden-card {
  display: none !important;
}

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

  .category-overview {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ranking-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .brand-name {
    font-size: 1.16rem;
  }

  .hero-stage {
    height: 76vh;
    min-height: 620px;
  }

  .hero-content {
    bottom: 10%;
    padding-right: 0;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.74) 48%, rgba(2, 6, 23, 0.18) 100%);
  }

  .hero-arrow {
    display: none;
  }

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

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

  .section-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
  }

  .hero h1,
  .hero-site-title {
    font-size: 2.35rem;
  }

  .hero h2 {
    font-size: 1.65rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-actions,
  .hero-meta {
    gap: 8px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .category-strip-inner,
  .movie-grid,
  .category-overview,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-copy {
    padding: 24px;
    border-radius: 24px;
  }

  .search-result {
    grid-template-columns: 44px 1fr;
  }

  .search-result em {
    display: none;
  }
}
