:root {
  --archive-bg: #0a0a0a;
  --archive-bg-light: #141414;
  --archive-surface: #1f1f1f;
  --archive-surface-light: #2a2a2a;
  --archive-border: #333333;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --text-main: #f9fafb;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --shadow-archive: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-archive-lg: 0 25px 70px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--archive-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.mobile-nav-open {
  overflow: hidden;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--archive-bg-light);
}

body::-webkit-scrollbar-thumb {
  background: var(--archive-border);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

::selection {
  background: var(--accent-600);
  color: #ffffff;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-600);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

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

.brand-text strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
}

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

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

.nav-link,
.mobile-link {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent-400);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--archive-border);
  border-radius: 12px;
  background: var(--archive-surface);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--archive-border);
  background: var(--archive-bg-light);
  padding: 10px 16px 18px;
}

.mobile-link {
  display: block;
  padding: 12px 4px;
}

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

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

.hero-slides,
.hero-slide,
.hero-image-link,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-shade {
  background:
    radial-gradient(circle at 20% 45%, rgba(234, 88, 12, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.62) 44%, rgba(10, 10, 10, 0.15) 100%),
    linear-gradient(0deg, var(--archive-bg) 0%, rgba(10, 10, 10, 0.2) 52%, rgba(10, 10, 10, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 760px;
  animation: slideUp 0.55s ease-out;
}

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

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-500);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}

.eyebrow.small {
  margin-bottom: 10px;
  font-size: 12px;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  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(--accent-600);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.24);
}

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

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(234, 88, 12, 0.16);
  border-color: rgba(249, 115, 22, 0.45);
}

.text-link {
  color: var(--accent-400);
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent-300);
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1280px) / 2));
  bottom: 46px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--accent-500);
}

.section {
  padding-block: 72px;
}

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

.section-gradient {
  background: linear-gradient(180deg, var(--archive-bg), var(--archive-bg-light));
}

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

.section-heading > span,
.heading-left > span {
  width: 5px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--accent-500);
}

.section-heading h2,
.category-overview-head h2,
.region-box h3,
.tag-panel h2,
.poster-card h2 {
  margin: 0;
  color: #ffffff;
}

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

.section-heading p,
.category-overview-head p,
.page-hero p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.section-heading.with-link,
.category-overview-head {
  justify-content: space-between;
  gap: 24px;
}

.heading-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: 18px;
  background: var(--archive-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--archive-bg);
}

.card-media img,
.wide-poster img,
.category-thumbs img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media img,
.wide-poster img {
  transition: transform 0.5s ease;
}

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

.year-pill,
.rank-badge,
.category-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.year-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-title,
.wide-title {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.card-title {
  min-height: 44px;
  font-size: 17px;
}

.card-title:hover,
.wide-title:hover {
  color: var(--accent-400);
}

.card-body p,
.wide-body p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  min-height: 42px;
  margin: 10px 0 14px;
}

.card-tags span {
  background: rgba(234, 88, 12, 0.24);
  color: var(--accent-300);
  padding: 5px 9px;
  font-size: 12px;
}

.card-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.card-meta {
  justify-content: space-between;
  margin-top: 16px;
}

.wide-list {
  display: grid;
  gap: 18px;
}

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

.wide-card {
  display: flex;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: 18px;
  background: var(--archive-surface);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-3px);
  background: var(--archive-surface-light);
  box-shadow: var(--shadow-archive);
}

.wide-poster {
  width: 190px;
  flex: 0 0 190px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--archive-bg);
}

.wide-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 18px 0;
}

.wide-title {
  margin-top: 6px;
  font-size: 20px;
}

.wide-body p {
  margin: 10px 0 12px;
}

.rank-badge,
.category-count {
  align-self: flex-start;
  background: var(--accent-600);
}

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

.category-tile,
.category-overview-card,
.region-box,
.filter-panel,
.poster-card,
.tag-panel,
.detail-article,
.empty-state {
  border: 1px solid rgba(51, 51, 51, 0.9);
  border-radius: 22px;
  background: var(--archive-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.category-tile {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow-archive);
}

.category-tile h3 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: 22px;
}

.category-tile p {
  color: var(--text-muted);
  font-size: 14px;
}

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

.category-thumbs img {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--archive-bg);
}

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

.region-box {
  padding: 24px;
}

.region-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.region-box h3 span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent-500);
}

.page-hero {
  border-bottom: 1px solid var(--archive-border);
  background:
    radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.24), transparent 28%),
    linear-gradient(180deg, var(--archive-bg-light), var(--archive-bg));
}

.page-hero-inner {
  padding-block: 60px;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  font-size: 17px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 26px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.category-overview-head span {
  color: var(--accent-400);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-group input,
.filter-group select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--archive-border);
  border-radius: 12px;
  outline: none;
  background: var(--archive-bg-light);
  color: #ffffff;
  padding: 0 14px;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-count {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.14);
  color: var(--accent-300);
  padding: 0 15px;
  white-space: nowrap;
}

.empty-state {
  margin-top: 24px;
  padding: 42px 20px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
}

.detail-head {
  border-bottom: 1px solid var(--archive-border);
  background: var(--archive-bg-light);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: var(--shadow-archive-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  color: #ffffff;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-600);
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.player-overlay strong {
  max-width: min(80%, 520px);
  font-size: clamp(18px, 3vw, 28px);
}

.detail-article {
  padding: 28px;
}

.detail-article h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-meta {
  margin-bottom: 22px;
  color: var(--text-soft);
}

.lead {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 18px;
}

.prose-block h2 {
  margin: 30px 0 12px;
  color: #ffffff;
  font-size: 24px;
}

.prose-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.detail-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  aspect-ratio: 4 / 3;
  background: var(--archive-bg);
}

.poster-card > div,
.tag-panel {
  padding: 20px;
}

.poster-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.poster-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.8);
  padding-bottom: 10px;
}

.poster-card dt {
  color: var(--text-muted);
}

.poster-card dd {
  margin: 0;
  color: #ffffff;
  text-align: right;
}

.tag-panel h2 {
  margin-bottom: 16px;
}

.tag-cloud span {
  background: rgba(234, 88, 12, 0.16);
  color: var(--accent-300);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-about p {
  max-width: 540px;
  margin: 0;
  color: var(--text-muted);
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-links a:hover {
  color: var(--accent-400);
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid var(--archive-border);
  padding-top: 22px;
  color: #6b7280;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .ranking-preview,
  .region-grid {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
    height: 76vh;
  }

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

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

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

  .brand-text em {
    display: none;
  }

  .hero {
    min-height: 530px;
  }

  .hero-tags span {
    padding: 6px 10px;
  }

  .section {
    padding-block: 46px;
  }

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

  .movie-grid,
  .featured-grid,
  .all-grid,
  .compact-grid,
  .related-grid,
  .mini-grid,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 15px;
  }

  .wide-card {
    gap: 12px;
  }

  .wide-poster {
    width: 124px;
    flex-basis: 124px;
  }

  .wide-body {
    padding: 12px 12px 12px 0;
  }

  .wide-title {
    font-size: 16px;
  }

  .movie-meta {
    gap: 6px;
    font-size: 12px;
  }

  .category-tile {
    min-height: 230px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-article,
  .category-overview-card,
  .region-box {
    padding: 20px;
  }
}
