:root {
  --lamp-dark: #0f0f0f;
  --lamp-charcoal: #1a1a1a;
  --lamp-brown: #4e342e;
  --lamp-warm: #ffa726;
  --lamp-gold: #ffb74d;
  --lamp-beige: #d7ccc8;
  --soft-white: #f8f4ef;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--lamp-beige);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 167, 38, 0.12), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(255, 183, 77, 0.08), transparent 28rem),
    linear-gradient(180deg, #15110f 0%, var(--lamp-dark) 38%, #090909 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(78, 52, 46, 0.5);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

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

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

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

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

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

.brand-text small {
  margin-top: 4px;
  color: rgba(215, 204, 200, 0.62);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  color: rgba(215, 204, 200, 0.78);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  width: 240px;
  border: 1px solid rgba(78, 52, 46, 0.65);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.75);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--soft-white);
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 10px 14px;
  color: #1b130b;
  font-weight: 700;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--lamp-beige);
  font-size: 28px;
  background: transparent;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(78, 52, 46, 0.45);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
}

.hero {
  padding-top: 34px;
}

.hero-stage {
  position: relative;
  min-height: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 56%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 76px);
  bottom: clamp(30px, 7vw, 82px);
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lamp-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  color: var(--soft-white);
}

.hero h2 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: transparent;
  background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  margin: 0 0 18px;
  max-width: 620px;
  color: rgba(248, 244, 239, 0.88);
  font-size: 16px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(248, 244, 239, 0.9);
  font-size: 12px;
  background: rgba(78, 52, 46, 0.55);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #1b130b;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 14px 35px rgba(255, 167, 38, 0.24);
}

.ghost-button,
.section-more {
  color: var(--lamp-gold);
  background: rgba(26, 26, 26, 0.74);
  border: 1px solid rgba(255, 183, 77, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 167, 38, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--soft-white);
  font-size: 34px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-stage: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: 26px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  border: 1px solid rgba(78, 52, 46, 0.42);
  border-radius: 20px;
  padding: 18px;
  background: rgba(26, 26, 26, 0.72);
}

.large-search {
  display: flex;
  border: 1px solid rgba(255, 183, 77, 0.22);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.86);
}

.large-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 15px 16px;
  color: var(--soft-white);
  background: transparent;
}

.large-search button {
  min-width: 112px;
  border: 0;
  color: #1b130b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
}

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

.quick-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--lamp-gold);
  font-size: 13px;
  background: rgba(78, 52, 46, 0.38);
}

.section {
  padding: 42px 0;
}

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

.section-heading h2,
.text-panel h2 {
  margin: 0;
  color: transparent;
  font-size: clamp(24px, 3vw, 34px);
  background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.section-heading p,
.page-hero p,
.category-info p,
.movie-card-body p,
.footer-grid p,
.text-panel p {
  color: rgba(215, 204, 200, 0.76);
  line-height: 1.75;
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card a:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(31, 31, 31, 0.96);
  box-shadow: 0 0 24px rgba(255, 167, 38, 0.24);
}

.movie-card figure {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.25) 62%, transparent);
}

.movie-card figcaption strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card figcaption small {
  color: rgba(229, 231, 235, 0.82);
  font-size: 12px;
}

.play-chip,
.rank-badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 5px 9px;
  color: #1b130b;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
}

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

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

.movie-card-body h2 {
  margin: 0 0 8px;
  color: var(--soft-white);
  font-size: 16px;
  line-height: 1.35;
}

.movie-card-body p {
  margin: 0 0 12px;
  font-size: 13px;
}

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

.wide-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.88);
  transition: transform 0.2s ease, background 0.2s ease;
}

.wide-item:hover {
  transform: translateX(4px);
  background: rgba(38, 32, 28, 0.95);
}

.wide-item img {
  width: 180px;
  height: 112px;
  object-fit: cover;
}

.wide-item span {
  display: grid;
  gap: 6px;
  padding-right: 18px;
}

