:root {
  --lamp-dark: #0f0f0f;
  --lamp-charcoal: #1a1a1a;
  --lamp-charcoal-soft: rgba(26, 26, 26, 0.95);
  --lamp-brown: #4e342e;
  --lamp-brown-soft: rgba(78, 52, 46, 0.3);
  --lamp-warm: #ffa726;
  --lamp-gold: #ffb74d;
  --lamp-beige: #d7ccc8;
  --lamp-muted: rgba(215, 204, 200, 0.68);
  --panel: rgba(26, 26, 26, 0.88);
  --line: rgba(78, 52, 46, 0.48);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--lamp-beige);
  background:
    radial-gradient(circle at top left, rgba(255, 167, 38, 0.12), transparent 26rem),
    radial-gradient(circle at 80% 12%, rgba(255, 183, 77, 0.08), transparent 20rem),
    var(--lamp-dark);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--lamp-charcoal-soft);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lamp-gold);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #17110c;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 0 24px rgba(255, 167, 38, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong,
.footer-brand {
  font-size: 1.28rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  font-size: 0.76rem;
  font-style: normal;
  color: rgba(215, 204, 200, 0.6);
}

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

.nav-link,
.mobile-link {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--lamp-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--lamp-beige);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(15, 15, 15, 0.96);
}

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

.section,
.hero-section,
.detail-layout {
  padding-block: 36px;
}

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

.section-head.small {
  align-items: center;
}

.section-head h2,
.page-hero h1,
.detail-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
  line-height: 1.12;
  font-weight: 850;
  background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: rgba(215, 204, 200, 0.64);
}

.section-more {
  color: var(--lamp-gold);
  background: var(--lamp-brown-soft);
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.section-more:hover {
  background: rgba(255, 167, 38, 0.18);
  transform: translateY(-1px);
}

.hero-head {
  margin-top: 4px;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--lamp-charcoal);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 58%);
}

.hero-content {
  position: absolute;
  left: clamp(22px, 5vw, 64px);
  right: clamp(22px, 5vw, 64px);
  bottom: clamp(28px, 7vw, 72px);
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lamp-gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.62);
}

