:root {
  --night-950: #020617;
  --night-925: #08111f;
  --night-900: #0f172a;
  --night-850: #172033;
  --night-800: #1e293b;
  --night-700: #334155;
  --gold-300: #fde68a;
  --gold-400: #facc15;
  --gold-500: #eab308;
  --gold-600: #ca8a04;
  --blue-400: #60a5fa;
  --red-400: #f87171;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --soft: #64748b;
  --shadow-glow: 0 0 22px rgba(234, 179, 8, 0.32);
  --shadow-night: 0 18px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(234, 179, 8, 0.13), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(96, 165, 250, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--night-950), #050914 40%, var(--night-950));
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(234, 179, 8, 0.16);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

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

.logo-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--gold-500);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
}

.logo-text,
.footer-logo {
  font-size: 21px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-600));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.search-grid input,
.search-grid select {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  min-width: 220px;
  padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.big-search button {
  padding: 10px 16px;
  color: var(--night-950);
  background: var(--gold-500);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--gold-500) !important;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  padding: 16px;
  background: rgba(2, 6, 23, 0.98);
}

.mobile-panel.open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--night-950);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) brightness(0.65);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76) 43%, rgba(2, 6, 23, 0.32)),
    linear-gradient(0deg, var(--night-950), transparent 34%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 54px;
  padding-top: 42px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.detail-kicker,
.page-title span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.list-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.list-meta span {
  padding: 6px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 999px;
  font-size: 13px;
}

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

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

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

.btn.primary {
  color: var(--night-950);
  background: var(--gold-500);
  box-shadow: var(--shadow-glow);
}

.btn.ghost {
  color: white;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.24);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow-night), var(--shadow-glow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  z-index: 4;
}

.hero-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
}

.hero-dots button.active {
  width: 28px;
  background: var(--gold-500);
}

.quick-search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: -42px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-night);
  backdrop-filter: blur(12px);
}

.big-search input {
  padding: 16px 18px;
  font-size: 16px;
}

.big-search button {
  padding: 16px 26px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quick-links a,
.inline-link {
  color: var(--gold-400);
  font-weight: 700;
}

.section {
  margin-top: 70px;
}

.flush-top {
  margin-top: 0;
}

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

.section-head h2,
.page-title h1,
.content-panel h2 {
  margin: 0;
  color: white;
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-head p,
.page-title p,
.category-overview-card p,
.site-footer p,
.content-panel p {
  color: var(--muted);
}

.section-more {
  color: var(--gold-400);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: var(--shadow-glow);
}

.poster-link {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background: var(--night-800);
}

.movie-card.compact .poster-link {
  height: 235px;
}

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

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

.poster-shade,
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 56%);
}

.play-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: var(--night-950);
  background: var(--gold-500);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.rank-badge,
.list-rank {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--night-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  top: 12px;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover,
.list-title:hover {
  color: var(--gold-400);
}

.card-desc {
  display: -webkit-box;
  height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-top: 14px;
  gap: 7px;
}

.card-meta span {
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--gold-300);
  background: rgba(234, 179, 8, 0.09);
  border-radius: 999px;
  font-size: 12px;
}

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

.list-card {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.list-card:hover {
  transform: translateX(4px);
  border-color: rgba(234, 179, 8, 0.4);
}

.list-poster {
  overflow: hidden;
  border-radius: 14px;
}

.list-poster img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.list-title {
  color: white;
  font-size: 20px;
  font-weight: 850;
}

.list-body p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-meta {
  margin-top: 12px;
}

.list-rank {
  left: -10px;
  top: -10px;
}

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

.category-tile {
  position: relative;
  height: 170px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 20px;
  background: var(--night-900);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 42px;
  color: white;
  font-size: 20px;
}

.category-tile em {
  bottom: 18px;
  color: var(--gold-300);
  font-style: normal;
}

.page-main {
  padding: 48px 0 0;
}

.page-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.page-title.wide {
  max-width: 980px;
}

.page-title h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.page-title p {
  font-size: 18px;
}

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

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

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 18px;
}

.filter-bar input {
  padding: 13px 15px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 20px;
}

.category-cover {
  overflow: hidden;
  border-radius: 16px;
}

.category-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0;
  color: white;
}

.category-count {
  margin-bottom: 12px;
  color: var(--gold-300);
  font-weight: 800;
}

.detail-main {
  padding-top: 26px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(30, 58, 138, 0.11)),
    rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(234, 179, 8, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow-night);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-glow);
}

.detail-poster img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0;
  color: white;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
}

.detail-line {
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  margin-top: 38px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: black;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 24px;
  box-shadow: var(--shadow-night);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: black;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
  border: 0;
  cursor: pointer;
}

.video-cover.hidden {
  display: none;
}

.video-play {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: var(--night-950);
  background: var(--gold-500);
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  font-size: 34px;
}

.video-cover strong {
  max-width: 80%;
  text-align: center;
  font-size: clamp(22px, 4vw, 40px);
}

.content-panel {
  margin-top: 34px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 22px;
}

.content-panel h2 + p {
  margin-top: 10px;
}

.neighbor-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.neighbor-links a {
  padding: 16px;
  color: var(--gold-300);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 16px;
  font-weight: 800;
}

.search-panel {
  padding: 22px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 22px;
}

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

.search-grid label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.search-grid input,
.search-grid select {
  padding: 12px 14px;
}

.search-status {
  margin: 18px 0;
  color: var(--gold-300);
  font-weight: 800;
}

.archive-year {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.56);
  border-radius: 20px;
}

.archive-year h2 {
  margin: 0 0 16px;
  color: var(--gold-300);
}

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

.archive-links a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
}

.archive-links a:hover {
  border-color: rgba(234, 179, 8, 0.42);
}

.archive-links span {
  color: var(--soft);
  font-size: 12px;
}

.prose-page {
  min-height: 48vh;
}

.site-footer {
  margin-top: 90px;
  padding: 44px 0 0;
  border-top: 1px solid rgba(51, 65, 85, 0.62);
  background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  padding: 18px;
  color: var(--soft);
  border-top: 1px solid rgba(51, 65, 85, 0.44);
  text-align: center;
}

.hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-hero {
    grid-template-columns: 250px 1fr;
  }

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

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

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

  .hero-content {
    padding-top: 10px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .quick-search-panel,
  .big-search,
  .filter-bar,
  .neighbor-links,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search-panel {
    margin-top: -26px;
  }

  .card-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .search-grid,
  .footer-grid,
  .archive-links {
    grid-template-columns: 1fr;
  }

  .list-card,
  .category-overview-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .list-poster img {
    height: 180px;
  }

  .detail-poster img {
    height: auto;
    max-height: 520px;
  }

  .poster-link {
    height: 360px;
  }
}
