* {
  box-sizing: border-box;
}

:root {
  --lamp-dark: #0f0f0f;
  --lamp-charcoal: #1a1a1a;
  --lamp-coal: #24201f;
  --lamp-brown: #4e342e;
  --lamp-beige: #fff3df;
  --lamp-muted: rgba(255, 243, 223, 0.68);
  --lamp-warm: #ffa726;
  --lamp-gold: #ffb74d;
  --lamp-line: rgba(78, 52, 46, 0.55);
  --shadow-warm: 0 18px 60px rgba(255, 167, 38, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
}

html {
  min-height: 100%;
  background: var(--lamp-dark);
  color: var(--lamp-beige);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 167, 38, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(255, 183, 77, 0.10), transparent 32rem),
    linear-gradient(180deg, #151211 0%, #0f0f0f 52%, #17110f 100%);
  color: var(--lamp-beige);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
  z-index: 0;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(26, 26, 26, 0.94);
  border-bottom: 1px solid var(--lamp-line);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #1a120a;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 0 28px rgba(255, 167, 38, 0.35);
}

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

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--lamp-muted);
  font-size: 15px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--lamp-gold);
  background: rgba(255, 167, 38, 0.12);
  transform: translateY(-1px);
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--lamp-beige);
  border-radius: 99px;
}

.hero-slider {
  position: relative;
  width: min(1380px, calc(100% - 24px));
  min-height: 580px;
  margin: 26px auto 34px;
  border: 1px solid var(--lamp-line);
  border-radius: 32px;
  overflow: hidden;
  background: #080807;
  box-shadow: var(--shadow-warm);
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 38px;
  padding: 64px min(7vw, 82px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.08) blur(1px);
  transform: scale(1.04);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.96) 0%, rgba(8, 8, 7, 0.72) 48%, rgba(8, 8, 7, 0.42) 100%),
    radial-gradient(circle at 78% 34%, rgba(255, 167, 38, 0.2), transparent 24rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 167, 38, 0.28);
  border-radius: 999px;
  color: var(--lamp-gold);
  background: rgba(255, 167, 38, 0.1);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #fff8e8, var(--lamp-gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 243, 223, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--lamp-gold);
  background: rgba(78, 52, 46, 0.65);
  border: 1px solid rgba(255, 167, 38, 0.20);
  font-size: 13px;
}

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

.btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 167, 38, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary,
.section-more {
  color: #1a120a;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 10px 26px rgba(255, 167, 38, 0.22);
  font-weight: 700;
}

.btn.ghost {
  color: var(--lamp-beige);
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 167, 38, 0.28);
}

.hero-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: min(7vw, 82px);
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 243, 223, 0.22);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--lamp-line);
  border-radius: 24px;
  background: rgba(26, 26, 26, 0.72);
}

.quick-search h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--lamp-warm);
}

.quick-search p {
  margin: 0;
  color: var(--lamp-muted);
  line-height: 1.7;
}

.content-section {
  position: relative;
  z-index: 1;
  padding: 38px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--lamp-warm);
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p {
  margin: 0;
  color: var(--lamp-muted);
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lamp-charcoal);
  border: 1px solid rgba(78, 52, 46, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.poster-link:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 167, 38, 0.46);
  box-shadow: 0 18px 58px rgba(255, 167, 38, 0.22);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 62%);
  opacity: 0.88;
}

.play-chip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 999px;
  color: #1a120a;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-link:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #1a120a;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  font-weight: 900;
}

.movie-info {
  padding-top: 12px;
}

.movie-info h2 {
  margin: 0 0 8px;
  color: var(--lamp-beige);
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: var(--lamp-gold);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(255, 243, 223, 0.55);
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(78, 52, 46, 0.45);
}

.movie-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin: 0;
  color: var(--lamp-muted);
  font-size: 13px;
  line-height: 1.6;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--lamp-line);
  background: var(--lamp-charcoal);
  box-shadow: var(--shadow-warm);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.88));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 22px;
  right: 22px;
}

.category-tile strong {
  bottom: 54px;
  color: var(--lamp-gold);
  font-size: 26px;
}

