
:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #10141e;
  --bg-card: #171c28;
  --bg-card-2: #1f2937;
  --text: #f8fafc;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.09);
  --amber: #fbbf24;
  --amber-dark: #b7791f;
  --amber-soft: rgba(251, 191, 36, 0.18);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 5%, rgba(251, 191, 36, 0.12), transparent 28rem),
    linear-gradient(180deg, #020202 0%, #111827 48%, #020202 100%);
  color: var(--text);
  min-height: 100vh;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.94), rgba(17, 24, 39, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.site-nav {
  max-width: var(--container);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #fde68a, #fef3c7, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d1d5db;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  padding: 8px;
  background: transparent;
  color: white;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: #f8fafc;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.64) 45%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, #050505 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 84px 20px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
}

.hero-copy {
  max-width: 700px;
  animation: fade-up 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.gradient-title {
  background: linear-gradient(90deg, #fde68a, #fbbf24, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 22px 0 0;
  max-width: 700px;
  color: #d1d5db;
  font-size: 1.16rem;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111827;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 18px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-mini-poster {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.hero-mini-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-panel h2 {
  margin: 18px 0 6px;
  font-size: 1.35rem;
}

.hero-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--amber);
}

.main-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.content-section {
  margin-bottom: 58px;
}

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

.section-title-row h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #fff;
}

.section-desc,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.94), rgba(17, 24, 39, 0.94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 28px 56px rgba(120, 53, 15, 0.28);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 10%, rgba(251, 191, 36, 0.16), transparent 40%),
    #111827;
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

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

.score-badge,
.play-badge,
.rank-index {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-weight: 800;
}

.score-badge {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.34);
}

.play-badge {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 7px 12px;
  color: #111827;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.card-body {
  display: block;
  padding: 13px;
}

.card-body strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
}

.card-body small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #a3a3a3;
}

.card-summary {
  display: -webkit-box;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary.compact {
  -webkit-line-clamp: 1;
}

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

.category-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.15), transparent 48%),
    linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.45);
}

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

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.7);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  padding: 12px 14px;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  color: #f8fafc;
}

.filter-count {
  margin: -12px 0 24px;
  color: var(--muted);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.45);
}

.rank-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

.rank-meta h2 {
  margin: 0 0 7px;
  font-size: 1.1rem;
}

.rank-meta p {
  margin: 0;
  color: var(--muted);
}

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

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.82);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-cover.hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 2.4rem;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.36);
}

.player-note {
  padding: 14px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.meta-line span,
.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #fde68a;
}

.detail-card p {
  color: #d1d5db;
  line-height: 1.9;
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.side-card {
  padding: 18px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  aspect-ratio: 3 / 4;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.side-link strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.side-link small {
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.78);
  text-align: center;
}

.pagination .current {
  background: var(--amber);
  color: #111827;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), #020202);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 10px;
  color: #fde68a;
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--amber);
}

.copyright {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 30px;
  text-align: center;
}

.empty-state {
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

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

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

  .hero-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 0 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

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

  .hero {
    min-height: 540px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 40px 72px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .hero-content {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .movie-grid {
    gap: 14px;
  }

  .card-body {
    padding: 10px;
  }

  .section-title-row {
    display: block;
  }
}
