@charset "UTF-8";

:root {
  --lamp-dark: #0f0f0f;
  --lamp-charcoal: #1a1a1a;
  --lamp-panel: #211a17;
  --lamp-brown: #4e342e;
  --lamp-brown-soft: rgba(78, 52, 46, 0.48);
  --lamp-warm: #ffa726;
  --lamp-gold: #ffb74d;
  --lamp-beige: #d7ccc8;
  --lamp-muted: rgba(215, 204, 200, 0.68);
  --white-soft: rgba(255, 255, 255, 0.9);
  --shadow-warm: 0 0 24px rgba(255, 167, 38, 0.25);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--lamp-beige);
  background:
    radial-gradient(circle at top left, rgba(255, 167, 38, 0.13), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(78, 52, 46, 0.42), transparent 34rem),
    var(--lamp-dark);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", 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(100% - 32px, var(--container));
  margin: 0 auto;
}

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

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #1b120c;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: var(--shadow-warm);
  font-size: 15px;
  transform: translateZ(0);
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--lamp-beige);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

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

.nav-category {
  color: rgba(215, 204, 200, 0.72);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 204, 200, 0.16);
  border-radius: 12px;
  background: rgba(78, 52, 46, 0.2);
  color: var(--lamp-beige);
  cursor: pointer;
}

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

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

.hero-section {
  padding: 42px 0 22px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title h1 {
  max-width: 840px;
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
}

.hero-title p,
.page-hero p,
.section-heading p {
  margin: 0;
  color: var(--lamp-muted);
}

.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--lamp-charcoal);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45), transparent),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 55%);
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 6vw, 72px);
  bottom: clamp(26px, 6vw, 74px);
  width: min(650px, calc(100% - 44px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 167, 38, 0.28);
  border-radius: 999px;
  color: var(--lamp-gold);
  background: rgba(255, 167, 38, 0.14);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
}

.hero-copy p {
  max-width: 610px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-meta span,
.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.primary-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #1b120c;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: var(--shadow-warm);
  font-weight: 800;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.primary-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.25s ease;
}

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

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 9px;
}

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

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

.section-block {
  padding: 32px 0;
}

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

.section-heading h2,
.side-title h2,
.content-card h2 {
  margin: 0 0 5px;
  color: var(--lamp-warm);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.section-more {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--lamp-charcoal);
  border: 1px solid rgba(78, 52, 46, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 167, 38, 0.48);
  box-shadow: var(--shadow-warm), 0 24px 44px rgba(0, 0, 0, 0.35);
}

.card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-link img,
.category-tile img,
.rank-item img,
.ranking-row img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 167, 38, 0.08), rgba(78, 52, 46, 0.28));
}

.card-link img {
  transition: transform 0.35s ease;
}

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

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.46) 42%, transparent 78%);
}

.card-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.18), transparent 36%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.movie-card:hover .card-shine {
  transform: translateX(120%);
}

.card-play {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1b120c;
  background: var(--lamp-warm);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
}

.card-info strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info em,
.card-info small,
.ranking-row em,
.rank-copy em {
  color: rgba(215, 204, 200, 0.76);
  font-style: normal;
  font-size: 12px;
}

.card-info small {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--lamp-gold);
  background: rgba(255, 167, 38, 0.14);
  font-size: 12px;
}

.movie-card-list {
  min-height: 0;
}

.movie-card-list .card-link {
  display: grid;
  grid-template-columns: 150px 1fr;
  aspect-ratio: auto;
  min-height: 118px;
}

.movie-card-list .card-link img {
  height: 100%;
}

.movie-card-list .card-info {
  position: relative;
  justify-content: center;
  background: rgba(26, 26, 26, 0.9);
}

