:root {
  --night-950: #020617;
  --night-930: #07111f;
  --night-900: #0f172a;
  --night-850: #162033;
  --night-800: #1e293b;
  --night-700: #334155;
  --gold-300: #fde68a;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(234, 179, 8, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, var(--night-950), var(--night-900) 42%, #050816 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--night-950);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 12px 32px rgba(234, 179, 8, 0.25);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-link,
.footer-nav a,
.text-link {
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active,
.footer-nav a:hover,
.text-link:hover {
  color: var(--gold-400);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-filter input {
  width: 240px;
  border: 1px solid var(--night-700);
  border-radius: 12px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.86);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-filter input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.14);
}

.header-search button,
.mobile-search button,
.page-filter button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--night-950);
  font-weight: 800;
  background: var(--gold-500);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--gold-400);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  width: 100%;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--night-950);
}

.hero-track {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: 46px;
  padding: 86px max(32px, calc((100vw - 1180px) / 2)) 72px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: scale(1.02);
}

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(234, 179, 8, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.38)),
    linear-gradient(0deg, var(--night-950), transparent 55%);
}

.hero-content,
.hero-poster,
.detail-layout {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-site-title {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-title {
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(234, 179, 8, 0.24);
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.09);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 22px;
  min-height: 48px;
  border: 1px solid var(--line);
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.88);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 179, 8, 0.5);
}

.btn.primary {
  color: var(--night-950);
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 18px 44px rgba(234, 179, 8, 0.24);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.78);
}

.btn.wide {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gold-500);
}

.section {
  padding: 52px 0;
}

.page-main {
  padding: 44px 0 72px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.text-link {
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--night-850);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 6px;
  color: #fff;
  font-size: 23px;
}

.category-tile em {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.category-tile:hover img {
  opacity: 0.42;
  transform: scale(1.08);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 179, 8, 0.42);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
}

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0b1220;
}

.card-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--night-950);
  background: var(--gold-500);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 17px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.65);
  padding: 4px 7px;
}

.card-body h3,
.rank-copy h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-copy h3 a:hover,
.hero-title a:hover {
  color: var(--gold-300);
}

.card-body p,
.rank-copy p,
.page-hero p,
.detail-article p,
.footer-inner p {
  color: #cbd5e1;
  line-height: 1.75;
}

.card-body p {
  min-height: 76px;
  margin: 0 0 12px;
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

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

.rank-list.full {
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 50px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-list.full .rank-item {
  grid-template-columns: 68px 128px minmax(0, 1fr);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--night-950);
  background: var(--gold-500);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.rank-copy p {
  margin: 0 0 10px;
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding: 44px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

.page-filter {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
}

.page-filter input {
  flex: 1;
  width: 100%;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.76);
  padding: 10px 15px;
}

.quick-links a:hover {
  color: var(--gold-300);
  border-color: rgba(234, 179, 8, 0.52);
}

.movie-detail {
  background: var(--night-950);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
}

.lead {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.9;
}

.detail-main {
  padding: 54px 0 74px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  z-index: 4;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: blur(1px) brightness(0.72);
}

.big-play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  color: var(--night-950);
  font-size: 34px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.45);
}

.detail-article {
  margin: 42px 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(15, 23, 42, 0.72);
}

.detail-article h2 {
  margin-top: 26px;
  font-size: clamp(24px, 3vw, 34px);
}

.detail-article h2:first-child {
  margin-top: 0;
}

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

.info-list div {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.38);
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 6px 0 0;
  color: #fff;
  font-weight: 800;
}

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

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

.footer-inner p {
  margin: 8px 0 0;
  max-width: 660px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

[hidden] {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.page-hero,
.movie-card,
.rank-item {
  animation: fadeUp 0.55s ease both;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .two-column {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 62px;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero-carousel,
  .hero-track {
    min-height: 620px;
  }

  .hero-slide {
    padding: 62px 18px 76px;
  }

  .hero-actions,
  .page-filter,
  .mobile-search,
  .section-heading.split,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .page-filter button,
  .mobile-search button {
    width: 100%;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .movie-grid.compact,
  .movie-grid.small {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .rank-list.full .rank-item {
    grid-template-columns: 44px 82px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }

  .rank-copy p {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 46px 0;
  }

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

  .info-list {
    grid-template-columns: 1fr;
  }

  .big-play {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
