:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-wrap {
  width: min(100% - 32px, var(--max));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-2);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.85);
}

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.70) 42%, rgba(2, 6, 23, 0.14)),
    linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.28) 42%, rgba(2, 6, 23, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 84px 0 120px;
  max-width: min(100% - 32px, var(--max));
}

.hero-badge,
.section-kicker,
.movie-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(245, 158, 11, 0.14);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
}

.hero h1,
.hero h2 {
  width: min(760px, 100%);
  margin: 18px 0 0;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  font-size: clamp(30px, 6vw, 58px);
}

.hero p {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 2.4vw, 21px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 900;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.32);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(12px);
}

.hero-tools {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(100% - 32px, var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-search,
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: min(46vw, 420px);
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
  padding: 0 14px;
}

.filter-bar select {
  width: 180px;
}

.hero-search button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #111827;
  background: var(--accent-2);
  font-weight: 900;
  padding: 0 18px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(12px);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--accent-2);
}

.content-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.band-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: rgba(15, 23, 42, 0.48);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

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

.section-head h2 {
  margin: 14px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

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

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

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

.movie-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.92);
  box-shadow: var(--shadow);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-info strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.movie-desc {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.movie-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span,
.movie-tags span,
.detail-meta span,
.tag-row span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.22);
  padding: 5px 8px;
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 9;
}

.movie-card-large .movie-info strong {
  font-size: 22px;
}

.movie-card-mini .movie-info strong {
  font-size: 15px;
}

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

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

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

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.62;
}

.category-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 58px 16px 16px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 19px;
}

.category-card em {
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.80);
  padding: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(30, 41, 59, 0.92);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #111827;
  background: var(--accent-2);
  font-weight: 900;
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #050816;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong,
.rank-copy em,
.rank-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-copy span {
  color: #64748b;
  font-size: 12px;
}

.page-hero {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 32px;
}

.slim-hero {
  padding-bottom: 12px;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

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

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

.overview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.overview-title span {
  font-size: 22px;
  font-weight: 900;
}

.overview-title a {
  color: var(--accent-2);
  font-weight: 800;
}

.category-overview-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.narrow-section {
  max-width: 930px;
}

.rank-list-page .rank-item a {
  grid-template-columns: auto 132px 1fr;
}

.empty-state {
  display: none;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.empty-state.is-visible {
  display: block;
}

.detail-wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumbs a:hover {
  color: var(--accent-2);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.60));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 999px;
  color: #111827;
  background: var(--accent-2);
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.38);
}

.play-overlay strong {
  font-size: 22px;
  text-shadow: 0 2px 16px #000;
}

.detail-panel,
.poster-panel,
.side-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
}

.detail-panel {
  margin-top: 22px;
  padding: 26px;
}

.detail-panel h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.detail-panel h2,
.side-card h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-panel p {
  color: var(--soft);
  margin: 0;
  white-space: pre-line;
}

.detail-lead {
  color: var(--text) !important;
  font-size: 18px;
  margin: 18px 0 0 !important;
}

.detail-meta {
  margin: 10px 0 18px;
}

.tag-row {
  margin-top: 24px;
}

.poster-panel {
  overflow: hidden;
  padding-bottom: 18px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-panel strong,
.poster-panel span {
  display: block;
  padding: 0 18px;
}

.poster-panel strong {
  margin-top: 16px;
  font-size: 20px;
}

.poster-panel span {
  color: var(--muted);
  margin-top: 4px;
}

.side-card {
  margin-top: 18px;
  padding: 18px;
}

.side-card .rank-item a {
  grid-template-columns: auto 74px 1fr;
}

.side-card .rank-copy em {
  display: none;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  padding: 34px 0;
}

.footer-brand strong {
  font-size: 22px;
}

.footer-brand p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--soft);
  font-size: 14px;
}

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

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

  .movie-grid-large,
  .split-section,
  .detail-grid,
  .category-overview,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 4px;
  }

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

  .nav-links a {
    padding: 12px 2px;
    border-top: 1px solid var(--line);
  }

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

  .hero-content {
    padding-top: 72px;
    padding-bottom: 180px;
  }

  .hero-tools,
  .hero-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-tools {
    bottom: 18px;
  }

  .hero-search input,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }

  .hero-dots {
    justify-content: center;
  }

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

  .content-section {
    padding: 48px 0;
  }

  .rank-item a,
  .rank-list-page .rank-item a,
  .side-card .rank-item a {
    grid-template-columns: auto 82px 1fr;
  }

  .detail-panel {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy em {
    font-size: 11px;
  }

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

  .rank-item a,
  .rank-list-page .rank-item a,
  .side-card .rank-item a {
    grid-template-columns: 72px 1fr;
  }

  .rank-num {
    display: none;
  }
}