.category-tile em {
  bottom: 24px;
  color: rgba(255, 243, 223, 0.76);
  font-style: normal;
}

.page-hero {
  position: relative;
  padding: 86px 0 50px;
  border-bottom: 1px solid var(--lamp-line);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 167, 38, 0.18), transparent 25rem),
    linear-gradient(135deg, rgba(26, 26, 26, 0.82), rgba(15, 15, 15, 0.92));
}

.page-hero.compact h1 {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  background: linear-gradient(90deg, #fff9ea, var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero.compact p {
  max-width: 850px;
  margin: 0;
  color: var(--lamp-muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--lamp-line);
  border-radius: 22px;
  background: rgba(26, 26, 26, 0.72);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--lamp-muted);
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 167, 38, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--lamp-beige);
  background: rgba(15, 15, 15, 0.86);
}

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

.filter-empty {
  margin: 18px 0 28px;
  padding: 16px;
  border: 1px solid var(--lamp-line);
  border-radius: 16px;
  color: var(--lamp-muted);
  background: rgba(26, 26, 26, 0.7);
}

.detail-wrap {
  padding-top: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 243, 223, 0.62);
  font-size: 14px;
}

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

.player-section {
  margin-bottom: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 167, 38, 0.28);
  border-radius: 26px;
  background: #000;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.62), 0 0 36px rgba(255, 167, 38, 0.12);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--lamp-beige);
  background: radial-gradient(circle at 50% 45%, rgba(255, 167, 38, 0.22), transparent 16rem), rgba(0, 0, 0, 0.54);
  text-align: center;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #1a120a;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 0 42px rgba(255, 167, 38, 0.38);
  font-size: 30px;
  text-indent: 4px;
}

.player-cover strong {
  font-size: 24px;
}

.player-cover em {
  color: rgba(255, 243, 223, 0.72);
  font-style: normal;
}

.detail-card,
.article-box {
  border: 1px solid var(--lamp-line);
  border-radius: 24px;
  background: rgba(26, 26, 26, 0.78);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.22);
}

.detail-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  margin-bottom: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 20px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 16px;
  color: var(--lamp-gold);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.lead {
  margin: 0;
  color: rgba(255, 243, 223, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  color: var(--lamp-muted);
}

.detail-meta span {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(78, 52, 46, 0.36);
}

.article-box {
  margin-bottom: 24px;
  padding: 26px;
}

.article-box h2 {
  margin: 0 0 14px;
  color: var(--lamp-warm);
  font-size: 25px;
}

.article-box p {
  margin: 0;
  color: rgba(255, 243, 223, 0.78);
  line-height: 1.95;
  font-size: 16px;
}

.detail-neighbor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.detail-neighbor a {
  padding: 18px 20px;
  border: 1px solid var(--lamp-line);
  border-radius: 18px;
  color: var(--lamp-muted);
  background: rgba(26, 26, 26, 0.72);
}

.detail-neighbor a:hover {
  color: var(--lamp-gold);
  border-color: rgba(255, 167, 38, 0.42);
}

.related-section {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  border-top: 1px solid var(--lamp-line);
  background: rgba(15, 15, 15, 0.95);
}

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

.footer-brand p,
.footer-grid a {
  color: var(--lamp-muted);
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--lamp-warm);
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(78, 52, 46, 0.35);
  color: rgba(255, 243, 223, 0.48);
  text-align: center;
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--lamp-line);
    border-radius: 20px;
    background: rgba(26, 26, 26, 0.98);
  }

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

  .nav-link {
    border-radius: 14px;
  }

  .hero-slider {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 24px;
    padding: 34px 22px 76px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(36px, 12vw, 58px);
  }

  .hero-poster {
    width: min(240px, 64vw);
    margin: 0 auto;
    order: -1;
  }

  .hero-dots {
    left: 22px;
    bottom: 24px;
  }

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

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

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

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

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

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

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

  .brand-text em {
    display: none;
  }

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

  .movie-info h2 {
    font-size: 15px;
  }

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

  .page-hero {
    padding: 56px 0 36px;
  }
}
