:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --accent: #ef4444;
  --accent-2: #f97316;
  --gold: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 68, 68, 0.2), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.15), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.26);
}

.site-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: white;
  box-shadow: 0 14px 36px rgba(239, 68, 68, 0.32);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--subtle);
  font-size: 0.76rem;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: white;
  background: rgba(239, 68, 68, 0.18);
}

.nav-link:hover,
.mobile-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: rgba(148, 163, 184, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

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

.hero-slider {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 700ms ease;
}

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

.hero-shade,
.page-hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(2, 6, 23, 0.45) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.3), #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  padding-top: 86px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #fca5a5;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
  margin: 0;
  color: white;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 5.7rem);
}

.hero-copy h2 {
  margin-top: 16px;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}

.hero-copy p,
.page-hero p,
.callout-card p {
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #fee2e2;
  font-size: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.34);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.section-block {
  padding: 70px 0;
}

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

.section-heading h2,
.filter-panel h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
  color: white;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.section-heading a {
  color: #fca5a5;
  font-weight: 800;
}

.filter-panel {
  position: relative;
  z-index: 10;
  margin-top: -54px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px);
  gap: 18px 24px;
  align-items: center;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-panel .eyebrow {
  margin-bottom: 4px;
}

.search-box {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 18px;
  color: var(--subtle);
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: white;
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(239, 68, 68, 0.2);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  align-items: end;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 420ms ease, opacity 300ms ease;
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

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

.category-card span,
.category-info {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 20px;
}

.category-card strong,
.category-info strong {
  font-size: 1.25rem;
}

.category-card em,
.category-info em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

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

.category-overview-card {
  min-height: 260px;
}

.category-images img:nth-child(2) {
  transform: translateX(26%) scale(0.92);
}

.category-images img:nth-child(3) {
  transform: translateX(52%) scale(0.84);
}

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

.rank-grid,
.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  color: white;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 200ms ease;
}

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

.image-missing {
  opacity: 0.08;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.year-badge {
  right: 10px;
  top: 10px;
  background: rgba(239, 68, 68, 0.9);
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f97316);
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.4rem;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  transition: opacity 200ms ease;
}

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

.card-content {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.card-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.card-content em {
  min-height: 3.2em;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 0.8rem;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.dark-band {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gradient-callout {
  padding: 40px 0;
}

.callout-card {
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, #7f1d1d, #9a3412 55%, #020617);
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: var(--shadow);
}

.callout-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 92px 0 56px;
}

.page-hero.image-hero {
  width: 100%;
  min-height: 500px;
  max-width: none;
  background-size: cover;
  background-position: center;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) scale(1.06);
  opacity: 0.55;
}

.detail-layout {
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 44px;
  padding-top: 80px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: white;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.78));
}

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

.player-icon {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 18px 52px rgba(239, 68, 68, 0.48);
}

.detail-info {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
}

.breadcrumb a {
  color: #fecaca;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.lead {
  color: #e2e8f0;
  font-size: 1.12rem;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

.story-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.story-card p {
  color: var(--muted);
  line-height: 1.85;
}

.link-card ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-card li + li,
.site-footer li + li {
  margin-top: 10px;
}

.link-card a,
.site-footer a {
  color: var(--muted);
}

.link-card a:hover,
.site-footer a:hover {
  color: #fca5a5;
}

.site-footer {
  margin-top: 40px;
  padding-top: 54px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), #020617 40%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-brand strong {
  color: white;
  font-size: 1.2rem;
}

.site-footer p {
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 36px;
  padding: 20px;
  text-align: center;
  color: var(--subtle);
  border-top: 1px solid var(--line);
}

.no-results {
  display: none;
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.8);
}

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

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

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

  .brand-copy strong {
    font-size: 1.12rem;
  }

  .hero-slider {
    min-height: 650px;
  }

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

  .hero-arrow {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    margin-top: -34px;
    border-radius: 22px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .rank-grid,
  .compact-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-overview-card {
    min-height: 220px;
  }

  .card-content {
    padding: 12px;
  }

  .card-content em {
    min-height: auto;
  }

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

  .detail-layout {
    padding: 92px 0 120px;
  }

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

  .detail-content {
    margin-top: -74px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .rank-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags span,
  .detail-tags span,
  .tag-row span {
    font-size: 0.78rem;
  }
}
