:root {
  --lamp-dark: #0f0f0f;
  --lamp-charcoal: #1a1a1a;
  --lamp-card: #201917;
  --lamp-brown: #4e342e;
  --lamp-warm: #ffa726;
  --lamp-gold: #ffb74d;
  --lamp-beige: #d7ccc8;
  --lamp-muted: rgba(215, 204, 200, 0.68);
  --lamp-line: rgba(255, 167, 38, 0.18);
  --shadow-warm: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 167, 38, 0.08), transparent 32rem),
    radial-gradient(circle at top right, rgba(78, 52, 46, 0.25), transparent 36rem),
    var(--lamp-dark);
  color: var(--lamp-beige);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

main {
  min-height: 70vh;
}

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

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 0 24px rgba(255, 167, 38, 0.36);
  font-size: 13px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(215, 204, 200, 0.78);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: #111111;
  background: var(--lamp-warm);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lamp-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lamp-beige);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--lamp-line);
  border-radius: var(--radius-md);
  background: rgba(26, 26, 26, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

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

.hero {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  position: relative;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 167, 38, 0.2);
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-warm);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: end;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.25));
}

.hero-copy,
.hero-card-preview {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 167, 38, 0.26);
  border-radius: 999px;
  color: var(--lamp-gold);
  background: rgba(255, 167, 38, 0.08);
  font-size: 14px;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

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

.button-primary,
.button-secondary,
.hero-dot,
.filter-button,
.play-inline-button {
  border: 0;
  cursor: pointer;
}

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

.button-primary,
.play-inline-button {
  color: #111111;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 12px 28px rgba(255, 167, 38, 0.25);
}

.button-secondary {
  color: var(--lamp-beige);
  border: 1px solid rgba(255, 167, 38, 0.26);
  background: rgba(26, 26, 26, 0.72);
}

.button-primary:hover,
.button-secondary:hover,
.play-inline-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 167, 38, 0.28);
}

.hero-card-preview {
  align-self: center;
  justify-self: end;
  width: min(280px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 167, 38, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(26, 26, 26, 0.62);
  backdrop-filter: blur(14px);
}

.hero-card-preview img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.hero-card-preview strong {
  display: block;
  margin-top: 12px;
  color: #ffffff;
  font-size: 18px;
}

.hero-card-preview span {
  display: block;
  margin-top: 6px;
  color: var(--lamp-muted);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--lamp-warm);
}

.quick-search {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 18px;
  border: 1px solid var(--lamp-line);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.72);
  box-shadow: var(--shadow-warm);
}

.quick-search form,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 167, 38, 0.2);
  border-radius: 999px;
  outline: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(255, 167, 38, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.1);
}

.section-block {
  width: min(1200px, calc(100% - 32px));
  margin: 42px auto 0;
}

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

.section-head h2,
.page-title h1,
.article-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--lamp-muted);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 167, 38, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 167, 38, 0.42);
  box-shadow: 0 18px 42px rgba(255, 167, 38, 0.13);
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000000;
}

.movie-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.movie-type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111111;
  background: var(--lamp-warm);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card h3 a:hover {
  color: var(--lamp-gold);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 10px;
  overflow: hidden;
  color: rgba(215, 204, 200, 0.76);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  color: rgba(215, 204, 200, 0.58);
  font-size: 12px;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span,
.meta-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 167, 38, 0.16);
  border-radius: 999px;
  color: rgba(255, 183, 77, 0.9);
  background: rgba(255, 167, 38, 0.07);
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 167, 38, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 167, 38, 0.12), transparent 12rem),
    rgba(26, 26, 26, 0.78);
  box-shadow: var(--shadow-warm);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 167, 38, 0.48);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

.rank-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 167, 38, 0.14);
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(78, 52, 46, 0.34);
}

.rank-number {
  color: var(--lamp-warm);
  font-size: 24px;
  font-weight: 900;
}

.rank-title {
  color: #ffffff;
  font-weight: 800;
}

.rank-meta {
  color: var(--lamp-muted);
  font-size: 13px;
}

.page-title {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 34px;
  border: 1px solid var(--lamp-line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 167, 38, 0.1), rgba(78, 52, 46, 0.2)),
    rgba(26, 26, 26, 0.76);
}

.filter-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 16px;
  border: 1px solid var(--lamp-line);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.72);
}

.filter-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 167, 38, 0.22);
  border-radius: 999px;
  color: var(--lamp-beige);
  background: rgba(0, 0, 0, 0.22);
}

.filter-button:hover,
.filter-button.is-active {
  color: #111111;
  background: var(--lamp-warm);
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--lamp-muted);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--lamp-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 167, 38, 0.15), transparent 18rem),
    rgba(26, 26, 26, 0.74);
  box-shadow: var(--shadow-warm);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: #000000;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.player-section,
.article-section,
.related-section {
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(255, 167, 38, 0.22);
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-warm);
}

.player-shell video,
.player-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #000000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: blur(2px) saturate(1.05);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.2));
}

.player-cover-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #111111;
  background: var(--lamp-warm);
  box-shadow: 0 0 38px rgba(255, 167, 38, 0.42);
  font-size: 28px;
}

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

.article-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.article-card,
.side-card {
  padding: 24px;
  border: 1px solid var(--lamp-line);
  border-radius: var(--radius-xl);
  background: rgba(26, 26, 26, 0.72);
}

.article-card h2,
.side-card h2,
.related-section h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.article-card p,
.side-card p {
  margin: 0 0 18px;
  color: rgba(215, 204, 200, 0.84);
  line-height: 1.9;
}

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

.side-list a {
  padding: 12px;
  border-radius: 12px;
  color: var(--lamp-muted);
  background: rgba(0, 0, 0, 0.18);
}

.side-list a:hover {
  color: #111111;
  background: var(--lamp-warm);
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--lamp-line);
  background: rgba(10, 10, 10, 0.82);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 26px;
  padding: 34px 0;
}

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

.site-footer p {
  max-width: 560px;
  color: var(--lamp-muted);
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--lamp-muted);
  background: rgba(255, 255, 255, 0.04);
}

.footer-links a:hover {
  color: #111111;
  background: var(--lamp-warm);
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed rgba(255, 167, 38, 0.36);
  border-radius: var(--radius-lg);
  color: var(--lamp-muted);
  text-align: center;
}

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

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

  .category-grid,
  .rank-panel,
  .article-section,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 30px;
  }

  .hero-card-preview {
    display: none;
  }

  .movie-grid,
  .movie-grid.compact-grid,
  .category-grid,
  .rank-panel,
  .article-section,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 16px;
  }

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

  .filter-panel,
  .quick-search form {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .hero,
  .quick-search,
  .section-block,
  .page-title,
  .filter-panel,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .article-section,
  .related-section,
  .footer-grid {
    width: min(100% - 22px, 1200px);
  }

  .site-logo {
    font-size: 17px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }

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

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

  .movie-card h3 {
    font-size: 15px;
  }

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