:root {
  --archive-bg: #0a0a0a;
  --archive-bg-light: #141414;
  --archive-bg-lighter: #1a1a1a;
  --archive-surface: #1f1f1f;
  --archive-border: #333333;
  --accent: #ea580c;
  --accent-light: #f97316;
  --accent-soft: rgba(234, 88, 12, 0.2);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--archive-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(51, 51, 51, 0.8);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.35);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 12px;
  color: var(--muted);
}

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

.nav-link {
  color: var(--muted-strong);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--archive-border);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.85);
}

.header-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 11px 17px;
  color: #ffffff;
  background: var(--accent);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--archive-border);
  border-radius: 12px;
  display: none;
  place-items: center;
  gap: 4px;
  background: var(--archive-surface);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid var(--archive-border);
  background: rgba(10, 10, 10, 0.96);
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(51, 51, 51, 0.55);
}

.mobile-nav-link.is-active {
  color: #fb923c;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  background: var(--archive-bg);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-slide img,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.image-error {
  opacity: 0;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 78%, rgba(234, 88, 12, 0.34), transparent 24%),
    linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.68) 44%, rgba(10, 10, 10, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1,
.hero h2 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  right: calc((100% - min(1280px, 100%)) / 2 + 24px);
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(31, 31, 31, 0.72);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.55;
}

.hero-dot.is-active {
  width: 28px;
  opacity: 1;
  background: var(--accent-light);
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-band {
  background: var(--archive-bg-light);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-light);
  flex: 0 0 auto;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: var(--radius-lg);
  background: var(--archive-surface);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.48);
  background: #242424;
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(234, 88, 12, 0.32), transparent 28%),
    linear-gradient(135deg, #1f1f1f, #0a0a0a);
}

.poster-wide {
  aspect-ratio: 16 / 9;
  width: 220px;
  flex: 0 0 220px;
}

.movie-poster img,
.rank-cover img,
.category-thumbs img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 9px;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.72);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.movie-card h2,
.rank-item h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h2,
.rank-item:hover h2 {
  color: #fb923c;
}

.movie-card p,
.rank-copy p {
  margin: 0;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #8b8f98;
  font-size: 12px;
}

.movie-meta span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
}

.movie-card-horizontal {
  flex-direction: row;
}

.list-stack {
  display: grid;
  gap: 16px;
}

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

.category-preview,
.category-card {
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(145deg, rgba(31, 31, 31, 0.98), rgba(20, 20, 20, 0.98));
}

.category-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.category-preview-head h3,
.category-card h2 {
  margin: 0;
  font-size: 22px;
}

.category-preview-head a {
  color: #fb923c;
  font-weight: 700;
}

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 88, 12, 0.5);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-thumbs img {
  height: 118px;
  border-radius: 14px;
  background: var(--archive-bg-lighter);
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(234, 88, 12, 0.22), transparent 26%),
    linear-gradient(135deg, #141414, #0a0a0a);
}

.small-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-hero > div {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 68px 24px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: 18px;
  background: var(--archive-bg-light);
}

.filter-input,
.filter-select {
  min-height: 46px;
  border: 1px solid var(--archive-border);
  border-radius: 999px;
  outline: 0;
  color: var(--text);
  background: var(--archive-surface);
}

.filter-input {
  flex: 1 1 260px;
  padding: 0 18px;
}

.filter-select {
  padding: 0 16px;
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 160px 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--archive-surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(234, 88, 12, 0.5);
  background: #242424;
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--archive-bg-lighter);
}

.rank-copy {
  min-width: 0;
}

.detail-hero {
  min-height: 620px;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: var(--archive-bg-lighter);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 14px;
  margin: 0 0 28px;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(10px);
}

.detail-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.22), transparent 30%),
    rgba(0, 0, 0, 0.34);
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  background: var(--accent);
  box-shadow: 0 16px 38px rgba(234, 88, 12, 0.38);
  font-size: 30px;
}

.player-cover strong {
  font-size: 18px;
}

.movie-article {
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: var(--radius-xl);
  padding: 26px;
  background: var(--archive-surface);
}

.movie-article h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.movie-article p {
  margin: 0 0 22px;
  color: var(--muted-strong);
  line-height: 1.9;
}

.movie-article p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--archive-border);
  background: #080808;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(51, 51, 51, 0.6);
  padding: 18px 24px;
  color: #777c86;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .site-header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

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

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

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 580px;
  }

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

  .hero-controls {
    left: 24px;
    right: auto;
  }

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

  .category-card {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    flex-direction: column;
  }

  .poster-wide {
    width: 100%;
    flex-basis: auto;
  }

  .rank-item {
    grid-template-columns: 48px 92px 1fr;
  }

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

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

@media (max-width: 560px) {
  .site-header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .hero h1,
  .hero h2,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero p,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .section-wrap,
  .page-hero > div,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .dense-grid,
  .rank-grid,
  .mini-grid,
  .category-preview-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-cover {
    display: none;
  }

  .mobile-search input {
    width: 100%;
  }
}
