:root {
  color-scheme: dark;
  --site-bg: #0a0a0a;
  --site-bg-soft: #111111;
  --site-surface: #1a1a1a;
  --site-surface-light: #2a2a2a;
  --site-border: rgba(255, 255, 255, 0.1);
  --site-text: #ffffff;
  --site-muted: #9ca3af;
  --site-soft: #d1d5db;
  --site-accent: #f97316;
  --site-accent-strong: #ea580c;
  --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

body {
  background: var(--site-bg);
  color: var(--site-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  text-decoration: none;
}

img {
  display: block;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 34rem),
    linear-gradient(180deg, #0f0f0f 0%, var(--site-bg) 28rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--site-border);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

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

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--site-text);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--site-accent-strong);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

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

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--site-muted);
  font-size: 12px;
}

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

.nav-links a,
.mobile-panel a {
  color: var(--site-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--site-accent);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  color: var(--site-text);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--site-border);
  padding: 16px;
  background: rgba(10, 10, 10, 0.96);
}

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

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

.hero-bg,
.hero-bg img,
.hero-bg::after {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.hero-bg::after {
  content: "";
  background:
    linear-gradient(0deg, var(--site-bg) 0%, rgba(10, 10, 10, 0.78) 36%, rgba(10, 10, 10, 0.32) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.28));
}

.hero-content {
  position: relative;
  display: grid;
  min-height: 70vh;
  align-content: end;
  padding: 120px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  color: var(--site-soft);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.tag-row,
.card-tags,
.meta-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--site-accent-strong);
  color: #fff;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.25);
}

.btn-secondary {
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-secondary:hover {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.16);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.025);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 34px;
  border-radius: 99px;
  background: var(--site-accent);
}

.section h2,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.section-lead,
.page-hero p {
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--site-surface-light), var(--site-surface));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.46);
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.card-body h3 a {
  color: var(--site-text);
}

.card-body h3 a:hover {
  color: var(--site-accent);
}

.card-body p {
  margin: 0;
  min-height: 48px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  margin-top: 12px;
  color: #fbbf24;
  font-size: 13px;
}

.pill,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.18);
  color: #fed7aa;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 16rem),
    var(--site-surface);
  color: var(--site-text);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.5);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  background: var(--site-surface);
  color: var(--site-text);
}

.rank-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--site-accent);
  font-weight: 900;
}

.rank-thumb {
  width: 92px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.6;
}

.page-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--site-border);
  background:
    radial-gradient(circle at 22% 10%, rgba(249, 115, 22, 0.18), transparent 30rem),
    rgba(255, 255, 255, 0.02);
}

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

.breadcrumb a {
  color: var(--site-accent);
}

.filter-panel,
.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--site-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.input,
.select {
  min-height: 44px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--site-text);
  padding: 0 14px;
  outline: none;
}

.input {
  flex: 1 1 260px;
}

.select {
  flex: 0 1 170px;
}

.input:focus,
.select:focus {
  border-color: rgba(249, 115, 22, 0.72);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.search-result {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 16px;
  padding: 10px;
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.035);
}

.search-result img {
  width: 72px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.search-result strong {
  display: block;
  margin-bottom: 5px;
}

.search-result span {
  color: var(--site-muted);
  font-size: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-title {
  margin: 12px 0 16px;
}

.detail-desc {
  color: var(--site-soft);
  font-size: 17px;
  line-height: 1.9;
}

.info-box {
  margin-top: 20px;
  border: 1px solid var(--site-border);
  border-radius: 20px;
  background: var(--site-surface);
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--site-border);
}

.info-row:first-child {
  border-top: 0;
}

.info-row span:first-child {
  color: var(--site-muted);
}

.prose-card {
  padding: 28px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: var(--site-surface);
}

.prose-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.prose-card p {
  margin: 0;
  color: var(--site-soft);
  line-height: 2;
}

.prose-card + .prose-card {
  margin-top: 22px;
}

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

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.5));
  color: #fff;
}

.player-layer.is-hidden {
  display: none;
}

.play-disc {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.94);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
  font-size: 34px;
  transition: transform 0.2s ease;
}

.player-layer:hover .play-disc {
  transform: scale(1.08);
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--site-border);
  color: var(--site-muted);
  background: #080808;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

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

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

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

  .menu-button {
    display: grid;
    place-items: center;
  }

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

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

  .rank-item {
    grid-template-columns: 46px 74px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 42px;
  }

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

  .filter-row {
    display: grid;
  }

  .input,
  .select {
    width: 100%;
  }

  .brand strong {
    font-size: 18px;
  }
}
