:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #9ca3af;
  --soft-text: #d1d5db;
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.2);
  --blue: #60a5fa;
  --purple: #c084fc;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(239, 68, 68, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(96, 165, 250, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

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

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand {
  font-size: 20px;
  background: linear-gradient(135deg, #ef4444, #f97316, #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.28);
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft-text);
  font-size: 14px;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.52);
}

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

.hero-tags a,
.hero-tags span,
.detail-meta span,
.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

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

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

.primary-button {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  box-shadow: 0 15px 32px rgba(239, 68, 68, 0.32);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section-block,
.page-main,
.category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-heading {
  margin-bottom: 28px;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.section-heading a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.section-heading a:hover {
  color: #ffffff;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  position: relative;
  display: block;
  min-width: 0;
  color: #ffffff;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 62%);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.play-mark {
  position: absolute;
  inset: 0;
  width: 50px;
  height: 50px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-chip,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.poster-chip {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: rgba(239, 68, 68, 0.9);
  font-weight: 800;
}

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

.movie-card:hover .play-mark {
  opacity: 1;
  transform: scale(1);
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin-bottom: 6px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--blue);
}

.movie-meta,
.movie-line {
  color: var(--muted);
  font-size: 13px;
}

.movie-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.55;
}

.category-strip {
  padding-top: 72px;
}

.category-pill-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-pill-grid a,
.category-card,
.glass-card,
.filter-bar {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-pill-grid a {
  min-height: 148px;
  padding: 22px;
  border-radius: 24px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-pill-grid a:hover,
.category-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
}

.category-pill-grid strong,
.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-pill-grid span,
.category-card span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 34px;
  border-radius: 30px;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(96, 165, 250, 0.13)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--soft-text);
  line-height: 1.8;
}

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.category-covers img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.filter-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  padding: 16px;
  border-radius: 22px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  outline: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  font: inherit;
}

.filter-input {
  flex: 1 1 auto;
  padding: 0 16px;
}

.filter-select {
  flex: 0 0 180px;
  padding: 0 12px;
}

.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
  cursor: pointer;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.86);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.32);
  font-size: 34px;
}

.player-panel.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  border-radius: 28px;
  padding: 30px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: var(--soft-text);
  line-height: 1.85;
}

.lead-text {
  color: #ffffff !important;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 18px;
}

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

.tag-list span {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.18);
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
}

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

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

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

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    height: 68vh;
    min-height: 540px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

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

@media (max-width: 560px) {
  .site-nav,
  .section-block,
  .page-main,
  .category-strip,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .compact-grid,
  .all-grid,
  .category-pill-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 12px;
    align-items: start;
  }

  .poster-wrap {
    margin-bottom: 0;
  }

  .movie-line {
    -webkit-line-clamp: 3;
  }

  .filter-bar {
    flex-direction: column;
  }

  .filter-select {
    flex: 1 1 auto;
  }

  .detail-card {
    padding: 22px;
  }
}
