* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --archive-bg: #0a0a0a;
  --archive-bg-light: #141414;
  --archive-bg-lighter: #1a1a1a;
  --archive-surface: #1f1f1f;
  --archive-surface-light: #2a2a2a;
  --archive-border: #333333;
  --accent: #ea580c;
  --accent-light: #f97316;
  --accent-soft: rgba(234, 88, 12, 0.18);
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --shadow-archive: 0 10px 40px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shell: min(1280px, calc(100vw - 32px));
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(234, 88, 12, 0.13), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.34), transparent 36%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: var(--shell);
  height: 72px;
  margin: 0 auto;
  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: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.brand-text small,
.footer-brand p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.24s ease, transform 0.24s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #fb923c;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--archive-surface);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 14px;
  color: var(--text-soft);
}

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

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

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

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

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

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

.hero-slide::before,
.detail-hero::before,
.poster-frame::before,
.category-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-mask {
  background: linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.68) 45%, rgba(10, 10, 10, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 360px 76px 0;
  animation: slide-up 0.5s ease-out;
}

.hero-eyebrow {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 850px;
  color: #fff;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 48px);
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags {
  margin-top: 24px;
}

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

.hero-tags span {
  padding: 9px 14px;
}

.tag-row span {
  padding: 5px 9px;
  background: rgba(234, 88, 12, 0.2);
  color: #fdba74;
}

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

.primary-btn,
.secondary-btn,
.section-more a,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.24);
}

.secondary-btn,
.section-more a,
.pagination a {
  border: 1px solid var(--archive-border);
  background: rgba(31, 31, 31, 0.78);
  color: var(--text-soft);
}

.primary-btn:hover,
.secondary-btn:hover,
.section-more a:hover,
.pagination a:hover,
.pagination a.is-current {
  transform: translateY(-2px);
  background: var(--accent-light);
  color: #fff;
  border-color: transparent;
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 74px;
  z-index: 3;
  width: 310px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.hero-mini-list {
  display: grid;
  gap: 10px;
}

.hero-mini-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.hero-mini-list a:hover {
  color: #fb923c;
}

.hero-mini-list span {
  color: #fb923c;
  font-weight: 900;
}

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

.hero-dots button {
  width: 30px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4b5563;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--accent-light);
}

.content-section {
  width: var(--shell);
  margin: 0 auto;
  padding: 72px 0;
}

.surface-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
  background: var(--archive-bg-light);
}

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

.section-title > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #fb923c;
  font-weight: 900;
}

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

.section-title p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

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

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

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

.movie-card,
.wide-card,
.category-card,
.category-overview-card,
.text-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: var(--archive-surface);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.38);
  background: var(--archive-surface-light);
  box-shadow: var(--shadow-card);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
}

.poster-frame img,
.wide-card figure img,
.category-preview img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-frame img,
.wide-card:hover figure img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-frame figcaption,
.detail-poster figcaption {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  color: #fff;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.movie-card h2,
.wide-card h2,
.category-card h2,
.category-overview-card h2,
.text-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-line,
.wide-card p,
.category-card p,
.category-overview-card p,
.text-panel p {
  color: var(--text-muted);
  line-height: 1.7;
}

.movie-line {
  min-height: 48px;
  margin: 10px 0 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.compact .movie-card-body {
  padding: 14px;
}

.compact h2 {
  font-size: 16px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact .movie-line {
  font-size: 13px;
}

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

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

.wide-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 138px;
}

.wide-card figure {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.wide-card-body {
  padding: 18px;
}

.wide-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wide-heading h2 {
  flex: 1;
}

.wide-heading strong {
  color: #fb923c;
  font-size: 20px;
}

.rank-num {
  width: 42px;
  color: #fb923c;
  font-size: 20px;
  font-weight: 900;
}

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

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

.category-card {
  min-height: 180px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), var(--archive-surface) 58%);
}

.category-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--accent);
  font-weight: 900;
}

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

.category-overview-card a {
  display: block;
}

.category-preview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 120px;
  overflow: hidden;
  background: #111;
}

.category-overview-card div:last-child {
  padding: 20px;
}

.section-more,
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.page-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.16), rgba(20, 20, 20, 0.88)), var(--archive-bg-light);
  border-bottom: 1px solid var(--archive-border);
}

.compact-hero {
  padding: 82px max(16px, calc((100vw - 1280px) / 2));
}

.compact-hero > div {
  width: var(--shell);
  max-width: 900px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--archive-border);
  border-radius: var(--radius-lg);
  background: var(--archive-surface);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 700;
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--accent-light);
}

.search-state {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #050505;
}

.detail-hero > img,
.detail-hero-mask {
  position: absolute;
  inset: 0;
}

.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.08);
  transform: scale(1.04);
  opacity: 0.42;
}

.detail-hero-mask {
  background: linear-gradient(to top, #0a0a0a 0%, rgba(10, 10, 10, 0.72) 46%, rgba(10, 10, 10, 0.36) 100%);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 44px 0 76px;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 28px;
  color: #fb923c;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: end;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: #111;
  box-shadow: var(--shadow-archive);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 66px);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.detail-meta-grid div {
  padding: 16px;
  border: 1px solid var(--archive-border);
  border-radius: 14px;
  background: rgba(31, 31, 31, 0.72);
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  color: #fff;
  font-size: 16px;
}

.detail-content {
  padding-top: 54px;
  padding-bottom: 54px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.16), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 36px;
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.32);
}

.player-box.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

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

.text-panel {
  padding: 28px;
}

.text-panel p {
  margin-bottom: 0;
  font-size: 16px;
}

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

.footer-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

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

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

.footer-links a {
  color: var(--text-muted);
}

.footer-bottom {
  width: var(--shell);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--archive-border);
  color: var(--text-muted);
  font-size: 14px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

  .hero-content {
    padding-right: 0;
  }

  .hero-panel {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    padding: 150px 0 54px;
  }

  .movie-grid.six,
  .movie-grid.four,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .two-column,
  .filter-bar,
  .footer-shell,
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .wide-card a {
    grid-template-columns: 150px 1fr;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    grid-column: span 2;
  }

  .detail-copy {
    grid-column: span 2;
  }

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

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 24px, 1280px);
  }

  .nav-shell {
    height: 64px;
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 30px;
  }

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

  .content-section,
  .surface-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .movie-grid.six,
  .movie-grid.four,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .two-column,
  .filter-bar,
  .footer-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .wide-card figure {
    aspect-ratio: 16 / 9;
  }

  .detail-poster,
  .detail-copy {
    grid-column: auto;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
