:root {
  --deep-950: #101722;
  --deep-900: #1b222b;
  --deep-850: #222b36;
  --deep-800: #29323c;
  --deep-700: #313a45;
  --glow-500: #ffcf33;
  --glow-600: #ffca2e;
  --text: #f4f6fb;
  --muted: #aab3c2;
  --soft: #d1d5db;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --glow-shadow: 0 0 28px rgba(255, 207, 51, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 207, 51, 0.12), transparent 26rem),
    linear-gradient(180deg, var(--deep-950), var(--deep-900) 34rem, #151b23 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(27, 34, 43, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--glow-500);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--deep-950);
  background: var(--glow-500);
  box-shadow: var(--glow-shadow);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--glow-500);
  background: var(--deep-800);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--deep-800);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(27, 34, 43, 0.98);
}

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

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--deep-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(1.1) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 23, 34, 0.98), rgba(16, 23, 34, 0.76) 42%, rgba(16, 23, 34, 0.34)),
    linear-gradient(0deg, var(--deep-950), rgba(16, 23, 34, 0.18) 50%, rgba(16, 23, 34, 0.64));
}

.hero-content {
  position: relative;
  min-height: 760px;
  padding-top: 112px;
  padding-bottom: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 340px;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--glow-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow-500);
  box-shadow: var(--glow-shadow);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-line {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.info-list span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(41, 50, 60, 0.82);
  border: 1px solid var(--line);
}

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

.primary-btn,
.ghost-btn,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: var(--deep-950);
  background: var(--glow-500);
  box-shadow: var(--glow-shadow);
}

.ghost-btn {
  color: var(--text);
  background: rgba(41, 50, 60, 0.72);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  background: var(--deep-800);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 23, 34, 0.42), transparent 55%);
}

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

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--glow-500);
  box-shadow: var(--glow-shadow);
}

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

.search-entrance,
.section-block,
.page-hero,
.detail-hero {
  margin-top: 42px;
}

.search-entrance {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(41, 50, 60, 0.78), rgba(27, 34, 43, 0.78));
  box-shadow: var(--shadow);
}

.search-entrance h2,
.section-title h2,
.article-block h2,
.site-footer h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.search-entrance p {
  color: var(--muted);
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(16, 23, 34, 0.72);
  border: 1px solid var(--line);
}

.home-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.home-search input {
  padding: 0 10px;
}

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

.section-title > a {
  color: var(--glow-500);
  font-weight: 700;
}

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

.category-tile,
.category-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(49, 58, 69, 0.9), rgba(27, 34, 43, 0.9));
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover .category-head {
  transform: translateY(-3px);
  border-color: rgba(255, 207, 51, 0.42);
  box-shadow: var(--glow-shadow);
}

.category-tile strong,
.category-head span {
  font-size: 20px;
  color: var(--text);
}

.category-tile span,
.category-head em {
  color: var(--muted);
  line-height: 1.65;
  font-style: normal;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(41, 50, 60, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 207, 51, 0.42);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--deep-800);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--deep-950);
  background: var(--glow-500);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--glow-500);
  font-size: 13px;
  font-weight: 700;
}

.card-body h2 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--glow-500);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.ranking-grid,
.ranking-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(41, 50, 60, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 207, 51, 0.42);
}

.rank-num {
  color: var(--glow-500);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--deep-800);
}

.rank-info {
  display: grid;
  gap: 7px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.simple-hero {
  padding: 42px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 207, 51, 0.14), transparent 25rem),
    linear-gradient(135deg, rgba(49, 58, 69, 0.78), rgba(27, 34, 43, 0.82));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.simple-hero h1 {
  margin-bottom: 12px;
}

.simple-hero p {
  max-width: 760px;
}

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

.category-card {
  border-radius: 28px;
  background: rgba(27, 34, 43, 0.72);
  border: 1px solid var(--line);
  overflow: hidden;
}

.category-head {
  border-radius: 0;
  min-height: auto;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.mini-card {
  display: grid;
  gap: 8px;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--deep-800);
}

.mini-card span {
  font-weight: 700;
  line-height: 1.35;
}

.mini-card small {
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.65fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(16, 23, 34, 0.7);
  border: 1px solid var(--line);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--deep-800);
  border: 1px solid var(--line);
}

.quick-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(41, 50, 60, 0.72);
  border: 1px solid var(--line);
}

.quick-links a:hover {
  color: var(--glow-500);
}

.detail-main {
  background: radial-gradient(circle at top right, rgba(255, 207, 51, 0.1), transparent 30rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 30px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #05070a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--deep-950);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  z-index: 2;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glow-500);
  box-shadow: var(--glow-shadow);
  font-size: 28px;
  padding-left: 5px;
}

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

.detail-copy {
  padding: 20px 0;
}

.detail-line {
  margin-bottom: 22px;
}

.info-list {
  margin-bottom: 16px;
}

.article-block {
  padding: 30px;
  border-radius: 28px;
  background: rgba(41, 50, 60, 0.72);
  border: 1px solid var(--line);
}

.article-block h2 {
  margin-top: 0;
}

.article-block h2 + p {
  margin-top: 12px;
}

.article-block p {
  color: var(--soft);
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 24px;
  background: rgba(16, 23, 34, 0.86);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  color: #7f8a9a;
  border-top: 1px solid var(--line);
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

  .hero-content,
  .detail-grid,
  .search-entrance {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 300px;
  }

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

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

  .hero,
  .hero-content {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 96px;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

  .hero-actions,
  .home-search,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .ranking-grid,
  .ranking-page,
  .category-overview,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .simple-hero,
  .article-block,
  .search-entrance {
    padding: 24px;
    border-radius: 22px;
  }

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