:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --soft: #e2e8f0;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --red: #ef4444;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.16), transparent 24rem),
    linear-gradient(180deg, #070910 0%, #0f172a 48%, #070910 100%);
  color: var(--text);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(20px);
  background: rgba(8, 11, 18, 0.76);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--red));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.logo-text,
.footer-logo {
  background: linear-gradient(90deg, #fde68a, #fca5a5, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--soft);
  font-weight: 700;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--gold-light);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.hero-slider {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 0;
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  min-height: 640px;
  background: rgba(2, 6, 23, 0.85);
  box-shadow: var(--shadow);
}

.hero-slides {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.68fr);
  gap: 48px;
  align-items: center;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.9)),
    var(--hero-image) center / cover;
  filter: saturate(1.1);
  z-index: -2;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 8%;
  height: 72%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 64%);
  z-index: -1;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 7px 13px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-weight: 800;
  font-size: 13px;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 10px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 54px);
  color: #fde68a;
}

.hero-content p,
.page-hero p,
.detail-copy p {
  color: #d1d5db;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.detail-tags,
.movie-card-tags,
.filter-chips,
.rank-meta,
.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

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

.primary-button {
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--red));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.24);
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-3px);
}

.hero-cover {
  position: relative;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.18));
}

.hero-cover img,
.poster-link img,
.rank-poster img,
.detail-poster img,
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 92px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--gold-light), var(--red));
}

.hero-thumbs {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 24px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
}

.hero-thumb img {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
  color: #f8fafc;
}

.section-block {
  width: min(1220px, calc(100% - 32px));
  margin: 42px auto;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #fde68a;
  font-weight: 900;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55)),
    var(--category-image) center / cover;
  min-height: 160px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card span,
.category-overview-link span {
  color: #fde68a;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-top: 34px;
  font-size: 20px;
  line-height: 1.35;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(15, 23, 42, 0.92);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16));
}

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #111827;
  background: #fde68a;
  font-weight: 900;
  font-size: 12px;
}

.movie-card-body {
  padding: 14px;
}

.movie-card-tags span,
.detail-tags span,
.rank-meta span,
.movie-card-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.11);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 62px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-card-meta {
  margin-top: 12px;
  color: var(--muted);
}

.movie-card-meta span {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.page-hero,
.detail-hero {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82)),
    var(--hero-image) center / cover;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 72px;
}

.compact-hero {
  min-height: 330px;
  display: grid;
  align-items: center;
}

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

.category-overview-card {
  min-height: 260px;
  display: grid;
  align-content: space-between;
}

.category-overview-card h2 {
  margin: 10px 0;
  font-size: 30px;
}

.category-overview-card p,
.category-overview-card li {
  color: #d1d5db;
  line-height: 1.65;
}

.category-overview-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-bar {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-bar label {
  color: #fde68a;
  font-weight: 900;
}

.filter-bar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.8);
  outline: none;
}

.filter-bar input:focus {
  border-color: rgba(251, 191, 36, 0.66);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-chips {
  margin-bottom: 22px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.filter-chip.is-active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--red));
  font-weight: 900;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-number {
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--red));
  font-weight: 1000;
  font-size: 20px;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16));
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.96)),
    var(--hero-image) center / cover;
}

.detail-hero-inner {
  padding: 36px 56px 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #cbd5e1;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--gold-light);
}

.detail-intro {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.16));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.5);
}

.detail-copy h1 {
  max-width: 850px;
}

.detail-tags {
  margin: 22px 0 28px;
}

.player-section {
  margin-top: 28px;
}

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

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  pointer-events: auto;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--red));
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.26);
  font-size: 32px;
  padding-left: 6px;
}

.player-cover strong {
  font-size: clamp(20px, 4vw, 36px);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.detail-content article,
.detail-meta-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-content h2,
.detail-meta-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-content p {
  color: #d1d5db;
  line-height: 1.95;
  font-size: 17px;
}

.detail-meta-card {
  position: sticky;
  top: 96px;
}

.detail-meta-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-meta-card div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-meta-card dt {
  color: #fde68a;
  font-weight: 900;
}

.detail-meta-card dd {
  margin: 0;
  color: var(--soft);
}

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

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  max-width: 460px;
  color: var(--soft);
  font-weight: 800;
}

.is-hidden-by-filter {
  display: none !important;
}

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slider {
    min-height: auto;
    border-radius: 24px;
  }

  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 24px 150px;
  }

  .hero-cover {
    justify-self: start;
    width: min(260px, 84vw);
  }

  .hero-dots {
    left: 24px;
    bottom: 108px;
  }

  .hero-thumbs {
    left: 24px;
    right: 24px;
    bottom: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-thumb:nth-child(n+5) {
    display: none;
  }

  .section-heading,
  .footer-inner {
    display: grid;
  }

  .rank-list-home,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-meta-card {
    position: static;
  }

  .detail-intro {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner,
  .page-hero {
    padding: 34px 24px;
  }
}

@media (max-width: 620px) {
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .movie-card-body {
    padding: 11px;
  }

  .movie-card p,
  .movie-card-meta {
    display: none;
  }

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

  .rank-content p {
    display: none;
  }

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

  .hero-content h2 {
    font-size: 28px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