.hero h2 + p,
.hero h1 + h2 + p {
  margin: 0 0 18px;
  color: rgba(229, 231, 235, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hero h1 + h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.hero-tags,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span {
  color: var(--lamp-gold);
  background: rgba(78, 52, 46, 0.54);
  border: 1px solid rgba(255, 167, 38, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
}

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

.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, color 0.2s ease;
}

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

.btn.primary {
  color: #17110c;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
}

.btn.ghost {
  color: var(--lamp-beige);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(215, 204, 200, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(255, 167, 38, 0.82);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(78, 52, 46, 0.44);
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 0 24px rgba(255, 167, 38, 0.22);
  border-color: rgba(255, 167, 38, 0.32);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}

.movie-cover img,
.compact-cover img,
.category-card img,
.category-collage img,
.ranking-item img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-cover img,
.compact-card:hover img,
.category-card:hover img,
.category-large:hover img,
.rank-row:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.movie-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--lamp-gold);
  font-weight: 850;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.22));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-hover {
  opacity: 1;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #fff;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card:hover .compact-title,
.rank-row:hover .rank-title,
.ranking-item:hover strong {
  color: var(--lamp-gold);
}

.movie-card p {
  margin: 0 0 12px;
  color: rgba(215, 204, 200, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta {
  color: rgba(215, 204, 200, 0.6);
  font-size: 0.8rem;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--lamp-charcoal);
  border: 1px solid var(--line);
  padding: 22px;
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.category-card strong,
.category-card em {
  position: relative;
  display: block;
}

.category-card strong {
  margin-top: 72px;
  color: #fff;
  font-size: 1.3rem;
}

.category-card em {
  margin-top: 8px;
  color: rgba(215, 204, 200, 0.72);
  font-style: normal;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.ranking-panel,
.search-panel,
.detail-card,
.player-card,
.page-hero,
.category-large,
.ranking-list-full {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.ranking-panel,
.search-panel,
.page-hero,
.detail-card {
  padding: clamp(20px, 3vw, 32px);
}

.rank-list,
.ranking-list-full {
  display: grid;
  gap: 12px;
}

.rank-row,
.ranking-item {
  display: grid;
  align-items: center;
  gap: 14px;
  background: rgba(15, 15, 15, 0.56);
  border: 1px solid rgba(78, 52, 46, 0.32);
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 44px 64px 1fr auto;
  padding: 8px 12px 8px 8px;
}

.rank-row:hover,
.ranking-item:hover {
  background: rgba(78, 52, 46, 0.35);
  transform: translateX(2px);
}

.rank-num,
.ranking-index {
  color: var(--lamp-gold);
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 64px;
  height: 86px;
  border-radius: 10px;
}

.rank-title {
  color: #fff;
  font-weight: 760;
}

.rank-meta,
.ranking-side,
.compact-meta {
  color: rgba(215, 204, 200, 0.62);
  font-size: 0.82rem;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.search-box span {
  color: var(--lamp-gold);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 15, 15, 0.8);
  color: #fff;
  outline: none;
  padding: 13px 16px;
}

.search-box input:focus {
  border-color: rgba(255, 167, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.12);
}

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

.compact-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(15, 15, 15, 0.48);
  border: 1px solid rgba(78, 52, 46, 0.32);
}

.compact-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
}

.compact-title {
  color: #fff;
  font-weight: 750;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.page-hero {
  margin-top: 30px;
}

.compact-hero {
  max-width: 1180px;
}

.page-search {
  max-width: 680px;
  margin-top: 24px;
  margin-bottom: 0;
}

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

.category-large {
  overflow: hidden;
}

.category-large a {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 220px;
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.category-info strong {
  color: #fff;
  font-size: 1.35rem;
}

.category-info em {
  color: rgba(215, 204, 200, 0.7);
  font-style: normal;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(215, 204, 200, 0.62);
  font-size: 0.92rem;
}

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #17110c;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  font-size: 2rem;
  box-shadow: 0 0 34px rgba(255, 167, 38, 0.36);
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.video-player.playing .play-overlay {
  display: none;
}

.detail-card {
  margin-bottom: 30px;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.74);
  color: rgba(215, 204, 200, 0.78);
}

.detail-card section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  color: var(--lamp-gold);
  font-size: 1.35rem;
}

.detail-card p {
  color: rgba(215, 204, 200, 0.82);
  line-height: 1.85;
  white-space: pre-wrap;
}

.detail-card .lead {
  color: rgba(215, 204, 200, 0.94);
  font-weight: 760;
}

.related-section {
  padding-block: 0 46px;
}

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

.ranking-list-full {
  padding: 16px;
}

.ranking-item {
  grid-template-columns: 72px 74px 1fr 90px;
  padding: 10px 16px 10px 10px;
}

.ranking-item img {
  width: 74px;
  height: 98px;
  border-radius: 10px;
}

.ranking-copy {
  display: grid;
  gap: 6px;
}

.ranking-copy strong {
  color: #fff;
  font-size: 1.02rem;
}

.ranking-copy em {
  color: rgba(215, 204, 200, 0.66);
  font-style: normal;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ranking-side {
  text-align: right;
  line-height: 1.5;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(26, 26, 26, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding-block: 42px;
}

.footer-grid p {
  max-width: 560px;
  color: rgba(215, 204, 200, 0.66);
  line-height: 1.7;
}

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

.footer-links strong {
  margin-bottom: 5px;
  color: var(--lamp-gold);
}

.footer-links a {
  color: rgba(215, 204, 200, 0.68);
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  color: rgba(215, 204, 200, 0.42);
  text-align: center;
  font-size: 0.88rem;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

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

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-text em {
    display: none;
  }

  .hero {
    min-height: 470px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 42px;
  }

  .hero-arrow {
    opacity: 1;
    width: 38px;
    height: 38px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

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

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

  .category-collage {
    min-height: 150px;
  }

  .rank-row {
    grid-template-columns: 34px 56px 1fr;
  }

  .rank-row img {
    width: 56px;
    height: 74px;
  }

  .rank-meta {
    display: none;
  }

  .ranking-item {
    grid-template-columns: 48px 64px 1fr;
  }

  .ranking-side {
    display: none;
  }

  .ranking-item img {
    width: 64px;
    height: 86px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.wide-grid,
  .compact-grid,
  .category-grid,
  .category-large-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

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

  .movie-card p {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 1.55rem;
  }
}