.wide-item strong {
  color: var(--soft-white);
  font-size: 18px;
}

.wide-item em {
  color: rgba(215, 204, 200, 0.76);
  font-style: normal;
}

.wide-item small {
  color: rgba(215, 204, 200, 0.55);
}

.page-hero {
  padding: 58px 0 24px;
}

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

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 210px;
  border: 1px solid rgba(78, 52, 46, 0.4);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.88);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 183, 77, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #000;
}

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

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

.category-info h2 {
  margin: 0 0 10px;
  color: var(--lamp-gold);
  font-size: 24px;
}

.category-info small {
  margin-top: 14px;
  color: rgba(215, 204, 200, 0.55);
}

.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid rgba(78, 52, 46, 0.45);
  border-radius: 18px;
  padding: 14px;
  background: rgba(26, 26, 26, 0.82);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid rgba(255, 183, 77, 0.18);
  border-radius: 12px;
  outline: 0;
  padding: 0 13px;
  color: var(--soft-white);
  background: rgba(15, 15, 15, 0.9);
}

.filter-panel input {
  flex: 1;
}

.filter-panel select {
  width: 160px;
}

.empty-state {
  margin: 24px 0 0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: rgba(215, 204, 200, 0.75);
  background: rgba(26, 26, 26, 0.82);
}

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

.ranking-feature {
  position: relative;
  display: grid;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.ranking-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.ranking-feature strong,
.ranking-feature small,
.rank-medal {
  position: relative;
  z-index: 1;
  margin-left: 20px;
}

.rank-medal {
  align-self: start;
  justify-self: start;
  margin-top: 20px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #1b130b;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
}

.ranking-feature strong {
  align-self: end;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
}

.ranking-feature small {
  margin-bottom: 20px;
  color: rgba(248, 244, 239, 0.8);
}

.detail-wrap {
  padding: 34px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(215, 204, 200, 0.58);
  font-size: 14px;
}

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

.player-shell {
  margin-bottom: 28px;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #1b130b;
  font-size: 34px;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: 0 0 34px rgba(255, 167, 38, 0.34);
}

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

.player-error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--soft-white);
  background: rgba(0, 0, 0, 0.78);
}

.detail-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  border: 1px solid rgba(78, 52, 46, 0.42);
  border-radius: 22px;
  padding: 22px;
  background: rgba(26, 26, 26, 0.88);
}

.detail-poster img {
  width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 14px;
  color: transparent;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--lamp-warm), var(--lamp-gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.detail-one-line {
  margin: 0 0 18px;
  color: rgba(248, 244, 239, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-row span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--lamp-gold);
  background: rgba(78, 52, 46, 0.4);
}

.tag-row-large span {
  padding: 8px 12px;
}

.text-panel {
  margin-top: 24px;
  border: 1px solid rgba(78, 52, 46, 0.42);
  border-radius: 22px;
  padding: 26px;
  background: rgba(26, 26, 26, 0.86);
}

.text-panel h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

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

.related-section {
  padding-bottom: 0;
}

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

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(78, 52, 46, 0.45);
  background: rgba(26, 26, 26, 0.9);
}

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

.footer-brand {
  margin-bottom: 16px;
}

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

.footer-grid p {
  margin: 16px 0 0;
}

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

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

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

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

  .header-search {
    display: none;
  }

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

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

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

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

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

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.34));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 32px;
  }

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

  .quick-panel,
  .footer-grid,
  .detail-card,
  .category-card a {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

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

  .wide-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .wide-item img {
    width: 120px;
    height: 96px;
  }

  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel select {
    width: 100%;
  }

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

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

  .hero-stage {
    border-radius: 18px;
  }

  .hero-actions,
  .quick-links,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .large-search {
    flex-direction: column;
  }

  .large-search button {
    min-height: 44px;
  }

  .movie-card-body {
    display: none;
  }

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

  .movie-card figcaption strong {
    font-size: 14px;
  }

  .detail-card,
  .text-panel {
    padding: 18px;
  }
}