.movie-card-list .card-link::after,
.movie-card-list .card-shine,
.movie-card-list .card-play {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.ranking-box,
.content-card,
.filter-panel,
.global-search-box {
  border: 1px solid rgba(78, 52, 46, 0.42);
  border-radius: var(--radius-xl);
  background: rgba(26, 26, 26, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.ranking-box {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-title a {
  color: var(--lamp-gold);
  font-size: 14px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(78, 52, 46, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.rank-no,
.ranking-number {
  color: var(--lamp-warm);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rank-item img {
  width: 62px;
  height: 78px;
  border-radius: 10px;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-copy strong {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(78, 52, 46, 0.42);
  background: var(--lamp-charcoal);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.45;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile span {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.2));
}

.category-tile strong {
  color: #fff;
  font-size: 23px;
}

.category-tile em {
  margin-top: 6px;
  color: rgba(215, 204, 200, 0.76);
  font-style: normal;
  font-size: 14px;
}

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

.category-tile-large {
  min-height: 220px;
}

.page-hero {
  padding: 48px 0 18px;
}

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

.compact-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
}

.filter-panel label,
.global-search-box {
  display: grid;
  gap: 8px;
}

.filter-panel span,
.global-search-box span {
  color: var(--lamp-gold);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.global-search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(215, 204, 200, 0.16);
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.34);
  padding: 0 13px;
  outline: none;
}

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

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: var(--lamp-muted);
  text-align: center;
  background: rgba(26, 26, 26, 0.8);
}

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

.ranking-list-page {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(78, 52, 46, 0.42);
  background: rgba(26, 26, 26, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
  transform: translateX(6px);
  border-color: rgba(255, 167, 38, 0.42);
  background: rgba(78, 52, 46, 0.26);
}

.ranking-row img {
  width: 74px;
  height: 96px;
  border-radius: 12px;
}

.ranking-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-main strong {
  color: #fff;
  font-size: 18px;
}

.ranking-main em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-meta {
  color: var(--lamp-muted);
  font-size: 14px;
  white-space: nowrap;
}

.global-search {
  display: grid;
  gap: 22px;
}

.global-search-box {
  padding: 18px;
}

.detail-hero {
  padding: 36px 0 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(78, 52, 46, 0.52);
  background: var(--lamp-charcoal);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(78, 52, 46, 0.58);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1b120c;
  background: linear-gradient(135deg, var(--lamp-warm), var(--lamp-gold));
  box-shadow: var(--shadow-warm);
  font-size: 28px;
  padding-left: 5px;
}

.player-overlay strong {
  font-size: 18px;
}

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

.content-card {
  padding: clamp(22px, 4vw, 38px);
}

.content-card h2 {
  font-size: 26px;
}

.content-card p {
  margin: 0 0 24px;
  color: rgba(215, 204, 200, 0.86);
  font-size: 16px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(78, 52, 46, 0.42);
  background: rgba(26, 26, 26, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand p {
  max-width: 520px;
  color: var(--lamp-muted);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--lamp-warm);
}

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

.site-footer a {
  color: rgba(215, 204, 200, 0.72);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(78, 52, 46, 0.3);
  padding: 16px;
  text-align: center;
  color: rgba(215, 204, 200, 0.56);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    border: 1px solid rgba(78, 52, 46, 0.42);
    border-radius: 18px;
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

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

  .ranking-box {
    position: static;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

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

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

  .brand-text small,
  .nav-category {
    display: none;
  }

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

  .hero-section {
    padding-top: 24px;
  }

  .hero-slider {
    height: 460px;
    border-radius: 18px;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 26px;
    width: auto;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 18px;
    right: auto;
    bottom: 16px;
  }

  .section-heading,
  .side-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .movie-card {
    min-height: 220px;
  }

  .card-info {
    padding: 12px;
  }

  .card-info strong {
    font-size: 15px;
  }

  .card-info small,
  .tag-row {
    display: none;
  }

  .movie-card-list .card-link {
    grid-template-columns: 110px 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 44px 58px 1fr;
  }

  .ranking-row img {
    width: 58px;
    height: 76px;
  }

  .ranking-meta {
    display: none;
  }

  .player-overlay span {
    width: 62px;
    height: 62px;
  }
}
